oracle sqluldr2_linux64_10204.bin 常见错误
-
sqluldr2_linux64_10204.bin:
-
error while loading shared libraries: libclntsh.so.10.1:
-
cannot open shared object file: No such file or directory
-
解决办法:
-
1.先检查libclntsh.so.10.1文件是否存在,一般安装完数据库,该文件都会存在。
-
2.设置oracle的环境变量,加载oracle的lib包
-
export LD_LIBRARY_PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/local/bin:
-
/usr/X11R6/bin/:$ORACLE_HOME/lib:$LD_LIBRARY_PATH
-
export ORACLE_BASE=/u01/oracle
-
export ORACLE_HOME=$ORACLE_BASE/product/11.2/db
-
export ORACLE_SID=oracle
-
export NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"
-
export PATH=.:${PATH}:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/OPatch
-
export LD_LIBRARY_PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/local/bin:
-
/usr/X11R6/bin/:$ORACLE_HOME/lib:$LD_LIBRARY_PATH
-
export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib
ORA-24345: A Truncation or null fetch error occurred
导出参数加上:safe=yes
=========================================
1.添加环境变量
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
export LD_LIBRARY_PATH=$ORACLE_HOME/bin:$ORACLE_HOME/lib:/lib:/usr/lib
2.更改sqluldr2_linux64_10204.bin: 为 sqludr2.bin
3.如果还是报错 就用 root 用户 切换 oracle 启动
su - oracle -c 脚本名