J.2.1 Executing Incremental T2T
To load the data from one table to another table (insert new rows in stage table), follow these steps:
- Navigate to Common Object Maintenance, select Operations, and then select Batch Maintenance to display the Batch Maintenance screen.
- Select DM_REGISTER_LOAD_RUN seeded batch for Batch ID and click Add to display the Task Definition page.
- Enter a Task ID and Description.
- Select TRANSFORM DATA for Components.
- Enter the following details:
- Datastore Type: Leave the default value of “EDW”
- Datastore Name: Leave the default value
- IP Address: Leave the default value
- Rule Name: fn_registerloadrun
- Parameter List (Load Run Name, Load Purpose, Load Type)
- Click Save.
- To execute the batch, click the Batch Execution option under Operations. Select the DM_REGISTER_LOAD_RUN batch and select the corresponding check-box.
- Click Execute Batch. A message is displayed: Batch Triggered Successfully. Click Ok.
- Navigate to Batch Monitor, select the Batch ID click on Start Monitoring and verify if the Batch Run is successful.
- Connect to the database and verify if the entry is made into the REV_LOAD_RUN_MASTER table with a new Load Run ID.
- From the Batch Maintenance screen, select the seeded batch DM_REGISTER_LOAD_DETAILS and click Add to open the Task Definition page.
- For the Parameter List, enter the Stage Table Name, Load Run ID, Load Run Name, and Type Of Load (I).
- Click Save.
- Navigate to Batch Monitor, select the Batch ID click on Start Monitoring and verify if the Batch Run is successful.
- Verify the REV_LOAD_RUN_DETAILS table for the entry with the latest Load Run ID.
- Connect to the Database and verify in the REV_LOAD_RUN_MAP table for the seeded data.
- From the Batch Maintenance screen, select the seeded batch DM_POP_LOAD_RUN_MAP and click Add to open the Task Definition page.
- For the Parameter List, enter the Stage Table Name,
Load Run ID, Load Run Name, and
Type Of Load.
Note:
For each State Table, you should add different task and pass the Stage Table parameters. - Click Save.
- Navigate to Batch Monitor, select the Batch ID, click Start Monitoring and verify if the Batch Run is successful.
- Connect to the Database and verify if a new entry is made with Load Run ID as 1 in the FSI_ACCOUNT_LOAD_RUN_MAP table.
- Execute and verify the incremental T2T.
- Navigate to Batch Monitor, select the Batch ID, click Start Monitoring and verify if the Batch Run is successful.
- Verify the processing table to ensure if the data is inserted.
Note:
The following T2Ts are present only in FTP:- OFSFTPINFO_T2T_FOR_FRA_PAY_INCR_LOAD
- OFSFTPINFO_T2T_FOR_FRA_RCV_INCR_LOAD
- OFSFTPINFO_T2T_FOR_OD_ACCOUNTS_INCR_LOAD
- OFSFTPINFO_T2T_FOR_OPTIONS_CAPFLOOR_INCR_LOAD
- OFSFTPINFO_T2T_FOR_OPTION_COLLARPAY_INCR_LOAD
- OFSFTPINFO_T2T_FOR_OPTION_COLLARRCV_INCR_LOAD
- OFSFTPINFO_T2T_FOR_STG_LC_GUARANTEES_INCR_LOAD
- OFSFTPINFO_T2T_FX_SWAPS_CONTRACTS_INCR_LOAD
- Update the REV_LOAD_RUN_MASTER table with Status as Completed. To update, run the
following SQL query:
UPDATE rev_load_run_master SET LOAD_RUN_STATUS = 'Completed' WHERE Mis_Date = 'DD-MMM-YYYY' AND Load_Run_Name = '<LOAD_RUN_NAME>' and LOAD_RUN_ID = n ;