简体   繁体   中英

Connecting with Oracle `sqlplus` for a user with no (null) password

It seems that sqlplus does not do will with an empty (null) password.

THIS WORKS: sqlplus user1/passpass@DBB
THIS DOES NOT WORK: sqlplus user2/@DBB

From what I can tell, it appears that sqlplus does not like an empty (null) password. Is there a workaround for this?

NB: This is not just a question about avoiding putting the password in plain-text on the sqlplus command line.

sqlplus user2@DBB

then you will be prompted for a password

Did you use either of these?:

  • Oracle valet. User is identified via password, but the password is not prompted manually.
  • External authentication. CREATE USER XY IDENTIFIED EXTERNALLY; The user XY must then have OS account on the DB server.

the user should be automatically validated without password in these cases.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM