19.2 End-User Connection Issues
Troubleshoot end-user login issues for both locally managed accounts and externally managed accounts (through an IAM system).
19.2.1 Local End User Cannot Connect to the Database
If a locally managed end user cannot connect to the database, the account may lack the required privilege, may not be active, or the multifactor authentication (MFA) configuration may not be correct.
Issue description
A locally managed end user (created with the CREATE END USER
statement and authenticated by password) cannot connect to the database, even when
the user enters the correct password. Or, a locally managed end user who has a
second authentication factor configured enters the correct password, but the
database doesn’t establish the session because second-factor authentication can’t be
completed.
Probable causes
- The local end user does not have the
CREATE SESSIONprivilege, which is required to log in to the database. - The end user's account status is not active, or the
START_TIMEandEND_TIMEassigned to the end user do not permit login at the current time. - The end user has not completed the device registration for MFA.
- The authenticator (Cisco Duo or Oracle Mobile Authenticator) is not configured correctly, so the second-factor push notification is not sent.
- The connection times out before the end user completes the second factor.
Resolution procedure
- Create a database role and grant it the
CREATE SESSIONprivilege. - Create a data role, and grant the database role created in Step 1 to the data role.
- Grant this data role to the local end user.
- Query the
DBA_END_USERSview. Verify that theACCOUNT_STATUSis active and theSTART_TIMEandEND_TIMEvalues permit the current login time. - For MFA scenarios, verify that you've configured the following
parameters correctly: the MFA provider parameter
(
MFA_DUO_API_HOSTorMFA_OMA_IAM_DOMAIN_URL), the SMTP parameters, the server-wallet secrets, theSQLNET.INBOUND_CONNECT_TIMEOUTvalue, and thesys.MFA_SMTP_CREDENTIAL$credential object. See Set Up Multifactor Authentication for Local End Users. - Confirm that the
SQLNET.INBOUND_CONNECT_TIMEOUTparameter in the server’ssqlnet.orafile is greater than 60 seconds. - Confirm that the end user received the enrollment email, installed the authenticator application (Duo Mobile or Oracle Mobile Authenticator), and registered their device using the link in the email.
- Attempt the connection again with the end user’s credentials. If a second authentication factor is configured, approve the push notification before the connection times out.
19.2.2 External End User Cannot Connect Through IAM
If an externally managed end user cannot connect through an IAM provider, the IAM configuration or token claims may not align with the identity provider settings in the database.
Issue description
An externally managed end user (whose identity is maintained in an IAM system, such as Microsoft Entra ID or OCI IAM) cannot connect to the database or cannot establish an end-user security context through the application.
Probable causes
- The end user is not properly configured or does not have the required application roles assigned in the IAM system.
- The identity provider configuration in the database does not match the claims in the OAuth 2.0 access token (audience mismatch, incorrect application URI, or wrong domain URL).
Resolution procedure
- Verify that the end user exists and is properly configured in the IAM system. Confirm that the user has the required application roles assigned. See Configure Microsoft Entra ID for Application-Mediated Access and Configure OCI IAM for Application-Mediated Access.
- Verify the identity provider configuration in the database. See Configure the Database for IAM Integration.
- If the issue persists, enable diagnostic tracing and examine the trace output. See Enable Diagnostic Tracing.