报错提示:
The listener supports no services
The command completed successfully
修改服务器主机名
[root@myhost]# vi /etc/hosts
添加
127.0.0.1 主机名
ip 主机名
步骤一:
在/oracle/product/11.2.0/db/network/admin/listener.ora里面添加了一行
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(GLOBAL_DBNAME = orcl)
(SID_NAME = orcl)
)
)
--监听文件的内容
more listener.ora
注:里面的orcl根据你安装的数据库实例名确定,我用此法解决了这个报错。步骤二:
启动后,提示IInstance "orcl", status UNKNOWN, has 1 handler(s) for this service...这个提示一般认为很正常,是由于实例没有注册到监听服务中去,于是注册实例
登入sqlplus
sqlplus / as sysdba
显示服务名:show parameter service_names
强制注册服务:alter system register;
查看监听状态:
lsnrctl status