网站推广包括哪些,vs手表官网,系统管理包括哪些内容,上海网站建设shwzzz一.引入问题帮朋友在CentOS上安装一个10g的Oracle#xff0c;结果朋友的CentOS版本是6.2的版本#xff0c;最新的一个版本#xff0c;不过Linux上基本都差不多#xff0c;所以按照以前的步骤#xff0c;迅速的操作起来#xff0c;结果遇到N多以前没有遇到过的错误。安装被…一.引入问题帮朋友在CentOS上安装一个10g的Oracle结果朋友的CentOS版本是6.2的版本最新的一个版本不过Linux上基本都差不多所以按照以前的步骤迅速的操作起来结果遇到N多以前没有遇到过的错误。安装被迫中断尝试忽略之前的错误又会遇到其他的错误。1.1ins_ctx.mk 问题[oraclexd logs]$ tail installActions2012-05-05_01-20-00PM.logINFO: collect2: ld returned 1 exit statusINFO: make: *** [ctxhx] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking targetinstall 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.logfordetails.Exception Severity: 1[oraclexd logs]$ yum install gccLoaded plugins: fastestmirror,refresh-packagekit, securityYou need to be root to perform thiscommand.[oraclexd logs]$ rpm -qa--queryformat%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n | greplibgcclibgcc-4.4.6-3.el6 (i686)libgcc-4.4.6-3.el6 (x86_64)1.2ins_rdbms.mk 问题[oraclexd logs]$ tail installActions2012-05-05_01-20-00PM.logINFO: make[1]: Leavingdirectory/u01/app/oracle/product/10.2.0/db_1/rdbms/libINFO: make: *** [extproc32] Error 2INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking targetall_no_orcl ofmakefile/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.logfordetails.Exception Severity: 11.3ins_emdb.mk 问题[oraclexd logs]$ tail installActions2012-05-05_01-20-00PM.logINFO: make[1]: Leaving directory/u01/app/oracle/product/10.2.0/db_1/sysman/libINFO: make: *** [nmccollector] Error 2INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking targetcollector ofmakefile/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.logfordetails.Exception Severity: 11.4ins_net_client.mk 问题[oraclexd logs]$tailinstallActions2012-05-05_01-51-59PM.logINFO:/usr/bin/ar:/u01/app/oracle/product/10.2.0/db_1/lib32/nnfgt.o: Nosuch file or directoryINFO: make: *** [nnfgt.o] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking targetnnfgt.o ofmakefile/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.logfordetails.Exception Severity: 11.5ins_precomp.mk 问题[oraclexd logs]$tailinstallActions2012-05-05_01-51-59PM.logINFO: /bin/chmod: cannotaccess/u01/app/oracle/product/10.2.0/db_1/precomp/lib/proc: Nosuch file ordirectoryINFO: make:***[/u01/app/oracle/product/10.2.0/db_1/precomp/lib/proc] Error1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking targetrelink ofmakefile/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.logfordetails.Exception Severity: 11.6ins_plsql.mk 问题[oraclexd logs]$tailinstallActions2012-05-05_01-51-59PM.logcollect2: ld returned 1 exit statusINFO: make: *** [wrap] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking targetinstall ofmakefile/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.logfordetails.Exception Severity: 11.7ins_net_server.mk 问题[oraclexd logs]$tailinstallActions2012-05-05_01-51-59PM.logcollect2: ld returned 1 exit statusINFO: make: *** [tnslsnr] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking targetinstall ofmakefile/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.logfordetails.Exception Severity: 11.8ins_nau.mk 问题[oraclexd logs]$tailinstallActions2012-05-05_01-51-59PM.logINFO: ld returned 1 exit statusINFO: make: *** [oklist] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking targetioklist iokinitiokdstry ofmakefile/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.logfordetails.Exception Severity: 11.9ins_ldap.mk 问题[oraclexd logs]$tailinstallActions2012-05-05_01-51-59PM.logcollect2: ld returned 1 exit statusINFO: make: *** [ldapadd] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking targetclientonlyinstall ofmakefile/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.logfordetails.Exception Severity: 11.10ins_srvm.mk 问题[oraclexd logs]$tailinstallActions2012-05-05_01-51-59PM.logINFO: ld returned 1 exit statusINFO: make: *** [rawutl] Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileExceptionException String: Error in invoking targetinstall ofmakefile/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.logfordetails.Exception Severity: 11.11ins_has.mk 问题[oraclexd logs]$tailinstallActions2012-05-05_01-51-59PM.logcollect2: ld returned 1 exit statusINFO: make: ***[/u01/app/oracle/product/10.2.0/db_1/racg/lib/racgmain]Error 1INFO: End output from spawned process.INFO: ----------------------------------INFO: Exception thrown from action: makeException Name: MakefileException因为之前没有在CentOS 6.2上安装过Oracle所以开始也是争对具体情况去分析饶了一圈之后最终定位是安装之前少包了才导致在安装过程中一些BinaryOptions不能进行link。用yum 把需要的包全部打上之后再次安装就没有问题了。这里要清楚一个概念就是Binary Options, 其就是Oracle 的组件我们在把Oracle安装到系统上时会对这些组件进行一个link的操作我们这里因为少了包导致不能进行link。这次是太大意了安装之前没有去检查包是否安装全了因为根据以往的经验把没有的包打上就可以了没想到还有其他的包少了。所以操作中务必小心要按照文档步骤来。其实在Linux6平台下可以使用oracle-rdbms-server-11gR2-preinstall包来操作这个包会帮我们解决很多问题包括前期包的依赖性和相关的参数配置工作关于该包的使用具体参考在Oracle Linux5中参考二.MOS上部分解决方法对第一部分列出的问题这里从MOS上摘取2个的解决方案。2.1Ins_net_client.Mk 问题一MOS 文章Error In Invoking Target Ntcontab.o OfMakefileIns_net_client.Mk [ID 341621.1]2.1.1SymptomsA popuperror occurs during theinstallation 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 makefileins_net_client.mk2.1.2CauseExpected defaultSun Solaris installed utilities (from SunPackages) not present in /usr/ccs/bindirectory.Instead thefollowing utilities were symbolically linked to otherprovider (packaged)utilities and/or renamed in the /usr/ccs/bindirectory:/usr/ccs/bin/ar was symbolically linked to/software/binutils/bin/ar(original ar wasmoved ot a new name)/usr/ccs/bin/as was moved to a new name/usr/ccs/bin/ld was symbolically linked tosoftware/binutils/bin/ld(original ld wasmoved ot a new name)Investigation with System Administrator.2.1.3 SolutionTo implement the solution, please executethe followingsteps:1. Request the System Administrator remove the symbolic links andrestore theexpected default Sun Solaris installed utilities (atleast long enough tocomplete the Oracle Client installation andrelinking.2. Once in place, run the Oracle9i R2 Client installation, ormanually relinkthe Oracle Client:--手工relink OracleclientRun:cd $ORACLE_HOME/network/libmake -f ins_net_client.mk nnfgt.omake -f ins_net_client.mk ntcontab.omake -f ins_net_client.mk client_sharedlibmake -f ins_net_client.mk installcd $ORACLE_HOME/sqlplus/libmake -f ins_sqlplus.mk installcd $ORACLE_HOME/binrelink client2.2Ins_net_client.Mk 问题二MOS 文章Installing OracleAS on a Linux 64bit: Errorin invoking targetntcontab.o of makefile ins_net_client.mk [ID 400301.1]2.2.1SymptomsWhile installingthe ApplicationServer 10.1.2.0.2 on a Linux 64 bit distribution(e.g.RedHat 4.0 64bit) the following error may beraised in a pop up windowwhen the UniversalInstaller starts linking the binaries:Error ininvoking target ntcontab.o ofmakefile/myoraclehome/network/lib/ins_net_client.mkThe error may beraised by any installation type (Infrastructure,Metadata Repository, IdentityManagement, Midtiers).2.2.2ChangesToinstall the Application Server 10.1.2.0.2 ina Linux 64bit O/S we need totailor the environment sothe gcc compiler works as a32bitcompiler. By default the gcc compilerbundled with the Linux x86 64bitdistributions works in 64bitmode.2.2.3CauseThere were 2 issues preventing thecompilation:1) The /usr/bin/gcc compiler need to bewrapped to compile in32bit mode and pick up the crt1.o file2) The /usr/lib/crt1.o file was missing.2.2.4SolutionFirstly review the advice given in:Note:377359.1 HandlingOracleApplication Server 10g Relinking Errors on Redhat and Suse 64-bitLinuxIf the advice in this note does not lead to a solution,try thework-around steps given below.1) Create ashell script/usr/bin/gcc containing the following entries. Note the scriptwilldiffer depending on the gcc version. Create a different shellscriptdepending on the gccNN version:For gcc32:#!/bin/shexec /usr/bin/gcc32 -m32 -static -libgcc -B/usr/lib/ $For gcc33:#!/bin/shexec /usr/bin/gcc33 -m32 -static -libgcc -B/usr/lib/ $For gcc34:#!bin/shexec /usr/bin/gcc34 -m32 -static -libgcc-B/usr/lib-L/usr/lib/gcc/x86_64-redhat-linux/3.4.3/32 $2) Install the glibc-devel-2.3.4-2.25(32bit) RPM and verify youhave /usr/lib/crt1.o afterwards3) Verify libdb.so.2 isinstalledin the system. The file should be there ifgnome-libs-1.4.1.2.90-34.1 (orlater) is installed:rpm -qa |grep gnome-libs Verifygnome-libs is thererpm -ql gnome-libs-1.4.1.2.90-34.1| greplibdb Verify libdb.so.2 isincluded in therpm4) Retry the failed relink and continue theinstallation.2.3ins_ctx.mk 问题MOS 文章Error in Invoking Target Install of Makefile$ORACLE_HOME/ctx/lib/ins_ctx.mk [ID 362285.1]2.3.1SymptomsWhile executingthe link phase of an Oracle Database Serverinstallation on LINUX x86-64 thefollowing erroroccurs:$ORACLE_HOME/bin/ctxhx fails to relink witherror/usr/bin/ld: cannot find -lgcc_s_322.3.2CauseMissing required 32bit RPMs for:libgccPer :Note851598.1 Linux OSRequirements Reference List for Database Server2.3.3Solution1. Check if you have the missing RPMinstalled. For example:rpm -qa --queryformat%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n| grep libgcclibgcc-4.1.2-48.el5 (x86_64) 64bitversionlibgcc-4.1.2-48.el5 (i386) 32bit version2. Install any missing RPMs per:Note851598.1 Linux OSRequirements Reference List for Database ServerIn this case libgcc-4.1.2-48.el5 (i386) 32bit versionwas missing.3. Relink perNote131321.1 Howto Relink Oracle Database Software on UNIX/LINUXfor example:% relink all /tmp/relink.txt214. Check relink.txt for errors三.Relink OracleDatabase 说明MOS文章How to Relink Oracle Database Software on UNIX [ID 131321.1]3.1背景说明Applicationsfor UNIX are generally not distributed as completeexecutables.Oracle,like many application vendors who create products for UNIX,distributeindividual object files, library archives of objectfiles, and some sourcefiles which then get relinked at theoperating system level duringinstallation to create usableexecutables. This guarantees a reliableintegration with functions provided by the OSsystem libraries.UNIX平台下的应用通常不是作为一个完整的可执行文件来部署的。Oracle 分散部署单独的对象文件对象文件的library archives 和一些源文件然后在安装过程中在系统级别获取这些对象的link并用其创建可执行文件。3.1.1 在以下情况下会自动进行RelinkRelinking occurs automatically under thesecircumstances:(1)An Oracle product has beeninstalled with an Oracle providedinstaller.(2)An Oracle patch set has beenapplied via an Oracle providedinstaller.3.1.2 Thefollowing information has been added to the Certify section ofMyOracleSupport:General Notes For OracleDatabase - Enterprise Edition:O/S Information:The vendors guaranteeoperating systembinary compatibility; therefore, no reinstall orrelink of the Oracle software isrequired when upgrading theseoperating systems unless specifically statedotherwise.3.1.3Relinking Oraclemanually is suggested under the followingcircumstances(even though the OSvendor may not requireit):--在以下情况下需要手工的RelinkingOracle(1)An OS upgrade has occurred.(2)A change has been made to the OSsystemlibraries. This can occur duringthe applicationof an OS patch.(3)A new install failed during therelinking phase.(4)Individual Oracle executables coredump during initialstartup.(5)An individual Oracle patch has beenapplied (however, explicitrelink instructions are usually either included inthe README orintegrated into the patch install script)3.2Relinking Oracle注意事项This note shouldnot be used for 11GR2 GI/ASM homes (GI: GridInfrastructure).以下方法争对的是单实例如果是RAC参考How to Check Whether OracleBinary/Instance is RAC Enabled and Relink Oracle Binary in RAC [ID284785.1]手工Relink的步骤如下[Step 1] Log into theUNIX system as theOracle software owner:Typically this is the user oracle.[STEP 2] Verify that your$ORACLE_HOME isset correctly:For all Oracle Versions and Platforms, perform this basicenvironment checkfirst:% cd $ORACLE_HOME%pwd Doing this will ensure that $ORACLE_HOME is set correctly in yourcurrentenvironment.[Step 3] Verify and/or Configure theUNIXEnvironment for proper relinking:For all Oracle Versionsand UNIXPlatforms:The Platform specific environmentvariablesLIBPATH, LD_LIBRARY_PATH,SHLIB_PATHtypically are already set to includesystem library locations like/usr/lib. In most cases, youneed only check what they are set to first, then addthe$ORACLE_HOME/lib directory to them where appropriate.i.e.: %setenvLD_LIBRARY_PATH ${ORACLE_HOME}/lib:${LD_LIBRARY_PATH}(see note:131207.1How to Set UNIXEnvironment Variables for help with setting UNIXenvironment variables)If on AIX with:--------------NOTE: Beforerelinking, after stopping all required processes,issue thefollowingas root to detach all files frommemory that are not attached to anactive process:# /usr/sbin/slibcleanOracle 7.3.X:- Set LIBPATH to include$ORACLE_HOME/libOracle8.0.X:- Set LIBPATH to include$ORACLE_HOME/lib- Set LD_LIBRARY_PATH to include$ORACLE_HOME/lib and$ORACLE_HOME/network/lib (Requiredwhen using Oracle products thatuse Java)- Set LINK_CNTRL to L_PTHREADS_D7if using AIX 4.3. (oslevelverifies OSversion)Oracle 8.1.X,9.X.X, 10.X.X or 11.x.x:- For 8.1.5, set LINK_CNTRL toL_PTHREADS_D7- If not 8.1.5, ensure thatLINK_CNTRL is not set- Set LIBPATH to include$ORACLE_HOME/libIf on DATA GENERAL AVIION (DG)with:-----------------------------------Oracle 7.3.X or 8.0.X:- Set LD_LIBRARY_PATH to include$ORACLE_HOME/lib- ensure TARGET_BINARY_INTERFACEis unsetOracle 8.1.X:- Set LD_LIBRARY_PATHtoinclude $ORACLE_HOME/lib:$ORACLE_HOME/JRE/lib/PentiumPro/native_threadsIf on HP-UX with:----------------Oracle 7.3.X,8.0.X, 8.1.X;- SetSHLIB_PATH to $ORACLE_HOME/libIf using 64bit 8i Oracle, also- Set LD_LIBRARY_PATH to$ORACLE_HOME/lib64- ensure LPATH is unsetOracle 9.X.X,10.X.X or 11.x.x;- ensure LPATH is unsetIf on NCR with:--------------Oracle7.3.X, 8.0.X or 8.1.X:- Set LD_LIBRARY_PATH to include$ORACLE_HOME/lib:/usr/ccs/libIf on SCO UNIXware with:-----------------------Oracle 7.3.Xor 8.0.X:- Set LD_LIBRARY_PATH to include$ORACLE_HOME/libOracle8.1.X:- Set LD_LIBRARY_PATH to include$ORACLE_HOME/lib:$ORACLE_HOME/JRE/lib/x86at/native_threadsIf on SGI with:--------------32bit Oracle7.3.X or 8.0.X:- Set LD_LIBRARY_PATH to include$ORACLE_HOME/lib- Set SGI_ABI to -32 64bit Oracle8.0.X or 8.1.X (8i isonly available in 64bit):- Set LD_LIBRARY_PATH to include$ORACLE_HOME/lib- Set SGI_ABI to -64- If one does not already exist,create the file compiler.defaultsandset the COMPILER_DEFAULTS_PATHvariable:In the Oracle software owners $HOMEdirectory, create a file calledcompiler.defaults: