Listener refused the connection with the following error: ORA-12505

出现这个错误,检查你的oracle服务是否打开(练习时一般吧oracle服务设置为手动启动,以节约资源)

在 cmd 中输出 services.msc 打开服务管理,找到 OracleServiceORCL 服务并开启