【oracle】静默安装oracle软件和数据库之一

oracle 的静默安装可以在无交互模式安装数据库,适合没有图形界面的情况下进行oracle 数据库软件的安装和数据库创建netca 的配置
本文对静默安装数据库软件进行技术介绍。执行静默安装需要一个响应文件oracle根据响应文件来进行默认安装。
静默安装的企业级版本的响应文件:
ee.rsp
RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME="oinstall"
FROM_LOCATION="/home/oracle/database/stage/products.xml"
ORACLE_BASE="/opt/app/oracle"
ORACLE_HOME="/opt/app/oracle/10.2/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_COMPONENT_LOCATIONS_PAGE="false"
SHOW_CUSTOM_TREE_PAGE="false"
SHOW_SUMMARY_PAGE="false"
SHOW_INSTALL_PROGRESS_PAGE="false"
SHOW_REQUIRED_CONFIG_TOOL_PAGE="false"
SHOW_CONFIG_TOOL_PAGE="false"
SHOW_RELEASE_NOTES="false"
SHOW_ROOTSH_CONFIRMATION="false"
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
COMPONENT_LANGUAGES={"en","zh_CN"}
CLUSTER_NODES=
INSTALL_TYPE="EE"
s_nameForDBAGrp="dba"
s_nameForOPERGrp="dba"
b_oneClick="false"
进行静默安装,执行如下语句:
oracle@RAC:/home/oracle/10201_database>./runInstaller -silent  -responseFile /home/oracle/10201_database/ee.rsp
Starting Oracle Universal Installer...
Checking installer requirements...
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2 Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-11-07_09-40-15PM. Please wait ...oracle@RAC:/home/oracle/10201_database>Oracle Universal Installer, Version 10.2.0.1.0 Production
Copyright (C) 1999, 2005, Oracle. All rights reserved.
You can find a log of this install session at:
/opt/app/oracle/oraInventory/logs/installActions2011-11-07_09-40-15PM.log.
oracle@RAC:/home/oracle/10201_database>................................................................................................... 100% Done.
Loading Product Information
...................................................................
oracle@RAC:/home/oracle/10201_database>.................................................. 100% Done.
Analyzing dependencies 
.........................................................
Starting execution of Prerequisites...
Total No of checks: 11
Performing check for CertifiedVersions
Checking operating system requirements ...
Expected result: One of redhat-3,redhat-4,SuSE-9
Actual Result: redhat-4
Check complete. The overall result of this check is: Passed
Check complete: Passed
=======================================================================
Performing check for Packages
Checking operating system package requirements ...
Checking for make-3.79; found make-1:3.81-3.el5.        Passed
Checking for binutils-2.15; found binutils-2.17.50.0.6-12.el5.  Passed
Checking for gcc-3.2; found gcc-4.1.2-46.el5.   Passed
Checking for libaio-0.3.96; found libaio-0.3.106-5.     Passed
Check complete. The overall result of this check is: Passed
Check complete: Passed
=======================================================================
Performing check for Kernel
Checking kernel parameters
Checking for semmsl=250; found semmsl=250.      Passed
Checking for semmns=32000; found semmns=32000.  Passed
Checking for semopm=100; found semopm=200.      Passed
Checking for semmni=128; found semmni=200.      Passed
Checking for shmmax=536870912; found shmmax=48719476736.        Passed
Checking for shmmni=4096; found shmmni=4096.    Passed
Checking for shmall=2097152; found shmall=2097152.      Passed
Checking for file-max=65536; found file-max=6815744.    Passed
Checking for VERSION=2.6.9; found VERSION=2.6.18-164.11.1.el5.  Passed
Checking for ip_local_port_range=1024 - 65000; found ip_local_port_range=9000 - 65500.  Passed 
Checking for rmem_default=262144; found rmem_default=262144.    Passed
Checking for rmem_max=262144; found rmem_max=4194304.   Passed
Checking for wmem_default=262144; found wmem_default=262144.    Passed
Checking for wmem_max=262144; found wmem_max=1048586.   Passed
Check complete. The overall result of this check is: Passed
Check complete: Passed <<<<
Recommendation: Perform. operating system specific instructions to update the kernel parameters.
=======================================================================
Performing check for GLIBC
Checking Recommended glibc version
Expected result: ATLEAST=2.3.2-95.27 
Actual Result: 2.5-42
Check complete. The overall result of this check is: Passed
Check complete: Passed
=======================================================================
Performing check for TotalMemory
Checking physical memory requirements ...
Expected result: 922MB
Actual Result: 3956MB
Check complete. The overall result of this check is: Passed
Check complete: Passed
=======================================================================
Performing check for SwapSpace
Checking available swap space requirements ...
Expected result: 3956MB
Actual Result: 2047MB
Check complete. The overall result of this check is: Failed <<<<
Check complete: Failed <<<<
Problem: The system does not have the required swap space.
Recommendation: Make more swap space available to perform. the install.
=======================================================================
Performing check for DetectIfDHCPAssignedIP
Checking Network Configuration requirements ...
Check complete. The overall result of this check is: Not executed <<<<
Check complete: Not executed <<<<
Recommendation: Oracle supports installations on systems with DHCP-assigned public IP addresses.  However, the primary network interface on the system should be configured with a static IP address in order for the Oracle Software to function properly.  See the Installation Guide for more details on installing the software on systems configured with DHCP.
=======================================================================
Performing check for OracleBase
Validating ORACLE_BASE location (if set) ...
Check complete. The overall result of this check is: Passed
Check complete: Passed
=======================================================================
Performing check for OracleHomeSpace
Checking Oracle Home path for spaces...
Check complete. The overall result of this check is: Passed
Check complete: Passed
=======================================================================
Performing check for DetectAnyInvalidASMHome
Checking for proper system clean-up....
Check complete. The overall result of this check is: Passed
Check complete: Passed
=======================================================================
Performing check for CompatibilityChecks
Checking for Oracle Home incompatibilities ....
Actual Result: NEW_HOME
Check complete. The overall result of this check is: Passed
Check complete: Passed
=======================================================================
PrereqChecks complete
........................................... 100% Done.
-----------------------------------------------------------------------------
Summary
Global Settings
    Source: /home/oracle/10201_database/stage/products.xml
    Oracle Home: /opt/app/oracle/10.2/db (OraDbHome1)
    Installation Type: Enterprise Edition
Product Languages
   English
   Simplified Chinese
Space Requirements
   / Required 1.76GB (includes 130MB temporary) : Available 362.48GB
New Installations (109 products)
   Oracle Database 10g 10.2.0.1.0 
   Enterprise Edition Options 10.2.0.1.0 
   Oracle Partitioning 10.2.0.1.0 
   Oracle Spatial 10.2.0.1.0 
   Oracle OLAP 10.2.0.1.0 
   Oracle Enterprise Manager Console DB 10.2.0.1.0 
   Oracle Net Services 10.2.0.1.0 
   Oracle Database 10g 10.2.0.1.0 
   Oracle Net Listener 10.2.0.1.0 
   HAS Files for DB 10.2.0.1.0 
   Oracle Internet Directory Client 10.2.0.1.0 
   Oracle Call Interface (OCI) 10.2.0.1.0 
   Oracle Programmer 10.2.0.1.0 
   Oracle interMedia 10.2.0.1.0 
   Enterprise Manager Agent Core 10.2.0.1.0 
   Oracle JVM 10.2.0.1.0 
   Database Configuration and Upgrade Assistants 10.2.0.1.0 
   Oracle interMedia Locator 10.2.0.1.0 
   Oracle XML Development Kit 10.2.0.1.0 
   Oracle Text 10.2.0.1.0 
   Oracle Database Utilities 10.2.0.1.0 
   Generic Connectivity Common Files 10.2.0.1.0 
 ....
-----------------------------------------------------------------------------

Installation in progress (Mon Nov 07 21:40:27 CST 2011)
...............................................................   9% Done.
...............................................................  19% Done.
...............................................................  29% Done.
...............................................................  39% Done.
...............................................................  49% Done.
......................................................           58% Done.
Install successful
Linking in progress (Mon Nov 07 21:41:42 CST 2011)
.                                                                58% Done.
Link successful
Setup in progress (Mon Nov 07 21:43:16 CST 2011)
..........................                                      100% Done.
Setup successful
End of install phases.(Mon Nov 07 21:43:19 CST 2011)
Starting to execute configuration assistants
Configuration assistant "Oracle Net Configuration Assistant" failed 
SEVERE:OUI-10104:Some of the configuration assistants failed. It is strongly recommended that you retry the configuration assistants at this time. Not successfully running any "Recommended" assistants means your system will not be correctly configured. Select the failed assistants and click the 'Retry' button to retry them.
--------------------------------------
The "/opt/app/oracle/10.2/db/cfgtoollogs/configToolFailedCommands" script. contains all commands that failed, were skipped or were cancelled. This file may be used to run these configuration assistants outside of OUI. Note that you may have to update this script. with passwords (if any) before executing the same.
The "/opt/app/oracle/10.2/db/cfgtoollogs/configToolAllCommands" script. contains all commands to be executed by the configuration assistants. This file may be used to run the configuration assistants outside of OUI. Note that you may have to update this script. with passwords (if any) before executing the same.
--------------------------------------
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. '/opt/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 
/opt/app/oracle/10.2/db/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, but some optional configuration assistants failed, were cancelled or skipped.
Please check '/opt/app/oracle/oraInventory/logs/silentInstall2011-11-07_09-40-15PM.log' for more details.
上一篇:在Server 2003上部署IIS+PHP+MySQL配置清单


下一篇:ORACLE 11.2.0.4静默安装