Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retrieve Instance Details

Status
Not open for further replies.

gregsimpson

Programmer
Apr 18, 2002
521
Hi,

AIX Machine running DB2 8.1. I'm trying to establish certain settings with SQL. I'm afer the instance and the database.

I can get the database by issuing

db2 "select current server from sysibm.sysdummy1"

Does anyone know of a way of getting the instance?

Cheers
Greg
 
Hi,

should have said does anyone know how to get the instance using SQL syntax.

I'm already aware of

db2 get instance.

Cheers
Greg

 
Could it be
DECLARE APPL_SERVE (VARCHAR(18));
select current server
into APPL_SERVE
from sysibm.sysdummy1 ?
hth
 
Hth,

Current Server gets me the database not the DB2 Instance.

Cheers
Greg
 
jayjaybigs,

thanks for the reply. However as I specified above I need an SQL command to get the instance.

Thanks anyway
greg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top