我正在尝试使用 sql ldr- 将数据上传到表中
sqlldr userid=aa2012/uaxiqdz@ADB control=simple.ctl
简单的.ctl:-
LOAD DATA
INFILE '../data/simple.csv'
BADFILE '../data/simple.bad'
DISCARDFILE '../data/simple.dsc'
INTO TABLE SIMPLE_TAB
replace
fields terminated by ',' optionally enclosed by '"'
(
ID INTEGER
EXTERNAL,
NAME CHAR(32)
)
simple.csv 有两列:1st-number 2nd Name。
create table Simple_Tab (
id number primary key,
name varchar2(32)
)
但我收到以下错误 -
SQL*Loader: Release 10.2.0.1.0 - Production on Sat Dec 4 22:43:55 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL*Loader-941: Error during describe of table SIMPLE_TAB ORA-04043: object SIMPLE_TAB does not exist
我试过了-
- 仔细选择我存储文件的文件路径。
- 删除并重新创建表 SIMPLE_TAB
- 在所有命令中谨慎使用大写字母
但没有任何帮助。
最佳答案
当您运行 create table
语句时,您可能连接到不同的数据库(或用户)。
select user from dual;
在 SQL*Plus 中运行时向您显示了什么(例如,在运行 create table
之后/之前)
关于SQLLDR 错误 : Object does not exist while trying to insert data to a database,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4357281/