ITPub博客

首页 > 数据库 > Oracle > /tmp文件系统无权限导致监听listener启动失败

/tmp文件系统无权限导致监听listener启动失败

原创 Oracle 作者:2008081036 时间:2016-02-23 14:49:47 0 删除 编辑
启动监听失败:
cli19-hx8uat<*tpi3hx8*/orahome/app/oracle/network/admin>$lsnrctl start TPI3HX8                       

LSNRCTL for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production on 23-FEB-2016 11:41:10

Copyright (c) 1991, 2007, Oracle.  All rights reserved.

Starting /orahome/app/oracle/bin/tnslsnr: please wait...

TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production
System parameter file is /orahome/app/oracle/network/admin/listener.ora
Log messages written to /orahome/app/oracle/network/log/tpi3hx8.log
Error listening on: (ADDRESS=(PROTOCOL=ipc)(PARTIAL=yes)(QUEUESIZE=1))
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.104.119)(PORT=3526)))
TNS-12557: TNS:protocol adapter not loadable
TNS-12560: TNS:protocol adapter error
  TNS-00527: Protocol Adapter not loadable


Listener failed to start. See the error message(s) above...

cli19-hx8uat<*tpi3hx8*/orahome/app/oracle/network/admin>$

查看日志:
TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.4.0 - Production on 23-FEB-2016 10:32:45

Copyright (c) 1991, 2007, Oracle.  All rights reserved.

System parameter file is /orahome/app/oracle/network/admin/listener.ora
Log messages written to /orahome/app/oracle/network/log/tpi3ww8.log
Trace information written to /orahome/app/oracle/network/trace/tpi3ww8.trc
Trace level is currently 0

Started with pid=5963812
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.104.119)(PORT=3525)))
Error listening on: (ADDRESS=(PROTOCOL=ipc)(PARTIAL=yes)(QUEUESIZE=1))
No longer listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.0.104.119)(PORT=3525)))
TNS-12557: TNS:protocol adapter not loadable
TNS-12560: TNS:protocol adapter error
  TNS-00527: Protocol Adapter not loadable

没有有效信息,查看trc文件/orahome/app/oracle/network/trace/tpi3ww8.trc提示不存在。
从网上查到,可能是缺少目录: /var/tmp/.oracle
经查,此目录是存在的:
cli19-hx8uat<*tpi3hx8*/home/oracle>$ls -al /var/tmp
total 360
drwxrwxrwt    3 bin      bin            4096 Feb 23 12:34 .
drwxr-xr-x   36 bin      bin            4096 Mar 30 2015  ..
drwxrwxrwt    2 root     system          256 Aug 12 2014  .oracle

于是,想trace一下监听启动过程,listener.ora增加参数:
TRACE_LEVEL_LISTENER=16

但启动还是报错,且trace level还是保持为0,并没有设置为16,奇怪.

这时,我想查看一下操作系统版本,却发现:
cli19-hx8uat<*tpi3hx8*/orahome/app/oracle/network/admin>$oslevel
/usr/bin/oslevel[627]: /tmp/sh7012526.13: 0403-005 Cannot create the specified file.

原来是/tmp路径下无权限!
找系统管理员授予权限后,监听启动正常。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25465866/viewspace-1993067/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-05-05

  • 博文量
    26
  • 访问量
    88523