how to display an oracle trigger programatically

S

Sean Nakasone

Is there a way to display an Oracle trigger programatically? The only way
I know how to display a trigger is to use toad's gui, but i want to loop
through all triggers and dump trigger contents to a file using a batch
procedure. Ideally I'd like to use a ruby script with the oracle dbi
module.
 
C

Chris Hulan

Is there a way to display an Oracle trigger programatically? The only way
I know how to display a trigger is to use toad's gui, but i want to loop
through all triggers and dump trigger contents to a file using a batch
procedure. Ideally I'd like to use a ruby script with the oracle dbi
module.

Here is a SQL script that extracts trgger code:
http://www.orafaq.com/scripts/sql/mktrig.txt

Don't really need Ruby, but it'd be easy to adapt...

cheers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top