cancel
Showing results for 
Search instead for 
Did you mean: 

Command line relinking Oracle

Massimo_37
Frequent Advisor

Command line relinking Oracle

Does anyone have any links to relinking Oracle Executables(oRacle 7.2 on HP_UX 10.2) I do not have any database on the server at the moment. I have only got a fresh install of software of 7.2 on this server. I tried relinking using the installer option, but it looks complicated - on Relink Executables, I have to select items and select "Install" (??) and I am scared to do something ambiguous.
Does anyone rememebr the command for it, If so please do let me know
Many Thnaks
9 REPLIES
Victor Fridyev
Honored Contributor

Re: Command line relinking Oracle

Hi

cd $ORACLE_HOME/rdbs/lib

make -f ins_rdbms.mk install
Entities are not to be multiplied beyond necessity - RTFM
Brian Crabtree
Honored Contributor

Re: Command line relinking Oracle

Don't forget:

cd $ORACLE_HOME/network/lib
make -f ins_network.mk install

cd $ORACLE_HOME/sqlplus/lib
make -f ins_sqlplus.mk install

Thanks,

Brian
Yogeeraj_1
Honored Contributor

Re: Command line relinking Oracle

hi,

see also the doc directory in cd $ORACLE_HOME/rdbms/doc

hope this helps too!

regards
yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
malay boy
Trusted Contributor

Re: Command line relinking Oracle

After installation,login as oracle and execute below :

oracle $ cd $ORACLE_HOME
oracle $ relink all

regards
mB
There are three person in my team-Me ,myself and I.
twang
Honored Contributor

Re: Command line relinking Oracle

1. login the system as 'oracle'.
2.verify that your $ORACLE_HOME is set correctly:
$ cd $ORACLE_HOME
% pwd
3. verify environment for relinking:
- Set SHLIB_PATH to include $ORACLE_HOME/lib
- if 64bit 8i Oracle, SHLIB_PATH should also include $ORACLE_HOME/lib64.
- ensure LPATH is unset
4. shutdown both database abd listener
5. to relink Oracle:
if oracle 8i or 9i, a 'relink' script is found in the $ORACLE_HOME/bin
$ cd $ORACLE_HOME/bin
to relink most of the executables associated with oracle:
$ relink all

or you may use 'make' commands as below:
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
For executables: sqlplus
$ cd $ORACLE_HOME/sqlplus/lib
$ make -f ins_sqlplus.mk install
.....

If relinking is successful, the make command will eventually return to the OS prompt without an error.
Akash_8
Occasional Visitor

Re: Command line relinking Oracle

pl see atachment
Alexander M. Ermes
Honored Contributor

Re: Command line relinking Oracle

eehhmm Akash ?
There is no attachment as far as i can see...
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
twang
Honored Contributor

Re: Command line relinking Oracle

Add to above reply,
On hpux, if Oracle 7.3.X, 8.0.X, 8.1.X, remember to:
- Set SHLIB_PATH to $ORACLE_HOME/lib If using 64bit 8i Oracle, also
- Set LD_LIBRARY_PATH to $ORACLE_HOME/lib
- ensure LPATH is unset

Hope it helps.
twang
twang
Honored Contributor

Re: Command line relinking Oracle

Miss the important part:
if Oracle 7.3.x :
For executables: oracle, exp, imp, sqlldr, tkprof
% cd $ORACLE_HOME/rdbms/lib
% make -f ins_rdbms.mk install
For executables: svrmgrl, svrmgrm
% cd $ORACLE_HOME/svrmgr/lib
% make -f ins_svrmgr.mk linstall minstall <- linstall is for svrmgrl,
minstall is for svrmgrm
For executables: sqlplus
% cd $ORACLE_HOME/sqlplus/lib
% make -f ins_sqlplus.mk install
For executables: dbsnmp, oemevent, oratclsh
% cd $ORACLE_HOME/network/lib
% make -f ins_agent.mk install
For executables: names, namesctl
% cd $ORACLE_HOME/network/lib
% make -f ins_names.mk install
For executables: tnslsnr, lsnrctl, tnsping, csmnl, trceval, trcroute
% cd $ORACLE_HOME/network/lib
% make -f ins_network.mk install