暂无图片
暂无图片
暂无图片
暂无图片
暂无图片

sqlldr 加载时 SQL*Loader-951: Error calling once/load initialization ORA-00942

张维照 2019-05-31
3167

问题描述

今天搞了点数据文本文件,用SQLLDR加载时报:
SQL*Loader-951: Error calling once/load initialization
ORA-00942: 表或视图不存在

专家解答

说一下环境
本机先后装有9I,10G两套库,现在想插入9I的库 windows xp

C:\sqlldr userid=anbob/anbob@anbob control=xxx.ctl direct=true log=load.log
SQL*Loader: Release 10.1.0.2.0 – Production on 星期三 12月 21 17:53:14 2011
Copyright (c) 1982, 2004, Oracle. All rights reserved.
SQL*Loader-951: Error calling once/load initialization
ORA-00942: 表或视图不存在

如果去掉direct项就可以C:\sqlldr userid=anbob/anbob@anbob control=xxx.ctl log=load.log

…
Commit point reached – logical record count 68478
Commit point reached – logical record count 68542
Commit point reached – logical record count 68606
Commit point reached – logical record count 68670
Commit point reached – logical record count 68734
…

note:有时LOAD 的表不为空也是这个提示,很是郁闷

再注意一下LOADING时的提示信息SQL*Loader: Release 10.1.0.2.0 – Production on 星期三 12月 21 17:53:14 2011,显然是10G的SQLLDR在PATH环境变量的前面,调用的是10G的SQLLDR,如果换成9I的SQLLDR会不会一样呢?

cmd>set path=D:\oracle\product\9.2.0\Db_2\bin;%path%
C:\>sqlldr userid=anbob/anbob@anbob control=xxx.ctl direct=ture log=load.log
SQL*Loader: Release 9.2.0.8.0 – Production on 星期三 12月 21 18:00:41 2011
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.

加载完成 – 逻辑记录计数 6428632。

20秒加载完成,总结就出在用DIRCET直接路径加载时版本不一致。

「喜欢这篇文章,您的关注和赞赏是给作者最好的鼓励」
关注作者
【版权声明】本文为墨天轮用户原创内容,转载时必须标注文章的来源(墨天轮),文章链接,文章作者等基本信息,否则作者和墨天轮有权追究责任。如果您发现墨天轮中有涉嫌抄袭或者侵权的内容,欢迎发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。

评论