问题描述: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传输一下
我的密码文件的路径是在:[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.在两个服务器上重新连接一下,发现可以通了
文章来源: 博客园
- 还没有人评论,欢迎说说您的想法!