| Oracle® SOA Suite Installation Guide for Oracle WebLogic Server 10g Release 3 (10.1.3.5.1) for UNIX and Microsoft Windows Part Number E15828-01 |
|
|
View PDF |
The chapter describes silent installation of Oracle SOA Suite for Oracle WebLogic Server.
It includes the following topics:
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.
For Microsoft Windows systems, 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 6.2, "Preinstallation"
For Unix systems, following installation of Oracle Application Server, you need to run the root.sh script as the root user. The root.sh script detects settings of environment variables and enables you to enter the full path of the local bin directory.
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.
Complete the following steps for your operating system:
For Microsoft Windows systems:
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
For Unix systems:
Log in as the root user.
prompt> su
As root user, create the /var/opt/oracle directory, if it does not already exist.
# mkdir /var/opt/oracle
Create the file. This file specifies the inventory directory that the installer will use.
Using a text editor such as vi or emacs, enter the following line in the file:
inventory_loc=oui_inventory_directory
Replace oui_inventory_directory with the full path to the directory where you want the installer to create the inventory directory. For example:
inventory_loc=/opt/oracle/oraInventory
Make sure that the oinstall operating system group has write permissions to this directory.
Create an empty file.
# touch /oratab
Exit from the root user.
# exit
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.
Templates for response files are available in the /install/Response directory on Disk 1 of the Oracle Application Server CD-ROM.
See the template files for descriptions of the parameters in the file.
Note:
For Boolean parameters, specify either "true" or "false".This section describes how to silently configure Oracle SOA Suite for Oracle WebLogic Server.
Update the $SOA_ORACLE_HOME/install/SOADomain.properties file. Add the following properties with the noted assigned values:
OVERRIDE_ORAWSM_DB_PASSWORD=<password for orawsm schema>
OVERRIDE_INVOKE_CONFIG_WIZARD=false
The first property ensures that configureSOA.sh does not need the user to enter the orawsm password from the prompt.
The second property ensures that WLS Config Wizard tool is not invoked after configureSOA.sh runs.
The following example is an excerpt of a sample ant script used to update the SOADomain.properties file and invoke the configureSOA.sh script:
<target name="InvokeConfigureSOASilent">
<propertyfile file="${SOA10G_ORACLE_HOME}/install/SOADomain.properties">
<entry key="OVERRIDE_ORAWSM_DB_PASSWORD" value="orawsm"/>
<entry key="OVERRIDE_INVOKE_CONFIG_WIZARD" value="false"/>
</propertyfile>
<exec executable="configureSOA.sh" dir="${SOA10G_ORACLE_HOME}/config" />
</target>
You can customize and use the following WLST scripts provided with the product to create and configure the SOA Domain on Oracle WebLogic Server.
The order of executing the scripts using the WLST command line tool are:
create_domain.py
config_soa.py
For example, you would invoke the scripts with following commands:
WL_HOME/common/bin/wlst.sh create_domain.py
WL_HOME/common/bin/wlst.sh config_soa.py
using the following example script:
#######################################
#create_domain.py:
#######################################
#!/usr/bin/python
import os, sys
readTemplate(r'/home/user/Oracle/Middleware/wlserver_10.3/common/templates/domains/wls.jar')
cd(r'/Security/base_domain/User/weblogic')
cmo.setPassword('welcome1')
cd(r'/Security/base_domain/User')
create('soaadmin','User')
cd('soaadmin')
cmo.setPassword('welcome1')
cd(r'/Server/AdminServer')
cmo.setName('AdminServer')
cmo.setListenPort(17449)
cmo.setListenAddress('host.domain.com')
create('AdminServer','SSL')
cd('SSL/AdminServer')
cmo.setEnabled(true)
cmo.setListenPort(16771)
cmo.setHostnameVerificationIgnored(true)
cmo.setHostnameVerifier(None)
cmo.setTwoWaySSLEnabled(false)
writeDomain(r'/home/user/Oracle/Middleware/user_projects/domains/SOADomain')
closeTemplate()
exit()
#######################################
#config_soa.py
#######################################
#!/usr/bin/python
import os, sys
try:
WL_HOME = "/home/user/Oracle/Middleware/wlserver_10.3"
DOMAIN_HOME = "/home/user/Oracle/Middleware/user_projects/domains/SOADomain"
MW_HOME = "/home/user/Oracle/Middleware/OracleAS_1"
SOA_ORACLE_HOME = "/home/user/Oracle/Middleware/OracleAS_1"
if DOMAIN_HOME is None:
sys.exit("Error: Please set the environment variable DOMAIN_HOME")
if WL_HOME is None:
sys.exit("Error: Please set the environment variable WL_HOME")
if MW_HOME is None:
sys.exit("Error: Please set the environment variable MW_HOME")
if SOA_ORACLE_HOME is None:
sys.exit("Error: Please set the environment variable SOA_ORACLE_HOME")
except (KeyError), why:
sys.exit("Error: Missing Environment Variables " + str(why))
readDomain('/home/user/Oracle/Middleware/user_projects/domains/SOADomain')
addTemplate(r'/home/user/Oracle/Middleware/OracleAS_1/common/templates/applications/oracle.soa_template_10.1.3.5.0.jar')
cd('/Server/soa10g_server1')
cmo.setListenPort(17575)
create('soa10g_server1','SSL')
cd('SSL/soa10g_server1')
cmo.setEnabled(true)
cmo.setListenPort(22782)
assign("User", "soaadmin", "Group", "SoaGroup")
assign("User", "soaadmin", "Group", "BpelGroup")
assign("User", "soaadmin", "Group", "EsbViewerGroup")
assign("User", "soaadmin", "Group", "EsbAdminGroup")
assign("User", "soaadmin", "Group", "OwsmAdminGroup")
assign("User", "soaadmin", "Group", "rule-administrators")
cd('/JDBCConnectionPool/esbds')
cmo.setDriverName('oracle.jdbc.xa.client.OracleXADataSource')
cmo.setPassword('welcome1')
set("Properties","user=oraesb;portNumber=dbport;SID=dbsid;serverName=dbhost")
cmo.setURL('jdbc:oracle:thin:@dbhost:dbport:dbsid')
cd('/JDBCConnectionPool/esbaqdatasource')cmo.setDriverName('oracle.jdbc.xa.client.OracleXADataSource')
cmo.setPassword('welcome1')
set("Properties","user=oraesb;portNumber=dbport;SID=dbsid;serverName=dbhost")
cmo.setURL('jdbc:oracle:thin:@dbhost:dbport:dbsid')
cd('/JDBCConnectionPool/BPELServerDataSourceWorkflow')
cmo.setDriverName('oracle.jdbc.OracleDriver')
cmo.setPassword('welcome1')
set("Properties","user=orabpel;portNumber=dbport;SID=dbsid;serverName=dbhost")
cmo.setURL('jdbc:oracle:thin:@dbhost:dbport:dbsid')
cd('/JDBCConnectionPool/BPELServerDataSource')
cmo.setDriverName('oracle.jdbc.xa.client.OracleXADataSource')
cmo.setPassword('welcome1')
set("Properties","user=orabpel;portNumber=dbport;SID=dbsid;serverName=dbhost")
cmo.setURL('jdbc:oracle:thin:@dbhost:dbport:dbsid')
updateDomain()
closeDomain()
exit()
#######################################