日期:2014-05-16  浏览次数:20422 次

ORACLE10G 静默安装记录
第一步 oracle10g 依赖包检查:
32位Linux中:
rpm -q binutils compat-db compat-libstdc++-33 glibc glibc-devel glibc-headers gcc gcc-c++ libXp libstdc++ cpp make libaio ksh elfutils-libelf sysstat libaio libaio-devel setarch --qf '%{name}.%{arch}\n'|sort
64位Linux中:
rpm -q binutils compat-db compat-libstdc++-33 glibc glibc-devel glibc-headers gcc gcc-c++ libXp libstdc++ cpp make libaio ksh elfutils-libelf sysstat libaio libaio-devel setarch --qf '%{name}.%{arch}\n'|sort

第二步 创建oracle用户和组
因为root用户是不能安装oracle的,所以必须创建oracle用户。
$ groupadd oinstall
$ groupadd dba
$ mkdir -p /u01/app/oracle/product/10.2.0/db_1
$ useradd -g oinstall -G dba -d /oracle oracle
$ passwd oracle
$ chown -R oracle:oinstall /u01
$ chmod -R 775 /u01

第三步 静态安装
静态安装文件是预先设置好参数了,那么等oracle安装的时候要手工输入的都可以直接读取静态安装文件(当然是x界面的啦)。如果你用x界面的操作系统那么,按着界面提示一步步完成也是一样的。
把10201_database_linux32.zip文件解压后 得到database目录,

/home/oracle/database/response下有有enterprise.rsp、standard.rsp和custom.rsp三个应答文件,分别对应企业版、标准版和定制的安装。
我们以以enterprise.rsp为例:<Value Unspecified>基本上是要填的有些可以不填
UNIX_GROUP_NAME="oinstall"
ORACLE_HOME_NAME="hefaproduct"
ORACLE_HOME="/u01/app/oracle/product/10.2.0/db_1"
SHOW_INSTALL_PROGRESS_PAGE= true
SHOW_END_OF_INSTALL_MSGS= true
COMPONENT_LANGUAGES={"zh_CN"}
s_nameForDBAGrp= "dba"
s_nameForOPERGrp="dba"
INSTALL_TYPE="EE"
n_configurationOption=3
RESTART_SYSTEM=false
RESTART_REMOTE_SYSTEM=false
s_dbSid= "orcl"
s_dbRetChar="Unicode standard UTF-8 AL32UTF8"

ORACLE_HOME_NAME的值必须在/etc/hosts文件里配置,是主机名。

开始安装

换oracle用户登录:注意文件位置视自己刚刚修改的文件位置而定
./runInstaller -silent -ignoreSysPrereqs -responseFile /home/oracle/database/response/enterprise.rsp

Installation in progress (Mon Sep 21 23:37:00 CST 2009)
............................................................... 18% Done.
............................................................... 36% Done.
............................................................... 54% Done.
............................................................... 72% Done.
................                                                 76% Done.
Install successful
Linking in progress (Mon Sep 21 23:39:49 CST 2009)
Link successful
Setup in progress (Mon Sep 21 23:43:11 CST 2009)
..............                                                  100% Done.
Setup successful
End of install phases.(Mon Sep 21 23:43:20 CST 2009)
WARNING:A new inventory has been created in this session. However, it has not yet been registered as the central inventory of this system.
To register the new inventory please run the script '/u01/app/oracle/oraInventory/orainstRoot.sh' with root privileges.
If you do not register the inventory, you may not be able to update or patch the products you installed.
The following configuration scripts
/u01/app/oracle/product/10.2.0/db_1/root.sh
need to be executed as root for configuring the system. If you skip the execution of the configuration tools, the configuration will not be complete and the product wont function properly. In order to get the product to function properly, you will be required to execute the scripts and the configuration tools after exiting the OUI.
The installation of Oracle Database 10g was successful.(恭喜你成功了如果没这个提示就看看他说的日志继续修改下o