DB2 10.5 for Linux, UNIX, and Windows

DB2CataloguedDatabase class

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.

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.