This is a discussion on Obtaining a list of databases within an instance using only the CLI commands within the DB2 forums, part of the Database Server Software category; --> These particular servers do not have the DAS enabled, so I have to document the contents of the instances, ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| 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? |
| ||||
| 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. |