Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: How to find PL/SQL code
This is a multi-part message in MIME format.
------=_NextPart_000_000F_01C002C6.4C4C41A0 Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
How to find PL/SQL codeJeff,
set heading off
set feedback off
set linesize 100
set pagesize 0
break on name skip 10
spool exportStoredProceduresOnly.txt
select decode (line,1,'create or replace '||text,text)
from sys.dba_source
where owner='&Owner'
order by owner,name,type,line;
spool off
Hope this helps..
Geeta Iyer
Sprint Enterprise Network Services
Work: (303)220-4788
Pager: 888-632-2718
E-Mail: Geeta.Iyer_at_SprintParanet.com
-----Original Message-----
From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of Jeff Wiegand
Sent: Thursday, August 10, 2000 9:45 AM
To: Multiple recipients of list ORACLE-L
Subject: How to find PL/SQL code
Hello
We have several triggers that have been modified. Unfortunately, the modifications weren't saved, but they are reflected in the database. How can I get Oracle to output the code of the triggers. I select on user_triggers, or all_triggers, using trigger_name and trigger_body columns, but only part of the code is outputted to the screen. How can I get all of it?
Thanks for your help.
Jeff
------=_NextPart_000_000F_01C002C6.4C4C41A0 Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>How to find PL/SQL code</TITLE>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2920.0" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D019022518-10082000>Jeff,</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D019022518-10082000></SPAN></FONT> </DIV>
<DIV><SPAN class=3D019022518-10082000>
<P><FONT color=3D#0000ff face=3DArial size=3D2>set heading =
off</FONT></P>
<P><FONT color=3D#0000ff face=3DArial size=3D2>set feedback =
off</FONT></P>
<P><FONT color=3D#0000ff face=3DArial size=3D2>set linesize =
100</FONT></P>