Send an Oracle Database Table Data in Excel File as Mail Attachment using a Simple PL/SQL Excel & APEX Mail APIs
Here I am giving an example to send an oracle database table data in excel sheet as mail attachment using a simple PL/SQL & APEX Mail APIs. What is ORA_EXCEL ? Oracle PL/SQL to Excel XSLX API. ORA_EXCEL (Oracle Excel) is a PL/SQL package for Oracle database that produces Excel XLSX documents. ORA_EXCEL enables developers to create Excel reports or export data from an Oracle database to Excel files using a simple PL/SQL Excel API. Step 1: Download ORA_EXCEL pkg (wrapped pkg) and Install it in your schema. Click here to Download ORA_EXCEL Step 2: Create a new procedure as below, which should take care of following actions, Convert table data into excel file. Save generated excel file to PL/SQL BLOB variable type or Oracle Directory. Send generated excel file as an attachment. CREATE OR REPLACE PROCEDURE table_data_to_excel_file (x_return_status out VARCHAR2, ...