Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get code of trigger? 1

Status
Not open for further replies.

lakshmivaragan

Programmer
Sep 30, 2003
25
0
0
IN
Hi,
I understand that triggers available can be extracted from the all_objects table. Is there any way to get the code of particular trigger? I mean, Does Oracle stores the code of triggers somewhere to extract?

Regs
Lax
 
Lax,

set linesize 200
set long 1000000
select trigger_body from user_triggers where trigger_name = 'UPPER-CASE NAME OF TRIGGER HERE';

You can get similar results from DBA_TRIGGERS and ALL_TRIGGERS, as well.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA @ 06:05 (31Dec03) GMT, 23:05 (30Dec03) Mountain Time)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top