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 > How to find database name

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-25-04, 13:16
mgupta mgupta is offline
Registered User
 
Join Date: Oct 2003
Posts: 80
How to find database name

In UDB 8.1 or 7.2 on AIX,
I can type "db2 list db directory" to find the database name under the instance.

However If I am connecting from Oracle to DB2, How do I confirm the database name.?

In UDB for OS/390 they used to have sysibm.sysdatabases table which will provide the solution..

That table is not there on UDB for AIX,Windows etc...

The Oracle Users are trying to confirm that they are connecting to the right database....

thanks in advance...
Reply With Quote
  #2 (permalink)  
Old 08-25-04, 13:20
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
db2 GET CONNECTION STATE

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 08-25-04, 13:31
mgupta mgupta is offline
Registered User
 
Join Date: Oct 2003
Posts: 80
sathyaram_s,
Maybe I wasnt clear in my question.

How can the Oracle Users run "db2 get connection state" from SQLPLUS ?

If I am connecting from Oracle to DB2, How do I confirm the DB2 database name from Oracle SQLPLUS ?
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