niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Databases » Oracle » Tools
Enabling the PLAN_EXPLAIN table
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
Author Message
Mike King
*nix forums beginner


Joined: 03 Jan 2006
Posts: 5

PostPosted: Wed Jul 12, 2006 8:19 pm    Post subject: Enabling the PLAN_EXPLAIN table Reply with quote

I'm having query performance problems, so I want to run "EXPLAIN PLAN" but I
don't have access to the PLAN_EXPLAIN table. I have told my DBA that I
would like the able to use the "EXPLAIN PLAN" feature but she said she would
have to reseach how to. What does she need to know to enable the "EXPLAIN
PLAN" feature for me?
Back to top
psoug
*nix forums Guru


Joined: 15 May 2005
Posts: 3492

PostPosted: Wed Jul 12, 2006 8:31 pm    Post subject: Re: Enabling the PLAN_EXPLAIN table Reply with quote

Mike King wrote:
Quote:
I'm having query performance problems, so I want to run "EXPLAIN PLAN" but I
don't have access to the PLAN_EXPLAIN table. I have told my DBA that I
would like the able to use the "EXPLAIN PLAN" feature but she said she would
have to reseach how to. What does she need to know to enable the "EXPLAIN
PLAN" feature for me?

Your DBA should be replaced by management.

That said if you have Oracle 9i or before have your DBA run
the following script:
utlxplan.sql
If 10g then catplan.sql

Both scripts are located at $ORACLE_HOME/rdbms/admin

Your DBA can email me directly if they have any questions such
as where to find training. ;-)

Syntax and Explain Plan demos can be found in Morgan's Library
at www.psoug.org under Explain Plan. Use DBMS_XPLAN to display
explain plan results using one of the following scripts (located
in the same directory):
utlxplp.sql (parallel)
utlxpls.sql (serial)
utlxmv.sql & utlxrw.sql (materialized views)

Your DBA should send you these files if you can't access them.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Back to top
Sybrand Bakker
*nix forums Guru


Joined: 03 Apr 2005
Posts: 1766

PostPosted: Wed Jul 12, 2006 8:31 pm    Post subject: Re: Enabling the PLAN_EXPLAIN table Reply with quote

On Wed, 12 Jul 2006 16:19:37 -0400, "Mike King" <emailMK@excite.com>
wrote:

Quote:
I'm having query performance problems, so I want to run "EXPLAIN PLAN" but I
don't have access to the PLAN_EXPLAIN table. I have told my DBA that I
would like the able to use the "EXPLAIN PLAN" feature but she said she would
have to reseach how to. What does she need to know to enable the "EXPLAIN
PLAN" feature for me?



Run the most recent UTLPLAN script in $ORACLE_HOME/rdbms/admin
as (preferably0 SYSTEM.
Grant SELECT, INSERT, DELETE privilege on the PLAN_TABLE to PUBLIC.
Create a public synonym for the PLAN_TABLE.
Dead easy and can be retrieved from http://tahiti.oracle.com by
searching for EXPLAIN PLAN.
Please avoid asking questions you could answer yourself faster than
this newsgroup.

--
Sybrand Bakker, Senior Oracle DBA
Back to top
Mike King
*nix forums beginner


Joined: 03 Jan 2006
Posts: 5

PostPosted: Wed Jul 12, 2006 8:41 pm    Post subject: Re: Enabling the PLAN_EXPLAIN table Reply with quote

Quote:
Please avoid asking questions you could answer yourself faster than
this newsgroup.

My company has implemented Websense (Internet usage control software) which
currently is blocking access to Google groups, so I cannot perform a search
but I post using Outlook Express. What's funny is IT doesn't have access to
Google groups as well. It stupid, I know.
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [4 Posts] View previous topic :: View next topic
The time now is Sun Nov 23, 2008 11:10 am | All times are GMT
navigation Forum index » Databases » Oracle » Tools
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Trouble enabling auth on postfix and sasl dklugmann Postfix 0 Fri Feb 29, 2008 11:02 pm
No new posts How to ALTER a table using the ALTOBJ procedure Serge Rielau IBM DB2 1 Fri Jul 21, 2006 1:06 pm
No new posts Can't Select External Table from CSV File Resant Server 1 Fri Jul 21, 2006 2:45 am
No new posts Images Table Nicholas Vettese MySQL 1 Thu Jul 20, 2006 2:19 pm
No new posts grant on a specified table to a user Shinyday Server 4 Wed Jul 19, 2006 6:03 am

SMS-Sprüche | Houses for Sale | Home Equity Loan | Loans | Credit Report
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3032s ][ Queries: 16 (0.1712s) ][ GZIP on - Debug on ]