oracle 錯誤 TNS-01190與oracle 登入沒反應操作


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 死活連接不上去,實例是啟動的完好無損,原因是權限不對,

問題解析

  跟據自己的實例分析所有權限:

[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

具體截圖:

 

權限賦予完整后問題解決,具體權限根據實際情況分析,這里是RAC集群問題


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM