Prevent Truncate of a Table in Your Own Schema (Doc ID 365418.1)

Last updated on NOVEMBER 22, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 8.1.7.4 and later
Information in this document applies to any platform.
Information in this document applies to any platform.

Goal

How to prevent the truncation of a table in your own schema?

If you revoke "drop any table" system privilege, users are not able to truncate tables in other schemas.

SQL> revoke drop any table from <usr1>,<usr2>,......<usrn>;

But the users are still able to truncate tables in their  own schema.

Solution

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