This post explains the process to unload ODI session log information Ex: Session name, run-time, number of records inserted etc. from SNP_SESSION table to a delimited file and attach it to a Load Plan success notification email.
This attachment can be used to identify the Session’s which are running longer than usual and causing performance issues, identify unusual number of inserts, deletes, updates done by a session.
Process:
- Create ‘Loadplan_Success_Notification’ package which uses ODISqlUnload utility to unload ODI session log information from SNP_SESSION table and write into Delimited file, OdiSendMail utility to send email to distribution list with Execution log attached.
- Add ‘Loadplan_Success_Notification’ package at the end of Load plan.
Steps:
Create new package ‘Generate Load Plan Success email with Execution Log’ and Drag OdiSqlUnload utility from ‘All’ or ‘Files’ folder into package.
Enter OdiSqlUnload parameters as below
Poll Results for What industry are you in? | ||
---|---|---|
Start Time: April 3, 2018 12:13:22 PM MDT | ||
Total Responses: 222 of 428 (52%) | ||
Results Summary | ||
Answer | Total Number | Total % |
Automotive | 7 | 0.03 |
Energy and Utilities | 14 | 0.06 |
Financial Services and Insurance | 47 | 0.21 |
Healthcare and Life Sciences | 60 | 0.27 |
Manufacturing | 14 | 0.06 |
Retail | 22 | 0.1 |
Other | 58 | 0.26 |
Drag OdiSendMail utility from ‘All’ or ‘Internet’ folder and enter OdiSendMail parameters as below
Poll Results for What industry are you in? | ||
---|---|---|
Start Time: April 3, 2018 12:13:22 PM MDT | ||
Total Responses: 222 of 428 (52%) | ||
Results Summary | ||
Answer | Total Number | Total % |
Automotive | 7 | 0.03 |
Energy and Utilities | 14 | 0.06 |
Financial Services and Insurance | 47 | 0.21 |
Healthcare and Life Sciences | 60 | 0.27 |
Manufacturing | 14 | 0.06 |
Retail | 22 | 0.1 |
Other | 58 | 0.26 |
Save package and generate scenario.
Open load plan and add the scenario of package created above as last step in load plan.
Once all steps in Load plan are executed successfully, Package ‘Generate Load Plan Success email with Execution Log’ will be executed and email will be sent to distribution list with execution log attached in delimited file.