Heim >Datenbank >MySQL-Tutorial >Oracle 单实例 Relink Binary Options 说明

Oracle 单实例 Relink Binary Options 说明

WBOY
WBOYOriginal
2016-06-07 17:17:011077Durchsuche

帮朋友在CentOS上安装一个10g的Oracle,结果朋友的CentOS版本是6.2的版本,最新的一个版本,不过Linux上基本都差不多,所以按照以

一.引入问题

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

64位 Linux平台下Oracle安装文档

如何搭建一个数据库服务器平台

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 说明

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

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

Oracle Linux6 下Oracle RDBMS Server 11gR2 Preinstall RPM 包说明

在Oracle Linux5中参考:

Oracle ValidatedConfigurations 安装使用 说明

linux

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn