During noninteractive installations you can create Oracle Real Application Clusters (Oracle RAC) databases using scripts.
Note:
The scripts generated by Database Configuration Assistant (DBCA) are for reference only. Oracle strongly recommends that you use DBCA to create a database.See Also:
Oracle Universal Installer (OUI) User’s Guide for detailed information about generating scriptsYou can generate scripts that create an Oracle RAC database and prepare the database for use.
See Also:
Oracle Universal Installer and OPatch User's Guide for Windows and UNIX for additional information about creating and using scripts to install Oracle software with OUIYou can perform a noninteractive, or silent configuration of Oracle RAC using Oracle Database Configuration Assistant (DBCA).
To perform a silent configuration, you must have completed an Oracle Grid Infrastructure (Oracle Clusterware and Oracle Automatic Storage Management (Oracle ASM)) installation.
You can use DBCA to create a database from templates supplied by Oracle, or from templates that you create. The templates contain settings optimized for a particular type of workload.
Oracle provides templates for the following two workload types:
General purpose or transaction processing
Data warehouse
For more complex environments, you can select the Custom Database option. This option does not use templates and results in a more extensive installation interview, which means that it takes longer to create your database.
You can use Oracle Database Configuration Assistant (DBCA) in non-interactive mode to create an Oracle RAC database.
Example A-1 Using DBCA in Silent Mode to Create an Oracle RAC Database
You can use the following command syntax to create an Oracle RAC database using the general purpose template, placing the data files in an existing Oracle ASM disk group. Nodes node1
and node2
are the cluster nodes on which Oracle RAC database instances are created. The disk group name is +ASMgrp1
. An Oracle Home User was specified for this installation, and is indicated with the -serviceUserPassword
option:
%ORACLE_HOME%\bin\dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbName %DBNAME% -sid %ORACLE_SID% -sysPassword -systemPassword -sysmanPassword -dbsnmpPassword -serviceUserPassword -emConfiguration LOCAL -storageType ASM -diskGroupName +ASMgrp1 -datafileJarLocation %ORACLE_HOME%\assistants\dbca\templates -nodeinfo node1,node2 -characterset WE8MSWIN1252 -obfuscatedPasswords false -sampleSchema false -asmSysPassword
After you run this command, if you did not include the passwords as values in the above command, then DBCA prompts you for the passwords for the SYS, SYSTEM, SYSMAN, DBSNMP, Oracle Home (or Oracle Service) and SYSASM users, for example:
Enter SYS user password: password Enter SYSTEM user password: password ...
See Also:
Oracle Database Administrator's Guide for a complete description of thedbca
commands and optionsWhen you start Oracle Universal Installer (OUI), you can use a response file to automate the installation and configuration of Oracle software, either fully or partially.
OUI uses the values contained in the response file to provide answers to some or all installation prompts. Typically, the installer runs in interactive mode, which means that it prompts you to provide information in graphical user interface (GUI) screens. When you use response files to provide this information, you run the installer from a command prompt using either of the following modes:
Silent
If you include responses for all of the prompts in the response file and specify the -silent option when starting the installer, then it runs in silent mode. During a silent mode installation, the installer does not display any screens. Instead, it displays progress information in the terminal that you used to start it.
Response file
If you include responses for some or all of the prompts in the response file and omit the -silent option, then the installer runs in response file mode. During a response file mode installation, the installer displays all the screens, screens for which you specified information in the response file, and also screens for which you did not specify the required information in the response file.
You define the settings for a silent or response file installation by entering values for the variables listed in the response file. For example, to specify the Oracle home name, supply the appropriate value for the ORACLE_HOME_NAME
variable:
ORACLE_HOME_NAME="OraDBHome1"
Another way of specifying the response file variable settings is to pass them as command-line arguments when you run the installer. For example:
-silent "ORACLE_HOME_NAME=OraDBHome1" ...
Enclose the variable name and its value in double quotation marks.
See Also:
Oracle Universal Installer and OPatch User's Guide for Windows and UNIX for more information about response filesThere are several reasons for running the installer in silent mode or response file mode.
Table A-1 Reasons for Using Silent Mode or Response File Mode
Mode | Reasons to Use |
---|---|
Silent |
Use silent mode for the following installations:
OUI displays progress information on the terminal that you used to start it, but it does not display any of the installer screens. |
Response file |
Use response file mode to complete similar Oracle software installations on more than one system, providing default answers to some, but not all the installer prompts. If you do not specify information required for a particular OUI screen in the response file, then the installer displays that screen. OUI suppresses screens for which you have provided all of the required information. |
Creating an Oracle Real Application Clusters (Oracle RAC) database that uses Oracle Automatic Storage Management (Oracle ASM) for storage is a multi-step process.
Before you create a database that uses Oracle ASM, you must run the root.bat
script. For this reason, you cannot create a database using Oracle ASM as the storage option for database files during a silent-mode installation.
Note:
This limitation applies only to databases that use Oracle Automatic Storage Management as the storage option for database files. You can create a database that uses the file system option during a silent-mode installation.root.bat
script.There are two methods you can use to prepare response files for silent mode or response file mode installations.
Oracle provides response file templates for each product and installation type and for each configuration tool.
For Oracle Database, the response file templates are located in the database\response
directory on the installation media and in the Oracle_home\inventory\response
directory. For Oracle Grid Infrastructure, the response file templates are located in the Grid_home\install\response
directory after the software is installed.
Note:
If you copied the installation media to a directory on a local disk (referred to as the staging_dir directory), then the response files are located in the directorystaging_dir\database\response
.All response file templates contain comment entries, sample formats, examples, and other useful instructions. Read the response file instructions to understand how to specify values for the response file variables, so that you can customize your installation.
The following response files are provided with this software:
Table A-2 Response Files for Oracle Database and Oracle Grid Infrastructure
Response File | Used For |
---|---|
|
Silent installation of Oracle Real Application Clusters |
|
Silent creation and configuration of an Oracle Database using Oracle Database Configuration Assistant (DBCA) |
|
Silent configuration of Oracle Net using NETCA |
|
Silent configuration of Oracle Grid Infrastructure installations |
Caution:
When you modify a response file template and save a file for use, the response file may contain plain text passwords. Ownership of the response file must be given to the Oracle software installation owner only, and access restricted to the response file. Oracle strongly recommends that database administrators or other administrators delete or secure response files when they are not in use.
Oracle provides response file templates for each product and installation type and for each configuration tool. You can copy and modify a response file template.
You can use the installer in interactive mode to record response files, which you can then edit and use to complete silent mode or response file mode installations.
This method is useful for Advanced or software-only installations. You can save all the installation steps into a response file during installation by clicking Save Response File on the Summary page. You can use the generated response file for a silent installation later.
When you record the response file, you can either complete the installation, or you can exit from the installer on the Summary page, before the installer starts to copy the software to the local disk.
If you use record mode during a response file mode installation, then the installer records the variable values that were specified in the original source response file into the new response file.
Note:
You cannot save passwords while recording the response file.At this stage, you are ready to run Oracle Universal Installer (OUI) at the command line, specifying the response file you created, to install the Oracle Database software.
The OUI executable file, setup.exe
, provides several options.
setup.exe
command with the -help
option.You can create and run a response file configuration after installing Oracle software.
configToolAllCommands
.configToolAllCommands
script in silent mode or response file mode, perform these steps.The configuration assistants are started with a script called configToolAllCommands
.
When you perform an installation using silent mode or response file mode, you provide information about your servers in a response file that you otherwise provide manually using a graphical user interface. However, the response file does not contain passwords for user accounts that configuration assistants require after software installation is complete. To run the configuration assistants after the installation completes in silent mode, you must run the configToolAllCommands
script and provide the passwords used by the assistants in a password file.
You can run the configToolAllCommands
script in silent mode by using a password response file. The script uses the passwords in the file to run the configuration tools in succession to complete the software configuration. If you keep the password file to use when cloning installations, then Oracle strongly recommends that you store the password file in a secure ___location.
You can also use the password file to restart a failed installation. If you stop an installation to fix an error, then you can rerun the configuration assistants using configToolAllCommands
and a password response file.
The configToolAllCommands
password response file has the following options:
internal_component_name is the name of the component that the configuration assistant configures.
variable_name is the name of the configuration file variable.
value is the desired value to use for configuration.
The command syntax is as follows:
internal_component_name|variable_name=value
For example, to set the password for the SYS user of Oracle ASM:
oracle.assistants.asm|S_ASMPASSWORD=myPassWord
Oracle Database configuration assistants require the SYS, SYSTEM, and DBSNMP passwords for use with DBCA. You might need to specify the following additional passwords, depending on your system configuration:
If the database is using Oracle ASM for storage, then you must specify a password for the S_ASMSNMPPASSWORD
variable. If you are not using Oracle ASM, then leave the value for this password variable blank.
If you selected to configure Oracle Enterprise Manager, then you must set the value of the S_HOSTUSERPASSWORD
variable to the password of the Oracle software installation owner. If you do not want to enable Oracle Enterprise Manager, then the leave the value for this password variable blank.
If you create a multitenant container database (CDB) with one or more pluggable databases (PDBs), then you must specify a password for the ORACLE.INSTALL.DB.CONFIG.STARTERDB.PASSWORD.PDBADMIN
variable.
If you specified an Oracle Home user for the Oracle Database installation, then specify a password for the oracle.assistants.server|S_WINSERVICEUSERPASSWORD
variable.
Use these steps to create a password response file for use with the configuration assistants.
filename.properties
.Example A-2 Sample Password Response File for Oracle RAC Databases
This example provides a template for a password response file to use with the database configuration assistants.
oracle.assistants.server|S_SYSPASSWORD=password oracle.assistants.server|S_SYSTEMPASSWORD=password oracle.assistants.server|S_DBSNMPPASSWORD=password oracle.assistants.server|S_PDBADMINPASSWORD=password oracle.assistants.server|S_EMADMINPASSWORD=password oracle.assistants.server|S_ASMSNMPPASSWORD=password oracle.assistants.server|S_WINSERVICEUSERPASSWORD=password
If you do not want to enable access for Oracle Enterprise Manager or Oracle ASM, then leave those password fields blank.
To run configuration assistants with the configToolAllCommands
script in silent mode or response file mode, perform these steps.
Example A-3 Running Configuration Assistants in Response File Mode
Assume you created a password response file in the C:\users\oracle\db
directory with a name of cfg_db.properties
. To run the configuration assistants in response file mode to configure the Oracle software after installation, enter commands similar to the following:
C:\> cd %ORACLE_HOME%\cfgtoollogs C:\..\cfgtoollogs> configToolAllCommands RESPONSE_FILE=C:\users\oracle\db\cfg _db.properties
You can run configuration assistants in response file mode to configure and start Oracle software after it is installed on your system.
To run configuration assistants in response file mode, you must first copy and edit a response file template.
Note:
If you copied the software to a hard disk, then the response file template is located in the directoryX:\staging_dir\database\response
.-silent
option in combination with the -responseFile
option to set the mode to silent.-progressOnly
option in combination with the -responseFile
option, to set the mode to progress only.Use the -silent
option in combination with the -responseFile
option to set the mode to silent.
In the silent mode, Database Configuration Assistant uses values that you specify, in the response file or as command-line options, to create a database. No window or user interface is displayed in the silent mode.
Use the -progressOnly
option in combination with the -responseFile
option, to set the mode to progress only.
As Database Configuration Assistant (DBCA) configures and starts the database, DBCA displays a window that contains status messages and a progress bar. This window is similar to the window that is displayed when you choose to create a preconfigured database during an Enterprise Edition.
In this mode, Database Configuration Assistant uses values that you specify, in the response file or as command line options, to create a database.
You can run Database Configuration Assistant (DBCA) in response file mode, either in silent mode or progress only mode, to configure and start an Oracle database on the system.
See Also:
Oracle Database Administrator's Guide for information about using DBCA in noninteractive, or silent mode, to create a database
Oracle Automatic Storage Management Administrator's Guide for information about running Oracle ASMCA in noninteractive mode
You can run Oracle Net Configuration Assistant (NETCA) in silent mode to configure and start an Oracle Net listener on the system, configure naming methods, and configure Oracle Net service names.
Oracle provides a response file template named netca.rsp
in the response
subdirectory of:
The Oracle_home\database\inventory\response
directory after a software-only installation
The database\response
directory on the installation media or staging area
To run NETCA in silent mode, you must copy and edit a response file template.