Toad World® Forums

Automate pl/sql Output ?



My company is considering using Toad for Data Analysis for its automation capabilities.

Is it possible to write an Oracle anonymous PL/SQL block that performs a query + logic and then outputs the result set to be captured in the file and email functions of the Toad product ?

i.e. instead of a SQL statement, I need to execute PL/SQL



Yes, this is possible. However I do not think DBMS_OUTPUT will be captured. Any query results or script output will still be captured though.



Hi Mauritz,

Do you have an example of what type of query results get picked up by the toad for data analysis report object ?

I’m familiar with PL/SQL but none of my examples seem to propogate to an actualt report that I can email.

Many thanks,



Basically the action you want to use is “Select to editor with result”. This generates a TEF (Toad Editor File) which you can then attach to the email and finally open in Toad and you will see the result in the editor as if you had executed the script in the Toad editor directly. There unfortunately is no way to get the script result in text directly. This could be a future enhancement though for the 4.5 release because I can definitely see the need.



Interesting request. I have entered CR 55,774 to look into this.