A customer experienced an issue in Oracle WebLogic 12c in which their Global Roles suddenly disappeared. Not having seen this exact issue before, I did however experience issues in the past where the Embedded LDAP was corrupted.
Per Oracle Doc ID 1192253.1, Oracle Support states that "LDAP corruption usually occurs when the server instance is killed or shut down improperly."
Option 1: Restore Embedded LDAP from internal backup
- Navigate to
- See if there are backup files for
EmbeddedLDAP.XYZ(where XYZ is a numeric value).
- Shutdown the entire domain, backup
EmbeddedLDAP.dataand replace it with this backup.
Option 2: Restore Embedded LDAP from file system backup
- Restore the
$DOMAIN_HOME/servers/AdminServer/data/ldap/ldapfilesfrom an earlier file system backup.
Option 3: Copy Embedded LDAP from another environment
- Copy the
$DOMAIN_HOME/servers/AdminServer/data/ldap/ldapfilesfrom a different environment, assuming all environments are identical.
- How To Fix a Corrupted LDAP Directory for a WebLogic Administration Server (Oracle Doc ID 1370860.1)
As a friendly reminder, don't forget to Enable 'configuration archive' in WebLogic.