Home  >  Article  >  Database  >  11G RAC使用本地名登陆时遇到监听报错:ORA-12537 TNS:connection closed

11G RAC使用本地名登陆时遇到监听报错:ORA-12537 TNS:connection closed

WBOY
WBOYOriginal
2016-06-07 17:33:591213browse

一个群友遇到了监听的错误:ORA-12537: TNS:connection closed搜索发现引起此错误的原因可能是:ORA-12537 if Listener (includin

一个群友遇到了监听的错误:ORA-12537: TNS:connection closed
搜索发现引起此错误的原因可能是:
ORA-12537 if Listener (including SCAN Listener) and Database are Owned by Different OS User [ID 1069517.1]
也就是说监听器和数据库属于不同的OS用户就可以遇到如下问题。
当前的监听器用户是GRID,数据库软件用户是Oracle。
而数据库装在ORACLE用户下:且ORACLE_HOME目录权限设置不允许GRID用户操作ORACLE软件。
下面实验重现此错误: [grid@bysrac1 11.2.0]$ su - root
Password:
[root@bysrac1 ~]# cd /u01/app/oracle/product/11.2.0/ ---这个目录是ORACLE 数据库的家目录
[root@bysrac1 11.2.0]# ls
dbhome_1
[root@bysrac1 11.2.0]# ls -al
total 12
drwxr-xr-x 3 oracle oinstall 4096 Jun 20 14:09 .
drwxr-xr-x 3 oracle oinstall 4096 Jun 20 14:09 ..
drwxr-xr-x 75 oracle oinstall 4096 Jun 22 17:57 dbhome_1
[root@bysrac1 11.2.0]# chmod 700 dbhome_1/
[root@bysrac1 11.2.0]# ls -al
total 12
drwxr-xr-x 3 oracle oinstall 4096 Jun 20 14:09 .
drwxr-xr-x 3 oracle oinstall 4096 Jun 20 14:09 ..
drwx------ 75 oracle oinstall 4096 Jun 22 17:57 dbhome_1
[root@bysrac1 11.2.0]# su - oracle
[oracle@bysrac1 ~]$ sqlplus bys/bys@caiwu
SQL*Plus: Release 11.2.0.1.0 Production on Fri Dec 6 13:24:33 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
ERROR:
ORA-12537: TNS:connection closed


恢复目录正常权限,SQLPLUS登陆正常:
[root@bysrac1 11.2.0]# chmod 755 dbhome_1/
[root@bysrac1 11.2.0]# ls -al
total 12
drwxr-xr-x 3 oracle oinstall 4096 Jun 20 14:09 .
drwxr-xr-x 3 oracle oinstall 4096 Jun 20 14:09 ..
drwxr-xr-x 75 oracle oinstall 4096 Jun 22 17:57 dbhome_1
[root@bysrac1 ~]# su - oracle
[oracle@bysrac1 ~]$ sqlplus bys/bys@caiwu
SQL*Plus: Release 11.2.0.1.0 Production on Fri Dec 6 13:31:59 2013
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options
BYS@ caiwu>exit

这个问题已经解决。原来是我同事跳过了一个SQL没有执行,导致数据不一致。有几个 table是有主外键关联的。

相关阅读:

ORA-01172、ORA-01151错误处理

ORA-00600 [2662]错误解决

ORA-01078 和 LRM-00109 报错解决方法

ORA-00471 处理方法笔记

ORA-00314,redolog 损坏,或丢失处理方法

ORA-00257 归档日志过大导致无法存储的解决办法

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn