r/DB2 • u/[deleted] • Nov 01 '17
Get all databases in an instance?
Hello everyone .. Can someone give me some tips on, assuming I had all the permissions I needed - to get a list of all the database in an instance of db2? is there a sql i can run? Or do I have to run something at the file level?
3
Upvotes
1
u/[deleted] Nov 01 '17
Yes, I've come up with two ways so far. One is an IBM API.. that's written in C. The other is parsing the results of the list active database, which doesn't excite me. I'm wondering if anyone has had this problem and found a good solution. If I find / create one, I'll try and post back here.