简体   繁体   中英

Is it possible to coppy weblogic and it's domain from linux to windows using some tools?

I searched about cloning or copying weblogic and it's domain, and found 2 ways that I think is the most nearest to my question. 1, packing and unpacking a weblogic domain 2, Creating Extension Templates .
There is weblogic 12.2.4 installed on Linux server and I want to coppy it's configuration and domain and create my own instance with exact configuration. If it's possible, pleas give me solution or some clues and key-word to search more. And do I need to change some configs by hand or provided tool does everything?
Is copying domain different from copying weblogic configuration? Thanks very much.

If you want to create a domain with the same configuration, but on Windows, you should use Weblogic Deploy Tooling .

The first step is to install Oracle Weblogic on your windows machine(s).

The second step is to use the discoverydomain.sh to introspect the domain, which is running on Linux.

The previous step will generate a model in YAML, which represents your Linux domain as code and then you will have to customize it with proper values for Weblogic's user's passwords, data sources, etc.

Once you have the model ready, you can run createdomain.cmd on Windows to create the domain. By the way, if your domain is distributed on several machines you will have to run pack and unpack after creating the domain with Weblogic Deploy Tooling because it only works on the node, which will host the AdminServer.

Here you have an example about using Weblogic Deploy Tooling with Ansible to create a domain with SOA https://github.com/textanalyticsman/ansible-soa-wldt

Yes, it is theoretically possible to copy $DOMAIN_HOME (WebLogic domain) to or from Windows.

However, I would NOT copy the $WL_HOME directory. Here a fresh installation is the only way.

As you mention the tool recommended by Oracle would be pack and unpack . With the assumption, that there is no WebLogic security realm configured.

Another option would be to create a new domain (preferable with the same name) with the Configuration Wizard and then copy the XML-fragments from the old $DOMAIN_HOME/config/* files in the fresh domain. Watch out for the encrypted passwords. Don't mix the encrypted fields in the old a new domain.

Another option would to use Windows Subsystem for Linux (WSL2). In this case, you can copy your files 1:1. $JAVA_HOME , $WL_HOME and $DOMAIN_HOME in one go. You WebLogic Server will start without any problems, except some DNS-Names or IP-Addresses issues.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM