Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Find the table's name that using sequences
That won't catch sequences in triggers.
You can't easily find sequence use in a trigger either, as the code is stored in a LONG.
Best to dump to a text file and use grep.
And if your programmers practice safe sequences, it will be in their code instead of the database anyway.
Although if they're *really* good, it will be in a package, and it *will* show up in dba_source.
Jared
Stephen Lee <Stephen.Lee_at_DTAG.Com>
Sent by: ml-errors_at_fatcity.com
07/16/2003 02:14 PM
Please respond to ORACLE-L
To: Multiple recipients of list ORACLE-L <ORACLE-L_at_fatcity.com> cc: Subject: RE: Find the table's name that using sequences
A mad rampage through DBA_SOURCE might reveal something useful.
Something like:
select name,text from dba_source where upper(text) like '%SEQUENCE_NAME%';
And do the same with TRIGGER_BODY from DBA_TRIGGERS.
-----Original Message----- ---------------------------------------------------------------------------- ----
At first I thought it is easy to find those tables to use sequences but I failed. dba_sequence don't give too much info. Is there any idea?
Thanks in advance
Mitchell
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Stephen Lee INET: Stephen.Lee_at_DTAG.Com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Wed Jul 16 2003 - 18:41:53 CDT
![]() |
![]() |