the listener supports no services怎么解决
的有关信息介绍如下:snrctl start提示:The listener supports no servicesThe command completed successfully这样启动后远程连接会造成OracleORA-12514:TNS:listener does not currently know of service requested in connect descriptor
---方案一---------原因:数据库实例注册到listener-------------
--登录数据库
$sqlplus / as sysdba
--显示服务名
SQL>show parameter service_names
--强制注册服务
SQL>alter system register;
--查看监听状态
$lsnrctl status
-----方案二--------------------------------------
问题解决了在listener.ora里面添加了一行SID_LIST_LISTENER =(SID_LIST = (SID_DESC = (GLOBAL_DBNAME = globe) (SID_NAME = globe) ))
-----方案三-------------------------
后发现Oracle有个Net Manager可用:
在下图的Listeners->Database Services中配置要监听的SID及ORACLE_HOME,退出保存。
Linux上面:
[root@localhost oracle]# xhost +
[root@localhost oracle]# su - oracle
[oracle@localhost ~]$ netmgr
====================================================
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))TNS-12535: TNS:operation timed outTNS-12560: TNS:protocol adapter errorTNS-00505: Operation timed out Linux Error: 110: Connection timed outLSNRCTL>