15

Oracle中两个服务器连接中sys密码修改问题

 4 years ago
source link: https://www.linuxidc.com/Linux/2019-11/161616.htm
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

问题描述:orcl服务器要连接orclstd

想要sqlplus sys/410526@orclstd as sysdba 连接orclstd数据库,但是发现啥意思密码不对,就对sys密码进行重新设置

1.在orcl服务器上连接orclstd服务器

[Oracle@orcl orcl]$ sqlplus sys/410526@orclstd as sysdba

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

2.在orclstd上连接orcl服务器

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

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传输一下

Yjamqqm.png!web

RZJraej.png!web

我的密码文件的路径是在:[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

Vv2Mjen.png!web

7.给传输到orclstd,并给新的密码文件改个名字

i22qEff.png!web

8.在两个服务器上重新连接一下,发现可以通了

Rfe2ArQ.png!web

更多Oracle相关信息见 Oracle 专题页面 https://www.linuxidc.com/topicnews.aspx?tid=12

Linux公社的RSS地址https://www.linuxidc.com/rssFeed.aspx

本文永久更新链接地址: https://www.linuxidc.com/Linux/2019-11/161616.htm


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK