lsnrctl status 看实例是否启动
如果没有启动再想办法
在命令行用tnsping 测试tnsname.ora的配置是否正确
eg: tnsping yun 测试yun的配置
如果连接失败,可以先尝试一下tnsping和更新一下tnsname.ora文件,刷新一下有时候会连接成功