Oracle只读表

来源:互联网 发布:增值税算法公式 编辑:程序博客网 时间:2024/05/22 05:03

Oracle只读表能阻止表上所有的DML操作(truncate/insert/update/delete)

SQL> create table t_zhasir as select * from dba_objects where rownum < 10;


--设置表为只读
SQL> alter table t_zhasir read only;


Table altered.

--设置表为读写状态

SQL> alter table t_zhasir read write;


Table altered.

原创粉丝点击