Oracle 11G能不能将某张表设置为只读 不是单独针对某个用户而言的 oracle 11g 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Oracle11g可以设置为只读,Oracle 11g中的新特性,设置表为Readonly,简单的一个命令而已。 SQL> CREATE TABLE "KAMUS"."T1" ( "N" NUMBER); Table created Executed in 0.047 seconds SQL> alter table t1 read only; Table altered Executed in 0.125 seconds SQL> insert into t1 values(1); insert into t1 values(1) ORA-12081: update operation not allowed on table "KAMUS"."T1" SQL> alter table t1 read write; Table altered Executed in 0.015 seconds SQL> insert into t1 values(1); 1 row inserted Executed in 0 seconds 只能添加数据,不能修改数据, 那就在这张表上加一个触发器, 在修改前和删除前都抛出异常, 那样的话,就只能insert了 我表已经存在了 另外我需要对应的去除只读的口令 不知道有没?alter table test read only;alter table test read write;但是 在只读的情况下,是不允许insert的 表存在也可以用 alter table xxx read only;去除只读用 alter table xxx read write; 设置为只读的话就连insert也一起锁死了,按照楼主的要求可以insert不能update,建议使用触发器,修改删除前抛出异常 alter table t1 read only与alter table t1 read write 请问oracle的Data link是做什么的? 修改oracle的优化模式 关于oracle的自定义type的问题 关于过滤字段重复的问题 奇怪的问题 主关键字和唯一关键字有什么区别 北京外企高薪聘有ERP经验的Oracle开发人员 合并查询的简单问题 删除数据库用户求助! 推荐一个sql的帖子,虽然不是oracle,但很多思想值得借鉴. 为什么一条这么简单的语句要花费这长时间,求指教! 创建触发器的时候报错
Table created
Executed in 0.047 seconds
SQL> alter table t1 read only;
Table altered
Executed in 0.125 seconds
SQL> insert into t1 values(1);
insert into t1 values(1)
ORA-12081: update operation not allowed on table "KAMUS"."T1"
SQL> alter table t1 read write;
Table altered
Executed in 0.015 seconds
SQL> insert into t1 values(1);
1 row inserted
Executed in 0 seconds
只能添加数据,不能修改数据, 那就在这张表上加一个触发器,
在修改前和删除前都抛出异常, 那样的话,就只能insert了
我表已经存在了 另外我需要对应的去除只读的口令 不知道有没?alter table test read only;
alter table test read write;但是 在只读的情况下,是不允许insert的
去除只读用 alter table xxx read write;