Tuesday, December 6, 2011

Yes, you can XCOPY a weblogic installation to another server

On Windows Servers (2003/2008), it is possible to xcopy the whole weblogic installation from one server to another, and it will actually work: All domains, servers and deployments work as expected. Even the Fusion Middleware worked as expected, with all the patches and megabytes of jars that Oracle shovels into the installation.

It goes without saying that: (1) the directory structure between the 2 servers should be identical, ie if on source Server weblogic was installed on c:\oracle\middleware, then on Server 2 it should be the same, (2) The Java jdk is installed at exactly the same path and (3) You will have to search and replace the hostnames inside configuration files in the installation.
While on destination server and assuming the source server is available over the network, the xcopy command is this:

xcopy \\server1\c$\oracle\middleware c:\oracle\middleware /E/ H
It is even a better approach to tar and compress the directory and then copy it. Just be sure to include any hidden files.

This is useful in cases where:

  • You need to transfer an installation to another server, for example a failover server
  • You need to transfer an installation from a staging virtual machine to production
  • You need to restore a corrupted weblogic domain from backup.

No comments:

Post a Comment