我正在使用PL / SQL Developer从远程笔记本电脑连接到已安装(启动并正在运行)oracleDB的家用PC,并且我知道我必须使用oracleDB在PC上配置tnsname和侦听器以允许远程请求(如果我没记错的话)。但我无法使其正常工作,请继续获取错误信息:
ora-12514 tns侦听器当前不知道连接描述符中请求的服务
我的配置: listener.ora
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\Users\UserNam\Downloads\WINDOWS.X64_180000_db_home)
(PROGRAM = extproc)
(ENVS ="EXTPROC_DLLS=ONLY:C:\Users\Stefan\Downloads\WINDOWS.X64_180000_db_home\bin\oraclr18.dll")
)
(SID_DESC =
(GLOBAL_DBNAME = HOME)
(ORACLE_HOME = C:\Users\Stefan\Downloads\WINDOWS.X64_180000_db_home)
(SID_NAME = home)
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCPS)(HOST = localhost)(PORT = 2484))
)
)
SANDBOX =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = 0.0.0.0)(PORT = 1522))
)
)
和tnsnames.ora
HOME =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = home)
)
)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
LISTENER_HOME =
(ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))