Generating PDF in oracle and emailing it

Hello everybody,

At the moment in our firm we use Oracle db 10.2 version running on linux server.

Now we have a task upon us and that is we have to generate a report every day at exact same time and send it via email (prefer the pdf file format).

Generally we use Oracle reports version 6i to that (yes i know old technology but cant do much about that right now).

Any ideas or working examples os some procedure that can do that are more than welcome.

Thank you for reading!
Who is Participating?
sdstuberConnect With a Mentor Commented:
try the Anton Scheffer's package for creating pdf files and my own package for sending them

small example...

    v_pdf     BLOB;
    v_message CLOB := 'messge text';

        'This is rotated text',

        'select view_name, text_length, read_only from all_views where owner = ''SYS'' and rownum <= 20'

    v_pdf := as_pdf3.get_pdf;

        p_sender          => :p_from,
        p_recipients      => :p_to,
        p_subject         => 'Test msg',
        p_message         => v_message,
        p_attachment      => v_pdf,
        p_att_inline      => FALSE,
        p_att_mime_type   => 'application/pdf',
        p_att_filename    => 'test.pdf'
Sanjeev LabhDatabase ConsultantCommented:
You can create a the report with the format preset to PDF. On your reports server you can submit a cron job and call a shell script. Through the shell script invoke this report and save it on a destination directory. From the shell script only you can send it as a mail to whoever concerned.
Caruso_euAuthor Commented:
You are saying report server ... we do not have a report server. Oracle reports version 6 does not have server as far as i know.
Helena Markováprogrammer-analystCommented:
Oracle Forms 6i/Reports 6i is the last client/server version but it is also the first web version. There are forms server and also report server there (I am not sure but it was Apache).
Caruso_euAuthor Commented:
Thank you!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.