Databases Reference
In-Depth Information
Distributing the domain files to remote
machines
A new domain is installed and configured in one machine (
prod01
). Since the architecture
includes another machine (
prod02
), the domain files now have to be distributed in all the
machines of the domain.
This recipe contains the steps to distribute the files either by using the built-in WebLogic tools
pack
and
unpack
or by copying them manually in the command line of the shell.
Getting ready
Create a new template of the domain using the
pack
command in the
prod01
machine.
With the template created in
prod01
, use the
unpack
command to distribute the files to
the machine
prod02
(and to all machines used by the WebLogic cluster).
How to do it...
Carry out the following steps to distribute the domain files:
1. Log in as a
wls
user on the first machine
prod01
and navigate to the folder:
[wls@prod01]$ cd $WL_HOME/common/bin
2. Run the following command:
[wls@prod01]$ ./pack.sh -domain=$DOMAIN_HOME-template=$WL_HOME/
common/templates/domains/PROD_DOMAIN_template.jar -template_
name=PROD_DOMAIN -managed=true
A file
$WL_HOME/common/templates/domains/PROD_DOMAIN_template.jar
will be created.
3. Log in as a
wls
user on the second machine
prod02
and copy the template from
prod01
to
prod02
:
[wls@prod02]$ scp wls@prod01:$WL_HOME/common/templates/domains/
PROD_DOMAIN_template.jar $WL_HOME/common/templates/domains/
4. Run the following commands to unpack the template:
[wls@prod02]$ cd $WL_HOME/common/bin
[wls@prod02]$ ./unpack.sh -template=$WL_HOME/common/templates/
domains/PROD_DOMAIN_template.jar -domain=$DOMAIN_HOME
Search WWH ::
Custom Search