Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / March 2006

Tip: Looking for answers? Try searching our database.

How to get instance's server port?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mockey Chen - 08 Mar 2006 14:17 GMT
I want to get my db2 instance's listen port,
is there any command to retrieve this information?

Signature

Regards.
Mockey Chen
Email: mockey.chen@gmail.com

Mark A - 10 Mar 2006 04:16 GMT
>I want to get my db2 instance's listen port,
> is there any command to retrieve this information?

db2 get dbm cfg

Look for SVCENAME. If it is a number, then it is the port number. If it is a
name, look for the name in the /etc/services file (or Windows equivilent if
using Windows). The default is 50000.
Manoharan - 10 Mar 2006 10:58 GMT
Hi,

At the db2cmd prompt/shell enter the following command:

C:\Program Files\IBM\SQLLIB\BIN>db2 list node directory

Node Directory

Number of entries in the directory = 2

Node 1 entry:

Node name                      = ADMIN
Comment                        =
Directory entry type           = LOCAL
Protocol                       = TCPIP
Hostname                       = adminserver
Service name                   = 50000

Node 2 entry:

Node name                      = SERVER
Comment                        =
Directory entry type           = LOCAL
Protocol                       = TCPIP
Hostname                       = db2server
Service name                   = 50000

The above  information will be displayed as per your server settings.

Thanks
manoharan

> I want to get my db2 instance's listen port,
> is there any command to retrieve this information?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.