Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2003
    Posts
    15

    Arrow Unanswered: Can i change DB2 port 50000 to some other port

    Hi All

    Greetings..!

    I am using DB2 8.2 on Windows. I would like to know whether i can change the port no.50000 to some other port.

    One of the software which i am using also running on port 50000. Can DB2 run any other port numbers. if yes how can i configure the port in DB2

    regards

    Rajeev

  2. #2
    Join Date
    Dec 2004
    Posts
    1

    How to change port number

    Hi,

    step1)
    open C:\WINDOWS\system32\drivers\etc\services file and add your favorite port name and port number.
    ex)
    myport 52000/tcp

    step2)
    open db2 command window ,and change SVCENAME param to your port name.
    ex)
    db2 "update dbm cfg using SVCENAME myport"

    step3)
    restart your db2 instance.
    (db2stop , db2start)

    sim

  3. #3
    Join Date
    Feb 2004
    Location
    Copenhagen
    Posts
    220

    Arrow Yes

    Sure you can

    DB2 can listen on any available port between 1 and 64000

    I think you have to do the following on windows - but please check the manual:

    1. Add a service to your services file in the
    C:\WINNT\system32\drivers\etc library (be careful)

    2. Change the SVCENAME name parameter in your DBM
    configuration

    Hope this helps
    Kristian K. Hansen
    Project Supervisor
    National Board of Health

  4. #4
    Join Date
    Jan 2003
    Posts
    1,605
    Hi,
    you can change the port number at db2c_DB2 in C:\WINDOWS\system32\drivers\etc\services
    or you can just update dbm cfg witch commant:
    Code:
    db2 update dbm cfg using SVCENAME 50000
    replace 50000 with desired port number.

    Then you probably need to stop database with command:
    Code:
    db2stop force
    Start the database:
    Code:
    db2start
    And terminate db2clp client connection with command:
    Code:
    db2 terminate
    Hope this helps,
    Grofaty

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •