Performing an Online Backup of Run-Time Artifacts

Recovering Your Environment 18-5 On the next configuration change, the configuration from the Administration Server is pushed to the Managed Servers. On each Managed Server restart, the configuration is retrieved from the Administration Server.

18.2.6 Recovering a Managed Server

You can recover a Managed Servers files, including its configuration files if they are deleted or corrupted. The following topics describe how to recover a Managed Servers files: ■ Recovering a Managed Server When It Cannot Be Started ■ Recovering a Managed Server When It Does Not Function Correctly ■ Recovering an Oracle SOA Suite Managed Server That Has a Separate Directory This section pertains when Oracle SOA Suite is configured in a domain and no Managed Servers share the domain directory with the Administration Server.

18.2.6.1 Recovering a Managed Server When It Cannot Be Started

In this scenario, the Managed Server does not operate properly or cannot be started because the configuration has been deleted or corrupted or the configuration was mistakenly changed and you cannot ascertain what was changed. To recover a Managed Server when it cannot be started: 1. If the Administration Server is not reachable, recover the Administration Server, as described in Section 18.2.5 . 2. If the Managed Server fails to start or if the file system is lost, take the following steps: a. Recover the Middleware home from the backup, if required. For example: tar -xf mw_home_backup_092010.tar b. Create a domain template jar file for the Administration Server, using the pack utility. For example: pack.sh -domain=MW_HOMEuser_projectsdomainsdomain_name -template=scratchtemp.jar -template_name=test_install -template_author=myname -log=scratchlogsmy.log -managed=true Specifying the -managed=true option packs up only the Managed Servers. If you want to pack the entire domain, omit this option. c. Unpack the domain template jar file, using the unpack utility: unpack.sh -template=scratchaime1ms.jar -domain=MW_HOMEuser_projectsdomainsdomain_name -log=scratchlogsnew.log -log_priority=info d. Ensure that the application artifacts are accessible from the Managed Server host. That is, if the application artifacts are not on the same server as the Managed Server, they must be in a location accessible by the Managed Server. 18-6 Oracle Fusion Middleware Administrators Guide e. Start the Managed Server. For example: DOMAIN_HOMEbinstartManagedWebLogic.sh managed_server_name admin_url The Managed Server connects to the Administration Server and updates its configuration changes.

18.2.6.2 Recovering a Managed Server When It Does Not Function Correctly

In this scenario, the Managed Server is running, but the file system for the Managed Server has been lost or corrupted. To recover the Managed Server: 1. Stop the Managed Server. For example: DOMAIN_HOMEbinstopManagedWeblogic.sh managed_server_name admin_url username password 2. Recover the Middleware home from the backup, if required: tar -xf mw_home_backup_092010.tar 3. Create a domain template jar file for the Administration Server, using the pack utility. For example: pack.sh -domain=MW_HOMEuser_projectsdomainsWLS_SOAWC -template=scratchtemp.jar -template_name=test_install -template_author=myname -log=scratchlogsmy.log -managed=true Specifying the -managed=true option packs up only the Managed Servers. If you want to pack the entire domain, omit this option. 4. Unpack the domain template jar file, using the unpack utility: unpack.sh -template=scratchaime1ms.jar -domain=MW_HOMEuser_projectsdomainsWLS_SOAWC -log=scratchlogsnew.log -log_priority=info 5. Ensure that the application artifacts are accessible from the Managed Server host. That is, if the application artifacts are not on the same server as the Managed Server, they must be in a location accessible by the Managed Server. Note: ■ For stage mode applications, the Administration server copies the application bits to the staged directories on the Managed Server hosts. ■ For nostage and external_stage mode applications, ensure that application files are available in the stage directories of the Managed Server. See Oracle Fusion Middleware Deploying Applications to Oracle WebLogic Server for information about stage, nostage and external_stage modes.