本文转自:https://blog.csdn.net/qq_38861740/article/details/125526920

报错ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务,第一种是在你安装完之后未配置监听;

第二种是之前配置了监听但是系统未写入到listener.ora文件中,所以只需要在该文件中写入配置参数就可以了。

解决方法
修改listener.ora文件,把一下内容填写到SID_LIST节点下

(SID_DESC =
(GLOBAL_DBNAME = orcl1)
(ORACLE_HOME = H:\oracle\product\10.2.0\db_1)
(SID_NAME = orcl_1)
)
例如

SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = H:\oracle\product\10.2.0\db_1)
(PROGRAM = extproc)
(ENVS = “EXTPROC_DLLS=ONLY:H:\oracle\product\10.2.0\db_1\bin\oraclr11.dll”)
)
(SID_DESC =
(GLOBAL_DBNAME = orcl1)
(ORACLE_HOME = H:\oracle\product\10.2.0\db_1)
(SID_NAME = orcl_1)

)
)