日期:2014-05-16  浏览次数:20548 次

Oracle 11g监听无法启动
lsnrctl start
提示:
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-JUN-2012 10:42:55

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

Starting /opt/oracle11g/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /opt/oracle11g/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /opt/oracle11g/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Error listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
TNS-12555: TNS:permission denied
TNS-12560: TNS:protocol adapter error
  TNS-00525: Insufficient privilege for operation
   Linux Error: 1: Operation not permitted

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



google了一下,发现需要 /var/tmp 或者 /tmp 目录下的.oracle 的权限问题

cd /var/tmp
ls -la

chown oracle:oinstall .oracle

然后再启动监听就没有问题了
lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 13-JUN-2012 10:54:07

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

Starting /opt/oracle11g/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /opt/oracle11g/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /opt/oracle11g/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
STATUS of the LISTENER
------------------------
Alias                     LISTENER
Version                   TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date                13-JUN-2012 10:54:09
Uptime                    0 days 0 hr. 0 min. 40 sec
Trace Level               off
Security                  ON: Local OS Authentication
SNMP                      OFF
Listener Parameter File   /opt/oracle11g/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File         /opt/oracle11g/app/oracle/diag/tnslsnr/localhost/listener/alert/log.xml
Listening Endpoints Summary...
  (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521)))
  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=localhost.localdomain)(PORT=1521)))
Services Summary...
Service "ORCL" has 1 instance(s).
  Instance "ORCL", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully