ORA-01017:invalid username/password;Logon denied


 錯誤信息:ORA-01017:invalid username/password;Logon denied

檢查本地登錄成功

[oralu8@lu8db dbs]$ sqlplus 

SQL*Plus: Release 12.2.0.1.0 Production on Tue Jun 16 16:33:52 2020

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

Enter user-name: sys as sysdba
Enter password: 
ERROR:
ORA-12532: TNS:invalid argument

--"" 密碼中帶有“@”符號或其他特殊符號,要給密碼加上雙引號
Enter user-name: sys as sysdba
Enter password: 

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

SQL> 

remote_login_passwordfile 參數為exclusive(啟用口令文件,允許遠程登錄)

SQL> show parameter remote_login_passwordfile

NAME                     TYPE     VALUE
------------------------------------ ----------- ------------------------------
remote_login_passwordfile         string     EXCLUSIVE

查看密碼文件:

SQL> select * from  V$PWFILE_USERS;

no rows selected

說明密碼文件沒有設成功,設密碼文件:

orapwd file=orapwLU8DB entries=10 password=1254878@1020 force=y  --注意ORACLE_SID 是大寫的,否則不成功

再次查看密碼文件:這時有內容了,再次遠程用SYS 登錄,成功

 

case 2:

[oralu8@mylu8 ~]$ rman target sapr3/sapr3@ZTZ2;

Recovery Manager: Release 12.2.0.1.0 - Production on Fri Jun 19 15:10:42 2020

Copyright (c) 1982, 2017, Oracle and/or its affiliates.  All rights reserved.

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00554: initialization of internal recovery manager package failed
RMAN-04005: error from target database:
ORA-01017: invalid username/password; logon denied

solution :

SQL> grant sysdba to sapr3;

Grant succeeded.

 




免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM