Oracle中的表如何設置成只讀?
在Oracle11g之前回答是,不能。HJR甚至寫過一篇完整的文章來闡述這個問題。Oracle11g終于帶來了這個新特性,設置表為Readonly,簡單的一個命令而已。 SQLCREATETABLE"KAMUS"."T1"("N"NUMBER); Tablecreated Executedin0.047seconds SQLaltertablet1readonly; Tablealtered Executedin0.125seconds SQLinsertintot1values(1); insertintot1values(1) ORA-12081:updateoperationnotallowedontable"KAMUS"."T1" SQLaltertablet1readwrite; Tablealtered Executedin0.015seconds SQLinsertintot1values(1); 1rowinserted