Click HERE to see how Saviynt Intelligence is transforming the industry. |
08/06/2024 10:04 AM
Hello team,
We are having an issue in oracle db where we need to create a new account and also insert values into a DBA table.
We are using the below CreateAccountJson
{
"createAccountqry":["CREATE USER \"${user.username}\" IDENTIFIED BY \"${password}\" PROFILE \"DBA_USER\"",
"INSERT INTO pl_users (USER_NM,LAST_NM,FIRST_NM,PHONE_NB,LOCATION_CD,USER_TYPE) values( '${user.username}','${user.lastname}','${user.firstname}','${user.phonenumber}','${user.location}','${user.employeeType}')"]
}
CREATE USER \"${user.username}\" IDENTIFIED BY \"${password}\" PROFILE \"DBA_USER\"", this is working fine after adding insert statement getting the error (Exception occured while Excecuting Query)
please let me know if I am missing here
08/06/2024 10:10 AM
{
"createAccountqry": [
"CREATE USER \"${user.username}\" IDENTIFIED BY \"${randomPassword}\" PROFILE \"DBA_USER\"",
"INSERT INTO pl_users (USER_NM,LAST_NM,FIRST_NM,PHONE_NB,LOCATION_CD,USER_TYPE) values( '${user.username}','${user.lastname}','${user.firstname}','${user.phoneNumber}','${user.location}','${user.employeeType}')"
]
}
08/06/2024 10:45 AM
@rushikeshvartak , I have tried with above Json
getting the below error
Exception occured in Create Account Query - ORA-28003: password verification for the specified password failed ORA-20000: password length less than 12 bytes
08/06/2024 10:48 AM
Did you added password policy in accordingly do database.?
08/06/2024 11:03 AM
@rushikeshvartak , Yes we do have added that configuration
Still getting the error
Exception occured in Create Account Query - ORA-28003: password verification for the specified password failed ORA-20000: password length less than 12 bytes
08/06/2024 08:45 PM
Hardcode password and try and are you able to create user directly from database?
{
"createAccountqry": [
"CREATE USER \"${user.username}\" IDENTIFIED BY \"RUHIKESH@Forum@2024\" PROFILE \"DBA_USER\"",
"INSERT INTO pl_users (USER_NM,LAST_NM,FIRST_NM,PHONE_NB,LOCATION_CD,USER_TYPE) values( '${user.username}','${user.lastname}','${user.firstname}','${user.phoneNumber}','${user.location}','${user.employeeType}')"
]
}
08/06/2024 11:48 PM - edited 08/06/2024 11:48 PM
@rushikeshvartak - Yes we are able to create user directly in database.
After hardcoding the password, we are getting the below error but that user is not there in database.
SAV - Error while creating account - xxxxxx- Exception occured in Create Account Query - ORA-01920: user name 'xxxxxx' conflicts with another user or role name
08/07/2024 05:17 AM
User must be exists try with new user