Explain the Silent Installation of Oracle in Linux

Source: Internet
Author: User

In some special circumstances, if you cannot connect to the X server due to the network or X configuration, or the host does not have X, you can install the database in silent mode, similarly, if large-scale deployment is required, Silent Installation will greatly reduce the repeated DBA labor, and Silent Installation does not require X, which is superior to the graphical OUI in terms of installation efficiency and resource usage.

1. Silent Installation of Oracle software

The Silent Installation of Oracle requires a response file, which can be recorded by using OUI in advance:

Run the following command to install the database software in OUI.

 
 
  1. $./runInstaller –record –destinationFile /tmp/install_database.rsp 

Note:

1) during the recording process, only install the database software and do not create a 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) run the following command to install the Oracle Database Software silently:

 
 
  1. $./runInstaller –silent –responseFile /tmp/install_database.rsp 

2) execute the following script after installation

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

NOTE: If OUI produces errors such as OUI-10037 errors during silent installation), Silent Installation is aborted. In this case, check whether the related directory permissions and users and groups have been created; if some requirements in the PrereqChecks stage are not met, the OUI will ignore and continue the installation by default (kernel parameters are not configured and the physical memory is insufficient, and no experiments are performed when packets are missing ), therefore, we recommend that you check the installation before Silent Installation to avoid installation failure.

2. DBCA silent Database Installation

Use DBCA to create a seed database:

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

(2) the File System storage mechanism is recommended.

(3) recommended locations for storing data files

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

(4) we recommend that you select Custom for memory and specify the size of SGA and PGA.

(5) set character sets based on actual needs

(6) Select Create Database in the Database creation option.

(7) Create the tablespace and users required by the application and import the initial data.

Use DBCA to create a template based on the seed database:

(1) Start DBCA and select Manage Templates

(2) follow the prompts to create a template. The created template file: $ ORACLE_HOME/assistants/dbca/templates

/{Template Name. dbc}

Copy the dbca. rsp in the response directory of the Oracle DB installation disk to the local machine.

Modify the dbca. rsp file and add the Template Name and DB name.

GDBNAME = orcl1

SID = orcl1

TEMPLATENAME = orcl. dbc {copy the template file to the same directory of dbca. rsp for convenience}

To use Oracle Enterprise Manager, modify the following parameters:

 
 
  1. EMCONFIGURATION=”LOCAL”  
  2. SYSMANPASSWORD=”password”  
  3. DBSNMPPASSWORD=”password” 

Run the following command to use DBCA to create a new database based on the template:

$./Dbca-silent-createdatabase-responseFile/home/oracle/dbca. rsp

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.