Q: - Oracle 10g?
- Oracle - . Oracle . SQLPlus AUTOTRACE.
http://asktom.oracle.com/tkyte/article1/autotrace.html ( )
http://tkyte.blogspot.com/2007/04/when-explanation-doesn-sound-quite.html
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:5671636641855
Oracle .
Q: , . , ( , ), EXPLAIN .
Q: > 1. , EXPLAIN ?
Q: > 2. - , EXPLAIN ?
- : . , EXPLAIN PLAN . , EXPLAIN PLAN , . EXPLAIN PLAN , Oracle.
Q: > 3. first_rows . ?
- (,
/*+ FIRST_ROWS */) , .
"", PLAY EXPLAIN, . , . .
, PLUS EXPLAIN, 1, " ", PLUS EXPLAIN . .
, , - ( , , ..). , .
, , EXPLAIN PLAN, , . , Oracle8, -, .
, .
- SQLPlus AUTOTRACE.
[http://asktom.oracle.com/tkyte/article1/autotrace.html][4]
SQLPlus Oracle:
alter session set timed_statistics = true;
alter session set tracefile_identifier = here_is_my_session;
alter session set events '10046 trace name context forever, level 12'
--alter session set events '10053 trace name context forever, level 1'
select /*-- your_statement_here --*/ ...
alter session set events '10046 trace name context off'
--alter session set events '10053 trace name context off'
user_dump_dest . . ( udump)
select value from v$parameter where name like 'user_dump_dest'
, dba, . (Dba script, .trc tkprof tkprof. trcanlzr. .