多个版本数据库在在一台数据库上lib 的切换问题。
lib 的切换问题。
现象:
/home/dbmon >sqlplus / as sysdba
/usr/lib/hpux64/dld.so: Unsatisfied data symbol 'nltrc_entry' in load module '/opt/oracle10g/product/10.2.0/lib//libnnz10.so'.
/usr/lib/hpux64/dld.so: Unsatisfied data symbol 'nltrc_exit' in load module '/opt/oracle10g/product/10.2.0/lib//libnnz10.so'.
/usr/lib/hpux64/dld.so: Unsatisfied data symbol 'nzdacvalue' in load module '/opt/oracle10g/product/10.2.0/lib//libnnz10.so'.
Killed
:/home/dbmon [db] >id
uid=115(dbmon) gid=106(dba)
:/home/dbmon [db] >
原因:
:/home/dbmon [db] >ls -l $ORACLE_HOME/lib/libodm11.so
/opt/oracle10g/product/10.2.0/lib/libodm11.so not found
:/home/dbmon [db] >env|grep LIB
LD_LIBRARY_PATH=/usr/lib:/opt/oracle11204/product/11.2.0/lib
解决方法:
:/home/dbmon [db] >export LD_LIBRARY_PATH=/usr/lib:/opt/oracle10g/product/10.2.0/lib