My Oracle Support Banner

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

Last updated on JANUARY 30, 2022

Applies to:

PL/SQL - Version 11.2.0.2 and later
Oracle Database - Enterprise Edition - Version 11.2.0.2 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Information in this document applies to any platform.

Symptoms

Using a stored procedure in USER1 to DELETE a TABLE partition owned by another user USER2 fails with the following error.

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 USER1 schema is identical in both 11.2.0.1 and 11.2.0.2

Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.