How to Change an Username in Apps for an OID Integrated Instance - when attempting to create a new user, receive an ORA-20001 error (Doc ID 428726.1)

Last updated on OCTOBER 04, 2016

Applies to:

Oracle Applications Technology Stack - Version 11.5.8 to 12.1.3 [Release 11.5 to 12.1]
Information in this document applies to any platform.
Checked for Relevance on 04-FEB-2015

Symptoms

In an Apps environment integrated with OID where Apps to OID provisioning is enabled, when attempting to create a new user, you receive an ORA-20001 error.   Other users can be created successfully, so the problem seems to be related to one username only

STEPS
The issue can be reproduced at will with the following steps:
 

1.  Create a new user with the following username "12345" in Apps "Define User" form

 
 

2.  In OID there is a corresponding entry

cn=12345,cn=Users,dc=us,dc=oracle,dc=com
UID is 12345
 
3. Change the Apps user account to "98765" in the Apps "Define User" form
At this moment
cn=12345,cn=Users,dc=us,dc=oracle,dc=com
UID is 98765
DN is unique and cannot be changed in oidadmin, and neither oiddas.

So at this stage, although the username has been changed and will work correctly, the original internal reference is still being used within OID

4.  If you now have a situation where you need to create a separate new user "12345" in Apps, this should work without an error, but instead in Define->User form the following error appears:

"Unable to call fnd_ldap_wrapper_user due to the following reason: ORA-20001:
Unable to call fnd_ldap_wrapper_user due to the following reason:
A user with the given username already exists.
Please use a different username. (USER_NAME=12345). (USER_NAME=12345)"
BUSINESS IMPACT
The issue has the following business impact:
Due to this issue, specific new users cannot be created without knowing the previous history of user creation.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms