Oracle 单实例 Relink Binary Options 说明

企鹅博客
企鹅博客
企鹅博客
28565
文章
0
评论
2020年9月16日03:51:50 评论 3 views 6734字阅读22分26秒

一.引入问题

帮朋友在CentOS上安装一个10g的Oracle,结果朋友的CentOS版本是6.2的版本,最新的一个版本,不过Linux上基本都差不多,所以按照以前的步骤,迅速的操作起来,结果遇到N多以前没有遇到过的错误。安装被迫中断,尝试忽略之前的错误,又会遇到其他的错误。

64位 Linux平台下Oracle安装文档 http://www.linuxidc.com/Linux/2012-03/55758.htm

如何搭建一个数据库服务器平台 http://www.linuxidc.com/Linux/2011-09/42708.htm

1.1 ins_ctx.mk 问题

[[email protected] 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

 

[[email protected] logs]$ yum install gcc

Loaded plugins: fastestmirror,refresh-packagekit, security

You need to be root to perform thiscommand.

[[email protected] 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 问题 

[[email protected] 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 问题

[[email protected] 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 问题

[[email protected] 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 问题

[[email protected] 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 问题

[[email protected] 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 问题

[[email protected] 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 问题

[[email protected] 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 问题

[[email protected] 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 问题

[[email protected] 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 问题

[[email protected] 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://www.linuxidc.com/Linux/2012-07/66115.htm

这次是太大意了,安装之前没有去检查包是否安装全了,因为根据以往的经验,把没有的包打上就可以了,没想到还有其他的包少了。所以操作中务必小心,要按照文档步骤来。

其实在Linux 6平台下,可以使用oracle-rdbms-server-11gR2-preinstall包来操作,这个包会帮我们解决很多问题,包括前期包的依赖性和相关的参数配置工作,关于该包的使用,具体参考:

Oracle Linux6 下Oracle RDBMS Server 11gR2 Preinstall RPM 包说明 http://www.linuxidc.com/Linux/2012-04/58635.htm

继续阅读
weinxin
欢迎加入中国站长博客之家
本站的所有资源都会上传分享到博客之家,希望大家互相学习交流进步。
Oracle 过程中检查数据表存在与否 Linux-数据库

Oracle 过程中检查数据表存在与否

在过程中,尤其是每天执行的任务,通常要检查查询的数据表存在不存在,如果不存在则等待一段时间在进行执行,以下代码实现了这个功能,如果表不存在,抛出异常,交给异常处理代码,确保数据完整性 使用方法:p_C...
匿名

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: