Purpose

REQUIRED. The name of the DB2 location that you want to access.

For DB2 for z/OS, your system administrator can determine the name of your DB2 location using the following command:

DISPLAY DDF 

For DB2 for i, your system administrator can determine the name of your DB2 location using the following command. The name of the database that is listed as *LOCAL is the value you should use for this property.

WRKRDBDIRE

This property is not supported for DB2 for Linux/UNIX/Windows.

Valid Values

string

where:

string
is the DB2 location.

Default

None

Data Type

String

Alias

DatabaseName property. If both the DatabaseName and LocationName connection properties are specified in a connection URL, the last property positioned in the connection URL is used. For example, if your application specifies the following connection URL, the value of the LocationName property would be used instead of the value of the DatabaseName property.

jdbc:datadirect:db2://server1:50000;DatabaseName=jdbc;LocationName=acct;
User=test;Password=secret