Use responseFile for Oracle Silent Installation

Source: Internet
Author: User
For remote Oracle installation, in addition to silent Installation, you can also select the XWindows product to map the Remote Desktop to the installed client. The product I often use is X

For remote Oracle installation, in addition to silent Installation, you can also select the X Windows product to map the Remote Desktop to the installed client. The product I often use is X

The databases we usually use are based on the GUI. In Windows and other graphical operating systems, interactive installation is convenient. However, in many cases, there are many restrictions on Interactive Graphic installation.

First, the graphic GUI requires strong graphic display capabilities. It is difficult to install multiple servers in different regions or without a display interface.

Secondly, many actual O & M personnel must install multiple machines at the same time, and the configurations are the same. Install the GUI one by one, with a heavy workload and error-prone.

In this case, the installation and configuration of Oracle software products on the GUI usually provide silent installation mode and responseFile installation mode.

Note: For remote Oracle installation, in addition to silent Installation, you can also select X Windows to map the Remote Desktop to the installed client. I often use Passive products of X Manager suite.

1. Silent Installation Mode

Many operating systems, such as Windows and Linux, provide server network installation and batch installation to reduce the installation burden and installation errors of system O & M personnel. The principle is actually the same. The answer to various interactive questions is stored in a file (usually a text file) in advance. Then, the installer reads the configuration information in the file for installation.

The silent Installation Method is provided during Oracle installation, including Oracle program installation, Oracle Net configuration, and database creation. You only need to specify the responseFile name in the installer to perform the silent Installation process.

For silent Installation, there are some provided responseFile templates under the Oracle installation directory. In practice, we can modify these files as the created template.


[Root @ bspdev upload] # ls-l
Total 4
Drwxr-xr-x 6 root 4096 Jul 3 2005 database
[Root @ bspdev upload] #

[Root @ bspdev response] # pwd
/Upload/database/response
[Root @ bspdev response] # ls-l
Total 244
-Rwxr-xr-x 1 root 25278 Jul 3 2005 custom. rsp
-Rwxr-xr-x 1 root 44600 Jul 3 2005 dbca. rsp
-Rwxr-xr-x 1 root 8476 Jul 3 2005 emca. rsp
-Rwxr-xr-x 1 root 71113 Jul 3 2005 enterprise. rsp
-Rwxr-xr-x 1 root 5742 Jul 3 2005 netca. rsp
-Rwxr-xr-x 1 root 71113 Jul 3 2005 standard. rsp


Under the Response directory, a total of six rsp files are provided as the installation templates for several components. Custom. rsp is the response file template for personalized installation. Dbca is used for the database Configuration Assistant component and emca. rsp is used for the Oracle Enterprise Management Configuration Assistant. Netca. rsp is used for Net Configuration Assistant.

Enterprise and Standard are applicable to the installation of database software of different sizes and versions respectively.

We can select different installation requirements for modification.

2. Database Software Installation

Before creating Software, we need to create an oraInst. loc file separately to specify the location of the resource library.


[Root @ bspdev ~] # Cd/etc
[Root @ bspdev etc] # vi oraInst. loc

Inventory_loc =/u01/app/oracle
Inst_group = oinstall
~

[Root @ bspdev etc] # chown oracle: oinstall oraInst. loc
[Root @ bspdev etc] # chmod 664 oraInst. loc
[Root @ bspdev etc] # ls-l | grep oraInst. loc
-Rw-r -- 1 oracle oinstall 50 Jun 30 :02 oraInst. loc


Note: This step is not mandatory in the GUI version.

First, we need to install the Oracle software and create a separate response file.


[Oracle @ bspdev response] $ cp enterprise. rsp creat. rsp
[Oracle @ bspdev response] $ ls-l
Total 320
-Rwxr-xr-x 1 oracle oinstall 71113 Jun 30 creat. rsp
-Rwxr-xr-x 1 oracle oinstall 25278 Jul 3 2005 custom. rsp


Use vi to open and edit various options. The template response file is well set. Each option provides detailed explanations and setting rules. We can make modifications as needed, for example:


#------------------------------------------------------------------------------
# Name: UNIX_GROUP_NAME
# Datatype: String
# Description: Unix group to be set for the inventory directory.
# Example: UNIX_GROUP_NAME = "install"
#------------------------------------------------------------------------------
UNIX_GROUP_NAME = ointall


In the configuration process, we can choose to create a database during the installation process, just like installing Oracle Software in the GUI. Note: This is generally not recommended. This article introduces the use of the response file of dbca separately.

Then, we can start the runInstaller program for installation.


[Oracle @ bspdev database] $./runInstaller-silent-force-noconfig-responseFile/upload/database/response/creat. 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.


Note that the file specified in the responseFile parameter must be the absolute path of the response file.

If the configuration does not have a clear error message, it will continue, including series verification and installation process.

(Due to the length, some output content is omitted .....)
........................................ ................. 18% Done.
........................................ ....................... 36% Done.
........................................ ....................... 54% Done.
........................................ ....................... 72% Done.
... 76% Done.
Install successful

Linking in progress (Sat Jun 30 11:13:55 CST 2012)
Link successful

Setup in progress (Sat Jun 30 11:15:55 CST 2012)
...... 100% Done.
Setup successful

End of install phases. (Sat Jun 30 11:16:02 CST 2012)
WARNING: The following configuration scripts
/U01/app/oracle/product/10.2.0/db_1/root. sh
Need to be executed as root for processing 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/logs/silentInstall2012-06-30_11-12-13AM.log' for more details.


From the prompts, we also need to use the root user to execute the root. sh script.


[Root @ bspdev RPMS] # cd/u01/app/oracle/product/10.2.0/db_1/
[Root @ bspdev db_1] #./root. sh
Running Oracle10 root. sh script...

The following environment variables are set:
ORACLE_OWNER = oracle
ORACLE_HOME =/u01/app/oracle/product/10.2.0/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
Database Configuration Assistant when a database is created
Finished running generic part of root. sh script.
Now product-specific root actions will be saved med.
[Root @ bspdev db_1] #


So far, we have completed the Oracle Software installation process. The following uses the dbca Silent Installation process to create a database.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.