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