Oracle® Application Server Installation Guide 10g (10.1.4.0.1) for Microsoft Windows Part Number B28192-01

 View PDF

# BSilent and Non-Interactive Installation

This appendix describes how to install Oracle Application Server in silent mode. This appendix contains the following topics:

## B.1 Silent Installation

Silent installation eliminates the need to monitor the Oracle Application Server installation because there is no graphical output and no input by the user.

Silent installation of Oracle Application Server is accomplished by supplying the Oracle Universal Installer with a response file and specifying the -silent flag on the command line. The response file is a text file containing variables and parameter values which provide answers to the installer prompts.

If this is a first time installation of Oracle Application Server, you must create the registry keys before starting. Registry key creation is described in Section B.3, "Pre-Installation"

Use silent installation of Oracle Application Server when there are similar installations on more than one computer. Additionally, use silent install when performing the Oracle Application Server installation from a remote location using the command line.

## B.2 Non-Interactive Installation

Non-interactive installations also use a response file to automate the Oracle Application Server installation. In non-interactive installations, there is graphical output and users may enter input.

Non-interactive installation of Oracle Application Server is also accomplished by supplying the Oracle Universal Installer with a response file but without specifying the -silent flag on the command line. The response file is a text file containing variables and parameter values which provide answers to the installer prompts. If you have not provided responses to all of the installer prompts, you need to enter information during the installation.

If this is a first time installation of Oracle Application Server, you must create the registry keys before starting. Registry key creation is described in Section B.3, "Pre-Installation"

Use non-interactive installation of Oracle Application Server when there are specific screens you want to observe during installation.

## B.3 Pre-Installation

If you have not installed Oracle Application Server on your computer, then you need to create the following Registry key and value:

• HKEY_LOCAL_MACHINE / SOFTWARE / Oracle / inst_loc = Inventory_Directory

The Inventory_Directory is the full path to your installer files. For example:

C:\Program Files\Oracle\Inventory

## B.4 Notes for Silent and Non-Interactive Installations

This section describes special cases that are applicable when you are performing silent or non-interactive installations.

### B.4.1 Installing OracleAS Certificate Authority

If you are installing OCA, check the following:

• If you are installing OCA against an existing Oracle Internet Directory, make sure the Oracle Internet Directory has OracleAS Single Sign-On configured. If not, the OCA Configuration Assistant will fail.

• If you are installing OCA with a new Oracle Internet Directory, make sure you are also configuring OracleAS Single Sign-On. If not, the OCA Configuration Assistant will fail.

In interactive mode, the installer performs the checks for you and displays a warning if the requirements are not met. However, in silent or non-interactive mode, the installer is not able to display a warning.

## B.5 Create the Response File

Before doing a silent or non-interactive installation, you must provide information specific to your installation in a response file. The installer will fail if you attempt an installation using a response file that is not configured correctly. Response files are text files that you can create or edit in a text editor.

### B.5.1 Creating Response Files from Templates

Templates for response files are available in the stage\Response directory on Disk 1 of the Oracle Application Server CD-ROM. Response file templates are available for the following installation types:

Table B-1 Response File Templates in the stage/Response Directory

Installation Type Filename

OracleAS Infrastructure: Oracle Identity Management and OracleAS Metadata Repository

oracle.iappserver.infrastructure.Infrastructure.rsp

OracleAS Infrastructure: Oracle Identity Management only

oracle.iappserver.infrastructure.Infrastructure_ID.rsp

OracleAS Infrastructure: OracleAS Metadata Repository only

oracle.iappserver.infrastructure.Infrastructure_Meta.rsp

Oracle Identity Federation

oracle.iappserver.security.fed.Core.rsp

See the template files for descriptions of the parameters in the file.

 Note: For Boolean parameters, specify either "true" or "false".

### B.5.2 Creating Response Files by Using the Record Mode in the Installer

You can run the installer in record mode to save your inputs to a file that you can use later as a response file. This feature is useful if you need to perform the same installation on different computers.

To run the installer in record mode:

1. Start up the installer with the -record and -destinationFile parameters.

E:\> setup.exe -record -destinationFile newResponseFile



Replace newResponseFile with the full path to the response file that you want the installer to create. Example: C:\myInfraResponse.rsp.

2. Enter your values in the installer screens. The installer will write these values to the file specified in the -destinationFile parameter.

When you get to the Summary screen, the installer automatically writes all your values to the specified file. At this point, you can complete the installation on this computer, or you can exit without performing the installation.

Secure information, such as passwords, is not written to the file, so you must modify the response file before you can use it.

### B.5.3 Variables to Modify in the Response Files

For all installation types, modify the following variables:

UNIX_GROUP_NAME
FROM_LOCATION
ORACLE_HOME
szl_PortListSelect
oracle.iappserver.instance:szl_InstanceInformation



See the response file for descriptions of the parameters in the file.

### B.5.4 Example Response Files

The following sections shows example response files for the following Oracle Application Server installation types:

 Note: Be sure that you read the description of each parameter=value in the provided sample files, and edit value accordingly for your environment.

#### B.5.4.1 Example Response File for OracleAS Infrastructure: Oracle Identity Management Only

The following shows an example of a response file for a silent installation of OracleAS Infrastructure as described in Section 4.23, "Installing Oracle Identity Management Components Only (Including Oracle Internet Directory)".

Note that if you do not copy the CD-ROMs to the hard drive, the installer will prompt you to switch CD-ROMs during installation. To complete the installation without any prompting, you must copy the contents of the CD-ROMs to the hard drive and specify the LOCATION_FOR_DISKn parameters.

RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME=" "
FROM_LOCATION="E:\Disk1\stage\products.xml"
FROM_LOCATION_CD_LABEL="Oracle Application Server 10g"
LOCATION_FOR_DISK2="C:\path\to\disk2\files"
ORACLE_HOME="C:\oracle\ora_infra"
ORACLE_HOME_NAME="oracle_imhome_name"
SHOW_SPLASH_SCREEN=false
SHOW_WELCOME_PAGE=false
SHOW_INSTALL_PROGRESS_PAGE=false
SHOW_COMPONENT_LOCATIONS_PAGE=false
SHOW_CUSTOM_TREE_PAGE=false
SHOW_SUMMARY_PAGE=false
SHOW_REQUIRED_CONFIG_TOOL_PAGE=false
SHOW_OPTIONAL_CONFIG_TOOL_PAGE=false
SHOW_RELEASE_NOTES=false
SHOW_ROOTSH_CONFIRMATION=false
SHOW_END_SESSION_PAGE=false
SHOW_EXIT_CONFIRMATION=false
NEXT_SESSION=false
NEXT_SESSION_ON_FAIL=false
SHOW_DEINSTALL_CONFIRMATION=false
SHOW_DEINSTALL_PROGRESS=false
oracle.iappserver.infrastructure:SHOW_IAS_COMPONENT_CONFIG_PAGE=false
RESTART_SYSTEM=<Value Unspecified>
CLUSTER_NODES=<Value Unspecified>

OUI_HOSTNAME=im_host.mycompany.com

PreReqConfigSelections=""
n_ValidationPreReqConfigSelections=0
TOPLEVEL_COMPONENT={"oracle.iappserver.infrastructure","10.1.4.0.1"}
DEINSTALL_LIST={"oracle.iappserver.infrastructure","10.1.4.0.1"}
oracle.iappserver.infrastructure:szl_PortListSelect={"YES","C:\oracle\mystaticports.ini"}
COMPONENT_LANGUAGES={"en"}
INSTALL_TYPE="Infrastructure_ID"

oracle.iappserver.infrastructure:b_configureMETA=false
oracle.iappserver.infrastructure:b_configureOID=true
oracle.iappserver.infrastructure:b_configureSSO=true
oracle.iappserver.infrastructure:b_configureDAS=true
oracle.iappserver.infrastructure:b_configureDIP=true
oracle.iappserver.infrastructure:b_configureOCA=true
oracle.iappserver.infrastructure:b_configureHA=false
oracle.iappserver.infrastructure:b_launchEMCA=true
oracle.iappserver.infrastructure:b_launchOHS=true

# Meta Repository Connection Info ( for OID )
oracle.iappserver.iappdialog:szl_RepositoryUserInput={"sys", "syspassword", "mr_host.mycompany.com:1521", "", "", "mr.mycompany.com", ""}
# Meta Repository Connection Info ( for OCA )
oracle.iappserver.iappdialog:szl_OCARepositoryUserInput={"mr_host.mycompany.com:1521:mr:mr.mycompany.com"}
s_dnSelection="Custom DN:"
s_dnCntval="United States"
s_dncustom="CN=My Certificate Authority,OU=MyOrg,O=MyCompany,C=US"
sl_keylengthInfo={"2048"}

oracle.oid.oidca:s_silentinstallflag="1"

oracle.iappserver.infrastructure:b_configureCentralMon=false

szOIDwithSSLStatus="N"
nValidationOID2=0
nValidationOID=0
nValidationRepository=0

oracle.iappserver.instance:nValidationInstanceInfo=0
oracle.apache.apache:s_group=dba
oracle.apache.apache:s_groupid=dba



#### B.5.4.2 Example Response File for OracleAS Infrastructure: OracleAS Metadata Repository Only

The following shows an example of a response file for a silent installation of OracleAS Infrastructure as described in Section 4.22, "Installing OracleAS Metadata Repository in a New Database".

Note that if you do not copy the CD-ROMs to the hard drive, the installer will prompt you to switch CD-ROMs during installation. To complete the installation without any prompting, you must copy the contents of the CD-ROMs to the hard drive and specify the LOCATION_FOR_DISKn parameters.

RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME=" "
FROM_LOCATION="E:\Disk1\stage\products.xml"
FROM_LOCATION_CD_LABEL="Oracle Application Server 10g"
LOCATION_FOR_DISK2="C:\path\to\disk2\files"
ORACLE_HOME="C:\oracle\ora_mr"
ORACLE_HOME_NAME="oracle_mrhome_name"
SHOW_SPLASH_SCREEN=false
SHOW_WELCOME_PAGE=false
SHOW_INSTALL_PROGRESS_PAGE=false
SHOW_COMPONENT_LOCATIONS_PAGE=false
SHOW_CUSTOM_TREE_PAGE=false
SHOW_SUMMARY_PAGE=false
SHOW_REQUIRED_CONFIG_TOOL_PAGE=false
SHOW_OPTIONAL_CONFIG_TOOL_PAGE=false
SHOW_RELEASE_NOTES=false
SHOW_ROOTSH_CONFIRMATION=false
SHOW_END_SESSION_PAGE=false
SHOW_EXIT_CONFIRMATION=false
NEXT_SESSION=false
NEXT_SESSION_ON_FAIL=false
SHOW_DEINSTALL_CONFIRMATION=false
SHOW_DEINSTALL_PROGRESS=false
oracle.iappserver.infrastructure:SHOW_IAS_COMPONENT_CONFIG_PAGE=false
RESTART_SYSTEM=<Value Unspecified>
CLUSTER_NODES=<Value Unspecified>

OUI_HOSTNAME=mr_host.mycompany.com

PreReqConfigSelections=""
n_ValidationPreReqConfigSelections=0
TOPLEVEL_COMPONENT={"oracle.iappserver.infrastructure","10.1.4.0.1"}
DEINSTALL_LIST={"oracle.iappserver.infrastructure","10.1.4.0.1"}
oracle.iappserver.infrastructure:szl_PortListSelect={"YES","C:\oracle\mystaticports.ini"}
COMPONENT_LANGUAGES={"en"}
INSTALL_TYPE="Infrastructure_Meta"

oracle.iappserver.infrastructure:b_configureMETA=true
oracle.iappserver.infrastructure:b_configureOID=false
oracle.iappserver.infrastructure:b_configureSSO=false
oracle.iappserver.infrastructure:b_configureSSO=false
oracle.iappserver.infrastructure:b_configureDAS=false
oracle.iappserver.infrastructure:b_configureDIP=false
oracle.iappserver.infrastructure:b_configureOCA=false
oracle.iappserver.infrastructure:b_launchEMCA=false
oracle.iappserver.infrastructure:b_launchOHS=true
szRegisterMetaStatus="N"
s_dnSelection="Custom DN:"
s_dnCntval="United States"
s_dncustom="CN=AS Certificate Authority,OU=MyOrg,O=MyCompany,C=US"
sl_keylengthInfo={"2048"}

s_nameForDBAGrp="dba"
s_nameForOPERGrp="dba"
## Specify Database Configuration Options
s_dbRetChar="Unicode standard UTF-8 AL32UTF8"
s_dbSid=mr
s_globalDBName=mr.mycompany.com

## Specify Database Management Option
s_dlgEMOptionSelected="Use Database Control for Database Management"
s_dlgEMCentralAgentSelected="No Agents Found"
s_dlgEMSMTPServer=""

## Specify Database File Storage Option
s_DataorASMret="File System"

## Specify Backup and Recovery Options
s_dlgRBOEnableAutoBackups="Do not enable Automated backups"

## Select Database Configuration
s_dlgStarterDBConfigCreateStarterDB="Create a starter database"
s_dlgStarterDBConfigOptionSelected="General Purpose"

oracle.oid.oidca:s_silentinstallflag="1"

oracle.iappserver.infrastructure:b_configureCentralMon=false

szOIDwithSSLStatus="N"
nValidationOID2=0
nValidationOID=0
nValidationRepository=0

oracle.iappserver.instance:nValidationInstanceInfo=0
oracle.apache.apache:s_group=dba
oracle.apache.apache:s_groupid=dba



#### B.5.4.3 Example Response File for OracleAS Infrastructure: Identity Management and OracleAS Metadata Repository

The following shows an example of a response file for a silent installation of OracleAS Infrastructure as described in Section 4.20, "Installing OracleAS Infrastructure".

Note that if you do not copy the CD-ROMs to the hard drive, the installer will prompt you to switch CD-ROMs during installation. To complete the installation without any prompting, you must copy the contents of the CD-ROMs to the hard drive and specify the LOCATION_FOR_DISKn parameters.

RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME=" "
FROM_LOCATION="E:\Disk1\stage\products.xml"
FROM_LOCATION_CD_LABEL="Oracle Application Server 10g"
LOCATION_FOR_DISK2="C:\path\to\disk2\files"
ORACLE_HOME="C:\oracle\ora_infra"
ORACLE_HOME_NAME="oracle_infrahome_name"
SHOW_SPLASH_SCREEN=false
SHOW_WELCOME_PAGE=false
SHOW_INSTALL_PROGRESS_PAGE=false
SHOW_COMPONENT_LOCATIONS_PAGE=false
SHOW_CUSTOM_TREE_PAGE=false
SHOW_SUMMARY_PAGE=false
SHOW_REQUIRED_CONFIG_TOOL_PAGE=false
SHOW_OPTIONAL_CONFIG_TOOL_PAGE=false
SHOW_RELEASE_NOTES=false
SHOW_ROOTSH_CONFIRMATION=false
SHOW_END_SESSION_PAGE=false
SHOW_EXIT_CONFIRMATION=false
NEXT_SESSION=false
NEXT_SESSION_ON_FAIL=false
SHOW_DEINSTALL_CONFIRMATION=false
SHOW_DEINSTALL_PROGRESS=false
oracle.iappserver.infrastructure:SHOW_IAS_COMPONENT_CONFIG_PAGE=false
RESTART_SYSTEM=<Value Unspecified>
CLUSTER_NODES=<Value Unspecified>

OUI_HOSTNAME=infra_host.mycompany.com

PreReqConfigSelections=""
n_ValidationPreReqConfigSelections=0
TOPLEVEL_COMPONENT={"oracle.iappserver.infrastructure","10.1.4.0.1"}
DEINSTALL_LIST={"oracle.iappserver.infrastructure","10.1.4.0.1"}
oracle.iappserver.infrastructure:szl_PortListSelect={"YES","C:\oracle\mystaticports.ini"}
COMPONENT_LANGUAGES={"en"}
INSTALL_TYPE="Infrastructure"

oracle.iappserver.infrastructure:b_configureMETA=true
oracle.iappserver.infrastructure:b_configureOID=true
oracle.iappserver.infrastructure:b_configureSSO=true
oracle.iappserver.infrastructure:b_configureDAS=true
oracle.iappserver.infrastructure:b_configureDIP=true
oracle.iappserver.infrastructure:b_configureOCA=true
oracle.iappserver.infrastructure:b_configureHA=false
oracle.iappserver.infrastructure:b_launchEMCA=true
oracle.iappserver.infrastructure:b_launchOHS=true
szRegisterMetaStatus="N"
s_dnSelection="Custom DN:"
s_dnCntval="United States"
s_dncustom="CN=My Certificate Authority,OU=MyOrg,O=MyCompany,C=US"
sl_keylengthInfo={"2048"}

s_nameForDBAGrp="dba"
s_nameForOPERGrp="dba"
## Specify Database Configuration Options
s_dbRetChar="Unicode standard UTF-8 AL32UTF8"
s_dbSid=inf7296
s_globalDBName=infra_host.mycompany.com

## Specify Database Management Option
s_dlgEMOptionSelected="Use Database Control for Database Management"
s_dlgEMCentralAgentSelected="No Agents Found"
s_dlgEMSMTPServer=""

## Specify Database File Storage Option
s_DataorASMret="File System"

## Specify Backup and Recovery Options
s_dlgRBOEnableAutoBackups="Do not enable Automated backups"

## Select Database Configuration
s_dlgStarterDBConfigCreateStarterDB="Create a starter database"
s_dlgStarterDBConfigOptionSelected="General Purpose"

oracle.oid.oidca:s_silentinstallflag="1"

oracle.iappserver.infrastructure:b_configureCentralMon=false

szOIDwithSSLStatus="N"
nValidationOID2=0
nValidationOID=0
nValidationRepository=0

oracle.iappserver.instance:nValidationInstanceInfo=0
oracle.apache.apache:s_group=dba
oracle.apache.apache:s_groupid=dba



#### B.5.4.4 Example Response File for Oracle Identity Federation

The following shows an example of a response file for a silent installation of Oracle Identity Federation as described in Oracle Identity Federation Administrator's Guide.

Note that if you do not copy the CD-ROMs to the hard drive, the installer will prompt you to switch CD-ROMs during installation. To complete the installation without any prompting, you must copy the contents of the CD-ROMs to the hard drive and specify the LOCATION_FOR_DISKn parameters.

RESPONSEFILE_VERSION=2.2.1.0.0
UNIX_GROUP_NAME=" "
FROM_LOCATION="E:\Disk1\stage\products.xml"
FROM_LOCATION_CD_LABEL="Oracle Application Server 10g"
LOCATION_FOR_DISK2="C:\path\to\disk2\files"
ORACLE_HOME="C:\oracle\ora_fed"
ORACLE_HOME_NAME="oracle_fedhome_name"
SHOW_SPLASH_SCREEN=false
SHOW_WELCOME_PAGE=false
SHOW_INSTALL_PROGRESS_PAGE=false
SHOW_COMPONENT_LOCATIONS_PAGE=false
SHOW_CUSTOM_TREE_PAGE=false
SHOW_SUMMARY_PAGE=false
SHOW_REQUIRED_CONFIG_TOOL_PAGE=false
SHOW_OPTIONAL_CONFIG_TOOL_PAGE=false
SHOW_RELEASE_NOTES=false
SHOW_ROOTSH_CONFIRMATION=false
SHOW_END_SESSION_PAGE=false
SHOW_EXIT_CONFIRMATION=false
NEXT_SESSION=false
NEXT_SESSION_ON_FAIL=false
SHOW_DEINSTALL_CONFIRMATION=false
SHOW_DEINSTALL_PROGRESS=false
oracle.iappserver.security.fed:SHOW_IAS_COMPONENT_CONFIG_PAGE=false
RESTART_SYSTEM=<Value Unspecified>
CLUSTER_NODES=<Value Unspecified>

OUI_HOSTNAME=fed_host.mycompany.com

PreReqConfigSelections=""
n_ValidationPreReqConfigSelections=0
TOPLEVEL_COMPONENT={"oracle.iappserver.security.fed","10.1.4.0.1"}
DEINSTALL_LIST={"oracle.iappserver.security.fed","10.1.4.0.1"}
SELECTED_LANGUAGES={"en"}

#INSTALL_TYPE="Basic"
nValidationConfigSelection=0
#startupProcesses="Federation Record Store in LDAP Server"

iASinstanceName="fed"
s_OSFSserverID="fed.fed_host.mycompany.com"



## B.6 Start the Installation

To make the installer use the response file, specify the location of the response file that you want to use as a parameter when starting the installer.

To perform a non-interactive installation:

E:\> setup.exe -responseFile absolute_path_and_filename



To perform a silent installation, use the -silent parameter:

E:\> setup.exe -silent -responseFile absolute_path_and_filename



## B.7 Post-Installation

The success or failure of the non-interactive and silent installations is logged in the installActions.log file. Additionally, the silent installation creates the silentInstall.log file. The log files are created in the C:\Program Files\Oracle\Inventory\oui_inventory\Logs directory.

The silentInstall.log file contains the following line if the installation was successful:

The installation of OracleAS <Installation Type> was successful.



The installActions.log file contains specific information for each Oracle Application Server installation type.

 Note: Application Server Control Configuration Assistant and DCM Repository Backup Assistant success messages appear for first time installation of Oracle Application Server.

## B.8 Security Tips for Silent and Non-Interactive Installations

One of the pieces of information in the response file is the installation password. The password information is in clear text.

To minimize security issues regarding the password in the response file, follow these guidelines:

• Set the permissions on the response files so that they are readable only by the operating system user who will be performing the silent or non-interactive installation.

• If possible, remove the response files from the system after the silent or non-interactive installation is completed.

If you are installing the OracleAS Metadata Repository in silent or non-interactive mode, the installer creates these log files:

• ORACLE_HOME\admin\<ORACLE_SID>\create\<ORACLE_SID>.log

• ORACLE_HOME\cfgtoollogs\<ORACLE_SID>.log

where <ORACLE_SID> is the value of your database SID.

These log files contain database password information. If possible, you should remove these files from the system after reviewing their contents. These log files are not required for the operation of OracleAS Metadata Repository.

## B.9 Deinstallation

You can perform a silent deinstallation of Oracle Application Server by supplying a silent deinstallation parameter to the response file you used for installation.

REMOVE_HOMES={"<ORACLE_HOME to be removed>"}



For example:

REMOVE_HOME="C:\oracle\ora_j2ee"



 Note: You still need to follow the deinstallation steps described in Appendix D, "Deinstallation and Reinstallation". One of the key steps is to run the deconfig tool before running the silent deinstallation command. The silent deinstallation command only replaces the step where you run the installer interactively to deinstall the instance.

To perform a silent deinstallation, use the -deinstall parameter when entering the command:

E:\> setup.exe -silent -deinstall -responseFile absolute_path_and_filename