Friday, April 26, 2013

pack & unpack domain

{pack & unpack command in weblogic used to create the domain template or you can say it's used in high level environment setup where managed servers distributed across multiple hosts since it's required to create domain on each and every hosts in such kind of setup.}
 
Execute Following command under $WL_HOME/common/bin dir to pack domain

pack.sh  –managed=true –domain=<domain name> -template=<domain_name.jar> -template_name=”<description>”

For example if you want to pack domain mydomain :-




pack.sh  –managed=true –domain=mydomain -template=mydomain.jar -template_name=”mydomain template”nt




Now copy the jar file under some location in another machine where we have to unpack it. For unpacking 

execute following command under $WL_HOME/common/bin



unpack.sh –domain=<domain name> -template=<jar file name>


For example if you want to pack domain mydomain :-


unpack.sh –domain=mydomain  -template=mydomain.jar

No comments: