1.用sys用户远程登陆

[oracle@edbjr2p2 admin]$ sqlplus system/oracle@PROD3 as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Wed Jun 12 18:19:27 2019

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

ERROR:
ORA-01031: insufficient privileges

2.开始排查原因

1)首先tnsping PROD3(检查监听客户端是否能ping通)

[oracle@edbjr2p2 dbs]$  tnsping PROD3

TNS Ping Utility for Linux: Version 11.2.0.3.0 - Production on 12-JUN-2019 18:42:00

Copyright (c) 1997, 2011, Oracle.  All rights reserved.

Used parameter files:

Used TNSNAMES adapter to resolve the alias
Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = edbjr2p2.example.com)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = PROD3.us.oracle.com)))
OK (0 msec)
--以上结果证明监听客户端没问题

2)参数remote_login_passwordfile参数设置是否正确(应该为exclusive)

SYS@PROD3>show parameter remote_login_passwordfile

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

3)检查密码文件是否正确

SYS@PROD3>select * from v$pwfile_users;   --如果为空,证明密码文件有问题

4)去查看密码文件

cd $ORACLE_HOME/dbs

ls

发现密码文件名字为:orapwdPROD3  (正确名字格式应为prapwPROD3)

5)重建密码文件

[oracle@edbjr2p2 dbs]$ orapwd file=orapwPROD3 password=oracle entries=30 force=y

6)远程登陆,正常

[oracle@edbjr2p2 dbs]$ sqlplus sys/oracle@PROD3 as sysdba

SQL*Plus: Release 11.2.0.3.0 Production on Wed Jun 12 18:51:54 2019

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

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options

7)再次查询v$pwfile_users视图,验证密码文件状态,以下即为正常

SYS@PROD3>select * from v$pwfile_users;

USERNAME                       SYSDB SYSOP SYSAS
------------------------------ ----- ----- -----
SYS                            TRUE  TRUE  FALSE

最新文章

  1. Java 程序员们值得一看的好书推荐
  2. asp.net mvc4 使用 System.Web.Optimization 对javascript和style的引入、代码合并和压缩的优化(ScriptBundle,StyleBundle,Bundling and Minification )
  3. 做中学之Vim实践教程
  4. PHP如何实现页面静态化
  5. VirtualMachine所支持的操作
  6. JavaScript中,格式化DateTime
  7. Mule ESB 社区版 企业版 资源下载 包含3.5和3.6
  8. sitemesh学习笔记(3)
  9. 转载:sql关联查询
  10. C++分类
  11. MySQLdb模块的安装
  12. 对话框Dialog
  13. 什么是REST?以及RESTful的实现
  14. 计算UILabel的高度
  15. [js高手之路] es6系列教程 - Set详解与抽奖程序应用实战
  16. Python——线程1
  17. Codeforces Round #545 Div1 题解
  18. Variable binding depth exceeds max-specpdl-size
  19. Lua 与 C 交互之UserData(4)
  20. C# process 隐藏应用程序的进度条

热门文章

  1. vscode 终端操作命令npm报错
  2. Unity shader 护盾shield的简单实现
  3. docker-compose如何动态配置springboot项目的application.yml的配置
  4. jQuery的入口和jQurey的对象切换
  5. Docker------阿里云部署私有镜像仓库
  6. 更换介质:请把标有Debian ... 的盘片插入驱动器
  7. Linux进阶之Linux破解密码、yum源配置、防火墙设置及源码包安装
  8. STM32——EEPROM使用——(转载)
  9. 大数据学习之路——环境配置(2)——mysql 在linux 系统上安装配置
  10. Linux Docker 部署 ASP.NET Core应用