Explain the silent installation of Oracle under Linux

  

In some special cases, such as the network or X configuration can not connect to the X server or the host does not have X, you can use the silent installation to install the database, also if If large-scale deployment is required, silent installation will greatly reduce the duplication of labor of the DBA, and silent installation does not require X, which has advantages over the graphical OUI in terms of installation efficiency and resource usage.

1. Silently installing Oracle software

Oracle's silent installation requires a response file. This file can be recorded by using OUI in advance:

Execute the following command, then OUI performs the operation of installing the database software according to the prompts


$./runInstaller –record –destinationFile /tmp/install_database.rsp Note:

(1) Recording In the process, choose to install only the database software and not create the database

(2) When the installation interface reaches the last step, select cancel

After the recording is successful, you can use the generated response file to play back the entire installation process. :

(1) Execute the following command to silently install the Oracle database software

$./runInstaller –silent –responseFile /tmp/install_database.rsp (2) After the installation is complete, execute the following script < Br>

#. $ORACLE_BASE/oraInventory/orainstRoot.sh #. $ORACLE_HOME/root.sh

Note: If OUI generates an error during silent installation (similar to OUI-10037, etc.), then silent The installation will be aborted. If this happens, please check the relevant Record permissions and users, groups have been created; if some requirements are not met in the PrereqChecks phase, OUI will ignore the default and continue to install (no kernel parameters and physical memory are not configured, no packet is not experimental), so it is recommended to do before silent installation Check to avoid installation failure.

2, DBCA silently install the database

Create a seed database with DBCA:

(1) Select the Custom Database template when creating the initial database

( 2) It is recommended to use the File System storage mechanism

(3) The location of the data file is recommended to choose

Use Oracle-Managed Files Database Area: {ORACLE_BASE}/oradata

( 4) Memory recommendation Select Custom, specify SGA and PGA size

(5) Set the character set according to actual needs

(6) Select Create Database

in the database creation option. (7) Create the tablespace and user required by the application, import the initial data

Create a template from the seed database using DBCA:

(1) Start DBCA, select Manage Templates

(2) Follow the prompts to create a template, the template file after creation: $ORACLE_HOME/assistants/dbca/templates

/{templatename.dbc}

will be installed inside the Oracle DB Copy the dbca.rsp in the response directory to the local machine

Modify the dbca.rsp file and add the template name and DB name to it

GDBNAME=orcl1

SID=orcl1< Br>

TEMPL ATENAME=orcl.dbc{Copy the template file to the same directory as dbca.rsp for convenience}

If you need to use Oracle Enterprise Manager, you need to modify the following parameters as follows:

EMCONFIGURATION= “LOCAL” SYSMANPASSWORD=”password” DBSNMPPASSWORD=”password”

Execute the following command to create a new database based on the template using DBCA

$./dbca –silent –createdatabase – responseFile /home/oracle/dbca.rsp



Copyright © Windows knowledge All Rights Reserved