1. Silent installation of Oracle software
Oracle's silent installation requires a response file that can be recorded by using Oui in advance:
execute the following command, and then follow the prompts in Oui to perform the installation of the database software
$./RUNINSTALLER–RECORD–DESTINATIONFILE/TMP/INSTALL_DATABASE.RSP Note:
(1) Select only install database software during recording do not create database
(2) When the installation interface reaches the last step, select Cancel
once the recording is successful, you can use the resulting 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) Execute the following script after installation is complete
#. $ORACLE _base/orainventory/orainstroot.sh # $ORACLE _home/root.sh
Note: If Oui generates an error (such as an error such as OUI-10037) during a silent installation, the silent installation is aborted, check the relevant directory permissions and whether the user or group has been created, or if some of the requirements in the prereqchecks phase are not met, Oui is ignored by default and continues to install (without configuring kernel parameters and insufficient physical memory, there is no experiment with packet shortage), so it is recommended that you check the installation before silent installation to avoid failure.
2. DBCA Silent Installation Database
create a seed database with DBCA:
(1) Select the custom database template when creating the initial databases
(2) The file system storage mechanism is recommended
(3) Recommended choice of storage location for data files
Use oracle-managed Files Database area: {oracle_base}/oradata
(4) memory recommended Select Custom, specify SGA and PGA size
(5) Character set according to actual needs
(6) Database creation option, select Create DB
(7) Create the required tablespace and user for the application, import the initial data
use DBCA to create a template from the seed database:
(1) Start DBCA, select Manage Templates
(2) Follow the prompts to create a template, after creating the template file: $ORACLE _home/assistants/dbca/templates
/{template name. DBC}
copy DBCA.RSP from the response directory inside the Oracle DB installation disk to this machine
Modify the Dbca.rsp file to add the template name and DB name in
GDBNAME=ORCL1
SID=ORCL1
templatename=orcl.dbc{for convenience, copy the template file to the same directory as the DBCA.RSP}
If you need to use Oracle Enterprise Manager, you will also need to modify the following parameters as follows:
emconfiguration= "LOCAL" sysmanpassword= "password" dbsnmppassword= "Password "
execute the following command to create a new database from a template using DBCA
$./DBCA–SILENT–CREATEDATABASE–RESPONSEFILE/HOME/ORACLE/DBCA.RSP
Silently install Oracle Software