IBM DB2 10.1 Fundamentals — Question 1

How can you determine which databases are created in an instance?

Answer options

Correct answer: D

Explanation

The correct answer is D because executing the SQL command SELECT name FROM sysmaster:sysdatabases directly queries the system database for a list of databases in the instance. Option A is incorrect as dbschema is used for schema-related information, not for listing databases. Option B is not a suitable method since the ONCONFIG file contains configuration settings, not a list of databases. Option C, while related to database maintenance, does not provide direct information about existing databases.