ORA-1031 Using EXECUTE IMMEDIATE to Drop a Table Partition. Worked in 11.2.0.1 (Doc ID 1297109.1)

Last updated on JULY 05, 2017

Applies to:

PL/SQL - Version 11.2.0.2 and later
Oracle Database - Enterprise Edition - Version 11.2.0.2 and later
Information in this document applies to any platform.
***Checked for relevance on 31-Jan-2013***

Symptoms

Using a stored procedure in the SYSTEM schema to DELETE a TABLE partition located in another schema fails with the following error.

ERROR at line 1:
ORA-01031: insufficient privileges
ORA-06512: at "SYSTEM.DROP_PARTITION", line #
ORA-06512: at line 1


This works within the 11.2.0.1.0 Database but fails after upgrading to 11.2.0.2.
Issuing the ALTER ANY TABLE privilege is what is required for this to work within 11.2.0.1, but it doesn't make a difference within 11.2.0.2
The privileges granted to the SYSTEM schema is identical in both 11.2.0.1 and 11.2.0.2

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms