数据库

 首页 > 数据库 > Oracle > ORA-12838错误总结

ORA-12838错误总结

分享到:
【字体:
导读:
         摘要:ORA-12838:cannotread/modifyanobjectaftermodifyingitinparallel此错误是在调用过程中出现的。经过查询,是由于在过程中使用了appendinsert运行后没有及时提交造成。对于此问题,确切的解释... SyntaxHighli...

ORA-12838错误总结

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

此错误是在调用过程中出现的。经过查询,是由于在过程中使用了append insert运行后没有及时提交造成。对于此问题,确切的解释是这样的,ORA-12838: cannot read/modify an object after modifying it in parallel   www.2cto.com  
Cause: Within the same transaction, an attempt was made to add read or modification statements on a table after it had been modified in parallel or with direct load. This is not permitted. 
Action: Rewrite the transaction, or break it up into two transactions: one containing the initial modification and the second containing the parallel modification operation. 
这样就清晰的多了,错误的原因是direct load,也就是前面的append insert。

解决的办法 就是在append insert后及时的commit。  www.2cto.com   
 
及时修改过程,重新运行,就再没有此问题了。 
 
Insert和append insert的原理上是完全不同的,insert append可以实现直接路径加载,速度比常规加载方式快很多。但有一点需要注意: insert append时在表上加“6”类型的Exclusive锁,即排它锁,为表级锁,会阻塞表上的所有DML语句。因此在有业务运行的上传环境下要慎重使用。
 
 
 
作者 beliveAda
ORA-12838错误总结
分享到:
oracle的connect by语句分析
oracle的connect by语句分析 oracle中可以用CONNECT BY子句实现递归查询,其基本语法是:   select ... from   where start with connect by order siblings by ;   :过滤条件,用于对返回的所有记录进行过滤。(关联条件和过滤条件有区别,关联条件最先执行)  www.2cto.com   :根节点条件,只用于第一次过滤...
从pl/sql查询字段类型为number并显示为科...
从pl/sql查询字段类型为number并显示为科学计数法的计数方法的问题 从pl/sql查询字段类型为number并且长度大于16位的内容显示为科学计数法的计数方法,后经查找找到了如下解决办法:    1.在toad中->view->option->data->display large number in scientific notation,不选择该选项即可    在pl/sql developer中->to...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……