A Quick note regarding running the OER Installer in Silent mode

There are a few issues you might encounter using the Oracle Enterprise Repository 11.1.1.7 installer in silent mode.

Issue 1
The silent install runs but the OER target directory is not created and
it may appear the product has not been installed.

If the data-value USER_INSTALL_DIR is supplied in the silent.xml file
then
- The OER installer runs in silent mode
- The installer does not create a target folder as specified by the value of the USER_INSTALL_DIR
- The installer updates the registry.xml in the ORACLE_HOME to indicate the product is installed.

Subsequent runs of the installer return the error message

Extracting 0%....................................................................................................100%
All available components of Oracle Products have been installed in this Middleware Home.
Please select another Middleware Home or uninstall the product

Solution:

The product is actually installed as evidenced by the core and utils folders in the BEAHOME folder.
The issue is the 'USER_INSTALL_DIR' is being ignored.

Run the uninstall script located in BEAHOME as below
$BEAHOME/utils/uninstall/uninstall.sh
This will uninstall OER and remove the entry from the oracle registry.
The product can now be installed again.

Fix the silent.xml file to use the element name='ALER_INSTALL_DIR' instead of name='USER_INSTALL_DIR'
See Silent.xml file example below
Run the silent install again.  See a sample shell script below.

Now the product will be successfully installed into a target directory as specified by 'ALER_INSTALL_DIR'


Issue 2

If OracleHOME is supplied in the silent.xml file (as Documented)

Then the silent install fails with the following error

Extracting 0%....................................................................................................100%
No directory path is specified.

Solution

This is a known issue see the following support doc.
Unable To Install Oer 11g In Silent Mode (Doc ID 1096459.1)
In summary the OER documentation is incorrect, use BEAHOME
instead of OracleHOME for silent installer.
See the corrected Sample.xml file below.

Issue 3

The log file contains the following message and the database.properties and dbinfo.xml files are not created.
    INFO  [dbConfig_silent] com.bea.install.custom.silent.tasks.DBConfigurationSilentTask
                                          - Processing database configuration...
    WARN  [dbConfig_silent] com.bea.install.custom.jdbc.JdbcHelper - writeDatabaseProp:
                                             destination directory is null, dbinfo.xml and database.properties not written.

Solution

Ensure the APP_SERVER_TYPE parameter is specified using lower case, for example wls
Ensure the WL_HOME parameter is set to the location of the WebLogic installation


Sample script to execute the silent installation

PATH=$PATH:/u02/app/java/jdk1.6.0_27/bin/:$PATH
export PATH
java -jar /media/sf_share/OER111170_generic.jar -mode=silent
                                                                               -silent_xml=/home/oracle/Desktop/Silent.xml
                                                                               -log=/home/oracle/Desktop/oer_install.log


Corrected Silent.xml example

<?xml version='1.0' encoding='UTF-8'?>
<Oracle-installer>
<input-fields>
<!-- <data-value name='OracleHome' value='/home/oracle/middleware_home_1036'/> -->
<!-- known issue use BEAHOME instead -->
<data-value name='BEAHOME' value='/home/oracle/middleware_home_1036'/>
<data-value name='COMPONENT_PATHS' value='Oracle Enterprise Repository/Core Repository with Examples'/>
<data-value name='APP_SERVER_TYPE' value='wls' />
<data-value name='WL_HOME' value='/home/oracle/middleware_home_1036/wlserver'/>
<data-value name='APP_SERVER_NAME' value='WebLogic Server 11'/>
<data-value name='APP_PATH' value='oer'/>
<data-value name='WEB_PATH' value='oer-web'/>
<data-value name='OER_URL' value='localhost'/>
<data-value name='DOMAIN_LISTEN_PORT' value='7101' />
<data-value name='APP_SERVER_HOME' value='/home/oracle/middleware_home_1036/wlserver'/>
<!-- <data-value name='USER_INSTALL_DIR' value='/home/oracle/middleware_home_1036/repository111'/> -->
<!-- Use ALER_INSTALL_DIR instead of USER_INSTALL_DIR or the target directory will not be created -->
<data-value name='ALER_INSTALL_DIR'  value='/home/oracle/middleware_home_1036/repository111'/>
<data-value name='RUN_DBCONFIG_WIZARD' value='yes'/>
<data-value name='CONFIG_RESPOSIT_DB' value='yes'/>
<data-value name='DB_TABLE_BLOB' value='OER_LOB_TEST'/>
<data-value name='DB_TABLE_DATA' value='OER_DATA_TEST'/>
<data-value name='DB_TABLE_INDEX' value='OER_INDEX_TEST'/>
<data-value name='DB_DRIVER' value='oracle.jdbc.driver.OracleDriver'/>
<data-value name='DB_JARFILES' value='/u01/app/oracle/product/11.2.0/db_1/jdbc/lib/ojdbc6.jar'/>
<data-value name='DB_DBMS' value='orcl'/>
<data-value name='DB_PORT' value='1521'/>
<data-value name='DB_HOST' value='localhost'/>
<data-value name='DB_USERNAME' value='OER_TEST'/>
<data-value name='DB_PASSWORD' value='welcome1'/>
</input-fields>
</Oracle-installer>