先chmod 777 /opt 然后下面几个配置文件要按顺序执行
装完以后可以吧 /opt属性改回来
db.rsp文件,这个文件通过oracle的安装文件夹下的./runInstaller -silent -responseFile来调用
这个文件只安装数据库不生成实例(redhat 6加入-ignoreSysPrereqs参数可以跳过操作系统检查)
======================================================
RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME="oinstall"
FROM_LOCATION="../stage/products.xml"
NEXT_SESSION_RESPONSE=
ORACLE_HOME="/opt/oracle/app/product/10/db"
ORACLE_HOME_NAME="OraDbHome1"
TOPLEVEL_COMPONENT={"oracle.server","10.2.0.1.0"}
DEINSTALL_LIST={"oracle.server","10.2.0.1.0"}
SHOW_SPLASH_SCREEN=false
SHOW_WELCOME_PAGE=false
SHOW_NODE_SELECTION_PAGE=false
SHOW_SUMMARY_PAGE=false
SHOW_INSTALL_PROGRESS_PAGE=true
SHOW_CONFIG_TOOL_PAGE=false
SHOW_XML_PREREQ_PAGE=false
SHOW_ROOTSH_CONFIRMATION=true
SHOW_END_SESSION_PAGE=false
SHOW_EXIT_CONFIRMATION=false
NEXT_SESSION=false
NEXT_SESSION_ON_FAIL=false
SHOW_DEINSTALL_CONFIRMATION=false
SHOW_DEINSTALL_PROGRESS=false
RESTART_SYSTEM=false
RESTART_REMOTE_SYSTEM=false
REMOVE_HOMES=
ORACLE_HOSTNAME="oracle.lolita.com"
SHOW_END_OF_INSTALL_MSGS=true
CLUSTER_NODES=
COMPONENT_LANGUAGES={"en","zh_CN"}
INSTALL_TYPE="EE"
s_nameForDBAGrp="dba"
s_nameForOPERGrp="dba"
n_configurationOption=3
#禁用em
b_useDBControl=false
===============================================================
patch.rsp。这个是patch文件,这个patch是oracle最新的patch文件,通过patch文件夹下的./runInstall -silent -responseFile来调用。一般ptache的时候都会报错,这个错不是什么问题,加个参数force就可以了,例如./runInstaller -silent -force -responseFile /home/oracle/patch.rsp
================================================================
RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME="oinstall"
FROM_LOCATION=
NEXT_SESSION_RESPONSE=
ORACLE_HOME="/opt/oracle/app/product/10/db"
ORACLE_HOME_NAME="OraDbHome1"
TOPLEVEL_COMPONENT={"oracle.patchset.db","10.2.0.5.0"}
SHOW_SPLASH_SCREEN=false
SHOW_WELCOME_PAGE=false
SHOW_COMPONENT_LOCATIONS_PAGE=false
SHOW_CUSTOM_TREE_PAGE=false
SHOW_SUMMARY_PAGE=false
SHOW_INSTALL_PROGRESS_PAGE=true
SHOW_REQUIRED_CONFIG_TOOL_PAGE=false
SHOW_OPTIONAL_CONFIG_TOOL_PAGE=false
SHOW_CONFIG_TOOL_PAGE=false
SHOW_XML_PREREQ_PAGE=false
SHOW_RELEASE_NOTES=false
SHOW_END_OF_INSTALL_MSGS=true
SHOW_ROOTSH_CONFIRMATION=true
SHOW_END_SESSION_PAGE=false
SHOW_EXIT_CONFIRMATION=false
NEXT_SESSION=false
NEXT_SESSION_ON_FAIL=false
SHOW_DEINSTALL_CONFIRMATION=false
SHOW_DEINSTALL_PROGRESS=false
ACCEPT_LICENSE_AGREEMENT=true
RESTART_SYSTEM=
CLUSTER_NODES=
OUI_HOSTNAME=
REMOVE_HOMES=
COMPONENT_LANGUAGES={"en","zh_CN"}
MYORACLESUPPORT_USERNAME=
MYORACLESUPPORT_PASSWORD=
PROXY_HOST=
PROXY_PORT=
PROXY_USER=
PROXY_PWD=
SECURITY_UPDATES_VIA_MYORACLESUPPORT=
DECLINE_SECURITY_UPDATES=
COLLECTOR_UPGRADE=
COLLECTOR_IGNORE_CONFIGURATION=true
COLLECTOR_IGNORE_FAILURES=
COLLECTOR_USE_OBFUSCATED_PASSWORDS=
COLLECTOR_RESPONSE_FILE=
COLLECTOR_SUPPORTHUB_URL=
============================================================================
dbca.rsp这个是建实例的,直接用oracle用户使用dbca -silent -responseFile调用
============================================================================
[GENERAL]
RESPONSEFILE_VERSION = "10.0.0"
OPERATION_TYPE = "createDatabase"
[CREATEDATABASE]
GDBNAME = "gamedb"
SID = "gamedb"
TEMPLATENAME = "General_Purpose.dbc"
OBFUSCATEDPASSWORDS = FALSE
SYSPASSWORD = "mypass"
SYSTEMPASSWORD = "mypass"
STORAGETYPE=FS
DATAFILEDESTINATION = /opt/oracle/app/oradata
#RECOVERYAREADESTINATION=$ORACLE_BASE/flash_recovery_area
CHARACTERSET = "ZHS16GBK"
NATIONALCHARACTERSET= "AL16UTF16"
LISTENERS = "listener1"
MEMORYPERCENTAGE = "50"
DATABASETYPE = "MULTIPURPOSE"
=====================
MEMORYPERCENTAGE 指定SGA_TARGET和PGA_AGGREGATE_TARGET总值占系统物理内存百分比
redhat 6 x86_64下安装报告一堆错误
cat /home/oracle/app/oraInventory/logs/silentInstall2011-11-15_12-41-26PM.log
silentInstall2011-11-15_12-41-26PM.log
调用 makefile '/home/oracle/app/product/10/db/ctx/lib/ins_ctx.mk' 的目标 'install' 时出错。请参阅 '/home/oracle/app/oraInventory/logs/installActions2011-11-15_12-41-26PM.log' 以了解详细信息。
调用 makefile '/home/oracle/app/product/10/db/sysman/lib/ins_sysman.mk' 的目标 'agent nmo nmb' 时出错。请参阅 '/home/oracle/app/oraInventory/logs/installActions2011-11-15_12-41-26PM.log' 以了解详细信息。
调用 makefile '/home/oracle/app/product/10/db/rdbms/lib/ins_rdbms.mk' 的目标 'all_no_orcl' 时出错。请参阅 '/home/oracle/app/oraInventory/logs/installActions2011-11-15_12-41-26PM.log' 以了解详细信息。
调用 makefile '/home/oracle/app/product/10/db/sysman/lib/ins_emdb.mk' 的目标 'collector' 时出错。请参阅 '/home/oracle/app/oraInventory/logs/installActions2011-11-15_12-41-26PM.log' 以了解详细信息。
网上找没什么结果,就说缺包,直接从make log里找缺什么
cat /home/oracle/app/product/10/db/install/make.log | grep 错误
/usr/include/gnu/stubs.h:7:27: 错误:gnu/stubs-32.h:没有那个文件或目录
/usr/include/gnu/stubs.h:7:27: 错误:gnu/stubs-32.h:没有那个文件或目录
/usr/include/gnu/stubs.h:7:27: 错误:gnu/stubs-32.h:没有那个文件或目录
make: *** [ctxhx] 错误 1
make[1]: *** [/home/oracle/app/product/10/db/sysman/lib/libnmemso.so] 错误 1
make: *** [libnmemso] 错误 2
make[1]: *** [/home/oracle/app/product/10/db/rdbms/lib/extproc32] 错误 1
make: *** [extproc32] 错误 2
make[1]: *** [/home/oracle/app/product/10/db/sysman/lib/nmccollector] 错误 1
make: *** [nmccollector] 错误 2
看/usr/include/gnu/stubs.h
- #if __WORDSIZE == 32
-
# include <gnu/stubs-32.h>
-
#elif __WORDSIZE == 64
-
# include <gnu/stubs-64.h>
-
#else
-
# error "unexpected value for __WORDSIZE macro"
-
#endif
看来做判断的时候文件不存在也会报错- -
安装glibc-devel的i686版本后再安装就只报一个错了
cat /home/oracle/app/oraInventory/logs/silentInstall2011-11-15_01-09-03PM.log
silentInstall2011-11-15_01-09-03PM.log
调用 makefile '/home/oracle/app/product/10/db/sysman/lib/ins_emdb.mk' 的目标 'collector' 时出错。请参阅 '/home/oracle/app/oraInventory/logs/installActions2011-11-15_01-09-03PM.log' 以了解详细信息。
看下面文章(e论坛也有说这个打完补丁可以忽略)
看起来是10.2.0.1安装介质的BUG,那个snmccolm.o是IA32架构的。可以忽略,安装完成后打10.2.0.3补丁即可解决。
奇怪为什么我原来在redhat 5.4的64位环境就好像没出过这问题
|
redhat6.1 x86_64系列安装前先装上(显示不全换行了)
oracle安装前所需软件包参考
rpm -ivh compat-libstdc++-296-2.96-144.el6.i686.rpm compat-libstdc++-33-3.2.3-69.el6.i686.rpm libgcc-
4.4.5-6.el6.i686.rpm compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm
rpm -ivh glibc-2.12-1.25.el6.i686.rpm nss-softokn-freebl-3.12.9-3.el6.i686.rpm glibc-devel-2.12-
1.25.el6.i686.rpm
rpm -ivh compat-readline5-5.2-17.1.el6.* ncurses-libs-5.7-3.20090208.el6.i686.rpm
rpm -ivh libstdc++-4.4.5-6.el6.i686.rpm compat-db* libstdc++-devel-4.4.5-6.el6.i686.rpm
rpm -ivh libXp-1.0.0-15.1.el6.x86_64.rpm ksh-20100621-6.el6.x86_64.rpm