通常我们安装Oracle数据库软件,都是用OUI图形界面来完成的,但有些Unix/Linux系统中并未安装图形系统,也就无法使用图形界面来安装Oracle的产品了,对于这种场景,就只能采用静默方式来安装了,Oracle提供了这种silent方式,主要是通过配置响应文件rsp来完
通常我们安装Oracle数据库软件,都是用OUI图形界面来完成的,但有些Unix/Linux系统中并未安装图形系统,也就无法使用图形界面来安装Oracle的产品了,对于这种场景,就只能采用静默方式来安装了,Oracle提供了这种silent方式,主要是通过配置响应文件rsp来完成的。
一、静默安装10.2.0.1数据库软件
--解压安装包[oracle@prod u01]$ unzip 10201_database_linux32.zip[oracle@prod u01]$ cd database/[oracle@prod database]$ lltotal 28drwxr-xr-x 9 oracle oinstall 4096 Jul 3 2005 docdrwxr-xr-x 5 oracle oinstall 4096 Jul 3 2005 installdrwxr-xr-x 2 oracle oinstall 4096 Jul 3 2005 response-rwxr-xr-x 1 oracle oinstall 1327 Jul 3 2005 runInstallerdrwxr-xr-x 9 oracle oinstall 4096 Jul 3 2005 stage-rwxr-xr-x 1 oracle oinstall 5213 Jul 3 2005 welcome.html[oracle@prod database]$ cd response/[oracle@prod response]$ lltotal 244-rwxr-xr-x 1 oracle oinstall 25278 Jul 3 2005 custom.rsp-rwxr-xr-x 1 oracle oinstall 44600 Jul 3 2005 dbca.rsp-rwxr-xr-x 1 oracle oinstall 8476 Jul 3 2005 emca.rsp-rwxr-xr-x 1 oracle oinstall 71113 Jul 3 2005 enterprise.rsp-rwxr-xr-x 1 oracle oinstall 5742 Jul 3 2005 netca.rsp-rwxr-xr-x 1 oracle oinstall 71113 Jul 3 2005 standard.rsp[oracle@prod response]$ vi enterprise.rsp--修改相应文件enterprise.rsp内容把以下几项参数的或替换成对应的值:UNIX_GROUP_NAME=oinstallORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1ORACLE_HOME_NAME=OraDb10g_Home1ORACLE_HOSTNAME=prods_nameForDBAGrp=dban_configurationOption=3# 1 - Create a Database# 2 - Configure an ASM instance# 3 - Install Software Only --仅安装软件s_ASMSYSPassword="oracle"s_ASMSYSPasswordAgain="oracle"n_dbType=1 --DBCA时才需要,可以不配置# 1 - General Purpose Starter Database# 2 - Transaction Processing Starter Database# 3 - Data Warehouse Starter Database# 4 - Advanced Configurations_globalDBName=prods_dbSid=prods_dbRetChar="WE8ISO8859P1" -> s_dbRetChar="ZHS16GBK"b_loadExampleSchemas=false -> b_loadExampleSchemas=truen_dbStorageType=1 --DBCA才需要,可以不配置# 1 - Place the data files on a file system --采用本地文件系统路径# 2 - Use Automatic Storage Management (ASM)# 3 - Place the datafiles on raw partitions--开始执行静默安装Oracle软件[oracle@prod database]$ ./runInstaller -ignoreSysPrereqs -silent -responseFile /u01/database/response/enterprise.rspStarting 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-2PassedAll installer requirements met.Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-08-29_02-39-21PM. Please wait ...[oracle@prod database]$ Oracle Universal Installer, Version 10.2.0.1.0 productionCopyright (C) 1999, 2005, Oracle. All rights reserved.You can find a log of this install session at:/u01/app/oracle/oraInventory/logs/installActions2014-08-29_02-39-21PM.log.................................................................................................... 100% Done.Loading product Information................................................................................................................... 100% Done.Analyzing dependencies.........................................................................Starting execution of Prerequisites...Total No of checks: 11Performing check for CertifiedVersionsChecking operating system requirements ...Expected result: One of redhat-3,redhat-4,SuSE-9,asianux-1,asianux-2Actual Result: redhat-3Check complete. The overall result of this check is: PassedCheck complete: Passed=======================================================================Performing check for PackagesChecking operating system package requirements ...Checking for make-3.79; found make-1:3.81-3.el5. PassedChecking for binutils-2.14; found binutils-2.17.50.0.6-9.el5. PassedChecking for gcc-3.2; found gcc-4.1.2-44.el5. PassedChecking for libaio-0.3.96; found libaio-0.3.106-3.2. PassedCheck complete. The overall result of this check is: PassedCheck complete: Passed=======================================================================Performing check for KernelChecking kernel parametersChecking for semmsl=250; found semmsl=250. PassedChecking for semmns=32000; found semmns=32000. PassedChecking for semopm=100; found semopm=100. PassedChecking for semmni=128; found semmni=128. PassedChecking for shmmax=536870912; found shmmax=2147483648. PassedChecking for shmmni=4096; found shmmni=4096. PassedChecking for shmall=2097152; found shmall=2097152. PassedChecking for file-max=65536; found file-max=65536. PassedChecking for VERSION=2.4.21; found VERSION=2.6.18-128.el5. PassedChecking for ip_local_port_range=1024 - 65000; found ip_local_port_range=1024 - 65000. PassedChecking for rmem_default=262144; found rmem_default=262144. PassedChecking for rmem_max=262144; found rmem_max=262144. PassedChecking for wmem_default=262144; found wmem_default=262144. PassedChecking for wmem_max=262144; found wmem_max=262144. PassedCheck complete. The overall result of this check is: PassedCheck complete: Passed=======================================================================Performing check for GLIBCChecking Recommended glibc versionExpected result: ATLEAST=2.3.2-95.27Actual Result: 2.5-34Check complete. The overall result of this check is: PassedCheck complete: Passed=======================================================================Performing check for TotalMemoryChecking physical memory requirements ...Expected result: 922MBActual Result: 1008MBCheck complete. The overall result of this check is: PassedCheck complete: Passed=======================================================================Performing check for SwapSpaceChecking available swap space requirements ...Expected result: 1512MBActual Result: 2047MBCheck complete. The overall result of this check is: PassedCheck complete: Passed=======================================================================Performing check for DetectIfDHCPAssignedIPChecking Network Configuration requirements ...Check complete. The overall result of this check is: PassedCheck complete: Passed=======================================================================Performing check for OracleBaseValidating ORACLE_BASE location (if set) ...Check complete. The overall result of this check is: PassedCheck complete: Passed=======================================================================Performing check for OracleHomeSpaceChecking Oracle Home path for spaces...Check complete. The overall result of this check is: PassedCheck complete: Passed=======================================================================Performing check for DetectAnyInvalidASMHomeChecking for proper system clean-up....Check complete. The overall result of this check is: PassedCheck complete: Passed=======================================================================Performing check for CompatibilityChecksChecking for Oracle Home incompatibilities ....Actual Result: NEW_HOMECheck complete. The overall result of this check is: PassedCheck complete: Passed=======================================================================PrereqChecks complete.......................................... 100% Done.----------------------------------------------------------------------------SummaryGlobal SettingsSource: /u01/database/stage/products.xmlOracle Home: /u01/app/oracle/product/10.2.0/db_1 (OraDb10g_Home1)Installation Type: Enterprise Editionproduct LanguagesEnglishSpace Requirements/ Required 1.36GB (includes 108MB temporary) : Available 1.46GBNew Installations (107 products)Oracle Database 10g 10.2.0.1.0Enterprise Edition Options 10.2.0.1.0Oracle Partitioning 10.2.0.1.0Oracle Spatial 10.2.0.1.0Oracle OLAP 10.2.0.1.0Oracle Enterprise Manager Console DB 10.2.0.1.0Oracle Net Services 10.2.0.1.0Oracle Database 10g 10.2.0.1.0Oracle Net Listener 10.2.0.1.0HAS Files for DB 10.2.0.1.0Oracle Internet Directory Client 10.2.0.1.0Oracle Call Interface (OCI) 10.2.0.1.0Oracle Programmer 10.2.0.1.0Oracle interMedia 10.2.0.1.0Enterprise Manager Agent Core 10.2.0.1.0Oracle JVM 10.2.0.1.0Database Configuration and Upgrade Assistants 10.2.0.1.0Oracle interMedia Locator 10.2.0.1.0Oracle XML Development Kit 10.2.0.1.0Oracle Text 10.2.0.1.0Oracle Database Utilities 10.2.0.1.0Generic Connectivity Common Files 10.2.0.1.0Oracle Advanced Security 10.2.0.1.0Enterprise Manager Repository Core 10.2.0.1.0PL/SQL 10.2.0.1.0Oracle Net 10.2.0.1.0Assistant Common Files 10.2.0.1.0Enterprise Manager plugin Common Files 10.2.0.1.0 BetaBuildtools Common Files 10.2.0.1.0Installation Common Files 10.2.0.1.0Oracle LDAP administration 10.2.0.1.0Oracle Java Client 10.2.0.1.0Precompiler Common Files 10.2.0.1.0Oracle Recovery Manager 10.2.0.1.0SQL*Plus 10.2.0.1.0iSQL*Plus 10.2.0.1.0Enterprise Manager plugin Common Files 10.2.0.1.0HAS Common Files 10.2.0.1.0Oracle Clusterware RDBMS Files 10.2.0.1.0Oracle Wallet Manager 10.2.0.1.0Enterprise Manager Minimal Integration 10.2.0.1.0Oracle Database User Interface 2.2.13.0.0Secure Socket Layer 10.2.0.1.0Oracle ODBC Driver 10.2.0.1.0Required Support Files 10.2.0.1.0Database SQL Scripts 10.2.0.1.0OLAP SQL Scripts 10.2.0.1.0PL/SQL Embedded Gateway 10.2.0.1.0Oracle Globalization Support 10.2.0.1.0Character Set Migration Utility 10.2.0.1.0LDAP Required Support Files 10.2.0.1.0Oracle Help for the Web 1.1.10.0.0Oracle JDBC Thin Driver for JDK 1.4 10.2.0.1.0Oracle JDBC Thin Driver for JDK 1.2 10.2.0.1.0Oracle interMedia Client Option 10.2.0.1.0Oracle Notification Service 10.1.0.3.0Oracle Code Editor 1.2.1.0.0IPerl Interpreter 5.8.3.0.2JDBC Common Files 10.2.0.1.0Oracle Locale Builder 10.2.0.1.0Oracle Containers for Java 10.2.0.1.0Database Workspace Manager 10.2.0.1.0Oracle Core Required Support Files 10.2.0.1.0Platform Required Support Files 10.2.0.1.0Oracle interMedia Locator RDBMS Files 10.2.0.1.0Oracle JDBC/OCI Instant Client 10.2.0.1.0Oracle interMedia Annotator 10.2.0.1.0SQLJ Runtime 10.2.0.1.0Oracle interMedia Java Advanced Imaging 10.2.0.1.0Oracle Database 10g interMedia Files 10.2.0.1.0Oracle Data Mining RDBMS Files 10.2.0.1.0Enterprise Manager Baseline 10.2.0.1.0Oracle Help For Java 4.2.6.1.0Oracle UIX 2.1.22.0.0XML Parser for Java 10.2.0.1.0Precompiler Required Support Files 10.2.0.1.0XML Parser for Oracle JVM 10.2.0.1.0Oracle Message Gateway Common Files 10.2.0.1.0Oracle Starter Database 10.2.0.1.0Sample Schema Data 10.2.0.1.0Parser Generator Required Support Files 10.2.0.1.0Agent Required Support Files 10.2.0.1.0Oracle RAC Required Support Files-HAS 10.2.0.1.0RDBMS Required Support Files 10.2.0.1.0RDBMS Required Support Files f<div>本文来源gaodai^.ma#com搞#代!码网</div>or Instant Client 10.2.0.1.0XDK Required Support Files 10.2.0.1.0Oracle OLAP API 10.2.0.1.0Oracle OLAP RDBMS Files 10.2.0.1.0DBJAVA Required Support Files 10.2.0.1.0SQL*Plus Required Support Files 10.2.0.1.0Oracle JFC Extended Windowing Toolkit 4.2.33.0.0Oracle Ice Browser 5.2.3.6.0Oracle Display Fonts 9.0.2.0.0Oracle Extended Windowing Toolkit 3.4.38.0.0Enterprise Manager Common Files 10.2.0.1.0Enterprise Manager Agent DB 10.2.0.1.0Oracle Net Required Support Files 10.2.0.1.0Enterprise Manager Repository DB 10.2.0.1.0SSL Required Support Files for InstantClient 10.2.0.1.0regexp 2.1.9.0.0Bali Share 1.1.18.0.0Oracle Universal Installer 10.2.0.1.0Oracle One-Off Patch Installer 10.2.0.1.0Installer SDK Component 10.2.0.1.0Java Runtime Environment 1.4.2.8.0Sun JDK 1.4.2.0.8Sun JDK extensions 10.1.2.0.0-----------------------------------------------------------------------------Installation in progress (Fri Aug 29 14:40:10 CST 2014)............................................................... 18% Done................................................................ 36% Done................................................................ 54% Done................................................................ 73% Done............. 76% Done.Install successfulLinking in progress (Fri Aug 29 14:46:38 CST 2014) --注意,这里需要link一段时间,耐心等待直到完成Link successfulSetup in progress (Fri Aug 29 14:52:26 CST 2014).............. 100% Done.Setup successfulEnd of install phases.(Fri Aug 29 14:52:36 CST 2014)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.shneed 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.Please check '/u01/app/oracle/oraInventory/logs/silentInstall2014-08-29_02-39-21PM.log' for more details.--另外开启一个session,分别执行orainstRoot.sh和root.sh脚本[root@prod oracle]# /u01/app/oraInventory/orainstRoot.shChanging permissions of /u01/app/oraInventory to 770.Changing groupname of /u01/app/oraInventory to oinstall.The execution of the script is complete[root@prod oracle]# /u01/app/oracle/product/10.2.0/db_1/root.sh略……