Oracle安装路径下找到listener.ora:
文件路径例如:D:\OracleInstall\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
添加红色框中内容即可:
即:
(SID_DESC =
(GLOBAL_DBNAME = ORCL)
(ORACLE_HOME = D:\OracleInstall\product\11.2.0\dbhome_1)
(SID_NAME = ORCL)
)