Skip to content

PURGE TABLE

PURGE TABLE#

Syntax#

purge_table ::=#

Prerequisites#

The SYS user, table's owner, and the user with the DROP ANY TABLE system privilege can execute PURGE TABLE.

Description#

PURGE TABLE drops the specified table from the recycle bin. If there are several tables with the same name, the first table to be dropped is dropped from the database.

user_name#

This is used to specifie the name of the table owner.

table_name#

This is used specify the name of the table to be dropped from the recycle bin. The table takes the name it had before it was moved to the recycle bin, or a new name generated by the system when it was moved to the recycle bin.

Examples#

<Query> Purge the table t1 in which DROP was executed from the recyle bin.

iSQL> alter session set recyclebin_enable = 1;
Alter success.
iSQL> create table t1 (i1 integer);
Create success.
iSQL> drop table t1;
Drop success.
iSQL> purge table t1;
Purge success.