ORA-12541:TNS:无监听程序
先确定数据库已经启动了,监听启动也成功执行,控制台可以登录,但是plsqldev登不上报 ORA-12541:TNS:无监听程序
这样应该是listener.ora 文件配置错误检查修改
附linux正确的listener.ora文件配置
# listener.ora Network Configuration File: /home/oracle/oracle_11/app/product/11.2.0/dbhome_1/network/admin/listener.ora
# Generated by Oracle configuration tools.
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.65)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(ORACLE_HOME=/home/oracle/oracle_11/app/product/11.2.0/dbhome_1)
(SID_NAME = orcl)
)
)
ADR_BASE_LISTENER = /home/oracle/oracle_11/app
# deal with : 'WARNING: Subscription for node down event still pending'
SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER=OFF
注:HOST = 192.168.1.65 也可以是机器名