By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,202 Members | 1,599 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,202 IT Pros & Developers. It's quick & easy.

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

P: n/a
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?
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Easiest would be:
set db2instance=inst1name
db2 list db directory > inst1dbs.txt
set db2instance=inst2name
db2 list ... and so on
HTH, Pierre.

Byrocat wrote:
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 - Reply to: sescons at attglobal dot net
IBM DB2 Cerified Solutions Expert - Administration
SES Consultants Inc.
Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.