The databaseA database is an organized collection of data including relevant data structures. agent can connect either to an Oracle Database instance or to Oracle RAC nodes.
This is the standard connection method. The Database can only connect to an Oracle Database instance. The Job object contains the relevant connection data.
The database agent's INI-file parameter useOraClient= (section [SQL]) must be set to the value "0".
The database agent can connect itself to Oracle RAC nodes. The Oracle file tnsnames.ora contains the relevant connection data. It is not necessary to fill in the field "Server" in the Job object's SQL tab.
The agent's connection information itself has to be defined by using Connection objects (e.g. in SQL variables). In the Connection object you would use Oracle or Oracle OCI as connection type.
The following steps are required in addition to installing the database agent:
Example for the file tnsnames.ora:
APPL_DB = (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = db-server01)(PORT = 1521)) (ADDRESS = (PROTOCOL = TCP)(HOST = db-server02)(PORT = 1521)) (LOAD_BALANCE = yes) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = APPLDB.CUSTOMER.COM) ) )
For this example, the name "APPL_DB" must be specified in the Job object's field Database.