解决方案 »

  1.   

    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
      

  2.   


    只能添加数据,不能修改数据, 那就在这张表上加一个触发器, 
    在修改前和删除前都抛出异常, 那样的话,就只能insert了
      

  3.   


    我表已经存在了 另外我需要对应的去除只读的口令 不知道有没?alter table test read only;
    alter table test read write;但是 在只读的情况下,是不允许insert的
      

  4.   

    表存在也可以用  alter table  xxx  read  only;
    去除只读用          alter  table  xxx  read  write;
      

  5.   

    设置为只读的话就连insert也一起锁死了,按照楼主的要求可以insert不能update,建议使用触发器,修改删除前抛出异常
      

  6.   

    alter table t1 read only与alter table t1 read write