SQL*Loader-500: Unable to open file (v1x-access_log_20120916.dat)
情景:SQL*Loader-500: Unable to open file (v1x-access_log_20120916.dat)
具體如下:
[oracle@yitai sqlldr]$ ls v1x-access_log_20120916*
v1x-access_log_20120916
[oracle@yitai sqlldr]$ sqlldr scott/oracle data=v1x-access_log_20120916 control=insert_log.ctl
SQL*Loader: Release 10.2.0.1.0 - Production on Tue Sep 18 02:22:09 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
SQL*Loader-500: Unable to open file (v1x-access_log_20120916.dat)
SQL*Loader-553: file not found
SQL*Loader-509: System error: No such file or directory
SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
原因分析:(在檔名中有“.”時,sqlldr會尋找本身; 否則的話會預設尋找.dat,這時候會認為這個dat檔案不存在)
解決方法(檔名中加點):
[oracle@yitai sqlldr]$ mv v1x-access_log_20120916 v1.x-access_log_20120916
[oracle@yitai sqlldr]$ sqlldr scott/oracle data=v1.x-access_log_20120916 control=insert_log.ctl
SQL*Loader: Release 10.2.0.1.0 - Production on Tue Sep 18 02:25:01 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Commit point reached - logical record count 64
Commit point reached - logical record count 128
Commit point reached - logical record count 192
Commit point reached - logical record count 256
Commit point reached - logical record count 320
Commit point reached - logical record count 384
可以看到加點以後的檔名這時候就不報錯了。所以為了避免這種無厘頭的報錯,最好在 sqlldr的文字檔案命名中給他加字尾.dat, 避免特殊情況下找不到檔案這種情形發生。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/27042095/viewspace-743850/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ORA-31617 unable to open dump file for write
- ORA-31640: unable to open dump file 問題解決
- unable to get file lock, will retry ...
- ORA-27041: unable to open file--恢復被rm意外刪除資料檔案
- linux解決xhost: unable to open displayLinux
- linux解決xhost unable to open display‘’Linux
- Linux錯誤:xhost unable to open displayLinux
- 解決問題:OSError: Unable to open file (truncated file: eof = 22118400, sblock->base_addr = 0, stored_eofErrorBloC
- 完美解決xhost +報錯: unable to open display
- 轉貼:xhost unable to open display解決方法
- WPF open image and print as pdf file
- ftp_rawlist: Unable to create temporary file.FTP
- Warning: unable to open an initial console.
- open_basedir() restrictijon in effect. FIle()REST
- ftp 報錯 550 Failed to open fileFTPAI
- Unable to create index.lock File exists錯誤Index
- 高手sos!!! Unable to load document from file...
- Linux open file與 fs-maxLinux
- apr_file_open函式用法心得函式
- Oracle Database on NFS : unable to lock file - already in use" ErrorOracleDatabaseNFSError
- Unable to View Chinese Font When Using Tools>Copy FileView
- libmysqlclient.so.16: cannot open shared object file: No such file or directoryIBMMySqlclientObject
- libcap.so.1:cannot open shared object file: No such file or directoryObject
- libXext.so.6: cannot open shared object file: No such file or directoryObject
- libz.so.1: cannot open shared object file: No such file or directoryObject
- Unable to connect to SQL Server ExpressSQLServerExpress
- 解決This version of Visual Studio is unable to open the following projectsProject
- 執行 xhost + 出現 unable to open display 解決辦法
- SQL on file 工具SQL
- ImportError: libffi.so.7: cannot open shared object file: No such file or directoryImportErrorObject
- "Visual Studio Code is unable to watch for file changes in this large workspace"
- 【伺服器】關於錯誤:Smarty:unable to write file伺服器
- Unable to open kernel device "\\.\vmci": 系統找不到指定的檔案。.dev
- ERROR 1168 (HY000): Unable to open underlying table which isError
- ORA-09925: Unable to create audit trail file彙總AI
- weblogic - <BEA-141281> <unable to get file lock, will retry ...>Web
- 記錄 libldap-2.4.so.2: cannot open shared object file: No such file or directoryLDAObject
- 問題1.libXp.so.6: cannot open shared object file: No such file or directoryObject