oracle hrms, oracle payroll, oracle interview questions, oracle tables, oracle payroll process, oracle tutorial, oracle hrms modules .. A blog for Oracle HRMS, Payroll and HCM Cloud lovers. A place purely for knowledge sharing and learning purpose with a focus on Application modules such as - Oracle E-Business Suite HRMS, Payroll, HCM Cloud, etc.
Labels
Sunday, 31 May 2026
Taleo Connect Client - How to use Last Run Date (LRD) in TCC Export
From Oracle to Outlook - automating SQL query output using Python - Part II
Saturday, 30 May 2026
From Oracle to Outlook - automating SQL query output using Python - Part I
Hello all,
It's been a while since my last post. Things have been busy especially in Australian payroll legislation space - Payday Super, AU Legislative changes after budget, etc. etc. 📜
As I have got some breathing space for now, so here is an attempt from my end to share knowledge around how i have been using Python 🐍 to fetch data from on premise Oracle Database and then capturing the same in outlook email message.
This can be a very useful thing for anyone who want to send a summary email to his/her team or management. The design of my solution is quite generic and the good thing is, you can use the template and can add queries as per your requirement and the output will just get appended in the outlook mail body
I have made this into a two-part blog post. In this first part i'll be writing about the building blocks and components. The next part will have details with a real example
- Setup logging and directories
- Load database credentials
- Open the Oracle connection
- Build the list of SQL query definitions
- Execute each SQL query and convert results to HTML
- Assemble one HTML email body from all sections
- Create an Outlook draft with that HTML content
