Skip to content

DBAzine.com

Sections
Personal tools
You are here: Home » Blogs » Chris Foot Blog » Chris Foot's Oracle10g Blog » Oracle 10G R2 New Features » Couple of ways to to do this
Seeking new owner for this high-traffic DBAzine.com site.
Tap into the potential of this DBA community to expand your business! Interested? Contact us today.
Who Are You?
I am a:
Mainframe True Believer
Distributed Fast-tracker

[ Results | Polls ]
Votes : 4710
 

Comment

Above in this comment thread: Oracle 10G R2 New Features » access advisor: how to tune a single stmt

Couple of ways to to do this

Posted by cfoot at 2005-11-22 07:32 AM
Neither are really straightforward. I have run the statement in SQLPLUS. If it runs long, I'll just cancel it. It will still be recorded. In 10G EM go to your databases home page. Click on the PERFORMANCE tab on top, drop down until you see TOP SQL. Click on TOP SQL, then click on PERIOD SQL on top of page. Find statement. Click radio button to select it. Create a single statement SQL Tuning Set.

Go back to database's PERFORMANCE main page. Click on ADVISOR CENTRAL, then SQL ACCESS ADVISOR. Choose use SQL TUNING SET as input.


OR, you can do it this way. Create a table that has at least two columns in it. One for the text of the SQL statement and the other for the username. Name the columns SQL_TEXT and USERNAME. Insert your SQL statement and username information. Go to the SQL Access advisor and choose the IMPORT SQL FROM TABLE option.

 
Chris Foot
Senior Database Architect
Oracle Ace
Bio & Writings
Subscribe to my blog Subscribe to my blog
 
 

Powered by Plone