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

Home -> Community -> Usenet -> c.d.o.server -> Re: sql_profile

Re: sql_profile

From: Jonathan Lewis <jonathan_at_jlcomp.demon.co.uk>
Date: Wed, 18 Oct 2006 22:51:11 +0100
Message-ID: <HK-dnRaRkp5SPKvYRVnyhw@bt.com>

"Akimeu" <Nospam_at_Email.com> wrote in message news:ri9Zg.7438$XX2.4019_at_dukeread04...
> Hi group,
>
> I have a recommended sql profile that the DBMS_SQLTUNE suggested
> ("...Oracle found a potentially better exec plan, and it says to
> accept_sql_profile (task_name=>etc.."), but before I execute this
> command - how do I view the details of the recommended profile?
>
> Thanks in advance,
> Al

If you have tune_NNNN as the task name, then

 select

    attr1
 from

    wri$_adv_rationale
 where

    task_id = NNNNN
;

should give you the list of hints that make up the profile.

-- 
Regards

Jonathan Lewis
http://www.oracle.com/technology/community/oracle_ace/ace1.html#lewis

The Co-operative Oracle Users' FAQ
http://www.jlcomp.demon.co.uk/faq/ind_faq.html

Cost Based Oracle: Fundamentals
http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html
Received on Wed Oct 18 2006 - 16:51:11 CDT

Original text of this message

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