oracle 错误 TNS-01190与oracle 登入没反应操作

摘要:
1.问题描述[oracle@node2~]$lsnrctlstopLSNRCTLforLinux:版本11.2.0.4.0-产品年5月20日201909:02:03版权所有(c)19912013,Oracle.Allrightsreserved.连接到(地址=(协议=tcp)(主机=)(端口=1521))T

1,问题描述

[oracle@node2 ~]$ lsnrctl stop

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 20-MAY-2019 09:02:03

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

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
TNS-01190: The user is not authorized to execute the requested listener command

2,问题解析

[oracle@node2 ~]$  lsnrctl status

LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 20-MAY-2019 09:02:55

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

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.4.0 - Production
Start Date                19-MAY-2019 14:34:53
Uptime                    0 days 18 hr. 28 min. 2 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /u01/app/grid/11.2.0/crs/network/admin/listener.ora
Listener Log File         /u01/app/grid/diag/tnslsnr/node2/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.215)(PORT=1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.0.217)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
  Instance "+ASM2", status READY, has 1 handler(s) for this service...
Service "oracle" has 1 instance(s).
  Instance "oracle2", status READY, has 1 handler(s) for this service...
Service "oracleXDB" has 1 instance(s).
  Instance "oracle2", status READY, has 1 handler(s) for this service...
The command completed successfully
其中:Security ON: Local OS Authentication 此条提示信息表明监听处于Local OS Authentication认证模式.
Oracle 10g版本以及之后的版本中推出了监听的本地操作系统认证安全特性.若监听程序是在当前用户下启动的,
则当前用户具有管理监听的所有权利,其他用户对监听的管理将受到限制 因为数据库是11.
2.0.1而且使用了oracle restart特性且用户为grid.注册了listener服务且只对默认端口1521有效.
之前是1532所以oracle restart不会自动重启监听.由于将端口修改成了1521所以oracle restart自动重启了listener
[grid@node2 ~]$ srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): node2,node1


这个是不用管的

问题描述二

  oracle sqlplus / as sysdba 连接不上去

oracle 错误 TNS-01190与oracle 登入没反应操作第1张

oracle 错误 TNS-01190与oracle 登入没反应操作第2张

oracle 错误 TNS-01190与oracle 登入没反应操作第3张

oracle 错误 TNS-01190与oracle 登入没反应操作第4张

oracle 死活连接不上去,实例是启动的完好无损,原因是权限不对,

问题解析

  跟据自己的实例分析所有权限:

[root@node2 bin]# cd /u01/app/grid/11.2.0/crs/bin/
[root@node2 bin]# chown grid.oinstall oracle
[root@node2 bin]# chmod +s oracle
[root@node2 bin]# chown root.oinstall oradism
[root@node2 bin]# chmod +s oradism
[root@node2 bin]# chown root.oinstall jssu
[root@node2 bin]# chmod +s jssu
[root@node2 bin]# chown root.oinstall extjob
[root@node2 bin]# chmod +s extjob
[root@node2 bin]# cd /u01/app/oracle/product/11.2.0/db_1/bin/
[oracle@node2 bin]$ chown root.oinstall extjob
[oracle@node2 bin]$ chmod +s extjob
[root@node2 bin]# chown root.oinstall jssu
[root@node2 bin]# chown root.oinstall nmb
[root@node2 bin]# chown root.oinstall nmhs
[root@node2 bin]# chown root.oinstall nmo
[root@node2 bin]# chmod +s nmb
[root@node2 bin]# chmod +s nmhs
[root@node2 bin]# chmod +s  nmo
[root@node2 bin]# chmod +s  jssu
[root@node2 bin]# chown oracle.asmadmin oracle
[root@node2 bin]# chmod +s oracle
[root@node2 bin]# chown root.oinstall oradism
[root@node2 bin]# chmod +s oradism

具体截图:

oracle 错误 TNS-01190与oracle 登入没反应操作第5张

 oracle 错误 TNS-01190与oracle 登入没反应操作第6张

权限赋予完整后问题解决,具体权限根据实际情况分析,这里是RAC集群问题

免责声明:文章转载自《oracle 错误 TNS-01190与oracle 登入没反应操作》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇POI导出数据内存溢出问题.NET Core:在ASP.NET Core WebApi中使用Cookie下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

mysql默认安装目录说明

MySQL安装完成后不象SQLServer默认安装在一个目录,它的数据库文件、配置文件和命令文件分别在不同的目录,了解这些目录非常重要,尤其对于Linux的初学者,因为Linux本身的目录结构就比较复杂,如果搞不清楚MySQL的安装目录那就无从谈起深入学习。 下面就介绍一下这几个目录。1、数据库目录/var/lib/mysql/2、配置文件/usr/sha...

import cx_Oracle ImportError: DLL load failed: 找不到指定的模块。

我们知道,Python使用cx_Oracle连接oracle的三个步骤是: 1、先安装cx-Oracle包,地址:https://pypi.org/project/cx-Oracle/5.3/#files 2、下载Oracle客户端instantclient-basic-win64-12.rar(我的电脑是64位,12是版本,还有11、10等),解压后将o...

Oracle索引梳理系列(二)- Oracle索引种类及B树索引

版权声明:本文发布于http://www.cnblogs.com/yumiko/,版权由Yumiko_sunny所有,欢迎转载。转载时,请在文章明显位置注明原文链接。若在未经作者同意的情况下,将本文内容用于商业用途,将保留追究其法律责任的权利。如果有问题,请以邮箱方式联系作者(793113046@qq.com)。 Oracle索引种类 一 Oracle索...

在 winscp 中使用 sudo 以 root 身份进行文件传输

服务器设置为了安全,将 root 的远程登录禁用,但是在传输文件时会带来很多不便。 如果你远程的帐号有 sudo 权限的话,可以在 winscp 连接属性中配置一下: 如图所示,确定保存后,再次连接就是以 root 身份来传输文件了~ 另外如果长时间不使用 winscp 发现经常需要掉线重连花费很多时间,可以在配置中让 winscp 自动定时发送命令保持...

Linux下状态查看相关命令

Linux下有一些命令是可以用来查看计算机运行状态的,包括进程、CPU、内存、网络状态等,下面记录一下。 进程相关 程序被加载到内存中,需要有一个标识用来区分和其他程序的区别,这个东西叫做PID即进程id。除了PID外还有程序执行权限,程序执行需要的材料等信息也保存在了内存中,在linux中进程分为临时进程和持久进程。 静态查询进程信息 (1)ps aux...

zabbix问题记录

zabbix部署好,在使用一段时间后,出现了不少报错,在此简单做一记录。1)Zabbix监控界面报错Lack of free swap space on Zabbix server”解决公司线上部署的zabbix3.0的监控界面首页报错说无交换内存主机“Lack of free swap space on Zabbix server”解决此问题的步骤如下:...