在通过跨库同义词CAST导数据测试时,报ORA-12840: cannot access a remote table after parallel/insert direct load txn错误:
SQL> alter table dcustCREDITbalance_new nologging;
Table altered.
Elapsed: 00:00:00.09
SQL> insert /*+ append */ into dcustCREDITbalance_new select * from dcustCREDITbalance;
1742678 rows created.
Elapsed: 00:00:19.12
SQL> /
insert /*+ append */ into dcustCREDITbalance_new select * from dcustCREDITbalance
*
ERROR at line 1:
ORA-12840: cannot access a remote table after parallel/insert direct load txn
Elapsed: 00:00:00.02
经查询,为并行/插入直接加载导致,以上为/*+ append */ 引起,解决办法:rollback或者commit
12840, 00000, "cannot access a remote table after parallel/insert direct load txn"
// *Cause: Within a transaction, an attempt was made to perform. distributed
// access after a PDML or insert direct statement had been issued.
// *Action: Commit/rollback the PDML transaction first, and then perform.
// the distributed access, or perform. the distributed access before the
// first PDML statement in the transaction.
commit提交一下就正常了:
SQL> commit;
Commit complete.
Elapsed: 00:00:00.04
SQL> insert /*+ append */ into dcustCREDITbalance_new select * from dcustCREDITbalance
2 ;
1742678 rows created.
Elapsed: 00:00:18.95
再次insert append,统计表中记录时又出现新的错误:ORA-12838: cannot read/modify an object after modifying it in parallel
SQL> select count(*) from dcustCREDITbalance_new;
select count(*) from dcustCREDITbalance_new
*
ERROR at line 1:
ORA-12838: cannot read/modify an object after modifying it in parallel
Elapsed: 00:00:00.01
12838, 00000, "cannot read/modify an object after modifying it in parallel"
// *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.
我直接再commit提交,恢复正常
SQL> commit;
Commit complete.
Elapsed: 00:00:00.02
SQL> select count(*) from dcustCREDITbalance_new;
COUNT(*)
----------
10456068
Elapsed: 00:00:09.50
SQL> insert /*+ append */ into dcustCREDITbalance_new select * from dcustCREDITbalance;
1742678 rows created.
Elapsed: 00:00:18.21
分享到:
相关推荐
oracle12c程序连接时异常: ORA-01017: 用户名/口令无效; 登录被拒绝 的解决方案。
oracle 12 c ORA-01017: 用户名/口令无效; 登录被拒绝
ORA-01036:非法的变量名/编号 oracle特有的错误
ora-01033:oracle initialization or shutdown in progress 解决方法 ora-01033:oracle initialization or shutdown in progress 解决方法 ora-01033:oracle initialization or shutdown in progress 解决方法 ora-...
ORA-01017: invalid username/password; logon denied Oracle数据库报错解决方案一-附件资源
在运行查询SELECT * FROM V$SESSION 会出现ORA-29275:部分多字节字符的错误,这是什么原因开始我不得其解,网上也没有介绍什么好办法。本文给出答案。
ORA-12154: TNS: 无法解析指定的连接标识符的解决方法
ORA-32001:write to spfile requested but no spfile is in use请求写入spfile,但没有使用spfile的解决方法 在输入以下语句中报了这样的错误: SQL>alter system set control_files=’/u01/app/oracle/oradata/prod/...
NULL 博文链接:https://3w1h.iteye.com/blog/1211779
ORA-00031:标记要终止的会话解决方案; ORA-00031:标记要终止的会话解决方案;
“ORA-01461: 仅可以为插入 LONG 列的 LONG 值赋值”
调整参数后引起,ORA-00838: Specified value of MEMORY_TARGET is too small, needs to be at least 3 2768M 的解决方案
有关表死锁的详细图片 博文链接:https://meteor-1988.iteye.com/blog/1568695
错误描述:oracle远程连接服务器出现 ORA-12170 TNS:连接超时 错误检查:有很多是oracle自身安装的问题,但是我这里服务器配置正常,监听正常,服务正常,远程可以ping通服务器。 这里主要是防火墙问题,解决办法: ...
最近在工作中遇到了一个问题,错误是Oracle dbca时报错:ORA-12547: TNS:lost contact,通过查找相关的资料终于找到了解决的方法,下面分享给大家,话不多说了,来一起看看详细的介绍吧。 环境: OS:RHEL6.5 x86-...
NULL 博文链接:https://springlin.iteye.com/blog/1520668
-- 解决ORA-00904: "WMSYS"."WM_CONCAT": 标识符无效 的文件包....... -- 解决ORA-00904: "WMSYS"."WM_CONCAT": 标识符无效 的文件包....... -- 解决ORA-00904: "WMSYS"."WM_CONCAT": 标识符无效 的文件包....... ...
oracle报错ora-12541:TNS无监听程序
解决ORACLE TNS: 无法解析指定的连接标识符; 里面有步骤
ORA-12518 TNS:监听程序无法分发客户机连接,在您安装好数据库后配置连接数据库的过程中遇到这类问题应该很头疼吧,不过,当您还是四处查资料来解决您遇到的另你头疼的问题时,如果不经意间看到了这则贴子,那请您升...