11G RAC 权限不对登陆时遇到监听报错:ORA-12537 TNS:connection closed/TNS-12518
2013-12-06 14:03
417 查看
一个群友遇到了监听的错误: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软件。
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
-----------------------------------------------------------------------
一朋友遇到的因权限不对导致的报错情况如下:
[b]TNS-12518-----RAC环境一台主机可以正常对外服务,另一台不可以。连接时报错信息如下:
TNS-12518: TNS: 监听程序无法转接客户机连接
TNS-12547: TNS: 丢失连接
TNS-12560: TNS: 协议适配器错误
TNS-00517: 丢失连接
Linux Error: 32: Broken pipe
使用lsnrctl services查看如下:
有一句 "DEDICATED" established:0 refused:0 state:blocked ----这里的[b]state:blocked。。正常情况下应该为: state:ready
[/b]
原因是/grid/bin下的一些文件权限不正确
链接:http://www.itpub.net/thread-1867689-1-1.html
搜索发现引起此错误的原因可能是:
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 - rootPassword:
[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
-----------------------------------------------------------------------
一朋友遇到的因权限不对导致的报错情况如下:
[b]TNS-12518-----RAC环境一台主机可以正常对外服务,另一台不可以。连接时报错信息如下:
[/b]
TNS-12518: TNS: 监听程序无法转接客户机连接TNS-12547: TNS: 丢失连接
TNS-12560: TNS: 协议适配器错误
TNS-00517: 丢失连接
Linux Error: 32: Broken pipe
使用lsnrctl services查看如下:
有一句 "DEDICATED" established:0 refused:0 state:blocked ----这里的[b]state:blocked。。正常情况下应该为: state:ready
[/b]
原因是/grid/bin下的一些文件权限不正确
链接:http://www.itpub.net/thread-1867689-1-1.html
相关文章推荐
- [转自Oracle官方技术博客]SLES12 SP2上遇到ORA-12518: TNS:listener could not hand off client connection
- 启动监听报错:TNS-12537: TNS:connection closed TNS-12560: TNS:protocol adapter error TNS-00507: Connection closed Linux Error: 29: Illegal seek
- TNS-12547: TNS:lost contact TNS-12537: TNS:connection closed as a result of ORA-609
- TNS-12537: TNS:connection closed ORA-609错误处理
- ORACLE 11g RAC TNS无法正常登陆之ORA-12537&ORA-01017&SP2-0157
- Oracle 11g ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务 .
- Oracle 11g ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务
- 安装oracle 11G-----( ORA-12514 TNS 监听程序当前无法识别连接描述符中请求服务)的解决方法
- oracle 连接数限制:ORA-12518: TNS: 监听程序无法分发客户机连接
- Oracle 11g ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务
- 连接数据库出现ORA-12518: TNS: 监听程序无法分发客户机连接错误
- Oracle 10g 异常:ORA-12518: TNS: 监听程序无法分发客户机连接 解决方案
- 遇到“ora-12514 tns 监听程序当前无法识别链接描述符中请求的服务”,解决办法
- 关于“ORA-12518: TNS: 监听程序无法分发客户机连接”的一种解决方法
- Oracle 11g ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务
- 使用PL/SQL Developer 登录时报"ora 12541 tns 无监听程序"错误,但使用SqlPlus登录时能够正常登陆
- oracle 11g 使用一段时间监听还在客户端连接不上,报ORA-12537
- oracle 11gR2 RAC 连接实例时遇到ora-12537,求指点
- Oracle 11g ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务 .
- ORA-12518 TNS:监听程序无法分发客户机连接 解决办法