On the Properties tab click Add a Property. From the File menu, click Save.

4-10 Oracle Fusion Middleware Developers Guide for Oracle Data Integrator dropped the connection to this data server. It contains the code of the On Disconnect command. ■ When an operation is made in ODI Studio or ODI Console that requires a connection to the data server such as View Data or Test Connection, the commands On ConnectDisconnect are also executed if the Client Transaction is selected for this command. To set up On ConnectDisconnect commands:

1. On the On ConnectDisconnect tab of the Data Server editor, click Launch the

Expression Editor in the On Connect section or in the On Disconnect section. 2. In the Expression Editor, enter the SQL command.

3. Click OK. The SQL command is displayed in the Command field.

4. Optionally, select Commit, if you want to commit the connection after executing

the command. Note that if AutoCommit or Client Transaction is selected in the Execute On list, this value will be ignored.

5. Optionally, select Ignore Errors, if you want to ignore the exceptions encountered

during the command execution. Note that if Ignore Errors is not selected, the calling operation will end in error status. A command with Ignore Error selected that fails during a session will appear as a task in a Warning state. 6. From the Log Level list, select the logging level from 1 to 5 of the connect or disconnect command. At execution time, commands can be kept in the session log based on their log level. Default is 3. 7. From the Execute On list, select the transactions on which you want to execute the command. You can select Select All or Unselect All to select or unselect all transactions. 8. From the File menu, click Save. You can now test the connection, see Section 4.2.2.4, Testing a Data Server Connection for more information. Note: You can specify whether or not to show On Connect and Disconnect steps in Operator Navigator. If the user parameter Hide On Connect and Disconnect Steps is set to Yes, On Connect and Disconnect steps are not shown. Note: The Expression Editor displays only the subsitution methods and keywords that are available for the technology of the data server. Note that global variables are only displayed if the connection to the work repository is available. Note: Transactions from 0 to 9 and the Autocommit transaction correspond to connection created by sessions by procedures or knowledge modules. The Client Transaction correspondsto the client components ODI Console and Studio.