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

-----------------------------------------------------------------------

一朋友遇到的因权限不对导致的报错情况如下:

TNS-12518-----RAC环境一台主机可以正常对外服务,另一台不可以。连接时报错信息如下:

TNS-12518: TNS: 监听程序无法转接客户机连接
TNS-12547: TNS: 丢失连接
  TNS-12560: TNS: 协议适配器错误
   TNS-00517: 丢失连接
    Linux Error: 32: Broken pipe

使用lsnrctl services查看如下:

11G RAC 权限不对登陆时遇到监听报错:ORA-12537 TNS:connection closed/TNS-12518_数据库

有一句     "DEDICATED" established:0 refused:0 state:blocked    ----这里的state:blocked。。正常情况下应该为: state:ready

原因是/grid/bin下的一些文件权限不正确

链接:http://www.itpub.net/thread-1867689-1-1.html