Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Find the table's name that using sequences

RE: Find the table's name that using sequences

From: <Jared.Still_at_radisys.com>
Date: Wed, 16 Jul 2003 16:41:53 -0700
Message-Id: <25937.338150@fatcity.com>


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-----
----------------------------------------------------------------------------
---- 

Rajendra dot Jamadagni at nospamespn dot com All Views expressed in this email are strictly personal. QOTD: Any clod can have facts, having an opinion is an art !
>>> mitchell.lee_at_rogers.com 07/16/03 03:09PM >>>
Hi All  

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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US