oracle var/tmp,/var/tmp/.oracle目录权限被修改导致listener启动失败

在系统里装了weblogic之后,把/var目录下的一些权限改了,导致启动listener失败:

-bash-3.00$ lsnrctl start

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 27-JUL-2011

23:32:25

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

Starting /home/db/oracle/product/10.2.0//bin/tnslsnr: please

wait...

TNSLSNR for Linux: Version 10.2.0.1.0 - Production

System parameter file is

/home/db/oracle/product/10.2.0/network/admin/listener.ora

Log messages written to

/home/db/oracle/product/10.2.0/network/log/listener.log

Error listening on:

(ADDRESS=(PROTOCOL=ipc)(PARTIAL=yes)(QUEUESIZE=1))

No longer listening on:

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.72.128)(PORT=1522)))

TNS-12546: TNS:permission denied

TNS-12560: TNS:protocol

adapter error

TNS-00516: Permission

denied

Linux Error: 13:

Permission denied

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

网上查了一下,与/var/tmp/下的隐藏目录.oracle权限有关:

[root@localhost tmp]# cd /var/tmp

[root@localhost tmp]# ls -ltra

total 24

drwxr-xr-x19 root root 4096

Jun4 09:45 ..

drwxr-xr-x2 root root 4096

Jun 14 06:57 .oracle

drwxr-xr-x3 root root 4096

Jul 17 19:50 .

将其属主改为oracle:dba

[root@localhost tmp]# chown -R oracle:dba .oracle

[root@localhost tmp]# ls -ltra

total 24

drwxr-xr-x19 rootroot 4096 Jun4 09:45 ..

drwxr-xr-x2 oracle dba4096 Jun 14 06:57 .oracle

drwxr-xr-x3 rootroot 4096 Jul 17 19:50 .

再次启动listener,启动成功:

-bash-3.00$ lsnrctl start

LSNRCTL for Linux: Version 10.2.0.1.0 - Production on 27-JUL-2011

23:37:43

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

Starting /home/db/oracle/product/10.2.0//bin/tnslsnr: please

wait...

TNSLSNR for Linux: Version 10.2.0.1.0 - Production

System parameter file is

/home/db/oracle/product/10.2.0/network/admin/listener.ora

Log messages written to

/home/db/oracle/product/10.2.0/network/log/listener.log

Listening on:

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.72.128)(PORT=1522)))

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))

Connecting to

(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.72.128)(PORT=1522)))

STATUS of the LISTENER

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

AliasLISTENER

VersionTNSLSNR for Linux: Version 10.2.0.1.0 - Production

Start Date27-JUL-2011 23:37:45

Uptime0

days 0 hr. 0 min. 0 sec

Trace Leveloff

SecurityON:

Local OS Authentication

SNMPOFF

Listener Parameter File/home/db/oracle/product/10.2.0/network/admin/listener.ora

Listener Log File/home/db/oracle/product/10.2.0/network/log/listener.log

Listening Endpoints Summary...

(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.72.128)(PORT=1522)))

(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC0)))

Services Summary...

Service "PLSExtProc" has 1 instance(s).

Instance

"PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...

The command completed successfully

检查.oracle目录的内容,发现如下内容:

[root@localhost .oracle]# ls -ltr

total 12

srwxrwxrwx1 oracle dba 0

Jul 27 23:46 sEXTPROC0

srwxrwxrwx1 oracle dba 0

Jul 27 23:46 s#9902.2

srwxrwxrwx1 oracle dba 0

Jul 27 23:46 s#9902.1

可以推断当执行lsnrctl

start命令时,需要往/var/tmp/.oracle里面写入这些临时文件,当该目录权限被修改后,写入文件失败,最终导致listener启动失败。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值