In fact we tried xopy on a windows server the whole weblogic server installation and it worked like a charm. See this post It is a little more complicated than a plain copy if your server uses SSL (read below)
You can file copy a weblogic domain to another server provided that:
- The servers have identical directory structure for MIDDLEWARE_HOME. In our case, it was /u01/app/oracle/product/middleware
- The linux username is the same. In our case, it was oracle.
- The Fusion Middleware version is the same. In our case it was 11.1.2.0
- There is no cluster configured in the domain.
- Shutdown all weblogic servers and node manage in source server.
- Go to the 'AdminServer' root directory (should be under $MIDDLEWARE_HOME/user_projects/domains/domain name/servers/AdminServer ) and delete all sub-directories except the "security" directory. This includes tmp, data, cache, etc . Do the same for all managed servers in the domain
- Switch to domain root and execute command below to create a tar file with the domain contents.
$ cd $MIDDLEWARE_HOME/user_projects/domains/ $ tar -cvf mydomain.tar ./mydomain
- Ftp / copy tar file to target server
- Login to target using weblogic server's user username and execute command below to extract tar file.
$ cd $MIDDLEWARE_HOME/user_projects/domains $ tar -xvf domain.tar
- After extraction of domain files:
- Update the domain registry of weblogic installation to include the new domain.
- You will have to search and replace the source machine's hostname with the targets machine's hostname inside any non binary file in the MIDDLEWARE_HOME. For our web logic installation it was only in 1 file. For the Middleware home, it was multiple files.
- ONLY for servers that utilize SSL:Generate a new DemoIdentity.jks file for use with nodemanager (The one copied over was for source host).
$ cd $MIDDLEWARE_HOME/wlserver_10.3/server/lib/ $ . ../bin/setWLSEnv.sh $ java utils.CertGen -cn targethost.com -keyfilepass $ java utils.CertGen -cn targethost.com -keyfilepass DemoIdentityPassPhrase -certfile testcert -keyfile testkey $ java utils.ImportPrivateKey newkeystore.jks DemoIdentityKeyStorePassPhrase demoidentity DemoIdentityPassPhrase testcert.pem testkey.pem $ keytool -v -list -keystore newkeystore.jks -storepass DemoIdentityKeyStorePassPhrase $ cp newkeystore.jks DemoIdentity.jks
- Finally start the WebLogic nodemanager and servers on the target machine and verify that all is OK.
Have you ever tried copying a service bus domain? Have a coworker trying it but cannot get the 'ALSB Framework Starter Application' to deploy on admin server startup...
ReplyDeleteThanks For sharing Your information The information shared Is Very Valuable Please Keep Updating Us Time Just went On reading Thae article Python Online Training DataScience Online Training AWS Online Training Hadoop Online Training
ReplyDeleteThanks for such a wonderful help...Keep posting...This Blogs are a part of others Enhancement in Their careers..keep it up!!
ReplyDeleteandroid training in chennai
android online training in chennai
android training in bangalore
android training in hyderabad
android Training in coimbatore
android training
android online training
Great and that i have a dandy present: Is It Good To Buy Old House And Renovate sustainable home renovation
ReplyDelete