Oracle 单实例 Relink Binary Options 说明
一.引入问题
帮朋友在CentOS上安装一个10g的Oracle,结果朋友的CentOS版本是6.2的版本,最新的一个版本,不过Linux上基本都差不多,所以按照以前的步骤,迅速的操作起来,结果遇到N多以前没有遇到过的错误。安装被迫中断,尝试忽略之前的错误,又会遇到其他的错误。
64位 linux平台下Oracle安装文档
http://blog.csdn.net/tianlesoftware/article/details/6062816
如何搭建一个数据库服务器平台
http://blog.csdn.net/tianlesoftware/article/details/5602291
1.1 ins_ctx.mk 问题
[oracle@xd logs]$ tail installActions2012-05-05_01-20-00PM.log
INFO: collect2: ld returned 1 exit status
INFO: make: *** [ctxhx] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'install' of makefile '/u01/app/oracle/product/10.2.0/db_1/ctx/lib/ins_ctx.mk'.See '/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-20-00PM.log'for details.
Exception Severity: 1
[oracle@xd logs]$ yum install gcc
Loaded plugins: fastestmirror,refresh-packagekit, security
You need to be root to perform thiscommand.
[oracle@xd logs]$ rpm -qa --queryformat"%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})/n" | grep libgcc
libgcc-4.4.6-3.el6 (i686)
libgcc-4.4.6-3.el6 (x86_64)
1.2 ins_rdbms.mk 问题
[oracle@xd logs]$ tail installActions2012-05-05_01-20-00PM.log
INFO: make[1]: Leaving directory`/u01/app/oracle/product/10.2.0/db_1/rdbms/lib'
INFO: make: *** [extproc32] Error 2
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'all_no_orcl' of makefile '/u01/app/oracle/product/10.2.0/db_1/rdbms/lib/ins_rdbms.mk'.See '/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-20-00PM.log'for details.
Exception Severity: 1
1.3 ins_emdb.mk 问题
[oracle@xd logs]$ tail installActions2012-05-05_01-20-00PM.log
INFO: make[1]: Leaving directory `/u01/app/oracle/product/10.2.0/db_1/sysman/lib'
INFO: make: *** [nmccollector] Error 2
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'collector' of makefile'/u01/app/oracle/product/10.2.0/db_1/sysman/lib/ins_emdb.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-20-00PM.log' fordetails.
Exception Severity: 1
1.4 ins_net_client.mk 问题
[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.log
INFO: /usr/bin/ar:/u01/app/oracle/product/10.2.0/db_1/lib32/nnfgt.o: No such file or directory
INFO: make: *** [nnfgt.o] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'nnfgt.o' of makefile'/u01/app/oracle/product/10.2.0/db_1/network/lib/ins_net_client.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.
Exception Severity: 1
1.5 ins_precomp.mk 问题
[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.log
INFO: /bin/chmod: cannot access`/u01/app/oracle/product/10.2.0/db_1/precomp/lib/proc': No such file ordirectory
INFO: make: ***[/u01/app/oracle/product/10.2.0/db_1/precomp/lib/proc] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'relink' of makefile'/u01/app/oracle/product/10.2.0/db_1/precomp/lib/ins_precomp.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.
Exception Severity: 1
1.6 ins_plsql.mk 问题
[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.log
collect2: ld returned 1 exit status
INFO: make: *** [wrap] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'install' of makefile'/u01/app/oracle/product/10.2.0/db_1/plsql/lib/ins_plsql.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.
Exception Severity: 1
1.7 ins_net_server.mk 问题
[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.log
collect2: ld returned 1 exit status
INFO: make: *** [tnslsnr] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'install' of makefile'/u01/app/oracle/product/10.2.0/db_1/network/lib/ins_net_server.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.
Exception Severity: 1
1.8 ins_nau.mk 问题
[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.log
INFO: ld returned 1 exit status
INFO: make: *** [oklist] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'ioklist iokinit iokdstry' of makefile'/u01/app/oracle/product/10.2.0/db_1/network/lib/ins_nau.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.
Exception Severity: 1
1.9 ins_ldap.mk 问题
[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.log
collect2: ld returned 1 exit status
INFO: make: *** [ldapadd] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'clientonlyinstall' of makefile'/u01/app/oracle/product/10.2.0/db_1/ldap/lib/ins_ldap.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.
Exception Severity: 1
1.10 ins_srvm.mk 问题
[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.log
INFO: ld returned 1 exit status
INFO: make: *** [rawutl] Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
Exception String: Error in invoking target'install' of makefile'/u01/app/oracle/product/10.2.0/db_1/srvm/lib/ins_srvm.mk'. See'/u01/app/oracle/oraInventory/logs/installActions2012-05-05_01-51-59PM.log' fordetails.
Exception Severity: 1
1.11 ins_has.mk 问题
[oracle@xd logs]$ tailinstallActions2012-05-05_01-51-59PM.log
collect2: ld returned 1 exit status
INFO: make: *** [/u01/app/oracle/product/10.2.0/db_1/racg/lib/racgmain]Error 1
INFO: End output from spawned process.
INFO: ----------------------------------
INFO: Exception thrown from action: make
Exception Name: MakefileException
因为之前没有在CentOS 6.2 上安装过Oracle,所以开始也是争对具体情况去分析,饶了一圈之后,最终定位是安装之前少包了,才导致在安装过程中一些Binary Options不能进行link。用yum 把需要的包全部打上之后,再次安装就没有问题了。
这里要清楚一个概念,就是Binary Options, 其就是Oracle 的组件,我们在把Oracle 安装到系统上时,会对这些组件进行一个link的操作,我们这里因为少了包导致不能进行link。
OracleBinary Options 说明
http://blog.csdn.net/tianlesoftware/article/details/7577637
这次是太大意了,安装之前没有去检查包是否安装全了,因为根据以往的经验,把没有的包打上就可以了,没想到还有其他的包少了。所以操作中务必小心,要按照文档步骤来。
其实在Linux 6平台下,可以使用oracle-rdbms-server-11gR2-preinstall包来操作,这个包会帮我们解决很多问题,包括前期包的依赖性和相关的参数配置工作,关于该包的使用,具体参考:
Oracle Linux6 下Oracle RDBMS Server 11gR2 Preinstall RPM 包说明
http://blog.csdn.net/tianlesoftware/article/details/7456878
在Oracle Linux5中参考:
Oracle ValidatedConfigurations 安装使用 说明
http://blog.csdn.net/tianlesoftware/article/details/7061684
二.MOS 上部分解决方法
对第一部分列出的问题,这里从MOS上摘取2个的解决方案。
2.1 Ins_net_client.Mk 问题一
MOS 文章:
'Error In Invoking Target Ntcontab.o OfMakefile Ins_net_client.Mk' [ID 341621.1]
2.1.1 Symptoms
A popuperror occurs during the installation of the Oracle9i R2 Client (9.2.0.1)on Sun Solaris 5.9 (64-bit).
Popup error message:
Error in invoking target ntcontab.o of makefile ins_net_client.mk
2.1.2 Cause
Expected defaultSun Solaris installed utilities (from Sun Packages) not present in /usr/ccs/bindirectory.
Instead thefollowing utilities were symbolically linked to other provider (packaged)utilities and/or renamed in the '/usr/ccs/bin' directory:
/usr/ccs/bin/ar >> was symbolically linked to /software/binutils/bin/ar(original ar was
moved ot a new name)
/usr/ccs/bin/as >> was moved to a new name
/usr/ccs/bin/ld >> was symbolically linked to software/binutils/bin/ld(original ld was
moved ot a new name)
Investigation with System Administrator.
2.1.3 Solution
To implement the solution, please executethe following steps:
1. Request the System Administrator remove the symbolic links and restore theexpected default Sun Solaris installed utilities (at least long enough tocomplete the Oracle Client installation and relinking.
2. Once in place, run the Oracle9i R2 Client installation, or manually relinkthe Oracle Client:
--手工relink Oracle client
Run:
cd $ORACLE_HOME/network/lib
make -f ins_net_client.mk nnfgt.o
make -f ins_net_client.mk ntcontab.o
make -f ins_net_client.mk client_sharedlib
make -f ins_net_client.mk install
cd $ORACLE_HOME/sqlplus/lib
make -f ins_sqlplus.mk install
cd $ORACLE_HOME/bin
relink client
2.2 Ins_net_client.Mk 问题二
MOS 文章:
Installing OracleAS on a Linux 64bit: Errorin invoking target ntcontab.o of makefile ins_net_client.mk [ID 400301.1]
2.2.1 Symptoms
Error ininvoking target 'ntcontab.o' of makefile'/myoraclehome/network/lib/ins_net_client.mk'
2.2.2 Changes
2.2.3 Cause
There were 2 issues preventing thecompilation:
1) The /usr/bin/gcc compiler need to bewrapped to compile in 32bit mode and pick up the crt1.o file
2) The /usr/lib/crt1.o file was missing.
2.2.4 Solution
Firstly review the advice given in:
Note:377359.1 HandlingOracle Application Server 10g Relinking Errors on Redhat and Suse 64-bit Linux
If the advice in this note does not lead to a solution,try the work-around steps given below.
#!/bin/sh
exec /usr/bin/gcc32 -m32 -static -libgcc -B/usr/lib/ "$@"
#!/bin/sh
exec /usr/bin/gcc33 -m32 -static -libgcc -B/usr/lib/ "$@"
2) Install the glibc-devel-2.3.4-2.25(32bit) RPM and verify you have /usr/lib/crt1.o afterwards
4) Retry the failed relink and continue theinstallation.
2.3 ins_ctx.mk 问题
Error in Invoking Target 'Install' of Makefile $ORACLE_HOME/ctx/lib/ins_ctx.mk [ID 362285.1]
2.3.1 Symptoms
$ORACLE_HOME/bin/ctxhx fails to relink witherror
/usr/bin/ld: cannot find -lgcc_s_32
2.3.2 Cause
Missing required 32bit RPMs for:
libgcc
Per :
Note851598.1 Linux OS Requirements Reference List for Database Server
2.3.3 Solution
1. Check if you have the missing RPMinstalled. For example:
rpm -qa --queryformat"%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})/n" | grep libgcc
libgcc-4.1.2-48.el5 (x86_64) <<<64bit version
libgcc-4.1.2-48.el5 (i386) <<<32bit version
2. Install any missing RPM's per:
Note851598.1 Linux OS Requirements Reference List for Database Server
In this case libgcc-4.1.2-48.el5 (i386) <<<32bit version was missing.
Note131321.1 How to Relink Oracle Database Software on UNIX/LINUX
% relink all > /tmp/relink.txt2>&1
4. Check relink.txt for errors
三.Relink Oracle Database 说明
How to Relink Oracle Database Software on UNIX [ID 131321.1]
3.1 背景说明
Applicationsfor UNIX are generally not distributed as complete executables.
3.1.1 在以下情况下会自动进行Relink
Relinking occurs automatically under thesecircumstances:
(1)An Oracle product has beeninstalled with an Oracle provided installer.
(2)An Oracle patch set has beenapplied via an Oracle provided installer.
3.1.2 The following information has been added to the 'Certify' section of MyOracleSupport:
3.1.3 Relinking Oraclemanually is suggested under the following circumstances(even though the OSvendor may not require it):
3.2 Relinking Oracle
This note shouldnot be used for 11GR2 GI/ASM home's (GI: Grid Infrastructure).
You shouldrather refer to clusterware admin guide and/orHow to Check WhetherOracle Binary/Instance is RAC Enabled and Relink Oracle Binary in RAC.
Doing this will ensure that $ORACLE_HOME is set correctly in your currentenvironment.
If on SCO UNIXware with:
-----------------------
If using 32bit(pre 9i) Oracle,
- SetLD_LIBRARY_PATH=$ORACLE_HOME/lib
Oracle 7.3.X, 8.0.X, 8.1.X, 9.X.X,10.X.X or 11.x.x:
- Set LD_LIBRARY_PATH to include$ORACLE_HOME/lib
This must return 022. If it does not,set umask to 022.
--Relink 前的重要说明
Oracle 7.3.x
------------
Forexecutables: oracle, exp, imp, sqlldr,tkprof
% cd $ORACLE_HOME/rdbms/lib
% make -f ins_rdbms.mk install
Forexecutables: svrmgrl, svrmgrm
% cd $ORACLE_HOME/sqlplus/lib
% make -f ins_sqlplus.mk install
Forexecutables: dbsnmp, oemevent, oratclsh
% cd $ORACLE_HOME/network/lib
% make -f ins_agent.mk install
Forexecutables: names, namesctl
% cd $ORACLE_HOME/network/lib
% make -f ins_names.mk install
Forexecutables: tnslsnr, lsnrctl, tnsping,csmnl, trceval, trcroute
% cd $ORACLE_HOME/network/lib
% make -f ins_network.mk install
% cd $ORACLE_HOME/rdbms/lib
% make -f ins_rdbms.mk install
% cd $ORACLE_HOME/sqlplus/lib
% make -f ins_sqlplus.mk install
For executables: dbsnmp, oemevent, oratclsh, libosm.so
% cd $ORACLE_HOME/network/lib
% make -f ins_oemagent.mk install
Forexecutables: tnslsnr, lsnrctl, namesctl,names, osslogin, trcasst, trcroute
% cd $ORACLE_HOME/network/lib
% make -f ins_network.mk install
在Oracle 8.1 之前的版本,必须手工的relink 相关的工具,在8.1 之后,Oracle 提供了Relink 脚本,其可以帮助我们relink 大部分的工具。
--可以使用relink命令关联大部分可执行文件:
11.2.x special instructions (11.2.0.1,11.2.0.2 etc...)
--Oracle 11.2.X中的特殊指令
--------------------------------------
--从Oracle 11.2.x 开始,relink 只接收all 参数。
See in C) the traditional 'make' commands that can be run independently.
--为了脚本的兼容性,即使在11gR2中执行relink all,实际上也是使用runInstaller的方法来进行relink。
One exception in11.2.0.1: Sun Sparc Solaris which for scan of *.mk and make are still in use.
--唯一例外的情况是在Sun Sparc Solaris下的11.2.0.1.其还是使用扫描*.mk和make命令。
C) Running the 'make' commands independently:
Forexecutables: oracle, exp, imp, sqlldr,tkprof, mig, dbv, orapwd, rman, svrmgrl, ogms, ogmsctl
% cd $ORACLE_HOME/rdbms/lib
% make -f ins_rdbms.mk install
% cd $ORACLE_HOME/bin
% chmod 6751 oracle
% cd $ORACLE_HOME/sqlplus/lib
% make -f ins_sqlplus.mk install
Forexecutables: isqlplus (Oracle9i and higher versions)
% cd $ORACLE_HOME/sqlplus/lib
% make -f ins_sqlplus.mkinstall_isqlplus
Forexecutables: dbsnmp, oemevent, oratclsh
% cd $ORACLE_HOME/network/lib
% make -f ins_oemagent.mk install
# cd $ORACLE_HOME/bin
# chown root dbsnmp
# chmod 6750 dbsnmp
@ References: note:233559.1and bug:2858326
Forexecutables: names, namesctl
% cd $ORACLE_HOME/network/lib
% make -f ins_names.mk install
Forexecutables: osslogin, trcasst,trcroute, onrsd, tnsping
% cd $ORACLE_HOME/network/lib
% make -f ins_net_client.mk install
Forexecutables: tnslsnr, lsnrctl
% cd $ORACLE_HOME/network/lib
% make -f ins_net_server.mk install
For executablesrelated to ldap (for example Oracle Internet Directory):
% cd $ORACLE_HOME/ldap/lib
% make -f ins_ldap.mk install
3.3 How to Tell if Relinking Was Successful:
转载于:https://www.cnblogs.com/DataArt/p/10141722.html
Oracle 单实例 Relink Binary Options 说明相关推荐
- Oracle单实例通过DG迁移至RAC集群(Oracle 11g 超详细文档)
实验:Oracle单实例通过DG迁移至RAC集群(Oracle 11g 超详细文档) 步骤1:Oracle单实例搭建 1. 系统环境检查 2. 创建用户.组,配置环境变量.安装目录 3. 安装Orac ...
- 单实例oracle ha,Oracle单实例启动多个实例
Oracle单实例启动多个实例 多实例运行,单个实例就是一个数据库!一个数据库对应多个实例是RAC. Linux建立oracle的实例步骤: 1.在linux服务器的图形界面下,打开一个终端,输入如下 ...
- 新建oracle数据库 环境查询,Oracle单实例数据库迁移到Oracle RAC 环境之(2)--实施篇...
Oracle单实例数据库迁移到Oracle RAC 环境之(2)--实施篇 系统环境: 操作系统:RedHat EL55 Oracle : Oracle 11.2.0.1.0 集群软件:Oracle ...
- ORACLE单实例ADG搭建
ORACLE单实例ADG搭建 1.必要配置 1.1 查看是否开启归档 1.2 启库开启强制日志 1.3 添加standby logfile 2.修改主库参数 2.1 使用当前的spfile创建pfil ...
- 如何将 Oracle 单实例数据库转换为RAC数据库?
墨墨导读:本文来自墨天轮用户投稿,文章详述安装一套RAC环境,并把单实例数据库通过通过rman还原到这个环境(通常如果是生产环境,我们会搭建从RAC到单实例数据库的ADG,以减少停机时间). 单实例数 ...
- Oracle 单实例 迁移到 RAC 实例 -- 使用RMAN 异机恢复
Oracle 官网有关单实例迁移到RAC的一个步骤说明: How to Convert 10g Single-Instance database to 10g RAC using Manual Con ...
- azure云上 在线将oracle单实例扩展成oracle dataguard高可用集群的详细过程
<->环境准备 线上单实例oracle11g(PD1),已经运行了一段时间,属于单点实例,按照云上一不小心发生的vm文件故障来看,这个很危险,所以需要做高可用. 所以今天 ...
- oracle单实例通过dataguard迁移到RAC 转
原文链接,防止链接过去,内容拷贝如下:http://www.bkjia.com/oracle/949585.html One instance primary to RAC standbyDataGu ...
- Oracle单实例下oracle数据库从文件系统迁移到ASM上
第一步:启动ASM实例(+ASM) [oracle@oracle ~]$ export ORACLE_SID=+ASM [oracle@oracle ~]$ sqlplus / as sysdba S ...
最新文章
- apache的prefork和workder模式
- Freebsd下如何安装配置ssh
- SQLServer数据表的创建
- 体验XHProf(linux版本)
- CentOS系统配置solr
- ArcGIS删除地图投影坐标,只保留地理坐标
- [Leetcode][第201题][JAVA][数字范围按位与][位运算][Brian Kernighan]
- NOIP2014 uoj20解方程 数论(同余)
- vue3中setup()函数的使用一
- 抽象类的成员特点 学习笔记
- UIWebView的离线缓存
- WPF捕获事件即使这个事件被标记为Handled
- 计算机二级c语言f7保存,国家计算机二级c语言上机真题
- 如何免费自动将邮件发送到多个邮件地址 - 自动邮件发送器使用教程
- 解读测试能力素质模型(Job Model)
- EV SSL证书和普通证书的区别
- bootstrap文档第一遍
- 中秋佳节,我想给粉丝们送个礼物,真诚祝福(已送出,恭喜下面这位粉丝)
- 微信小游戏《飞机打方块》源码分享
- CSS gradient渐变之webkit核心浏览器下的使用