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

Home -> Community -> Mailing Lists -> Oracle-L -> AW: select the view is ok, but when using "explain plan" throws error ora-01031

AW: select the view is ok, but when using "explain plan" throws error ora-01031

From: Christian Antognini <Christian.Antognini_at_trivadis.com>
Date: Mon, 28 Aug 2006 15:10:22 +0200
Message-ID: <F2C9CCA71510B442AF71446CAE8AEBAF1BBDE5@MSXVS04.trivadis.com>


Hi

> The error probably relates to the PLAN_TABLE.

If the plan table isn't available an ORA-2402 or, if the INTO clause is used, an ORA-2404.

>When I select the data from a view, I can get the result. But When
>I want to get the execution plan of the sql using
>explain plan for select * from other_schema.v_the_view
>(the view is from another schema)
>It throws error ora-01031 insufficient privileges.

The privileges on the view are not enough, you need the privileges on the objects referenced by the view as well.

HTH
Chris

--
http://www.freelists.org/webpage/oracle-l
Received on Mon Aug 28 2006 - 08:10:22 CDT

Original text of this message

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