This is the last refuge for the poor and downtrodden—a forgotten corner of the world where hope still flickers despite the darkness.

Identify these installation parameters:

VariableExample
$MW_HOME/opt/oracle/occas/8.1
$WLST_SCRIPTmy-occas-replicated.py
domainNamereplicated
usernameweblogic
passwordwelcome1
ServerStartModeprod

Need to install OCCAS without a GUI? Here's how to perform a 'silent' install.

Create a file called "oraInst.loc" in either /etc or the oracle home directory ${PWD}.

inventory_loc=/opt/oracle/oraInventory
inst_group=install

Create a response file, 'install.rsp'...

[ENGINE]
Response File Version=1.0.0.0.0

[GENERIC]
DECLINE_AUTO_UPDATES=true
ORACLE_HOME=/opt/oracle/occas/8.1
INSTALL_TYPE=Complete with Examples

Run the 'silent' install...

java -jar occas_generic.jar -ignoreSysPrereqs -silent -invPtrLoc ${PWD}/oraInst.loc -responseFile ${PWD}/install.rsp

That was easy! I bet you're wondering why we didn't do that in the first place?

You guessed it... In order to know the contents of the "install.rsp" file, we first had to do a GUI install on some other system.

Final step...

Let's add a few environment variables to our ~/.bash_profile script:

export MW_HOME=/opt/oracle/occas/8.1
export PATH=$MW_HOME/OPatch:$PATH
source $MW_HOME/wlserver/server/bin/setWLSEnv.sh
alias wlst="java weblogic.WLST"

The MW in MW_HOME stands for "Middleware", i.e.: OCCAS.

Loading the setWLSEnv.sh file will allow the environment to utilize WebLogic tools, including WLST.

The 'wlst' alias helps with a bit of typing.

Go ahead and log out and log back in again to load the environment variables.

Now, it is time to head over to Patching.


Silent Domain Creation

Back from Patching? Now it is time to configure OCCAS Silently.

To do this, we are going to invoke a domain creation template manually through WLST.

You can find them located at: $MW_HOME/occas/common/templates/scripts/wlst

We want to make a copy of it and change a few parameters...

cd $MW_HOME/occas/common/templates/scripts/wlst
cp occas-replicated.py <WLST_SCRIPT>

Modify the following lines to fit your needs...

domainName='replicated'
...
username='weblogic'
password='welcome1'
...
setOption('ServerStartMode', 'prod')

Now run the script to create the domain...

wlst <WLST_script>

Delete the script to remove any traces of the password.


Silent Node Manager Domain Creation

Did you get to the Node Manager configuration and realize it also has a GUI installation?

I didn't forget about you!

To create a Node Manager domain, we just need to create a Basic WebLogic domain...

cd $MW_HOME
cd ./wlserver/common/templates/scripts/wlst
cp basicWLSDomain.py nodemanagerWLSDomain.py

Look for the password section in the script follow the instructions to set the password. Make sure the username and password match the OCCAS replicated domain.

# Please set password here before using this script, e.g. cmo.setPassword('value')
cmo.setPassword('welcome1')

Now run the script:

wlst nodemanagerWLSDomain.py

Delete the script to remove any traces of the password.