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

在安装weblogic并调整/var目录权限后,遇到listener启动失败的问题。通过将/var/tmp/.oracle目录权限调整为oracle:dba,成功解决了启动失败的问题。检查发现,启动listener时需要在/var/tmp/.oracle目录中写入临时文件,权限修改导致写入失败。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

在系统里装了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-x  19 root root 4096 Jun  4 09:45 ..

drwxr-xr-x   2 root root 4096 Jun 14 06:57 .oracle

drwxr-xr-x   3 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-x  19 root   root 4096 Jun  4 09:45 ..

drwxr-xr-x   2 oracle dba  4096 Jun 14 06:57 .oracle

drwxr-xr-x   3 root   root 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

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

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production

Start Date                27-JUL-2011 23:37:45

Uptime                    0 days 0 hr. 0 min. 0 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

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

srwxrwxrwx  1 oracle dba 0 Jul 27 23:46 sEXTPROC0

srwxrwxrwx  1 oracle dba 0 Jul 27 23:46 s#9902.2

srwxrwxrwx  1 oracle dba 0 Jul 27 23:46 s#9902.1

 

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

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

转载于:http://blog.itpub.net/10972173/viewspace-703331/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值