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

1,问题描述

[[email protected] ~]$ lsnrctl stop

LSNRCTLfor Linux: Version 11.2.0.4.0 - Production on 20-MAY-2019 09:02:03Copyright (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,问题解析

[[email protected] ~]$ lsnrctl status

LSNRCTLfor Linux: Version 11.2.0.4.0 - Production on 20-MAY-2019 09:02:55Copyright (c)1991, 2013, Oracle. All rights reserved.

Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))

STATUS of the LISTENER------------------------Alias LISTENER

Version TNSLSNRfor Linux: Version 11.2.0.4.0 -Production

Start Date19-MAY-2019 14:34:53Uptime0 days 18 hr. 28 min. 2sec

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 1instance(s).

Instance"+ASM2", status READY, has 1 handler(s) for thisservice...

Service"oracle" has 1instance(s).

Instance"oracle2", status READY, has 1 handler(s) for thisservice...

Service"oracleXDB" has 1instance(s).

Instance"oracle2", status READY, has 1 handler(s) for thisservice...

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[[email protected] ~]$ srvctl status listener

Listener LISTENER is enabled

Listener LISTENER is running on node(s): node2,node1

这个是不用管的

问题描述二

oracle sqlplus / as sysdba 连接不上去

20190520102919025187.png

20190520102919262501.png

20190520102919377740.png

20190520102919494932.png

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

问题解析

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

[[email protected] bin]# cd /u01/app/grid/11.2.0/crs/bin/[[email protected] bin]# chown grid.oinstall oracle

[[email protected] bin]# chmod+s oracle

[[email protected] bin]# chown root.oinstall oradism

[[email protected] bin]# chmod+s oradism

[[email protected] bin]# chown root.oinstall jssu

[[email protected] bin]# chmod+s jssu

[[email protected] bin]# chown root.oinstall extjob

[[email protected] bin]# chmod+s extjob

[[email protected] bin]# cd/u01/app/oracle/product/11.2.0/db_1/bin/[[email protected] bin]$ chown root.oinstall extjob

[[email protected] bin]$ chmod+s extjob

[[email protected] bin]# chown root.oinstall jssu

[[email protected] bin]# chown root.oinstall nmb

[[email protected] bin]# chown root.oinstall nmhs

[[email protected] bin]# chown root.oinstall nmo

[[email protected] bin]# chmod+s nmb

[[email protected] bin]# chmod+s nmhs

[[email protected] bin]# chmod+s nmo

[[email protected] bin]# chmod+s jssu

[[email protected] bin]# chown oracle.asmadmin oracle

[[email protected] bin]# chmod+s oracle

[[email protected] bin]# chown root.oinstall oradism

[[email protected] bin]# chmod+s oradism

具体截图:

20190520102919647281.png

20190520102919765450.png

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

原文:https://www.cnblogs.com/kingle-study/p/10892155.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值