ORA-12988: cannot drop column from table owned by SYS

2014-11-24 17:37:26 · 作者: · 浏览: 0


SQL> desc test


Name Null Type


------------------------------------------------- ----------------------------


ID NOTNULL NUMBER(38)


NAME VARCHAR2(20)


NAME1 CLOB



SQL> show user


USER is "SYS"


SQL> alter table test drop column name;


alter table test drop column name


*


ERROR at line 1:


ORA-12988: cannot drop column from tableowned by SYS


如果想删除sys表中的列,可以创建另一个表,与这个表的结构就差要删除的列,这样的话,如果表的数据量大,导数据会比较慢!


相关阅读