使用 ctl 文件导入时出错 sqlldr oracle
error when importing with a ctl file sqlldr oracle
我试图使用 ctl 文件从 oracle 数据库 table 导入数据。不幸的是,由于语法错误,它无法正常工作,而且为了我的努力,我不明白为什么。
SQL代码:
sqlldr USERID=user/password, CONTROL=C:\wkt_building001.ctl, LOG=C:\ulcase1.log
文件ctl代码:
OPTIONS (readsize=20000000, DIRECT=TRUE)
UNRECOVERABLE LOAD DATA
CHARACTERSET UTF8
INFILE 'C:/wkt_building.txt.001'
APPEND
PRESERVE BLANKS
INTO TABLE wkt_building
FIELDS TERMINATED BY ' ' TRAILING NULLCOLS
(
BUILDING_ID,
BUILDING CHAR(100000)
)
错误:
org.jkiss.dbeaver.model.sql.DBSQLException: Errore SQL [900] [42000]: ORA-00900: istruzione SQL non valida
at...
Caused by: java.sql.SQLSyntaxErrorException: ORA-00900: istruzione SQL non valida
at ...
Caused by: Error : 900, Position : 0, Sql = sqlldr USERID=user/password, CONTROL=C:\wkt_building001.ctl, LOG=C:\ulcase1.log data=C:\wkt_building.txt.001, OriginalSql = sqlldr USERID=user/password, CONTROL=C:\wkt_building001.ctl, LOG=C:\ulcase1.log data=C:\wkt_building.txt.001, Error Msg = ORA-00900: istruzione SQL non valida
at ...
提前致谢
在错误的初始命令中缺少 ip 地址、端口和数据库名称,这是正确的版本:
- sqlldr USERID=user/password@10.0.0.116:1521/name_database CONTROL=wkt_face001.ctl LOG=ulcase1.log
还要按照本指南在 cmd 上配置连接,使用网络管理器应包含所有步骤:
我试图使用 ctl 文件从 oracle 数据库 table 导入数据。不幸的是,由于语法错误,它无法正常工作,而且为了我的努力,我不明白为什么。
SQL代码:
sqlldr USERID=user/password, CONTROL=C:\wkt_building001.ctl, LOG=C:\ulcase1.log
文件ctl代码:
OPTIONS (readsize=20000000, DIRECT=TRUE)
UNRECOVERABLE LOAD DATA
CHARACTERSET UTF8
INFILE 'C:/wkt_building.txt.001'
APPEND
PRESERVE BLANKS
INTO TABLE wkt_building
FIELDS TERMINATED BY ' ' TRAILING NULLCOLS
(
BUILDING_ID,
BUILDING CHAR(100000)
)
错误:
org.jkiss.dbeaver.model.sql.DBSQLException: Errore SQL [900] [42000]: ORA-00900: istruzione SQL non valida
at...
Caused by: java.sql.SQLSyntaxErrorException: ORA-00900: istruzione SQL non valida
at ...
Caused by: Error : 900, Position : 0, Sql = sqlldr USERID=user/password, CONTROL=C:\wkt_building001.ctl, LOG=C:\ulcase1.log data=C:\wkt_building.txt.001, OriginalSql = sqlldr USERID=user/password, CONTROL=C:\wkt_building001.ctl, LOG=C:\ulcase1.log data=C:\wkt_building.txt.001, Error Msg = ORA-00900: istruzione SQL non valida
at ...
提前致谢
在错误的初始命令中缺少 ip 地址、端口和数据库名称,这是正确的版本:
- sqlldr USERID=user/password@10.0.0.116:1521/name_database CONTROL=wkt_face001.ctl LOG=ulcase1.log
还要按照本指南在 cmd 上配置连接,使用网络管理器应包含所有步骤: