码迷,mamicode.com
首页 > 其他好文 > 详细

ORA-12838: cannot read/modify an object after modifying it in parallel

时间:2019-06-11 12:44:06      阅读:125      评论:0      收藏:0      [点我收藏+]

标签:relative   ror   not   rowid   ber   altered   object   error   creat   

SCOTT@PROD> insert /*+ append */ into b select * from a;

4 rows created.

SCOTT@PROD> select file#,block#,status from v$bh where objd=(select data_object_id from user_objects where object_name=‘B‘);

     FILE#     BLOCK# STATUS
---------- ---------- ----------
     4      665 xcur
     4      666 xcur
     4      664 xcur

SCOTT@PROD> select dbms_rowid.rowid_relative_fno(rowid),dbms_rowid.rowid_block_number(rowid) from b;
select dbms_rowid.rowid_relative_fno(rowid),dbms_rowid.rowid_block_number(rowid) from b
                                                                                      *
ERROR at line 1:
ORA-12838: cannot read/modify an object after modifying it in parallel


SCOTT@PROD> alter table t noparallel;

Table altered.

SCOTT@PROD> select dbms_rowid.rowid_relative_fno(rowid),dbms_rowid.rowid_block_number(rowid) from b;

DBMS_ROWID.ROWID_RELATIVE_FNO(ROWID) DBMS_ROWID.ROWID_BLOCK_NUMBER(ROWID)
------------------------------------ ------------------------------------
                   4                      667
                   4                      667
                   4                      667
                   4                      667

ORA-12838: cannot read/modify an object after modifying it in parallel

标签:relative   ror   not   rowid   ber   altered   object   error   creat   

原文地址:https://www.cnblogs.com/gw666/p/11002892.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!