(oracle 9.2.0.8 on AIX5/3)
I seem to be missing many SQL statements that recently executed
(seconds) in V$SQL and/or V$SQLAREA.
These are mostly CTAS (create table as select x, y, z, from table
ab).
Also the SELECT part of the CTAS is not visible as a separate
statement.
I see other DDL like truncate, create bitmap index, however no drop.
Does anyone explain and comprehend this behaviour?
Regards, Erik
Go to Morgan's Library at www.psoug.org and look up
DDL Event Triggers. Then look at the code related to:
"Trigger To Log Multiple DDL Activities"
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damo...@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Thanks Daniel,
Looks very useful.
However I want to do performance analysis and IO monitoring on these
kinda SQL statements and would be helped if I found the CTAS DDL in
these kinda views.
Any clues why these aren't captured there?
Regards, Erik
> Thanks Daniel,
> Looks very useful.
> However I want to do performance analysis and IO monitoring on these
> kinda SQL statements and would be helped if I found the CTAS DDL in
> these kinda views.
> Any clues why these aren't captured there?
>
> Regards, Erik
Overhead. What you propose, CTAS, would create substantial overhead.
--
Daniel A. Morgan
Oracle Ace Director & Instructor
University of Washington
damo...@x.washington.edu (replace x with u to respond)