resources

Diagnose ORA-01017 Login Failures in Oracle Database 19c

For ORA-01017 in Oracle Database 19c, verify the username, password and intended database service together before retrying. A credential that belongs to another database or pluggable database (PDB) will not establish the session you need. Start with one controlled SQL*Plus connection, keep the password out of the command line, and ask the account owner to investigate if the confirmed credential still fails. Oracle describes the error in its ORA-01017 reference. For the wider triage path across naming, listener, login and SQL errors, see Oracle Database 19c troubleshooting: common ORA- errors.

Confirm the scope before testing

This workflow covers password-authenticated application users connecting with SQL*Plus 19c to Oracle Database 19c from Linux or Windows. You need an installed client, an approved account, and the host, port and service supplied by your DBA. Use a fresh terminal session dedicated to the test. If installation is incomplete, start with the Instant Client and SQL*Plus installation guide.

Keep the required VPN, TLS wallet and Oracle Net settings in place. The simple TCP example below is for an environment where that connection method is approved; it does not configure encryption. For IAM, Kerberos, external authentication or proxy users, follow the relevant authentication workflow instead. Oracle’s 19c authentication guide separates these methods.

Check the destination and account

  1. Confirm the exact service with the DBA, including whether it belongs to the required PDB. Do not substitute a SID or the CDB root service for a PDB service. Oracle documents connecting to containers with a service-specific connect identifier.
  2. Confirm the account name as provisioned, including any intentionally quoted identifier. Enter the password with its original case; check keyboard layout and accidental spaces without sharing the secret in a ticket or chat.
  3. Check the organization’s failed-login policy before another attempt. Repeated guesses can create a second problem by locking the account. Oracle describes password case sensitivity and failed-login controls in configuring password protection.

Make one controlled connection

Start a separate SQL*Plus process without logging in:

sqlplus /nolog

At its prompt, replace the placeholders with the approved username and destination:

CONNECT app_user@//dbhost.example.com:1521/app_pdb.example.com

Enter the password only when prompted. The 19c CONNECT reference documents omission of the password and the hidden password prompt. This also removes shell interpretation of a password embedded in a launch command from this particular test.

If your connection requires a managed alias or wallet, use the DBA-supplied connect identifier instead of replacing it with this TCP example. If the result is ORA-12154, work through the separate SQL*Plus naming-resolution checks; record the exact error rather than treating every failed connection as a password problem.

Verify the successful session

After login succeeds, confirm the account, container and service with a read-only query:

SELECT SYS_CONTEXT('USERENV', 'SESSION_USER') AS login_user,
       SYS_CONTEXT('USERENV', 'CON_NAME') AS container_name,
       SYS_CONTEXT('USERENV', 'SERVICE_NAME') AS service_name
FROM dual;

Compare the returned values with the approved target. Oracle defines these attributes in the SYS_CONTEXT reference. A successful login to a different service does not validate the original application configuration. Exit the dedicated test session when finished:

EXIT

If ORA-01017 remains

Send the DBA the error code, attempt time with timezone, client version, intended service and whether the controlled prompt-based attempt failed. Omit passwords, wallet contents and secret-bearing connection strings. Ask the DBA to confirm the account’s authentication method and container, and use the approved account-recovery process if necessary.

Do not reset a shared application password, recreate the user, grant administrative privileges or weaken authentication settings as a diagnostic shortcut. A password rotation can affect other application instances and must be coordinated with the credential owner. This workflow changes no database configuration and supplies no password-reset commands.