You can execute this procedure either from SQL*Plus or from within a PL/SQL
block or from Batch Maintenance window within OFSAAI framework.
To run the procedure from SQL*Plus, login to SQL*Plus as the Schema Owner.
The procedure requires 2 parameters - table name to be synchronized and the As
of Date.
Identify the table name parameter by enclosing it in single quotes and
uppercase, as shown in the following two examples. The syntax for calling the
procedure is:
An example of running the stored procedure from SQL*Plus for the
FSI_D_TERM_DEPOSITS table follows:
SQL> var output number;SQL>
synchronize_instrument('INFODOM_20101231','FSI_D_TERM_DEPOSITS',:output);
To execute the stored procedure from within a PL/SQL block or procedure, see
the example that follows. Call the procedure as often as required to synchronize
all of your instrument tables. The appropriate table name and AS_OF_DATE is
enclosed in single quotes.
SQL> declare output number; begin
synchronize_instrument('INFODOM_20101231','LEDGER_STAT',output); end;
/
To execute the procedure from OFSAAI Batch Maintenance, create a new Batch with
the Task as TRANSFORM DATA and specify the following parameters for the
task:
Datastore Type: Select appropriate
datastore from list
Datastore Name: Select appropriate name
from the list
IP address: Select the IP address from
the list
Rule Name:
fn_Synchronize_Instrmts
Parameter List: Instrument Table Name
or LEDGER_STAT