静默安装Oracle11.2.0.2 for Oracle Linux6 x86_64

以前安装过Linux64位的Oracle11.2.0.1,这次在新的Linux6上安装11.2.0.2,还采样静默安装方式,差别还是比较大的。

Enterprise Linux 5 X86-64上安装Oracle11.2http://yangtingkun.itpub.net/post/468/491071

 

 

首先还是检查系统是否满足安装需要,这里只列出结果,详细含义可以参考上面给出的链接。

[root@Oracle111 ~]# grep MemTotal /proc/meminfo
MemTotal:        8178860 kB
[root@Oracle111 ~]# grep SwapTotal /proc/meminfo
SwapTotal:       8388600 kB
[root@Oracle111 ~]# df -h /dev/shm
Filesystem            Size  Used Avail Use% Mounted on
tmpfs                 3.9G  260K  3.9G   1% /dev/shm
[root@Oracle111 ~]# uname -m
x86_64
[root@Oracle111 ~]# df -k /tmp
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda7              8063408    149104   7504704   2% /tmp
[root@Oracle111 ~]# df -k /opt
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda3             20158332   7384532  11749800  39% /opt
[root@Oracle111 ~]# df -k /data1
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda2             80634688   5584236  70954452   8% /data1
[root@Oracle111 ~]# more /etc/issue
Oracle Linux Server release 6.0
Kernel \r on an \m

[root@Oracle111 ~]# cat /proc/version
Linux version 2.6.32-71.el6.x86_64 (mockbuild@ca-build19.us.oracle.com) (gcc version 4.4.4 20100726 (Red Hat 4.4.4-13) (GCC) ) #1 SMP Wed Dec 15 12:36:54 EST 2010
[root@Oracle111 ~]# uname -r
2.6.32-71.el6.x86_64

检查系统包,由于Oracle官方文档还没有Linux6上所需的包,只能按照Linux5上的包进行检查:

binutils-2.17.50.0.6
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-common-2.5
glibc-devel-2.5
glibc-headers-2.5
libaio-0.3.106
libgcc-4.1.2
libstdc++-4.1.2
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2

需要创建oracle用户和oinstalldba组,这些与其他版本的安装没有任何的区别,这里就不重复介绍了。

对于Oracle安装来说,基本上已经不需要设置什么环境变量了,大部分环境变量的内容都可以在安装的时候指定,除了DISPLAY信息。而当前采样默认按照,因此也不需要DISPLAY环境变量。

更改/etc/security/limits.conf文件,添加下面的内容:

oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

编辑/etc/pam.d/login文件,添加下面的内容:

session    required     pam_limits.so

OracleLinux系统自然会对Oracle数据库支持的比较好,因此系统内核参数一般情况下不需要设置,检查可以发现默认情况下/etc/sysctl.conf中设置的值是符合Oracle推荐值的,因此这个步骤可以跳过。

由于11.2中修改了responseFile方式对应参数的要求,像以前那样仅指定需要的参数将会导致安装的错误,于是采样了直接命令行方式提供参数的方法。

由于11.2.0.2是可以直接安装的补丁,因此进入database目录后,直接开始安装:

oracle@Oracle111 database]$ ./runInstaller -silent -debug -force \
> FROM_LOCATION=/data1/database/stage/products.xml \
> oracle.install.option=INSTALL_DB_SWONLY \
> UNIX_GROUP_NAME=oinstall \
> INVENTORY_LOCATION=/opt/oracle/oraInventory \
> ORACLE_HOME=/opt/oracle/product/11.2.0/db \
> ORACLE_HOME_NAME="Oracle111" \
> ORACLE_BASE=/opt/oracle \
> oracle.install.db.InstallEdition=EE \
> oracle.install.db.isCustomInstall=false \
> oracle.install.db.DBA_GROUP=dba \
> oracle.install.db.OPER_GROUP=dba \
> DECLINE_SECURITY_UPDATES=true
Unable to get absolute path for /data1/database/stage/prereq
: No such file or directory
Unable to get absolute path for /opt/oracle/oraInventory
: No such file or directory
Starting Oracle Universal Installer...

Checking Temp space: must be greater than 120 MB.   Actual 7120 MB    Passed
Checking swap space: must be greater than 150 MB.   Actual 8191 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-02-16_11-29-01PM. Please wait ...Archive:  ../stage/Components/oracle.jdk/1.5.0.24.08/1/DataFiles/filegroup5.jar
  inflating: /tmp/OraInstall2011-02-16_11-29-01PM/jdk/THIRDPARTYLICENSEREADME.txt 
  inflating: /tmp/OraInstall2011-02-16_11-29-01PM/jdk/ENTITLEMENT 
  inflating: /tmp/OraInstall2011-02-16_11-29-01PM/jdk/Perpetual_Entitlement_Desktop 
  inflating: /tmp/OraInstall2011-02-16_11-29-01PM/jdk/COPYRIGHT 
  inflating: /tmp/OraInstall2011-02-16_11-29-01PM/jdk/.manifest 
  inflating: /tmp/OraInstall2011-02-16_11-29-01PM/jdk/LICENSE 
.
.
.
plugin id = ADR Setup Utility
oracle home = /opt/oracle/product/11.2.0/db
top level comp name = oracle.rdbms.util
comp name = oracle.rdbms.util
action name = configuration
step index = 0
micro step index = 0
command with arg = 
 msg =
OiifbConfigController::setting the status for UI install configuration
OiifbConfigController::sMsg 1 = 
sMsg 2 = 
sMsg3 = 
silent Message =
OiifbConfigController::MyProgress: Action end event received
OiifbConfigController::MyProgress: Action status = PERFORMED_SUCCESS
OiifbConfigController:: actionEnd event received from config fw , actionID.getSelfID() = configuration action State = 0
OiifbConfigController::Action state is TOOLS SUCCEEDED
OiifbConfigController::It is not a silent install and not a deinstall session,
 so trying to have the UI updation done by calling GraphicConfigPageHandler.handleActionEnd()
OiifbConfigController::Trying to close the output stream
OiifbConfigController::launchAggregatesForAdditionalUtil end
OiifbConfigController:: launchConfigToolsForAdditionalUtilityExecution end with return value0

As a root user, execute the following script(s):
        1. /opt/oracle/oraInventory/orainstRoot.sh
        2. /opt/oracle/product/11.2.0/db/root.sh

Successfully Setup Software.
copying /opt/oracle/oraInventory/logs/oraInstall2011-02-16_11-33-14PM.err to /opt/oracle/product/11.2.0/db/cfgtoollogs/oui/oraInstall2011-02-16_11-33-14PM.err
copying /opt/oracle/oraInventory/logs/oraInstall2011-02-16_11-33-14PM.out to /opt/oracle/product/11.2.0/db/cfgtoollogs/oui/oraInstall2011-02-16_11-33-14PM.out
copying /opt/oracle/oraInventory/logs/installActions2011-02-16_11-33-14PM.log to /opt/oracle/product/11.2.0/db/cfgtoollogs/oui/installActions2011-02-16_11-33-14PM.log

安装完成,下面用root执行两个脚本:

[root@Oracle111 opt]# /opt/oracle/oraInventory/orainstRoot.sh
Changing permissions of /opt/oracle/oraInventory.
Adding read,write permissions for group.
Removing read,write,execute permissions for world.

Changing groupname of /opt/oracle/oraInventory to dba.
The execution of the script. is complete.
[root@Oracle111 opt]# /opt/oracle/product/11.2.0/db/root.sh
Check /opt/oracle/product/11.2.0/db/install/root_Oracle111_2011-02-16_23-36-38.log for the output of root script

可以看到,对于静默安装,执行root.sh的结果也不一样,执行结果输出到文件中,检查这个文件的内容:

[root@Oracle111 opt]# more /opt/oracle/product/11.2.0/db/install/root_Oracle111_2011-02-16_23-36-38.log

Running Oracle 11g root script...

The following environment variables are set as:
    ORACLE_OWNER= oracle
    ORACLE_HOME=  /opt/oracle/product/11.2.0/db

Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root script.
Now product-specific root actions will be performed.
Finished product-specific root actions.

检查安装版本:

[oracle@Oracle111 database]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.2.0 Production on Wed Feb 16 23:37:08 2011

Copyright (c) 1982, 2010, Oracle.  All rights reserved.

Connected to an idle instance.

SQL> exit
Disconnected

至此,silent安装数据库过程完成。

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/4227/viewspace-688403/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/4227/viewspace-688403/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值