dbTalk Databases Forums  

How do I see the hostname of my DB2 server?

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss How do I see the hostname of my DB2 server? in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
DavidFilmer
 
Posts: n/a

Default How do I see the hostname of my DB2 server? - 10-12-2010 , 08:16 PM






I'm using db2 CLI client on AIX, which was set up for me by an admin.

I would like to know the hostname of the DB2 server that I'm
connecting to.

How do I see that?

Thanks!

Reply With Quote
  #2  
Old   
Mark A
 
Posts: n/a

Default Re: How do I see the hostname of my DB2 server? - 10-12-2010 , 09:06 PM






"DavidFilmer" <usenet (AT) davidfilmer (DOT) com> wrote

Quote:
I'm using db2 CLI client on AIX, which was set up for me by an admin.

I would like to know the hostname of the DB2 server that I'm
connecting to.

How do I see that?

Thanks!
Try this:

db2 "select * from sysibmadm.env_sys_info"

Reply With Quote
  #3  
Old   
DavidFilmer
 
Posts: n/a

Default Re: How do I see the hostname of my DB2 server? - 10-13-2010 , 12:26 PM



On Oct 12, 7:06*pm, "Mark A" <no... (AT) nowhere (DOT) com> wrote:
Quote:
Try this:
db2 "select * from sysibmadm.env_sys_info"
no joy -

SQL0204N "SYSIBMADM.ENV_SYS_INFO" is an undefined name.
SQLSTATE=42704

thx

Reply With Quote
  #4  
Old   
Mark A
 
Posts: n/a

Default Re: How do I see the hostname of my DB2 server? - 10-13-2010 , 12:35 PM



"DavidFilmer" <usenet (AT) davidfilmer (DOT) com> wrote

Quote:
no joy -

SQL0204N "SYSIBMADM.ENV_SYS_INFO" is an undefined name.
SQLSTATE=42704

thx
What DB2 product (including OS) and release are your using?

Reply With Quote
  #5  
Old   
ChrisC
 
Posts: n/a

Default Re: How do I see the hostname of my DB2 server? - 10-13-2010 , 01:18 PM



for somewhat older DB2 versions:

SELECT HOST_NAME FROM TABLE(SYSPROC.ENV_GET_SYS_INFO()) T

Reply With Quote
Reply




Thread Tools
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.