oracle静默安装

Install oracle software with response files

2012713

13:24

General Procedure for using Response Files

1.Create the oraInst.loc file

2.prepare a response file

3.Run Oracle Universal Installer in silent or suppressed mode.

4.If you complete a software-only installation , then run NetCA and database Configuration Assistant in silent  or noninteractive mode if required.

 

1.create the oraInst.loc file

If you plan to install oracle products using oracle universal installer in silent or suppressed mode, you must manually create the oraInst.loc file if it dose not already exist. This file specifies the location of the Oracle Inventory where oracle universal installer create the inventory of oracle products installed on the system.

NOTE:if oracle software has been installed previously  on the system , the oraInst.loc filemight already exist. If the file dose exist,  you do not need to create a file.

To create the oraInst.loc file , follow these steps:

     1.switch user to root

          $ su - root

     2.change directory as follows:

          # cd /etc

     3.use a text editor to create the oraInst.loc file , containing the following lines:

         inventory_loc=ORACLE_BASE/oraInventory

         inst_group=

     4.Enter the following commands to set the appropriate owner,group, and permissions on oraInst.loc file:

          #chown oracle:oinstall  oraInst.loc

          #chmod 664 oraInst.loc

2.Preparing a Response File

This section describes the following  methords to perpare a response file for use during silent-mode or suppressed-mode installations:

     1.Editing a Response File Template

           This methord is most useful for the Enterprise Edition or Standart Edition installation types.

           oracle provides response file templates for each product and installation type, and for each  configuration tool. These files are located in the database/response directory on the installation media.

           NOTE:If you copied the software to a hard disk, the response files are located in the disk1/response directory.

Response File

Description

enterprise.rsp

Enterprise Edition installation of Oracle Database 10g

standard.rsp

Standard Edition installation of Oracle Database 10g

custom.rsp

Custom installation of Oracle Database 10g

dbca.rsp

Database Configuration Assistant

netca.rsp

Oracle Net Configuration Assistant

          To copy and modify a response file:

              1.Copy the response file from the response file directory  to directory on your system:

              2.Open the response file in a text editor:

                  $ vi /local_dir/response_file.rsp

                  In addition to editing settings specific to the Oracle Database installation, check that the FROM_LOCATION path is correct and points to the products.xml file in the stage directory  in the installation media. You may want to set this variable to point to an absolute path, for example:

                   FROM_LOCATION="/directory_path/stage/products.xml"

              3.change the permissions on the file to 770:

                    $chmod 700 /local_dir/respons_file.rsp

3.Recording a Response File(创建一个相应文件)

You can use Oracle Universal Installer in interactive mode to record a response file, which you can edit and then use to complete silent-mode or suppressed-mode installations. This  method  is useful for custom or software-only installations.

When you record the response file, you can either complete the installation, or you can exit from oracle universal installer on the summumary page , before it starts to copy the software to the system.

If you use record mode during a noninteractive node installation, then oracle universal installer records the variable values that specified  in the original source response file into the new response file.

To record a rsponse file:

      1.complete the preinstallation tasks.

      2.If you have not installed oracle software on this system previously, create the  oraInst.loc file, as described in the previous section.

      3.To record a response file, enter a command similar to the following to start oracle universal installer:

       $/directory_path/runInstaller -record -destinationFile response_filename
       *directory_path is the path of the database directory in the DVD or the path fo the Disk1 directory on the hard drive

       *the  -record parameter specifies that you want to record the response that you enter in a response file

       *response_filename is the full path and file name of the response file that you want to record

        4. On each oracle universal installer screen , specify the required information.

        5.When oracle universal installer displays the summary screen , perform. one of the following actions:

          *click install to create the response file , then continue with the installation.

          *click cancel and then yes to create the response file but exit from oracle universal installer without installing the software.

          The response file is saved in the location that you specified using the -destinationFile option

         6.if you do not complete the installation , then delete the oracle home directory that oracle universal installer created using the path you specified on the specified file locations screen.

         7. Before using the record  response file on anther system , edit the file and make any required changes.

4.Running Oracle Universal Installer Using a Response File

    $ /directory_path/runInstaller [-silent] [-noconfig] -responseFile responsefilename

   directory_path is the path of the database directory on the DVD or the path of the Disk1 directory on the hard drive.

-silent indicates that you want to run Oracle Universal Installer in silent mode.

-noconfig suppresses running the configuration assistants during installation, and a software-only installation is performed instead.

responsefilename is the full path and file name of the installation response file that you configured.

5.Running NetCa using a Response file

    $ORACLE_HOME/bin/netca /silent /responsefile /local_dir/netca.rsp
不知为何生成的listener.ora不是使用的1521端口 而是null,不过没关系进去之后改一下就好了

 

        

****此为我静默安装的记录*****

不知为何一开始总是

[oracle@dg1 database]$ ./runInstaller -silent -noconfig -responseFile /u01/zhou.rsp

正在启动 Oracle Universal Installer...

 

正在检查安装程序要求...

 

检查操作系统版本: 必须是redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2

                                      通过

 

 

所有安装程序要求均已满足。

 

准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2012-07-12_06-25-44PM. 请稍候...[oracle@dg1 database]$ Oracle Universal Installer, 版本 10.2.0.1.0 正式版

版权所有 (c) 1999, 2005, Oracle。保留所有权利。

 

本次安装会话的日志可见于:

 /u01/app/oracle/oraInventory/logs/installActions2012-07-12_06-25-44PM.log

.................................................................................................... 100% 已完成。

 

SEVERE:无法从命令行或响应文件中获取以下变量的值:

  DEP_MODE(InstallType),

  TLDepModes(TopLevelInstallType)

无法继续进行无提示安装。

****原来是需要把install_type改为  INSTALL_TYPE="EE"****

 

[oracle@dg1 database]$ ./runInstaller -silent -noconfig -responseFile /u01/zhou.rsp

正在启动 Oracle Universal Installer...

 

正在检查安装程序要求...

 

检查操作系统版本: 必须是redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2

                                      通过

 

 

所有安装程序要求均已满足。

 

准备从以下地址启动 Oracle Universal Installer /tmp/OraInstall2012-07-12_06-26-18PM. 请稍候...[oracle@dg1 database]$ Oracle Universal Installer, 版本 10.2.0.1.0 正式版

版权所有 (c) 1999, 2005, Oracle。保留所有权利。

 

本次安装会话的日志可见于:

 /u01/app/oracle/oraInventory/logs/installActions2012-07-12_06-26-18PM.log

.................................................................................................... 100% 已完成。

 

 

正在加载产品信息

................................................................................................................... 100% 已完成。

 

 

分析相关性

.........................................................................

开始执行先决条件...

Total No of checks: 11

 

Performing check for CertifiedVersions

正在检查操作系统需求...

要求的结果: redhat-3,redhat-4,SuSE-9,asianux-1,asianux-2 之一

实际结果: redhat-4

检查完成。此次检查的总体结果为: 通过

 

 

Check complete: 通过

=======================================================================

Performing check for Packages

正在检查操作系统程序包需求...

正在检查 make-3.79; 已发现 make-1:3.80-7.EL4        通过

正在检查 binutils-2.14; 已发现 binutils-2.15.92.0.2-25        通过

正在检查 gcc-3.2; 已发现 gcc-3.4.6-11        通过

正在检查 libaio-0.3.96; 已发现 libaio-0.3.105-2        通过

检查完成。此次检查的总体结果为: 通过

 

 

Check complete: 通过

=======================================================================

Performing check for Kernel

检查内核参数

正在检查 semmsl=250; 已发现 semmsl=250        通过

正在检查 semmns=32000; 已发现 semmns=32000        通过

正在检查 semopm=100; 已发现 semopm=100        通过

正在检查 semmni=128; 已发现 semmni=128        通过

正在检查 shmmax=536870912; 已发现 shmmax=2147483648        通过

正在检查 shmmni=4096; 已发现 shmmni=4096        通过

正在检查 shmall=2097152; 已发现 shmall=2097152        通过

正在检查 file-max=65536; 已发现 file-max=65536        通过

正在检查 VERSION=2.6.9; 已发现 VERSION=2.6.9-89.ELsmp        通过

正在检查 ip_local_port_range=1024 - 65000; 已发现 ip_local_port_range=1024 - 65000        通过

正在检查 rmem_default=262144; 已发现 rmem_default=1048576        通过

正在检查 rmem_max=262144; 已发现 rmem_max=1048576        通过

正在检查 wmem_default=262144; 已发现 wmem_default=262144        通过

正在检查 wmem_max=262144; 已发现 wmem_max=262144        通过

检查完成。此次检查的总体结果为: 通过

 

 

Check complete: 通过

=======================================================================

Performing check for GLIBC

检查建议的 glibc 版本

要求的结果: ATLEAST=2.3.2-95.27

实际结果: 2.3.4-2.43

检查完成。此次检查的总体结果为: 通过

 

 

Check complete: 通过

=======================================================================

Performing check for TotalMemory

正在检查物理内存需求...

要求的结果: 922MB

实际结果: 1008MB

检查完成。此次检查的总体结果为: 通过

 

 

Check complete: 通过

=======================================================================

Performing check for SwapSpace

正在检查可用交换空间需求...

要求的结果: 1512MB

实际结果: 2047MB

检查完成。此次检查的总体结果为: 通过

 

 

Check complete: 通过

=======================================================================

Performing check for DetectIfDHCPAssignedIP

正在检查网络配置需求...

实际结果: :java.lang.NullPointerException:Exception/Error Occurred

检查完成。此次检查的总体结果为: 未执行 <<<<

 

 

Check complete: 未执行 <<<<

建议案: Oracle 支持在具有 DHCP 分配的公共 IP 地址的系统上进行安装。但应使用静态 IP 地址来配置系统的主网络接口, 以便 Oracle 软件正常工作。有关在配置有 DHCP 的系统上安装软件的详细信息, 请参阅 Installation Guide

 

=======================================================================

Performing check for OracleBase

正在验证 ORACLE_BASE 的位置 (如果已设置)...

检查完成。此次检查的总体结果为: 通过

 

 

Check complete: 通过

=======================================================================

Performing check for OracleHomeSpace

正在检查 Oracle 主目录路径中的空格...

检查完成。此次检查的总体结果为: 通过

 

 

Check complete: 通过

=======================================================================

Performing check for DetectAnyInvalidASMHome

正在检查是否进行了正确的系统清除...

检查完成。此次检查的总体结果为: 通过

 

 

Check complete: 通过

=======================================================================

Performing check for CompatibilityChecks

正在检查 Oracle 主目录的不兼容性...

实际结果: NEW_HOME

检查完成。此次检查的总体结果为: 通过

 

 

Check complete: 通过

=======================================================================

PrereqChecks complete

 

.......................................... 100% 已完成。

 

 

-----------------------------------------------------------------------------

概要

全局设置

    来源: /u01/database/stage/products.xml

    Oracle 主目录: /u01/app/oracle/product/10.2.0.1/db_1 (OraDb10g_home1)

    安装类型: 企业版(E)

产品语言

   英语

空间要求

   / 要求空间 1.36GB (包括 108MB 临时空间) : 可用空间 7.52GB

新安装组件 (107 个产品)

   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

   Oracle Advanced Security 10.2.0.1.0

   Enterprise Manager Repository Core 10.2.0.1.0

   PL/SQL 10.2.0.1.0

   Oracle Net 10.2.0.1.0

   Assistant Common Files 10.2.0.1.0

   Enterprise Manager plugin Common Files 10.2.0.1.0 Beta

   Buildtools Common Files 10.2.0.1.0

   Installation Common Files 10.2.0.1.0

   Oracle LDAP administration 10.2.0.1.0

   Oracle Java Client 10.2.0.1.0

   Precompiler Common Files 10.2.0.1.0

   Oracle Recovery Manager 10.2.0.1.0

   SQL*Plus 10.2.0.1.0

   iSQL*Plus 10.2.0.1.0

   Enterprise Manager plugin Common Files 10.2.0.1.0

   HAS Common Files 10.2.0.1.0

   Oracle Clusterware RDBMS Files 10.2.0.1.0

   Oracle Wallet Manager 10.2.0.1.0

   Enterprise Manager Minimal Integration 10.2.0.1.0

   Oracle Database User Interface 2.2.13.0.0

   Secure Socket Layer 10.2.0.1.0

   Oracle ODBC Driver 10.2.0.1.0

   Required Support Files 10.2.0.1.0

   Database SQL Scripts 10.2.0.1.0

   OLAP SQL Scripts 10.2.0.1.0

   PL/SQL Embedded Gateway 10.2.0.1.0

   Oracle Globalization Support 10.2.0.1.0

   Character Set Migration Utility 10.2.0.1.0

   LDAP Required Support Files 10.2.0.1.0

   Oracle Help for the  Web 1.1.10.0.0

   Oracle JDBC Thin Driver for JDK 1.4 10.2.0.1.0

   Oracle JDBC Thin Driver for JDK 1.2 10.2.0.1.0

   Oracle interMedia Client Option 10.2.0.1.0

   Oracle Notification Service 10.1.0.3.0

   Oracle Code Editor 1.2.1.0.0I

   Perl Interpreter 5.8.3.0.2

   JDBC Common Files 10.2.0.1.0

   Oracle Locale Builder 10.2.0.1.0

   Oracle Containers for Java 10.2.0.1.0

   Database Workspace Manager 10.2.0.1.0

   Oracle Core Required Support Files 10.2.0.1.0

   Platform. Required Support Files 10.2.0.1.0

   Oracle interMedia Locator RDBMS Files 10.2.0.1.0

   Oracle JDBC/OCI Instant Client 10.2.0.1.0

   Oracle interMedia Annotator 10.2.0.1.0

   SQLJ Runtime 10.2.0.1.0

   Oracle interMedia Java Advanced Imaging 10.2.0.1.0

   Oracle Database 10g interMedia Files 10.2.0.1.0

   Oracle Data Mining RDBMS Files 10.2.0.1.0

   Enterprise Manager Baseline 10.2.0.1.0

   Oracle Help For Java 4.2.6.1.0

   Oracle UIX 2.1.22.0.0

   XML Parser for Java 10.2.0.1.0

   Precompiler Required Support Files 10.2.0.1.0

   XML Parser for Oracle JVM 10.2.0.1.0

   Oracle Message Gateway Common Files 10.2.0.1.0

   Oracle Starter Database 10.2.0.1.0

   Sample Schema Data 10.2.0.1.0

   Parser Generator Required Support Files 10.2.0.1.0

   Agent Required Support Files 10.2.0.1.0

   Oracle RAC Required Support Files-HAS 10.2.0.1.0

   RDBMS Required Support Files 10.2.0.1.0

   RDBMS Required Support Files for Instant Client 10.2.0.1.0

   XDK Required Support Files 10.2.0.1.0

   Oracle OLAP API 10.2.0.1.0

   Oracle OLAP RDBMS Files 10.2.0.1.0

   DBJAVA Required Support Files 10.2.0.1.0

   SQL*Plus Required Support Files 10.2.0.1.0

   Oracle JFC Extended Windowing Toolkit 4.2.33.0.0

   Oracle Ice Browser 5.2.3.6.0

   Oracle Display Fonts 9.0.2.0.0

   Oracle Extended Windowing Toolkit 3.4.38.0.0

   Enterprise Manager Common Files 10.2.0.1.0

   Enterprise Manager Agent DB 10.2.0.1.0

   Oracle Net Required Support Files 10.2.0.1.0

   Enterprise Manager Repository DB 10.2.0.1.0

   SSL Required Support Files for InstantClient 10.2.0.1.0

   regexp 2.1.9.0.0

   Bali Share 1.1.18.0.0

   Oracle Universal Installer 10.2.0.1.0

   Oracle One-Off Patch Installer 10.2.0.1.0

   Installer SDK Component 10.2.0.1.0

   Java Runtime Environment 1.4.2.8.0

   Sun JDK 1.4.2.0.8

   Sun JDK extensions 10.1.2.0.0

-----------------------------------------------------------------------------

 

 

正在安装 (Thu Jul 12 18:26:35 CST 2012)

[oracle@dg1 database]$ .........................................................  18% 已完成。

...............................................................  36% 已完成。

...............................................................  54% 已完成。

...............................................................  73% 已完成。

............                                                     76% 已完成。

安装成功

 

正在进行链接 (Thu Jul 12 18:29:15 CST 2012)

链接成功

 

正在进行设置 (Thu Jul 12 18:31:37 CST 2012)

..............                                                  100% 已完成。

设置成功

 

安装阶段结束。(Thu Jul 12 18:31:45 CST 2012)

WARNING:以下配置脚本

/u01/app/oracle/product/10.2.0.1/db_1/root.sh

必须以 root 用户身份执行, 才能配置系统。如果跳过执行配置工具, 则配置将不完整, 并且产品无法正常运行。要使产品能够正常运行, 必须在退出 OUI 后执行脚本和配置工具。

 

Oracle Database 10g 的 安装 已成功。

请查看 '/u01/app/oracle/oraInventory/logs/silentInstall2012-07-12_06-26-18PM.log' 以获取详细资料。

 

[oracle@dg1 database]$ exit

logout

[root@dg1 ~]# /u01/app/oracle/product/10.2.0.1/db_1/root.sh

Running Oracle10 root.sh script...

 

The following environment variables are set as:

    ORACLE_OWNER= oracle

    ORACLE_HOME=  /u01/app/oracle/product/10.2.0.1/db_1

 

Enter the full pathname of the local bin directory: [/usr/local/bin]:

   Copying dbhome to /usr/local/bin ...

   Copying oraenv to /usr/local/bin ...

   Copying coraenv to /usr/local/bin ...

 

 

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.sh script.

Now product-specific root actions will be performed.

 

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

转载于:http://blog.itpub.net/23655288/viewspace-740889/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值