My Oracle Support Banner

FAIL TO LOGIN DB IF USER NAME CONTAINS A HYPHEN '-' FROM SQLPLUS "ERROR ORA-01017" (Doc ID 2903105.1)

Last updated on JULY 20, 2024

Applies to:

Oracle Database - Enterprise Edition - Version 19.3.0.0.0 and later
Information in this document applies to any platform.

Symptoms

Created schema name with hyphen (SCHEMANAME-1) but while trying to connect via sqlplus, we are not able to connect even if we try with below options

sqlplus 'SCHEMANAME-1'/PASSWORD@alias
sqlplus 'SCHEMANAME-1/PASSWORD@alias'
sqlplus "SCHEMANAME-1"/PASSWORD@alias
sqlplus "SCHEMANAME-1/PASSWORD@alias"

The following error is displayed:
ORA-01017: Invalid username/password



Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.