The command supports no service 解决办法

The command supports no service 解决办法

今天通过虚拟机连接oracle数据库的时候发现我的数据库居然连接不上

首先切换到oracle状态

lsnrctl start

然后查看监听器的状态

lsnrctl status

发现显示的是这样的数据

The command supports no service

Snipaste_2020-11-11_08-57-38

然后连接你的数据库

sqlplus /nolog

然后输入: conn /as sysdba

然后输入 :SQL> show parameter name

Snipaste_2020-11-11_09-06-42

然后输入:SQL> select instance_name from v$instance;

Snipaste_2020-11-11_09-08-31

然后通过find -name listener.ora找到你的listener.ora文件,并进行修改

SID_LIST_LISTENER =` `(SID_LIST =` `(SID_DESC =` `(GLOBAL_DBNAME = helowinXDB)` `(SID_NAME = helowin)` `)` `)

然后通过lsnrctl start启动监听器

Snipaste_2020-11-11_09-12-51

最后就可以连接上Navicat 15 for Oracle

原文地址:https://www.cnblogs.com/coderD/p/13957017.html