Oracle 11gR2 RAC 数据库不能连接(ORA-12537: TNS:connection closed)的解决

[oracle@rac01 ~]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 29 21:06:10 2012

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

SQL> connect system/***@astt
ERROR:
ORA-12537: TNS:connection closed

[root@rac01 app]# ls -ltr
drwxr-xr-x 3 root   oinstall 4096 08-28 19:05 grid
drwxrwx--- 6 grid   oinstall 4096 08-29 00:03 oraInventory
drwxrwxr-x 7 oracle oinstall 4096 08-29 00:20 oracle
[root@rac01 app]# chmod 755 oracle
[root@rac01 app]# chmod 755 grid
[root@rac01 app]# ls -ltr
drwxr-xr-x 3 root   oinstall 4096 08-28 19:05 grid
drwxrwx--- 6 grid   oinstall 4096 08-29 00:03 oraInventory
drwxr-xr-x 7 oracle oinstall 4096 08-29 00:20 oracle

[oracle@rac01 ~]$ sqlplus /nolog

SQL*Plus: Release 11.2.0.1.0 Production on Wed Aug 29 21:28:23 2012

Copyright (c) 1982, 2009, Oracle.  All rights reserved.

SQL> connect system/***@astt;
????
SQL>

SQL> select instance_name from gv$instance;

INSTANCE_NAME
----------------
astt1
astt2

SQL> select instance_name from v$instance;

INSTANCE_NAME
----------------
astt1

SQL>

参考:

metalink  [ID 1069517.1]:

Symptoms
In environment where listener home (including SCAN listener which
resides in Grid Infrastructure/ASM home) and database home are owned by
different OS user, ORA-12537 could happen when connecting through
listener, when creating database through DBCA, or when
installing database software and creating a database in runInstaller.
Job Role Separation is a typical example as SCAN and local grid home
listener is owned differently than database.
Error detail
12537, 00000, "TNS:connection closed"
// *Cause: "End of file" condition has been reached; partner has disconnected.
// *Action: None needed; this is an information message.
Before the error is reported, connection could hang for a while, and a core file may also be generated.
Screen output:
SQL> conn system/xxx@OSES
ERROR:
ORA-12537: TNS:connection closed
OR
PRCR-1079 : Failed to start resource ora.db11.db
CRS-5011: Check of resource db11 failed: details at ..
CRS-2674: Start of ora.db11.db on racnode1 failed
ORA-12546: TNS:permission denied
listener_scann.log or listener.log
TNS-12518: TNS:listener could not hand off client connection
TNS-12546: TNS:permission denied
TNS-12560: TNS:protocol adapter error
  TNS-00516: Permission denied
   Linux Error: 13: Permission denied
OR
TNS-12518: TNS:listener could not hand off client connection
TNS-12547: TNS:lost contact
TNS-12560: TNS:protocol adapter error
  TNS-00517: Lost contact
   Linux Error: 32: Broken pipe
runInstaller error if installing
INFO: Starting Output Reader Threads for process /ocw/grid/bin/kfod
INFO: Parsing KFOD-00300: OCI error [-1] [OCI error] [ORA-12547: TNS:lost contact
INFO: Parsing ] [12547]
INFO: Parsing
INFO: The process /ocw/grid/bin/kfod exited with code 1
..
SEVERE: [FATAL] [INS-30502] No ASM disk group found.
   CAUSE: There were no disk groups managed by the ASM instance +ASM1.
Cause
1. Listener owner (including SCAN listener) can not access oracle binary in database home:
As listener owner:
$ ls -l $RDBMS_HOME/bin/oracle
ls: /home/oracle/app/oracle/product/11.2/db/bin/oracle: Permission denied
2. Oracle binary in database home has wrong permission:
ls -l $RDBMS_HOME/bin/oracle
-rwxr-x--x 1 oracle asmadmin 184286251 Aug  9 16:25 /home/oracle/app/oracle/product/11.2/db/bin/oracle
The permission "-rwxr-x--x" is wrong as it's missing suid bit, oracle binary should have permission of 6751:
-rwsr-s--x 1 oracle asmadmin 184286251 Aug  9 16:25 /home/oracle/app/oracle/product/11.2/db/bin/oracle
Note: If Job Role Separation is in place, the group will be <asmadmin>, otherwise it will be <oinstall>
3. File System for database home does not support setuid/suid or has nosetuid/nosuid set:
mount| grep <mount_point_of_ORACLE_HOME>
/home/oracle on /dev/dsk/diskoracle read/write/nosuid..
Solution
Solution is to make sure file system for database home has setuid/suid
set, database binary($RDBMS_HOME/bin/oracle) has correct ownership and
permission, and listener owner is able to access database oracle binary
(as listener owner, "ls -l $RDBMS_HOME/bin/oracle"
will tell)
If its Job Role Separation environment, please refer to the following document:
Oracle® Grid Infrastructure
Installation Guide
11g Release 2 (11.2)
Oracle ASM Job Role Separation Option with SYSASM

最新文章

  1. 2-3 Linux文件管理命令详解
  2. 2016HUAS暑假集训训练2 D - 敌兵布阵
  3. 数据挖掘系列(2)--关联规则FpGrowth算法
  4. Html - Bootstrap 头部
  5. Message,MessageQueue,Looper,Handler详解
  6. js实现模拟自动点击按钮,并且在10秒倒计时之后疯狂点击
  7. MFC去掉win7玻璃效果
  8. poj3281(最大流)
  9. C# 读取 vCard 格式
  10. Angular - - $cacheFactory
  11. JavaWeb验证码的使用
  12. Android 程序结构
  13. pointer-events属性屏蔽鼠标事件(点击穿透上层元素)
  14. Mac OS X 操作系统下IntelliJ IDEA激活码(Activation code)破解
  15. Linux 总线、设备、驱动模型 与 设备树
  16. 7系列GTX中的疑惑
  17. bios设置启动方式问题
  18. threejs 世界坐标与屏幕坐标相互转换
  19. SonarQube Scanner for MSBuild
  20. python之函数cmp

热门文章

  1. 【2017 Multi-University Training Contest - Team 1】小结
  2. 【POJ2420】A star not a tree?
  3. Python爬虫之百度API调用
  4. aspxpivotgrid 导出excel时,非绑定咧显示为0的情况
  5. C++11——Use auto keyword in C++11
  6. 用JavaScript简单判断浏览器类型
  7. [水煮 ASP.NET Web API2 方法论](12-4)OData 支持的 Function 和 Action
  8. 基于node的前端页面实时更新。呦吼~
  9. spring boot 使用thymeleaf模版 报错:org.thymeleaf.exceptions.TemplateInputException
  10. 下载Maven安装包