If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Can i change DB2 port 50000 to some other port

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-25-06, 05:18
murali_rajeev murali_rajeev is offline
Registered User
 
Join Date: Aug 2003
Posts: 15
Arrow 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
Reply With Quote
  #2 (permalink)  
Old 08-25-06, 07:29
sim sim is offline
Registered User
 
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
Reply With Quote
  #3 (permalink)  
Old 08-25-06, 07:32
Tank Tank is offline
Registered User
 
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
Reply With Quote
  #4 (permalink)  
Old 08-28-06, 07:44
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On