The com.ibm.db2.jcc.DB2CataloguedDatabase class contains methods that retrieve information about a local DB2® for Linux, UNIX, and Windows database.
No database connection is needed for calling DB2CataloguedDatabase methods.
public String getServerName()
Retrieves the name of the server on which the database resides.
public int getPortNumber()
Retrieves the port number that is associated with the DB2 instance.
public String getDatabaseName()
Retrieves the database name.
public String getDatabaseAlias()
Retrieves the database alias.