sqlldr執行報錯:error while loading shared libraries: libclntsh.so.10.1:
執行shell指令碼的時候
[root@justin]# sh sqlldr_justin.sh
/home/oracle/10205/db1/bin/./sqlldr: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directory
報以上錯誤
其實是環境變數沒有設定正確,可以透過export ORACLE_HOME=**之類的命令修復,不過每次都這麼敲命令太麻煩.
透過設定.bash_profile,可以一勞永逸,黑體字部分是報錯後手工新增的
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
#oracle env
ORACLE_BASE=/home/oracle
ORACLE_HOME=$ORACLE_BASE/10205/db1
ORA_CRS_HOME=$ORACLE_BASE/10205/crs/
export ORACLE_BASE ORACLE_HOME
ORACLE_SID=test
export ORACLE_SID
ORACLE_TERM=xterm
export ORACLE_TERM
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export CLASSPATH
PATH=$HOME/bin:$ORACLE_HOME/bin:$PATH:/sbin/
export PATH
接著執行shell指令碼,成功
[root@justin]# source .bash_profile
[root@justin]# sh sqlldr_justin.sh
SQL*Loader: Release 10.2.0.5.0 - Production on Tue Dec 28 15:18:45 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Load completed - logical record count 208.
[root@justin]# sh sqlldr_justin.sh
/home/oracle/10205/db1/bin/./sqlldr: error while loading shared libraries: libclntsh.so.10.1: cannot open shared object file: No such file or directory
報以上錯誤
其實是環境變數沒有設定正確,可以透過export ORACLE_HOME=**之類的命令修復,不過每次都這麼敲命令太麻煩.
透過設定.bash_profile,可以一勞永逸,黑體字部分是報錯後手工新增的
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
unset USERNAME
#oracle env
ORACLE_BASE=/home/oracle
ORACLE_HOME=$ORACLE_BASE/10205/db1
ORA_CRS_HOME=$ORACLE_BASE/10205/crs/
export ORACLE_BASE ORACLE_HOME
ORACLE_SID=test
export ORACLE_SID
ORACLE_TERM=xterm
export ORACLE_TERM
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
export CLASSPATH
PATH=$HOME/bin:$ORACLE_HOME/bin:$PATH:/sbin/
export PATH
接著執行shell指令碼,成功
[root@justin]# source .bash_profile
[root@justin]# sh sqlldr_justin.sh
SQL*Loader: Release 10.2.0.5.0 - Production on Tue Dec 28 15:18:45 2010
Copyright (c) 1982, 2007, Oracle. All rights reserved.
Load completed - logical record count 208.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/15480802/viewspace-688362/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- error while loading shared libraries: libclntsh.so.10.1ErrorWhile
- MySQL 啟動報錯 error while loading shared librariesMySqlErrorWhile
- MongoDB報錯mongorestore: error while loading shared libraries: libsasl2.so.2MongoDBRESTErrorWhile
- ggsci: error while loading shared libraries: libnnz11.soErrorWhile
- error while loading shared libraries: libgconf-2.so.4:ErrorWhileGC
- mongod: error while loading shared libraries: libstdc++.so.6GoErrorWhileC++
- MySQL 5.7初始化報錯error while loading shared libraries: libnuma.so.1MySqlErrorWhile
- error while loading shared libraries: libgsl.so.27: cannot open shared objectErrorWhileObject
- Error while loading shared libraries: libreadline.so.7: cannot open shared objecErrorWhileOBJ
- 故障解決:error while loading shared libraries: libncurses.so.5ErrorWhile
- ./XXX.XX: error while loading shared libraries: libGLEW.so.2.1: cannot open shared object file: NoErrorWhileObject
- rpm: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such fi...ErrorWhileGCObject
- error while loading shared libraries: libpython3.7m(2.7).so.1.0: cannot open shared object file: NErrorWhilePythonObject
- linux編譯Android原始碼的時候出錯:error while loading shared libraries: libstdc++.so.6Linux編譯Android原始碼ErrorWhileC++
- linux puppeteer 截圖提示缺少chrome-linux/chrome error while loading shared libraries: libXdamage.so.1LinuxChromeErrorWhile
- 執行flutter run命令報錯::ERROR: Could not connect to lockdownd, error code -17FlutterError
- Qt開發,報錯:Error while building/deploying project untitled (kit: ....)QTErrorWhileUIProject
- 執行遷移檔案報錯: Syntax error or access violation: 1166 ...Error
- 在 fish 終端下報錯 source: Error while reading file “xxx” 等問題ErrorWhile
- cassandra啟動報錯:Exiting due to error while processing commit log during initialization.ErrorWhileMIT
- 【ERROR】JOB執行DDL語句報錯ORA-06550 & PLS-00103Error
- Centos7-mysql執行報錯ERROR1820(HY000):YoumustresetyourpasswordusingALTERUSERstatementbeforeexecutingthisstatement.CentOSMySqlError
- 初始配置:IntelliJ Android無法執行專案並報錯Error: Module not specifiedIntelliJAndroidError
- 執行SQL發生錯誤!錯誤:disk I/O errorSQLError
- ERROR 1045 (28000): ProxySQL Error: 報錯ErrorSQL
- Camunda 流程執行錯誤處理ERROR BOUNDARY EVENTError
- 執行用例報錯
- Flutter在iOS裝置執行報錯fatal error: 'Flutter/Flutter.h' file not foundFlutteriOSError
- 解決 React-Native mac10.14.4 執行報錯 error Failed to build iOS projectReactMacErrorAIUIiOSProject
- Qt5執行緒錯誤:QThread: Destroyed while thread is still running(執行runThread->exit(0))QT執行緒threadWhile
- 視覺SLAM十四講第九講 執行程式中碰到的shared libraries相關的坑。視覺SLAM行程
- yii執行phpunit時報錯PHP
- idea上執行scala報錯Idea
- 執行web專案報錯Web
- sh指令碼執行報錯指令碼
- MongoDB 備份恢復啟動後執行操作報錯:Error:couldn't add user:not masterMongoDBErrorAST
- 排錯./configure: error: the HTTP XSLT module requires the libxml2/libxslt libraries. You can either doErrorHTTPUIXML
- selenium的那些事--執行報錯
- sqlplus執行sql檔案報錯SQL