简体   繁体   English

为没有密码(空)的用户连接Oracle`sqlplus`

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

It seems that sqlplus does not do will with an empty (null) password. 似乎sqlplus不会使用空(空)密码。

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. 据我所知,似乎sqlplus不喜欢空(空)密码。 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命令行上以纯文本形式输入密码的问题。

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; 在外部创建用户XY; The user XY must then have OS account on the DB server. 然后,用户XY必须在数据库服务器上具有OS帐户。

the user should be automatically validated without password in these cases. 在这种情况下,应在没有密码的情况下自动验证用户。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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