REG:SYSDBA不记录,系统用户和其他连接的用户

发布于 2025-01-24 17:08:17 字数 1920 浏览 4 评论 0原文

SYSDBA不记录其他用户在下面登录,如何

修复它,能够成功登录其他用户,请在下面找到,只有SYSDBA不起作用

 [oracle@dztupbin]$ ./sqlplus SYSTEM/"oracle"
  
    SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 11:05:09 2022
    Copyright (c) 1982, 2016, Oracle.  All rights reserved.
    Last Successful login time: Thu Apr 28 2022 11:05:00 +01:00
    Connected to:
    Oracle Database 12c Standard Edition Release 12.2.0.1.0 - 64bit Production
    
    [oracle@dztup bin]$ ./sqlplus SYSTEM/"oracle"  as sysdba
    
    SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 11:05:18 2022
    
    Copyright (c) 1982, 2016, Oracle.  All rights reserved.
    
    ERROR:
    ORA-01017: invalid username/password; logon denied
    
    
    Enter user-name:

sqlplus / as sysdba也给出了相同的结果: -

./ sqlplus / as sysdba

ERROR:
ORA-01017: invalid username/password; logon denied




[oracle@dztup bin]$ ./sqlplus /  as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 11:05:18 2022

Copyright (c) 1982, 2016, Oracle.  All rights reserved.

ERROR:
ORA-01017: invalid username/password; logon denied


Enter user-name:

i sysdba i i Connection i Connecti现在,SYS用户: -

[oracle@dztup bin]$ ./sqlplus system/"oracle"

SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 13:25:51 2022

Copyright (c) 1982, 2016, Oracle.  All rights reserved.

Last Successful login time: Thu Apr 28 2022 13:25:15 +01:00

Connected to:
Oracle Database 12c Standard Edition Release 12.2.0.1.0 - 64bit Production

SQL> conn sys as sysdba
Enter password:
Connected.
SQL>
SQL>
SQL>
SQL> show user
USER is "SYS"

授予Sysdba Privilige现在可以连接到系统用户:

但仍然是SQLPLUS / AS SYSDBA无法正常工作。 [oracle@dztup bin] $ ./ sqlplus / as sysdba

sql*plus:版本12.2.0.1.0在thu上生产于4月28日11:05:18 2022

版权所有(C)1982,20182,2016,Oracle。版权所有。

错误: ORA-01017:无效的用户名/密码;登录被拒绝

Sysdba not logging other users are logging below, how to

fix it, able to login to other users successfully, please find below, only with sysdba not working

 [oracle@dztupbin]$ ./sqlplus SYSTEM/"oracle"
  
    SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 11:05:09 2022
    Copyright (c) 1982, 2016, Oracle.  All rights reserved.
    Last Successful login time: Thu Apr 28 2022 11:05:00 +01:00
    Connected to:
    Oracle Database 12c Standard Edition Release 12.2.0.1.0 - 64bit Production
    
    [oracle@dztup bin]$ ./sqlplus SYSTEM/"oracle"  as sysdba
    
    SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 11:05:18 2022
    
    Copyright (c) 1982, 2016, Oracle.  All rights reserved.
    
    ERROR:
    ORA-01017: invalid username/password; logon denied
    
    
    Enter user-name:

sqlplus / as sysdba also giving same result:-

./sqlplus / as sysdba

ERROR:
ORA-01017: invalid username/password; logon denied




[oracle@dztup bin]$ ./sqlplus /  as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 11:05:18 2022

Copyright (c) 1982, 2016, Oracle.  All rights reserved.

ERROR:
ORA-01017: invalid username/password; logon denied


Enter user-name:

I connected to sys user now:-

[oracle@dztup bin]$ ./sqlplus system/"oracle"

SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 13:25:51 2022

Copyright (c) 1982, 2016, Oracle.  All rights reserved.

Last Successful login time: Thu Apr 28 2022 13:25:15 +01:00

Connected to:
Oracle Database 12c Standard Edition Release 12.2.0.1.0 - 64bit Production

SQL> conn sys as sysdba
Enter password:
Connected.
SQL>
SQL>
SQL>
SQL> show user
USER is "SYS"

granted sysdba privilige to system user now able to connect:

but still sqlplus / as sysdba not working.
[oracle@dztup bin]$ ./sqlplus / as sysdba

SQL*Plus: Release 12.2.0.1.0 Production on Thu Apr 28 11:05:18 2022

Copyright (c) 1982, 2016, Oracle. All rights reserved.

ERROR:
ORA-01017: invalid username/password; logon denied

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

南汐寒笙箫 2025-01-31 17:08:17

sysdba是特权,而不是用户。 System帐户默认情况下没有sysdba特权。唯一具有默认sysdba特权的帐户是sys,通常由操作系统在本地进行身份验证。例如:

sqlplus / as sysdba

如果您已授予sysdba特权给其他用户,则使用sysdba角色登录时,这些用户会针对单独的密码文件进行身份验证,而不是普通密码哈希。当更改用户的普通密码时,密码文件不会自动更新(如Alter用户X,通过Pass识别)。要更新密码文件中的密码,您必须重新授予sysdba特权给用户;否则使用旧密码。

SYSDBA is a privilege, not a user. The SYSTEM account does not have SYSDBA privileges, by default. The only account with default SYSDBA privileges is SYS, which is usually authenticated locally by the operating system. e.g.:

sqlplus / as sysdba

If you have granted SYSDBA privileges to other users, then those users are authenticated against a separate password file when logging in with the SYSDBA role, and not the normal password hash. The password file is not updated automatically when the users' normal password is changed (as with ALTER USER x IDENTIFIED BY pass). To update the password in the password file you must re-grant SYSDBA privileges to the user; otherwise use the old password.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文