oracle un all,请教大家使用relink all的场合

http://ist.uwaterloo.ca/~baumbac ... linking_oracle.html

Relinking occurs automatically under these circumstances

* An Oracle product has been installed with an Oracle provided installer.

* An Oracle patch set has been applied via an Oracle provided installer.

Relinking Oracle manually is suggested under these circumstances

* An OS upgrade has occurred.

* A change has been made to the OS system libraries. This can occur during the application of an OS patch.

* A new install failed during the relinking phase.

* Individual Oracle executables core dump during initial startup.

* An individual Oracle patch has been applied with explicit relink instructions or the relink is integrated into the patch install script.

Steps to manually relink Oracle

1. Logon and set environment variables:

as oracle:

source $csetsid

env | grep ORA

2. Verify and/or Configure the Unix Environment for Proper Relinking:

Sun Solaris Oracle 7.3.x, 8.0.x, 8.1.x or 9.0.x:

* Ensure that /usr/ccs/bin is before /usr/ucb in $PATH:

which ld

( should return "/usr/ccs/bin/ld" )

* Set LD_LIBRARY_PATH to include $ORACLE_HOME/lib

* If using 64bit Oracle, LD_LIBRARY_PATH should also include $ORACLE_HOME/lib64.

3. Verify the correct absolute path for $ORACLE_HOME

env | grep ORACLE_HOME

4. Before relinking Oracle, shutdown all the databases and the listener.

5. Run the OS Commands to Relink Oracle:

* Oracle 7.3.x

o For executables: oracle, exp, imp, sqlldr, tkprof

cd $ORACLE_HOME/rdbms/lib

make -f ins_rdbms.mk install

o For executables: svrmgrl, svrmgrm

cd $ORACLE_HOME/svrmgr/lib

make -f ins_svrmgr.mk linstall minstall

linstall is for svrmgrl, minstall is for svrmgrm

o For executables: sqlplus

cd $ORACLE_HOME/sqlplus/lib

make -f ins_sqlplus.mk install

o For executables: dbsnmp, oemevent, oratclsh

cd $ORACLE_HOME/network/lib

make -f ins_agent.mk install

o For executables: names, namesctl

cd $ORACLE_HOME/network/lib

make -f ins_names.mk install

o For executables: tnslsnr, lsnrctl, tnsping, csmnl, trceval, trcroute

cd $ORACLE_HOME/network/lib

make -f ins_network.mk install

* Oracle 8.0.x

o For executables: oracle, exp, imp, sqlldr, tkprof, mig, dbv, orapwd, rman, svrmgrl, ogms, ogmsctl

cd $ORACLE_HOME/rdbms/lib

make -f ins_rdbms.mk install

o For executables: sqlplus

cd $ORACLE_HOME/sqlplus/lib

make -f ins_sqlplus.mk install

o For executables: dbsnmp, oemevent, oratclsh, libosm.so

cd $ORACLE_HOME/network/lib

make -f ins_oemagent.mk install

o For executables: tnslsnr, lsnrctl, namesctl, names, osslogin, trcasst, trcroute

cd $ORACLE_HOME/network/lib

make -f ins_network.mk install

* Oracle 8.1.x or 9.0.x

A "relink" script ( 8i new feature ) is provided in the $ORACLE_HOME/bin directory:

cd $ORACLE_HOME/bin

relink

usage: relink >parameter<

accepted values for parameter: all, oracle, network, client, client_sharedlib,

interMedia, precomp, utilities, oemagent

i.e. You can relink ALL executables with the following command: relink all

bug 1337908 : on Solaris with Oracle 8.1.6, also do: relink utilities

-or-

You still have the option of running the "make" commands independently:

o For executables: oracle, exp, imp, sqlldr, tkprof, mig, dbv, orapwd, rman, svrmgrl, ogms, ogmsctl

cd $ORACLE_HOME/rdbms/lib

make -f ins_rdbms.mk install

o For executables: sqlplus

cd $ORACLE_HOME/sqlplus/lib

make -f ins_sqlplus.mk install

o For executables: dbsnmp, oemevent, oratclsh

cd $ORACLE_HOME/network/lib

make -f ins_oemagent.mk install

o For executables: names, namesctl

cd $ORACLE_HOME/network/lib

make -f ins_names.mk install

o For executables: osslogin, trcasst, trcroute, onrsd, tnsping

cd $ORACLE_HOME/network/lib

make -f ins_net_client.mk install

o For executables: tnslsnr, lsnrctl

cd $ORACLE_HOME/network/lib

make -f ins_net_server.mk install

6. How to tell if relinking was successful:

If relinking was successful, the make command will eventually return to the OS prompt without an error. There will not be a "Relinking Successful" type message.

7. If you receive an error message during relinking:

Relinking errors usually terminate the relinking process and contain verbage similar to the following:

Fatal error', 'Ld: fatal', 'Exit Code 1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值