Saturday, June 29, 2013
Weblogic Pack and Unpack Utility
1.Packing:
The pack command creates a template archive (.jar) file that contains a snapshot of either an entire domain or a subset of a domain. You can use a template that contains a subset of a domain to create a Managed Server domain directory hierarchy on a remote machine.
Syntax:
pack -domain=domain -template=template -template_name="template_name"
[-template_author="author"][-template_desc="description"]
[-managed={true|false}][-log=log_file] [-log_priority=log_priority]
Example:
$$./pack.sh -domain="/opt/thiru/Oracle/Middleware/user_projects/domains/Development" -template="/opt/thiru/Oracle/Middleware/user_projects/domains/Development/Development.jar" -template_name="Development"
<< read domain from "/opt/thiru/Oracle/Middleware/user_projects/domains/Development"
>> succeed: read domain from "/opt/thiru/Oracle/Middleware/user_projects/domains/Development"
<< write template to "/opt/thiru/Oracle/Middleware/user_projects/domains/Development/Development.jar"
....................................................................................................
>> succeed: write template to "/opt/thiru/Oracle/Middleware/user_projects/domains/Development/Development.jar"
<< close template
>> succeed: close template
2.Unpacking:
Creates a full domain or a subset of a domain used for a Managed Server domain directory on a remote machine. You may use unpack only with a template compatible with your current installation.
Syntax:
unpack -template=template -domain=domain [-user_name=username]
[-password=password] [-app_dir=application_directory]
[-java_home=java_home_directory] [-server_start_mode={dev|prod}]
[-log=log_file] [-log_priority=log_priority]
Example:
$$ ./unpack.sh -template="/home/thiru/Development.jar" -domain="/opt/thiru/Oracle/Middleware/user_projects/domains/Testing"
<< read template from "/home/thiru/Development.jar"
>> succeed: read template from "/home/thiru/Development.jar"
<< write Domain to "/opt/thiru/Oracle/Middleware/user_projects/domains/Testing"
...............................................................................................
>> succeed: write Domain to "/opt/thiru/Oracle/Middleware/user_projects/domains/Testing"
<< close template
>> succeed: close template
No comments:
Post a Comment