My Oracle Support Banner

WLST properties (<DOMAINNAME>,<USERNAME>,<SERVERNAME>,<VERSION>) ,loaded using "loadProperties" command,Loses their values After Running NmConnect (Doc ID 1468027.1)

Last updated on MARCH 22, 2024

Applies to:

Oracle WebLogic Server - Version 10.3.6 and later
Information in this document applies to any platform.


In a WLST Python Script while the Propeties are loaded using loadProperties() command some of the properties e.g "username" and "domainName" does not stay throughout the entire WLST Session whereas other stays intact throughout the WLST Session. However if the Name of the property is changed in the property file e.g.
  username       ------    To   -------   Username
  domainName    ------    To   -------    DomainName
then they behave similar to other properties and persists throughout the WLST Session. Persistence had been tested using print command in the WLST/Python Script.  

Below is the simple script which can be used to demonstrate the scenario:-

The Property Values then have to be loaded again if you want to use them in further commands. However if the Property Names are different than username or domainName there are no issues they are never lost throughout the WLST Session.





To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.