ORACLE——Instant Client配置SQL*LDR、EXP等命令工具


 

在Linux系統中安裝了ORACLE客戶端Instant Client,但是它缺少SQL*LOADER、IMP等工具,那么怎么安裝這些工具呢?直接從同版本的數據庫服務器的安裝文件中拷貝sqlldr文件過來,執行sqlldr會報如下錯誤:

clip_image002

 

Message 2100 not found; No message file for product=RDBMS, facility=ULMessage 2100 not found; No message file for product=RDBMS, facility=UL[etl@m1 instantclient_10_2]$^C

事實上也只能通過拷貝文件來安裝SQL*LOADER,只不過上面報錯,是因為還需要你拷貝、配置下面一些信息文件文件。先從數據庫服務器上面找到下面這些信息文件 $ORACLE_HOME/network/mesg下找到tnsus.msb文件,以及$ORACLE_HOME/rdbms/mesg/下的ulus.msb文件,如下所示:

 

[oracle@DB-Server mesg]$ cd /database/product/dbhome_1/network/mesg

[oracle@DB-Server mesg]$ ls -lrt tns*

-rwxrwxr-x. 1 oracle oinstall 242709 Sep 9 2005 tnsus.msg

-rwxrwxr-x. 1 oracle oinstall 46592 Sep 9 2005 tnsus.msb

[oracle@DB-Server mesg]$ ls -lrt tns*.msb

-rwxrwxr-x. 1 oracle oinstall 46592 Sep 9 2005 tnsus.msb

[oracle@DB-Server mesg]$ ^C

[oracle@DB-Server mesg]$ cd /database/product/dbhome_1/rdbms/mesg/

[oracle@DB-Server mesg]$ ls -lrt ul*msb

-rwxrwxr-x. 1 oracle oinstall 37888 Sep 9 2005 ulus.msb

[oracle@DB-Server mesg]$

  

找到這些文件后,把這些文件拷貝到Instant Client的安裝目錄下(/usr/local/instantclient_10_2)下相應的目錄:/usr/local/instantclient_10_2/rdbms/mesg 以及 /usr/local/instantclient_10_2/network/mesg下。OK,現在可以使用SQL*LOADER了。

現在來看一下,如何配置exp以及imp工具,如果你只是拷貝執行文件到相關目錄下,會報如下錯誤:

clip_image004

 

此時你需要從數據庫服務器的安裝目錄的rdbms/mesg下拷貝expus.msb、impus.msb過來,問題即可解決。

參考文獻、文章:

https://forums.oracle.com/forums/thread.jspa?threadID=415591&tstart=1455

http://hi.baidu.com/yanzhenpeter/blog/item/688ea82c5d59163c359bf730.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM