oracle在linux安装报错问题
⾃⼰在CentOS安装oracle 11g报如下错误,参考blog.sina/s/blog_7249058501014az8.html
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
linux系统安装步骤csdnlibgcc-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/oraInventor
y/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 把需要的包全部打上之后,再次安装就没有问题了。
⼆.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 rena
med 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
While installingthe Application Server 10.1.2.0.2 on a Linux 64 bit distribution (e.g.RedHat 4.0 64bit) the following error may be raised in a pop up windowwhen the Universal Installer starts linking the binaries:
Error ininvoking target 'ntcontab.o' of makefile'/myoraclehome/network/lib/ins_net_client.mk'
The error may beraised by any installation type (Infrastructure, Metadata Repository, IdentityManagement, Midtiers).
2.2.2 Changes
Toinstall the Application Server 10.1.2.0.2 in a Linux 64bit O/S we need totailor the environment so the gcc compiler works as a 32bitcompiler.  By default the gcc compiler bundled with the Linux x86 64bitdistributions works in 64bit mode.
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.

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。