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

  1. Navigate to $DOMAIN_HOME/servers/AdminServer/data/ldap/ldapfiles.
  2. See if there are backup files for EmbeddedLDAP.XYZ (where XYZ is a numeric value).
  3. Shutdown the entire domain, backup EmbeddedLDAP.data and replace it with this backup.

Option 2: Restore Embedded LDAP from file system backup

  1. Restore the $DOMAIN_HOME/servers/AdminServer/data/ldap/ldapfiles from an earlier file system backup.

Option 3: Copy Embedded LDAP from another environment

  1. Copy the $DOMAIN_HOME/servers/AdminServer/data/ldap/ldapfiles from a different environment, assuming all environments are identical.

References

As a friendly reminder, don't forget to Enable 'configuration archive' in WebLogic.