$ORACLE_HOME/bin/createinstance –instanceName oc4j_foo -groupName foo_group
$ORACLE_HOME/bin/createinstance –instanceName BLUE –groupName COLORS
Script:
Create OC4J containers / OC4J Groups:
#!/bin/sh
if [ $# != 3 ];
then
echo "Start op: $0 "
echo "If there is no group create the container for the default group."
exit 1
fi
export ENV=${1}
export OC4J_CONTAINER=${2}
export OC4J_GROUP=${3}
. ~/${ENV}
$ORACLE_HOME/bin/createinstance -instanceName ${OC4J_CONTAINER} -groupName ${OC4J_GROUP}
opmnctl startproc process-type=${OC4J_CONTAINER}
exit 0
Links:
http://www.oracle.com/technology/tech/java/oc4j/1013/whitepapers/OC4J-FAQ-MGT-10131.pdf
No comments:
Post a Comment
comment