Oracle is the world's leading database management system, and its 11g version is favored by many enterprises and individual users. However, the installation process of Oracle11g is relatively cumbersome. If it needs to be installed on multiple machines, it will consume a lot of time and human resources. In order to improve installation efficiency, Oracle provides a silent installation method, which can complete the automatic installation of software without human intervention. This article will introduce how to silently install Oracle11g.
1. Preparation
Before silently installing Oracle11g, you need to prepare the following work:
1.Oracle11g installation media, usually a CD or ISO image;
2.Oracle11g The response file (.rsp file) of the installation file can be modified using the template file provided by Oracle;
3. Installation schedule (.lst file), used to record the installation process and error information;
4. Management A command line interface or terminal with administrator privileges, and sufficient disk space and memory resources.
2. Create a response file
The response file (.rsp file) is the key to the silent installation of Oracle11g. It records various parameter information that needs to be entered during the installation process. Oracle provides template files (such as db_install.rsp) for modification. If you need to customize the installation parameters, you can modify the file content according to the actual situation. The following is an example of a typical response file:
[GENERAL]
ORACLE_BASE="/u01/app/oracle"
INVENTORY_LOCATION="/ u01/app/oraInventory"
ORACLE_HOME="/u01/app/oracle/product/11.2.0/dbhome_1"
ORACLE_SID="orcl"
GDBNAME="orcl"
CHARACTERSET="AL32UTF8"
INSTALL_OPTION="INSTALL_DB_AND_CONFIG"
CREATE_DATABASE_TYPE= "CREATE_DATABASE"
SYS_PASSWORD="password"
SYSTEM_PASSWORD="password"
DATA_LOCATION="/u01/app/oracle/oradata"
DB_CONTROL_FILES_LOCATION="/u01/app/oracle/oradata"
DB_CONTROL_FILES="ora_control1, ora_control2 , ora_control3"
DB_RECOVERY_FILE_DEST="/u01/app/oracle/flash_recovery_area"
DB_RECOVERY_FILE_DEST_SIZE=2G
TOTAL_MEMORY=2048
[LANGUAGE]
SELECTED_LANGUAGES="AMERICAN_AMERICA.UTF8"
[INSO]
INSTALL_TYPE="Typical"
[INSTALLUPDATES]
UPDATES_CHECK= TRUE
[SECURITY]
SECURITY_UPDATES_VIA_MYORACLESUPPORT=FALSE
[SYSTEMCLASS]
oracle.install.db.config.starterdb.memoryLimit=1024
[DATABASE]
TEMPLATE_NAME="General_Purpose.dbc"
GDBNAME="orcl"
SYS_PASSWORD="password"
SYSTEM_PASSWORD="password"
CHARACTERSET ="AL32UTF8"
NATIONAL_CHARACTERSET="UTF8"
DATA_LOCATION="/u01/ app/oracle/oradata"
DB_CONTROL_FILES_LOCATION="/u01/app/oracle/oradata"
DB_RECOVERY_FILE_DEST="/u01/app/oracle/flash_recovery_area"
DB_RECOVERY_FILE_DEST_SIZE=2G
DB_INSTALLATION_SLIM_CONFIG=true
[EMCONFIG]
EM_CONFIGURATION=LOCAL
EM_PASSWORD="password"
[REAL_APPLICATION_CLUSTER]
CLUSTER_NODES=a1,a2,a3
NODEVIP="orclvip"
NODEVIP_PORT=1521
CLUSTER_SCAN_NAME="orclscan"
CLUSTER_SCAN_PORT="1521"
CLUSTER_SCAN_PORTS="1522,1523,1524"
DB_NAME="racdb"
DB_UNIQUE_NAME="racdb1"
DB_LISTENER_PORT=1521
DB_STORAGE_TYPE="ASM"
ASM_DISK_STRING="ORCL:*"
The above is part of the response file example, which contains Commonly used installation parameter settings are provided and can be modified according to actual conditions.
3. Create an installation plan
The installation plan (.lst file) is used to record the log information and error information generated during the silent installation of Oracle11g. Creating an installation schedule can facilitate troubleshooting problems during the installation process. Typically, the installation schedule can be configured in a response file as follows:
[GENERIC]
LOG_FILE="oraInstall.log"
INVENTORY_LOCATION="/u01/app/oraInventory"
INSTALL_PLAN="ora_install_plan.lst"
SSH_PATH="/usr/bin/ ssh"
The above example is a configuration file for creating an installation schedule.
4. Perform silent installation
To perform silent installation, you need to use the command line interface or terminal, run with administrator privileges, enter the path where the Oracle11g installation media is located, and execute the following command:
. /runInstaller -silent -responseFile /path/to/response/file -ignoreSysPrereqs -ignorePrereq
Among them, the -responseFile parameter specifies the path and file name of the response file, the -silent parameter indicates running in silent mode, -ignoreSysPrereqs and The -ignorePrereq parameter indicates that system prerequisites and prerequisite checks are ignored.
During the installation process, you can modify the parameters according to the actual situation and follow the prompts until the installation is completed. After the installation is completed, log information and error information will be generated in the installation schedule, which can be used to troubleshoot problems.
Summary
This article introduces the steps of silent installation of Oracle11g, including creating a response file, creating an installation schedule and performing silent installation. Silent installation can significantly improve installation efficiency, especially when Oracle11g needs to be installed on multiple machines, it is more convenient and faster. I hope this article can help users who are installing Oracle11g and reduce their workload.
The above is the detailed content of How to install oracle11g silently. For more information, please follow other related articles on the PHP Chinese website!