"Got minus one from a read call" error while trying to connect
Oracle relink command tipsOracle Database Tips by Donald BurlesonMay 31, 2015 |
cd $ORACLE_HOME/rdbms/lib
make -f ins_rdbms.mk rac_on oracle
Answer: No, you do not need to run the make commands when you issue the Oracle relink command. Remember that the relink is a script and you can view the command file to see exactly what it is doing!make -f ins_rdbms.mk rac_on oracle
In UNIX and Linux, the DBA may occasionally find the need to relink the Oracle binaries. A relink is necessary whenever you install a new release or a patchset or when there is a patch or upgrade to the OS environment.
Sometimes a one-off patch for the OS or Oracle may require this. Not to mention that most Oracle major and minor version upgrades perform the exact same relink as a final part of the installation process. The relink process is fairly straightforward:
1. Identify at what granularity the operation is needed
2. Shut down those database components for that level
3. Issue the relink command for the desired granularity
4. Start up those database components for that level
The relink command syntax is as follows:
$ relink all | oracle | network | client | client_sharedlib | interMedia | precomp | utilities | oemagent | ldap
While the Oracle relink command will automatically run the make commands, you still may run them menually:
For executables: oracle, exp, imp, sqlldr, tkprof, mig, dbv, orapwd, rman, svrmgrl, ogms and ogmsctl
cd $ORACLE_HOME/rdbms/lib
make -f ins_rdbms.mk install
For 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_oemagent.mk install
For executables: names, namesctl
cd $ORACLE_HOME/network/lib
make -f ins_names.mk install
For executables: osslogin, trcasst, trcroute, onrsd, tnsping
cd $ORACLE_HOME/network/lib
make -f ins_net_client.mk install
For executables: tnslsnr, lsnrctl
cd $ORACLE_HOME/network/lib
make -f ins_net_server.mk install
For more details on using the relink command, see MOSC Note: 131321.1 titled "Using Oracle relink on UNIX".cd $ORACLE_HOME/rdbms/lib
make -f ins_rdbms.mk install
For 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_oemagent.mk install
For executables: names, namesctl
cd $ORACLE_HOME/network/lib
make -f ins_names.mk install
For executables: osslogin, trcasst, trcroute, onrsd, tnsping
cd $ORACLE_HOME/network/lib
make -f ins_net_client.mk install
For executables: tnslsnr, lsnrctl
cd $ORACLE_HOME/network/lib
make -f ins_net_server.mk install
[oracle@sracsnc01 bin]$ relink all
writing relink log to: /u01/app/oracle/product/12.1.0.2/dbhome_1/install/relink.log
[oracle@sracsnc01 bin]$ pwd
/u01/app/oracle/product/12.1.0.2/dbhome_1/bin
[oracle@sracsnc01 bin]$