Check the Multi-Connections if you want the procedure to manage more than one

12-6 Oracle Fusion Middleware Developers Guide for Oracle Data Integrator – A valid RDBMS technology that supports your SQL statement, such as Teradata or Oracle etc. – A logical schema that indicates where it should be executed. At runtime, this logical schema will be converted to the physical data server location selected to execute this statement. – Additional information for transaction handling as described further in section Handling RDBMS Transactions. ■ Operating System Commands : Useful when you want to run an external program. In this case, your command should be the same as if you wanted to execute it from the command interpreter of the operating system of the Agent in charge of the execution. When doing so, your objects become dependent on the platform on which the agent is running. To write an operating system command, select “Operating System” from the list of technologies of you current step. It is recommended to use for these kind of operations the OdiOSCommand tool as this tool prevents you from calling and setting the OS command interpreter. ■ ODI Tools : ODI offers a broad range of built-in tools that you can use in procedures to perform some specific tasks. These tools include functions for file manipulation, email alerts, event handling, etc. They are described in detail in the online documentation. To use an ODI Tool, select ODITools from the list of technologies of your current step. ■ Scripting Language : You can write a command in any scripting language supported by Oracle Data Integrator. By default, ODI includes support for the following scripting languages that you can access from the technology list box of the current step: Jython, Groovy, NetRexx, and Java BeanShell. Using the Substitution API It is recommended that you use the ODI substitution API when writing commands in a procedure to keep it independent of the context of execution. You can refer to the online documentation for information about this API. Common uses of the substitution API are given below: ■ Use getObjectNameto obtain the qualified name of an object in the current logical schema regardless of the execution context, rather than hard coding it. ■ Use getInfo to obtain general information such as driver, URL, user etc. about the current step ■ Use getSession to obtain information about the current session ■ Use getOption to retrieve the value of a particular option of your procedure ■ Use getUser to obtain information about the ODI user executing your procedure. Handling RDBMS Transactions Oracle Data Integrator procedures include an advanced mechanism for transaction handling across multiple steps or even multiple procedures. Transaction handling applies only for RDBMS steps and often depends on the transaction capabilities of the underlying database. Within procedures, you can define for example a set of steps that would be committed or rolled back in case of an error. You can also define up to 10 from 0 to 9 independent sets of transactions for your steps on the same server. Using transaction handling is of course recommended when your underlying database supports transactions. Note that each transaction opens a connection to the database.