目录
Applies to:
Goal
Solution
首页 数据库 mysql教程 How to install Oracle Database Server software silently with

How to install Oracle Database Server software silently with

Jun 07, 2016 pm 03:02 PM
database install oracle

Applies to: Oracle Universal Installer - Version: 10.2.0.1 and later[Release: 10.2 and later ] Oracle Server - Enterprise Edition - Version: 10.2.0.1andlater [Release: 10.2andlater] Oracle Server - Standard Edition - Version: 10.2.0.1andla

Applies to:

Oracle Universal Installer - Version: 10.2.0.1 and later   [Release: 10.2 and later ]
Oracle Server - Enterprise Edition - Version: 10.2.0.1 and later    [Release: 10.2 and later]
Oracle Server - Standard Edition - Version: 10.2.0.1 and later    [Release: 10.2 and later]
Information in this document applies to any platform.

Goal

How to install Oracle Database Server software in non-interactive or silent mode from command line along with customized listener service creation.

Solution

Generally silent installation can be done with the help of a "Response File". "A Response File" contains all the inputs that are required for doing the silent installation.

The following article helps to install Database Server Software in silent mode:

Note 782918.1 : How to install/deinstall Oracle Database Server software silently from command line without response file

It is possible to launch NETCA during Database Server software installation using the following OUI variable:

    b_launchNETCA=true

This variable instructs the OUI to launch NETCA and creates the LISTENER with default port number i.e 1521.

If you want to launch NETCA in silent mode with non-default values then the following two variables must be added to the OUI (runInstaller or setup.exe):

    b_launchNETCA=true
    s_responseFileName="/my_netca.rsp"

These variables instruct the OUI to launch NETCA and use values from "/my_netca.rsp".

As NETCA is different (from OUI) configuration tool, it is not possible to supply all required NETCA variables through command line to the OUI (i.e runInstaller or setup.exe). The only available option is supplying the NETCA Response File to the OUI.

The NETCA response file can be created using the template supplied with the installation kit. 

   Ex: "/database/response/netca.rsp"

Copy "/database/response/netca.rsp" to "/my_netca.rsp"
Edit "/my_netca.rsp"

and modify the values (Example, Listener Name, Port Number, etc) that suits your environment.

Once the NETCA Response File is created, invoke the following command to install Database Server software in silent mode along with creation of customized listener service.

Note: The examples below are using continuation characters for easier readability, Windows uses "^" and UNIX/LINUX uses "\":

11gR2:

Windows:

> cd Z:\database<br> > setup.exe -silent -force -debug ^<br> FROM_LOCATION="Z:\database\stage\products.xml" ^<br> ORACLE_HOME="D:\app\oracle\product\11.2.0\Db_1" ^<br> ORACLE_HOME_NAME="Ora11gDb1" ^<br> TOPLEVEL_COMPONENT={"oracle.server","11.2.0.1.0"} ^<br> INSTALL_TYPE="EE" ^<br> n_configurationOption=3 ^<br> b_launchNETCA=true ^<br> s_responseFileName="D:\my_netca.rsp"

Unix:

$ cd /mount/dvd/database<br> $ ./runInstaller -silent -force -debug \<br> FROM_LOCATION="/mount/dvd/database/stage/products.xml" \<br> ORACLE_HOME="/u01/app/oracle/product/11.2.0/db_1" \<br> ORACLE_HOME_NAME="Ora11gDb1" \<br> TOPLEVEL_COMPONENT='{"oracle.server","11.2.0.1.0"}' \<br> INSTALL_TYPE="EE" n_configurationOption=3 \<br> b_launchNETCA=true \<br> s_responseFileName="/tmp/my_netca.rsp"

11gR1:

Windows : Unix:

<code>> cd Z:\database<br> > setup.exe -silent -force -debug ^<br> FROM_LOCATION="Z:\database\stage\products.xml" ^<br> ORACLE_HOME="D:\app\oracle\product\11.1.0\Db_1" ^<br> ORACLE_HOME_NAME="Ora11gDb1" ^<br> ORACLE_BASE="D:\app\oracle" ^<br> TOPLEVEL_COMPONENT={"oracle.server","11.1.0.6.0"} ^<br> INSTALL_TYPE="EE" ^<br> n_configurationOption=3 ^<br> b_launchNETCA=true ^<br> s_responseFileName="D:\my_netca.rsp"

 

$ cd /mount/dvd/database<br> $ ./runInstaller -silent -force -debug \<br> FROM_LOCATION="/mount/dvd/database/stage/products.xml" \<br> ORACLE_HOME="/u01/app/oracle/product/11.1.0/db_1" \<br> ORACLE_HOME_NAME="Ora11gDb1" ORACLE_BASE="/u01/app/oracle" \<br> TOPLEVEL_COMPONENT='{"oracle.server","11.1.0.6.0"}' \<br> INSTALL_TYPE="EE" n_configurationOption=3 \<br> b_launchNETCA=true \<br> s_responseFileName="/tmp/my_netca.rsp"


10gR2:

Windows:

> cd Z:\database<br> > setup.exe -silent -force -debug ^<br> FROM_LOCATION="Z:\database\stage\products.xml" ^<br> ORACLE_HOME="D:\app\oracle\product\10.2.0\Db_1" ^<br> ORACLE_HOME_NAME="Ora10gDb1" ^<br> TOPLEVEL_COMPONENT={"oracle.server","10.2.0.1.0"} ^<br> INSTALL_TYPE="EE" ^<br> n_configurationOption=3 ^<br> b_launchNETCA=true ^<br> s_responseFileName="D:\my_netca.rsp"


Unix:

$ cd /mount/dvd/database<br> $ ./runInstaller -silent -force -debug \<br> FROM_LOCATION="/mount/dvd/database/stage/products.xml" \<br> ORACLE_HOME="/u01/app/oracle/product/10.2.0/db_1" \<br> ORACLE_HOME_NAME="Ora10gDb1" \<br> TOPLEVEL_COMPONENT='{"oracle.server","10.2.0.1.0"}' \<br> INSTALL_TYPE="EE" n_configurationOption=3 \<br> b_launchNETCA=true \<br> s_responseFileName="/tmp/my_netca.rsp"

Note:

1. On windows, ensure that the command is framed in single line and space is used between each option and variable.
Ex: setup.exe -option1 -option2 variable1=value variable2=value ....
2. Variable "n_configurationOption=3" tells that install "Software Only" option
3. The following options are not mandatory but can be used when required
-force : Allows silent mode installation into a non-empty ORACLE_HOME directory.
-debug : Displays debug information from OUI. This information will be usefull if OUI is not starting.


Example of my_netca.rsp (for 10gR2)

[GENERAL]
RESPONSEFILE_VERSION="10.0"
CREATE_TYPE= "TYPICAL"
LOG_FILE=""/u01/app/oracle/product/10.2.0/db_1/network/tools/log/netca.log""
[oracle.net.ca]
INSTALLED_COMPONENTS={"server","net8","javavm"}
INSTALL_TYPE=""typical""
LISTENER_NUMBER=1
LISTENER_NAMES={"LISTENER"}
LISTENER_PROTOCOLS={"TCP;1522"}
LISTENER_START=""LISTENER""
NAMING_METHODS={"TNSNAMES","ONAMES","HOSTNAME"}
NSN_NUMBER=1
NSN_NAMES={"EXTPROC_CONNECTION_DATA"}
NSN_SERVICE = {"PLSExtProc"}
NSN_PROTOCOLS={"TCP;HOSTNAME;1522"}


For more details about NETCA variables, please reference "netca.rsp" response file template shipped in the respective installation kit: Example
/database/response/netca.rsp
/database/response/netca.rsp
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

Video Face Swap

Video Face Swap

使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热工具

记事本++7.3.1

记事本++7.3.1

好用且免费的代码编辑器

SublimeText3汉化版

SublimeText3汉化版

中文版,非常好用

禅工作室 13.0.1

禅工作室 13.0.1

功能强大的PHP集成开发环境

Dreamweaver CS6

Dreamweaver CS6

视觉化网页开发工具

SublimeText3 Mac版

SublimeText3 Mac版

神级代码编辑软件(SublimeText3)

热门话题

Java教程
1664
14
CakePHP 教程
1422
52
Laravel 教程
1316
25
PHP教程
1267
29
C# 教程
1239
24
oracle打不开怎么办 oracle打不开怎么办 Apr 11, 2025 pm 10:06 PM

Oracle 打不开的解决办法包括:1. 启动数据库服务;2. 启动监听器;3. 检查端口冲突;4. 正确设置环境变量;5. 确保防火墙或防病毒软件未阻止连接;6. 检查服务器是否已关闭;7. 使用 RMAN 恢复损坏的文件;8. 检查 TNS 服务名称是否正确;9. 检查网络连接;10. 重新安装 Oracle 软件。

oracle游标关闭怎么解决 oracle游标关闭怎么解决 Apr 11, 2025 pm 10:18 PM

解决 Oracle 游标关闭问题的方法包括:使用 CLOSE 语句显式关闭游标。在 FOR UPDATE 子句中声明游标,使其在作用域结束后自动关闭。在 USING 子句中声明游标,使其在关联的 PL/SQL 变量关闭时自动关闭。使用异常处理确保在任何异常情况下关闭游标。使用连接池自动关闭游标。禁用自动提交,延迟游标关闭。

oracle怎么循环创建游标 oracle怎么循环创建游标 Apr 12, 2025 am 06:18 AM

Oracle 中,FOR LOOP 循环可动态创建游标, 步骤为:1. 定义游标类型;2. 创建循环;3. 动态创建游标;4. 执行游标;5. 关闭游标。示例:可循环创建游标,显示前 10 名员工姓名和工资。

HDFS配置CentOS需要哪些步骤 HDFS配置CentOS需要哪些步骤 Apr 14, 2025 pm 06:42 PM

在CentOS系统上搭建Hadoop分布式文件系统(HDFS)需要多个步骤,本文提供一个简要的配置指南。一、前期准备安装JDK:在所有节点上安装JavaDevelopmentKit(JDK),版本需与Hadoop兼容。可从Oracle官网下载安装包。环境变量配置:编辑/etc/profile文件,设置Java和Hadoop的环境变量,使系统能够找到JDK和Hadoop的安装路径。二、安全配置:SSH免密登录生成SSH密钥:在每个节点上使用ssh-keygen命令

oracle日志写满怎么办 oracle日志写满怎么办 Apr 12, 2025 am 06:09 AM

Oracle 日志文件写满时,可采用以下解决方案:1)清理旧日志文件;2)增加日志文件大小;3)增加日志文件组;4)设置自动日志管理;5)重新初始化数据库。在实施任何解决方案前,建议备份数据库以防数据丢失。

甲骨文在商业世界中的作用 甲骨文在商业世界中的作用 Apr 23, 2025 am 12:01 AM

Oracle不仅是数据库公司,还是云计算和ERP系统的领导者。1.Oracle提供从数据库到云服务和ERP系统的全面解决方案。2.OracleCloud挑战AWS和Azure,提供IaaS、PaaS和SaaS服务。3.Oracle的ERP系统如E-BusinessSuite和FusionApplications帮助企业优化运营。

oracle数据库怎么停止 oracle数据库怎么停止 Apr 12, 2025 am 06:12 AM

要停止 Oracle 数据库,请执行以下步骤:1. 连接到数据库;2. 优雅关机数据库(shutdown immediate);3. 完全关机数据库(shutdown abort)。

centos上weblogic的数据库连接如何配置 centos上weblogic的数据库连接如何配置 Apr 14, 2025 pm 02:06 PM

在CentOS系统上配置WebLogic数据库连接,需要完成以下步骤:JDK安装与环境配置:确保服务器已安装与WebLogic版本兼容的JDK(例如,WebLogic14.1.1通常需要JDK8)。正确设置JAVA_HOME、CLASSPATH和PATH环境变量。WebLogic安装与解压:从Oracle官方网站下载适用于CentOS系统的WebLogic安装包,并将其解压到指定目录。WebLogic用户与目录创建:创建一个专用的WebLogic用户账户,并设置安全密码

See all articles