1

I installed Oracle 18c XE and SQL Developer 18.4, both are the latest.

Logged in with SYSTEM and created a user vbk in SQL Developer.

I see the user running select * from dba_users, but when I try to connect in SQL Developer, it says

ORA-01017 Invalid Username/Password

I tried to reset the password with SYSTEM user:

ALTER USER vbk IDENTIFIED BY xxx;

and I get

ORA-01918: user 'VBK' does not exist 

I see that in the message the user name is upper case, even though the user was created with lower case.

How to connect with the user?

asked Mar 9, 2019 at 21:39

1 Answer 1

2

As explained in this answer on SO, if you create a user (or any other identifier) in lowercase, you will have to always quote it when referencing, because by default Oracle (and other SQL databases, except may be Postgres) will convert unquoted identifiers to uppercase.

connect "vbk"/password

or

ALTER USER "vbk" IDENTIFIED BY xxx;
answered Mar 9, 2019 at 22:08
2
  • And if that worked, there should be an important lesson learned .. when dealing with Oracle, never ever create an object (user, table, index, procedure, etc etc) by enclosing the name in double-quotes. If you simply 'create user fred', with no double quotes, you will be, effectively, case-insensitive. But if you 'create user "fred" ', you have created a case-sensitive name and will always to refer to it enclosed in double-quotes and in the exact same "CaSeSenSiTiviTY" as it was created. Commented Mar 10, 2019 at 17:11
  • This is really important even when working from SQL Developer, because it will decide by itself that you NEED your username in lowercase, surrounded by quotes, with not a single warning about it. Check in the "Other users" list, the username must be in UPPERCASE or, otherwise, you'll get this very same problem Commented Aug 27, 2019 at 16:51

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.