From FREEMANR@tusc.com Thu, 26 Jun 2003 10:04:21 -0700 From: Freeman Robert - IL Date: Thu, 26 Jun 2003 10:04:21 -0700 Subject: RE: explain plan Message-ID: MIME-Version: 1.0 Content-Type: text/plain If you all are in 9i and you have not used dbms_xplan.display, give it a try... you will throw scripts like this one away forever! RF -----Original Message----- To: Multiple recipients of list ORACLE-L Sent: 6/26/2003 11:19 AM David - Here is the one I use. In my environment I just have one developer at a time using EXPLAIN, so I just have it truncate the table afterward. select lpad(' ',2*(level-1))||operation||' '||options||' '||object_name ||' '||decode(id,0,'Cost = '||position) "Query Plan" from plan_table start with id=0 connect by prior id = parent_id / truncate table plan_table / Dennis Williams DBA, 80%OCP, 100% DBA Lifetouch, Inc. [EMAIL PROTECTED] -----Original Message----- Sent: Thursday, June 26, 2003 11:00 AM To: Multiple recipients of list ORACLE-L List , does anybody have or know where I can get a script that will explain all of the columns from the plan_table? Does anybody have any suggestions for using ultxpls.sql? thanks, David Ehresmann -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Ehresmann, David INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: DENNIS WILLIAMS INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Freeman Robert - IL INET: [EMAIL PROTECTED] 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: [EMAIL PROTECTED] (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).