Sunteți pe pagina 1din 1

Distributing the domain files to remote machines

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

Distributing WebLogic domain files manually


You can simply copy the domain files manually too; just don't forget to edit the
nodemanager.domains file and add the domain entry.The $DOMAIN_HOME
environment variable points to the
/oracle/Middleware/user_projects/domains/PROD_DOMAIN directory.
1. Log in as a wls user on the machine prod02 and copy the domain from prod01:

[wls@prod02]$ mkdir p $DOMAIN_HOME


[wls@prod02]$ scp rp wls@prod01:$DOMAIN_HOME $DOMAIN_HOME/..

2. Edit the nodemanager.domains file:

[wls@prod01]$ vi $WL_HOME/common/nodemanager/nodemanager.domains

3. Add the following entry if it doesn't exist:


PROD_DOMAIN=/oracle/Middleware/user_projects/domains/PROD_DOMAIN/

S-ar putea să vă placă și