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: identify CTAS from v$ tables

Re: identify CTAS from v$ tables

From: Michael McMullen <ganstadba_at_hotmail.com>
Date: Tue, 25 Apr 2006 14:45:27 -0400
Message-ID: <BAY103-DAV75D5C7380366F479B380CA6BF0@phx.gbl>


Here's what TOAD uses but as I recall you can't get the underlying DDL statement for CTAS. Maybe changed in 10g.

SELECT sql_text

    FROM v$sqltext_with_newlines
   WHERE hash_value = TO_NUMBER (:HASH)
ORDER BY piece

--
http://www.freelists.org/webpage/oracle-l
Received on Tue Apr 25 2006 - 13:45:27 CDT

Original text of this message

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