Oracle提供了与RedHat Kickstart类似的自动安装方式:Silent Mode。
OUI通过一系列预定义的选项,取代交互式的安装选项。预定义选项存储在response File中。
Silent Mode安装命令如下:
在Windows平台上:
setup.exe -responseFile <FileName> <optional_parameters>
在Unix平台上:
runInstaller -responseFile <FileName> <optional_parameters>
Optional参数有两个:
-nowelcome:不显示安装过程中的欢迎界面
-silent:在Silent mode下运行Universal Installer,自动忽略欢迎界面
获得response file有两种方式
1、在安装光盘的response目录中有通用的response file的模板,如下是各种response file
可以拷贝一份,按照需要修改为Response file。
enterprise.rsp Enterprise Edition Installation of Oracle9i Server
standard.rsp Standard Edition Installation of Oracle9i Server
custom.rsp Custom Edition Installation of Oracle9i Server
oms.rsp Oracle Management Server installation of Oracle9i
Management and Integration
oid.rsp Oracle Internet Directory installation of Oracle9i
Management and Integration
infrastructure.rsp Custom installation of Oracle9i Management Infrastructure
clientadmin.rsp Administrator installation of Oracle9i Client
clientruntime.rsp Runtime installation of Oracle9i Client
clientcustom.rsp Custom installation of Oracle9i Client
dbca.rsp Database Configuration Assistant
netca.rsp Oracle Net Configuration Assistant
emca.rsp Oracle Enterprise Manager Configuration Assistant
Response File按照定义的目的、关键字和变量分为多个部分。
对于错误的context,format和变量的值,OUI将自动忽略。
Response File的结构:
Response File Sections Function
General ResponseFile的版本号
Include 该ResponseFile中包含的其他response file列表
Session OUI的交互式对话信息
Components Component sections define public variables.
They can also define installer variables.
2、通过运行如下命令:
E:\>setup -record -destinationFile YourResponseFile
通过OUI定制response file,并保存在指定文件中。只需要运行到SUMMARY退出OUI就可以了,不需要实际安装软件。但是Oracle10.1.0.3前,自定义安装生成的responsefile不能用,DEPENDENCY_LIST格式有问题:
利用OUI record生成的DEPENDENCY_LIST如下:
DEPENDENCY_LIST={oracle.rdbms_9.2.0.1.0,oracle.networking_9.2.0.1.0,oracle.emprod_9.2.0.1.0,oracle.p2k.devtools_9.2.0.1.0}
各个组件应该用""分开,并且oracle.rdbms_9.2.0.1.0也要用""分开,正确的格式如下:
DEPENDENCY_LIST={"oracle.rdbms","9.2.0.1.0","oracle.networking","9.2.0.1.0","oracle.emprod","9.2.0.1.0","oracle.p2k.devtools",".2.0.1.0"}
下面的perl脚本可以方便的格式用Record生成的ResponseFile:
#!C:\Perl\bin\perl
use warnings;
use strict;
my $file = shift;
open InFile, $file or die "Cann't open $file:$!";
foreach(<InFile>){
next if (/^\s*$/) or (/^#/);
if(/^DEPENDENCY_LIST={(.+)}/){
my $temp=$1;
$temp =~ s/_/,/g;
my @Strings = split /,/,$temp;
my $result = join "\",\"",@Strings;
print "DEPENDENCY_LIST={","\"","$result","\"","}\n";
next;
}
print $_;
}
下面我们就可以运行如下命令:
e:\setup.exe -responseFile CustomResponse.txt -silent
采用Silent Mode安装Oracle软件。
原文链接:http://springyejian.blog.sohu.com/72958657.html
20130814
一、静默安装Oracle数据库10g软件
1、使用OUI录 制响应文件,记录安装过程
执行以下命令,然后在OUI中根据提示执行安装数据库软件的操作
[oracle@zhaozy-oracle database]$ ./runInstaller -record -destinationFile /home/oracle/install_db_e.rsp
注意:
(1)录制过程中选择只安装数据库软件不创建数据库
(2)当安装界面到达最后一步时选择cancel
(3)取消后,需要手动删除$ORACLE_HOME下刚刚创建的文件以及oraInventory文件夹,否则报错:
SEVERE:OUI-10029:You have specified a non-empty directory to install this product. It is recommended to specify either an empty or a non-existent directory. You may, however, choose to ignore this message if the directory contains Operating System generated files or subdirectories like lost+found.
2、回放响应文件静默安装Oracle数 据库软件
(1)执行以下命令静默安装Oracle数据库软件
[oracle@zhaozy-oracle database]$ ./runInstaller -silent -responseFile /home/oracle/install_db_e.rsp
(2)安装完成后切换成root用户执行以下脚本
[root@zhaozy-oracle oracle]# /u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInventory to 770. Changing groupname of /u01/app/oraInventory to oinstall. The execution of the script is complete
[root@zhaozy-oracle oracle]# /u01/app/oracle/root.sh Running Oracle10 root.sh script... The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle 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.
3、静默卸载Oracle数据库软件
[oracle@zhaozy-oracle database]$ ./runInstaller -silent -deinstall -removeallfiles -removeAllPatches -responseFile /home/oracle/install_db_e.rsp -invPtrLoc /u01/app/oraInventory/oraInst.loc
然后手动删除$ORACLE_HOME下所有文件以及oraInventory文件夹
二、静默安装Oracle数据库
1、用DBCA创建一个种子数据库
(1) 创建初始数据库的时候选择Custom Database模板
(2) 建议使用File System存储机制
(3) 数据文件的存放地点建议选择
Use Oracle-Managed Files
Database Area: {ORACLE_BASE}/oradata
(4) 内存建议选择Custom,指定SGA和PGA大小
(5) 字符集根据实际需要设定
(6) 数据库创建选项里面选择Create Database
(7) 创建应用程序需要的表空间和用户,导入初始数据2、用DBCA根据种子数据库创建一个模板
(1) 启动DBCA,选择Manage Templates
(2) 按照提示创建一个模板
3、将Oracle DB安装盘里面 response目录下的dbca.rsp拷贝到本机上
4、修改dbca.rsp文件,将模板名和DB名添加进去
GDBNAME=albert
SID= albert
TEMPLATENAME=albert.dfb
如果需要使用Oracle Enterprise Manager,则还需要修改以下参数如下:
EMCONFIGURATION=”LOCAL”
SYSMANPASSWORD=”password”
DBSNMPPASSWORD=”password”
5、执行以下命令使用DBCA根据模 板创建新数据库
$./dbca –silent –createdatabase –responseFile /home/oracle/database/response/dbca.rsp
相关推荐
静默模式(Silent Mode)允许我们通过自动化脚本来执行安装,减少人为交互,提高效率。以下是一份详细的关于如何在Linux上使用静默模式安装Oracle数据库的知识点概述。 一、环境准备 在开始安装前,确保你的Linux...
安装Oracle软件时,一般采用Silent Mode进行,即通过响应文件自动化安装过程,减少手动操作。响应文件会包含安装选项、产品选择、安装位置、数据库参数等信息。安装过程中可能还需要配置网络服务,如监听器...
《Weblogic系统安装指南》详述了在64位Windows环境下安装Oracle Weblogic 10.3.5的步骤,该指南同样适用于Linux、Solaris、AIX、HPUX等操作系统。首先,确保下载正确的WebLogic安装程序,即wls1035_generic.jar。...
Preparing SILENT Mode Installation... =============================================================================== Informatica, 本文档详细介绍了 PowerExchange9.1 服务端安装部署的步骤和要求,为...
静默安装的关键在于使用`-mode=silent`参数,这告诉安装程序应该在没有用户交互的情况下进行。同时,`-Djava.io.tmpdir=/weblogic/tmp`设置了临时文件的目录,确保安装过程中产生的临时文件存储在指定的位置。 另一...
- `java -jar wls1034_generic.jar -mode=console -silent_xml=/path_to_silent.xml`(静默安装) 4. **安装过程详解** - 在安装过程中,需选择64位JDK,例如`C:\Java`目录下的JDK。 - 创建新的中间件主目录,并...
64位版本的 PLSQL 正式版,只能运行在64位系统中,需要你安装 64 位的 Oracle11g 或 Oracle12c 客户端。 安装中文包时请注意安装路径是否为PLSQL程序的路径。 备注:新版本Ribbon启用了 Ribbon 界面,改动较大,不...
64位版本的 PLSQL 正式版,只能运行在64位系统中,需要你安装 64 位的 Oracle11g 或 Oracle12c 客户端。 安装中文包时请注意安装路径是否为PLSQL程序的路径。 备注:新版本Ribbon启用了 Ribbon 界面,改动较大,不...
安装中文包时请注意安装路径是否为PLSQL程序的路径。 备注:新版本Ribbon启用了 Ribbon 界面,改动较大,不习惯的建议不要更新。 部分插件会加载失败。 New features Ribbon User Interface PL/SQL Developer now ...
32位版本 备注:新版本Ribbon启用了 Ribbon 界面,改动较大,不习惯的建议不要更新。 部分插件会加载失败。...PL/SQL Developer 12 now comes as a new MSI installer for interactive and silent installation.