Connections to Database Servers
The Connection Store lets you create Connections to Oracle and SQL Servers. This connection information is saved in one place and can be referenced in one or more Jobs.
Adding a Connection to an Oracle Database Server
This option is available only if the Oracle Integration has been installed. See Configuring the OracleStoredProc Execution Method for more information.
Ensure you have created a Credential within JAMS that contains the credentials for connecting to the Oracle database.
- Click Connection Store from the Shortcuts menu.
- Click +.
- In the Name field, enter the name, such as OraDatabase.
- In the Description field, enter a description.
- In the Type of Connection field, select Oracle.
- Click Ok.
NOTE: You can also change the Type of Connection on the Properties tab. If you change it, the Property values are maintained if they exist in the new Connection Type.
- Prepare your Oracle Connection String to the Oracle Database. Within the following string, replace the following:
HOST with the Oracle database host name.
SID with the Oracle database service name.
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = <HOST>)(PORT = 1521))(CONNECT_DATA = (SERVICE_NAME = <SID>)));
NOTE: After updating the HOST and SID, copy the Connection String because you need this to update the Connection String field. Use tnsnames.ora as the reference to look up the required values for the Connection String. - Click the Properties tab.
- Under Oracle, click the Connection String field. The Oracle Connection dialog is displayed.
- In the Data Source field, paste the Connection String.
NOTE: Do not include Data Source = in the Connection String as JAMS automatically inserts it.
- In the Credential field, select a Credential in JAMS.
- Click Test Connection to verify the connection. If the connection is unsuccessful, a red X is displayed on the Test Connection button. You can hover your cursor over it to get details about the error.
- Click OK.
- Click the Security tab.
- On the Security tab, review the permissions for this Connection.
NOTE: Ensure the Submit permission is selected for user accounts that will use this Connection.
- Click Save and Close.
Oracle Connection
The example below shows a JAMS Job that uses the OracleStoredProc Execution Method. You can define the Oracle Connection Store Definition on the Source tab of the Job Definition.
Adding a Connection to a SQL Server
Ensure you have created a Credential within JAMS that contains the credentials for connecting to the SQL Server database. The Credential can use a domain service account for use with Integration security or a SQL Server user account (username/password) for use with SQL Authentication. This can be overridden on the Job level. The Credential can also be used for the Impersonation User.
- Click Connection Store from the Shortcuts menu.
- Click +.
- In the Name field, enter the name, such as SQLDatabase.
- In the Description field, enter a description.
- In the Type of Connection field, select SQL Server.
- Click Ok.
NOTE: You can also change the Type of Connection on the Properties tab. If you change it, the Property values are maintained if they exist in the new Connection Type.
- Click the Properties tab.
- Click the Connection String field.
- Select an Impersonation User to be used for testing the Connection String within the Connection String Builder, if using Integrated Security. (You can also use SQL Authentication or Azure Authentication.)
- In the Server Name field, enter the SQLServer\Instance.
- In the Database Name field, select the Databases on the SQL Instance.
- Click Test Connection to verify the connection.
- Click OK.
- In the Credential field, select a Credential in JAMS.
- Click the Security tab.
- Review the permissions for this Connection.
NOTE: Ensure the Submit permission is selected for user accounts that will use this Connection.
- Click Save and Close.
SQL Connection
The example below shows a JAMS Job that uses the SSISDirect Execution Method within JAMS. You can define the SQL Connection in the Stored Connection field under the Source tab of the Job Definition.