[20190524]DISABLE TABLE LOCK(12c).txt

lfree發表於2019-05-24

[20190524]DISABLE TABLE LOCK(12c).txt

--//如果禁止table lock時,一些ddl操作會被禁止.但是我有點吃驚的是增加欄位不受限制.
--//連結:http://blog.itpub.net/267265/viewspace-2645161/=>[20190522]DISABLE TABLE LOCK.txt
--//昨天kerrycode給我反饋,10g和11g某個版本增加1列會遇到ORA-00069錯誤.

1.環境:
SCOTT@test01p> @ ver1
PORT_STRING                    VERSION        BANNER                                                                               CON_ID
------------------------------ -------------- -------------------------------------------------------------------------------- ----------
IBMPC/WIN_NT64-9.1.0           12.2.0.1.0     Oracle Database 12c Enterprise Edition Release 12.2.0.1.0 - 64bit Production              0

SCOTT@test01p> create table t as select rownum id from dual ;
Table created.

SCOTT@test01p> alter table t disable table lock;
Table altered.

2.測試:
SCOTT@test01p> truncate table t;
truncate table t
               *
ERROR at line 1:
ORA-00069: cannot acquire lock -- table locks disabled for T

SCOTT@test01p> alter table t add v1 varchar2(10);
alter table t add v1 varchar2(10)
*
ERROR at line 1:
ORA-00069: cannot acquire lock -- table locks disabled for T

--//很明顯11.2.0.4下存在問題,估計遇到了bug,我自己都無法理解在11.2.0.4下的測試結果.

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/267265/viewspace-2645475/,如需轉載,請註明出處,否則將追究法律責任。

相關文章