Oracle11g 侦听器不适用于redhat中的11 g XE
我正在RHEL 5.3中安装11g Express edition。安装后,DB启动,侦听器关闭。 我试图手动启动。不走运。它需要任何配置吗。我已经安装了oracle-xe-11.2.0-1.0.x86_64.rpm 我可以用下面的命令登录到数据库Oracle11g 侦听器不适用于redhat中的11 g XE,oracle11g,Oracle11g,我正在RHEL 5.3中安装11g Express edition。安装后,DB启动,侦听器关闭。 我试图手动启动。不走运。它需要任何配置吗。我已经安装了oracle-xe-11.2.0-1.0.x86_64.rpm 我可以用下面的命令登录到数据库 sqlplus muthu/abc 但我的听众不在了 sqlplus muthu/abc@xe ,我尝试手动启动侦听器 [oracle@rhel bin]$ lsnrctl start LSNRCTL for Linux: Version 11
sqlplus muthu/abc
但我的听众不在了
sqlplus muthu/abc@xe
,我尝试手动启动侦听器
[oracle@rhel bin]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 31-MAR-2014 16:37:34
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Starting /u01/app/oracle/product/11.2.0/xe/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.2.0 - Production
System parameter file is /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Log messages written to /u01/app/oracle/product/11.2.0/xe/log/diag/tnslsnr/rhel/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rhel.localdomain)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
STATUS of the LISTENER
我很少看到类似的问题。尝试了几次,但都成功了。请建议 提前谢谢
穆图好吧,这似乎是开始。侦听器日志文件是否有关于它正在做什么或为什么再次关闭的任何信息?感谢Alex的回复。我再次尝试重新安装oracle xe insystem。我将服务器重命名为本地主机,并尝试手动启动Lister和db。现在DB和listener都启动了。但当我尝试登录时,它给出了一个错误。输入用户名:system/Xyz@xe错误:ORA-12537:TNS:连接已关闭。我的tnsping很好用。有什么建议吗?没有,对不起。您需要查看侦听器日志,如果创建了一个,可能还需要查看一个
sqlnet.log
,以查看真正的错误是什么。等等,您是否将服务器名称设置为localhost
?这可能会让人困惑,因为这是一个特殊的值,总是解析为127.0.0.1。如果您希望将其解析为不同的IP,那么我可以看到这会导致问题,但不仅仅是Oracle。无论如何,检查日志,看看它在做什么,特别是在它引用主机名或IP时。在/etc/sysctl.conf net.core.rmem_default=262144 net.core.wmem_default=262144 net.core.rmem_max=4194304 net.core.wmem_max=1048576 fs.aio-max-nr=1048576中添加以下内容后,问题得到解决。感谢您的回复。。
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.2.0 - Production
Start Date 31-MAR-2014 16:37:36
Uptime 0 days 0 hr. 0 min. 1 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Default Service XE
Listener Parameter File /u01/app/oracle/product/11.2.0/xe/network/admin/listener.ora
Listener Log File /u01/app/oracle/product/11.2.0/xe/log/diag/tnslsnr/rhel/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC_FOR_XE)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=rhel.localdomain)(PORT=1521)))
Services Summary...
Service "PLSExtProc" has 1 instance(s).
Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
[oracle@rhel bin]$ lsnrctl status
LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 31-MAR-2014 16:38:03
Copyright (c) 1991, 2011, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC_FOR_XE)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=rhel.localdomain)(PORT=1521)))
TNS-12541: TNS:no listener
TNS-12560: TNS:protocol adapter error
TNS-00511: No listener
Linux Error: 111: Connection refused
[oracle@rhel bin]$