简体   繁体   中英

How can I change the directory of weblogic installation?

I have the Oracle Weblogic binaries installed in a particular location on linux servers. For example, - /oracle/middleware1211/

I also have the 'user_projects/domains' installed in the same directory. For example, - /oracle/middleware1211/user_projects

My question is , how do I reconfigure/move the "user_projects" or "domains" directory out of the current directory ? For example, location should be, - /oracle/user_projects

Not planning to rename the domains , just move the directories so we have a same directory structure across all weblogic environments.

We are in the process of consolidation of all our Weblogic environments, and one of the steps is getting the domains moved outside the main Weblogic binary installation.

Thank you for your replies in advance.

I have tried using , reconfig.sh , to change the installation directory, but could not get it to work as I wanted to. Hoping there are some other alternatives or methods I can look into.

You can move a Weblogic Domain, changing the DOMAIN_HOME in the domain scripts.

If you check all the scripts in the path /oracle/middleware1211/user_projects/ domain_name /bin , you have this variable, with the current domain path, in some of them.

You have to copy all the domain directory to the new location, the best way is with rsync command and the domain stopped. You can sincronice the first time with the domain started, but i recomend you to do a last sincronization when you stop the domain, before the domain path changes.

After that, you have to change all the DOMAIN_HOME variables in all the scripts located in the new location ( / new_domains_location / domain_name /bin/ ), with the new domain path and starts the domain.

Starts first the admin server in the new location, and check in the log files that all is correct, then starts the managed servers.

If you have any problem and does not works, you can starts the domain in the old location, that is unchanged and have to works.

Obviously, you could make a first attempt in a test domain (or a new installed domain), to verify that the process is correct. Then you have to do the same steps with the rest of the domains.

Hope this can help you.

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