In this blog we will see domain re-configuration which will be done as part of Weblogic migration from lower version to higher version [ Ex Weblogic 12 to Weblogic 14 or Weblogic 10 to Weblogic 12 or weblogic 10 to 14 version]
/sw/bea14 – path contains weblogic 14.1.1
/sw/java8_64 — path contains Java 1.8 281
/aps for Domains and /sw mount points available software installations in our case
We will bave /sw/bea12 installed and have a domain /aps/tst/tstDomain
Domain Reconfiguration
1) Backup Entire tstDomain before reconfiguring the domain
Note: wlst.sh should be executed from the new version
2) execute /sw/bea14/oracle_common/common/bin/wlst.sh
3) in offline WLST execute in sequence
a) readDomainForUpgrade(‘/aps/tst/tstDomain’)
b) updateDomain()
c) closeDomain()
d) exit()
4) Update setDomainEnv.sh with the new location of commEnv.sh at
${WL_HOME}/../oracle_common/common/bin/commEnv.sh
5) Rename WLS_DIAGNOSTICSxxxxxx.DAT for each instance in {instance folder}/data/store/diagnostics
6) Start the services and verify .
Now verify the Admin console and logs it will reflect latest version of Weblogic .
Error’s that might happen during domain re-configuration
Caused by:com.oracle.cie.domain.script.ScriptException:64254:Error occurred in “Backup & Initialization” phase execution 64254:Encountered error:60971: Tha domain is not reconfigurable. |
Upgrading WebLogic domain from WLS 12.1.3 to 12.2.1.4 using WLST fails with:
Error
====
Initializing WebLogic Scripting Tool (WLST) …
Welcome to WebLogic Server Administration Scripting Shell
Type help() for help on available commands
Error: readDomainForUpgrade() failed. Do dumpStack() to see details.
Error: runCmd() failed. Do dumpStack() to see details.
Problem invoking WLST – Traceback (innermost last):
File “/shared/weblogic/WLSbin/binaries_Install/WLS12214_binaries/DomainUpgrade.py”, line 2, in ?
File “/tmp/WLSTOfflineIni4018200302849410640.py”, line 269, in readDomainForUpgrade
File “/tmp/WLSTOfflineIni4018200302849410640.py”, line 19, in command
64254: Encountered error: 60971: The domain is not reconfigurable.
60971: The domain did not contain information necessary to determine how to reconfigure the domain.
60971: Refer to the upgrade documentation on how to proceed.
64254: Check log for more detail.
null
at com.oracle.cie.domain.script.jython.CommandExceptionHandler.handleException
at com.oracle.cie.domain.script.jython.WLScriptContext.handleException(WLScriptContext.java:3085)
at com.oracle.cie.domain.script.jython.WLScriptContext.runCmd(WLScriptContext.java:738)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:90)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:508)
com.oracle.cie.domain.script.jython.WLSTException: com.oracle.cie.domain.script.jython.WLSTException: 64254: Error occurred in “Backup & Initialization” phase execution
64254: Encountered error: 60971: The domain is not reconfigurable.
60971: The domain did not contain information necessary to determine how to reconfigure the domain.
60971: Refer to the upgrade documentation on how to proceed.
64254: Check log for more detail.
CAUSE
The cause behind the issue is with corrupted config.xml file for the upgrading domain.
SOLUTION
Use the following to resolve:
1. Restore correct config.xml from backup to $DOMAIN_HOME/config/config.xml file for upgrading WebLogic domain.
2. To re-configure / Upgrade a WebLogic Domain Using WebLogic Scripting Tool (WLST)
a. Navigate to <12.2.1.4_ORACLE_HOME>/oracle_common/common/bin
Invoke WLST using ./wlst.sh or java weblogic.WLST
b. Open the domain for upgrade.
wls:/offline> readDomainForUpgrade()
Example:
readDomainForUpgrade(‘/full-path-to-the WLS-domain-to-be-upgraded’)
# Save the updated domain.
wls:/offline/my_domain> updateDomain()
# Close the domain.
wls:/offline/my_domain> closeDomain()
Try above changes that are provide as part for Oracle Weblogic Documentation .