ORA-55622: DML, ALTER and CREATE UNIQUE INDEX operations are not allowed on table
ORA-55622: DML, ALTER and CREATE UNIQUE INDEX operations are not allowed on table
执行语句:
删除表空间报错误,drop tablespace 表空间名
出错现象:
ORA-55622: DML, ALTER and CREATE UNIQUE INDEX operations are not allowed on table "PROC"."SYS_FBA_TCRV_76187"
错误原因:
用户想要删除那些拥有授权的闪回特征的表
解决方法:
收回相应表被授权的闪回权限
1、找出发生错误的表
"PROC"."SYS_FBA_TCRV_76187" 其中 76187是id号在闪回存档中的授权号
SQL> select object_id,owner,object_name from dba_objects where object_id='76187'
OBJECT_ID OWNER OBJECT_NAME
---------- -------------------- ------------------------------
76187 PROC TEST017
2、找出授权的闪回存档中的所有表(需要owner登录并允许,例如proc)
SQL> select table_name from user_flashback_archive_tables;
TABLE_NAME
------------------------------
TEST017
3、收回表中的闪回归档功能
alter table <owner>.<tablename> no flashback archivew;
4、执行删除表空间命令
drop tablespace tableName including contents and datafiles;