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 / January 2005

Tip: Looking for answers? Try searching our database.

Obtaining a list of databases within an instance using only the CLI commands

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Byrocat - 31 Jan 2005 15:34 GMT
These particular servers do not have the DAS enabled, so I have to
document the contents of the instances, initially "instance X contains
n databases (A, B, C< ....)")

I can get get list of isntances on a server by using the db2ilist
command.

What's the sequence of commands needed to pull up a list of the
dataqbases inside an isntance.

"Connect to" is obvious, but what's the command to list databases
within an instance?
Pierre Saint-Jacques - 31 Jan 2005 19:31 GMT
Easiest would be:
set db2instance=inst1name
db2 list db directory > inst1dbs.txt
set db2instance=inst2name
db2 list ... and so on
HTH,  Pierre.

> These particular servers do not have the DAS enabled, so I have to
> document the contents of the instances, initially "instance X contains
[quoted text clipped - 8 lines]
> "Connect to" is obvious, but what's the command to list databases
> within an instance?

Signature

Pierre Saint-Jacques - Reply to:  sescons at attglobal dot net
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.

 
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



©2008 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.