oracle中兩個服務器鏈接中sys密碼修改問題

問題描述:orcl服務器要鏈接orclstdsql

想要sqlplus sys/410526@orclstd as sysdba 鏈接orclstd數據庫,可是發現啥意思密碼不對,就對sys密碼進行從新設置數據庫

1.在orcl服務器上鍊接orclstd服務器服務器

[oracle@orcl orcl]$ sqlplus sys/410526@orclstd as sysdbaoracle

SQL*Plus: Release 11.2.0.4.0 Production on Wed Nov 27 19:32:01 2019app

Copyright (c) 1982, 2013, Oracle. All rights reserved.3d

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

2.在orclstd上鍊接orcl服務器io

[oracle@orcl orcl]$ sqlplus sys/410526@orcl as sysdbafile

SQL*Plus: Release 11.2.0.4.0 Production on Wed Nov 27 19:32:01 2019密碼

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

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

3.不肯定sys密碼,從新設置sys密碼,orcl跟orclstd都設置密碼

[oracle@orcl dbs]$ orapwd file=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapworclorclstd

Enter password for SYS:

 

[oracle@orclstd dbs]$ orapwd file=/u01/app/oracle/product/11.2.0/dbhome_1/dbs/orapworclorclstd

Enter password for SYS:

4.從新使用新密碼鏈接,發現仍是鏈接不上

[oracle@orcl orcl]$ sqlplus sys/oracle@orclstd as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Wed Nov 27 19:33:51 2019

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

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

5.密碼已經修改了,發現爲何還鏈接不上,ping IP地址以及tnsping 實例名都沒有問題,想起來以前已經給orclstd傳過一次密碼文件,因而給orclstd密碼文件刪掉,從新scp傳輸一下

 

 

 

個人密碼文件的路徑是在:[oracle@orclstd ~]$ cd /u01/app/oracle/product/11.2.0/dbhome_1/dbs

6.刪掉密碼文件從新傳輸一下密碼文件,由於我這個都是通的,因此能夠直接上傳

[oracle@orcl dbs]$ scp orapworcl 192.168.1.5:/u01/app/oracle/product/11.2.0/dbhome_1/dbs

 

7.給傳輸到orclstd,並給新的密碼文件改個名字

 

 

 

 8.在兩個服務器上從新鏈接一下,發現能夠通了

 

相關文章
相關標籤/搜索