SQLPLUS连接到Express 11.2' XE'使用' sqlplus hr / hr @ XE'在Windows 7上运行的服务。 Express 11.2,SQLPLUS和Java App都在PROD10 Windows 7工作站上运行。
使用JDBC瘦客户端的Java应用程序使用以下连接字符串收到以下错误:jdbc:oracle:thin:hr / hr @ // PROD10:1521 / xe: 监听器拒绝连接,出现以下错误: ORA-12514,TNS:监听器当前不知道连接描述符
使用ojdbc6.jar类型4驱动程序和jdk1.60_27。
' lsnrctl services'报告如下: 适用于32位Windows的LSNRCTL:版本11.2.0.2.0 - 生产于05-NOV-2017 16:22:19
连接到(DESCRIPTION =(ADDRESS =(PROTOCOL = IPC)(KEY = EXTPROC1))) 服务摘要...... 服务" CLRExtProc"有1个实例。 实例" CLRExtProc",状态UNKNOWN,有1个此服务的处理程序... 处理器(S): " DEDICATED"成立:0拒绝:0 本地服务器 服务" PLSExtProc"有1个实例。 实例" PLSExtProc",状态UNKNOWN,有1个此服务的处理程序... 处理器(S): " DEDICATED"成立:0拒绝:0 本地服务器 服务" XEXDB"有1个实例。 实例" xe",状态READY,有1个此服务的处理程序... 处理器(S): " D000"建立:0拒绝:0当前:0最大:1022状态:准备好 DISPATCHER (ADDRESS =(PROTOCOL = TCP)(HOST = TIGER2)(PORT = 50085)) 服务" xe"有1个实例。 实例" xe",状态READY,有1个此服务的处理程序... 处理器(S): " DEDICATED"建立:0拒绝:0状态:准备好了 本地服务器 命令成功完成
tnsnames.ora包含: XE = (DESCRIPTION = (ADDRESS =(PROTOCOL = TCP)(HOST = TIGER2)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = XE) ) ) ORCL = (DESCRIPTION = (ADDRESS =(PROTOCOL = TCP)(HOST = TIGER2)(PORT = 1521)) (CONNECT_DATA = (SID = ORCL) ) ) EXTPROC_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS =(PROTOCOL = IPC)(KEY = EXTPROC1)) ) (CONNECT_DATA = (SID = PLSExtProc) (演示= RO) ) ) ORACLR_CONNECTION_DATA = (DESCRIPTION = (ADDRESS_LIST = (ADDRESS =(PROTOCOL = IPC)(KEY = EXTPROC1)) ) (CONNECT_DATA = (SID = CLRExtProc) (演示= RO) ) )
listener.ora包含: SID_LIST_LISTENER = (SID_LIST = (SID_DESC = (SID_NAME = PLSExtProc) (ORACLE_HOME = C:\ oraclexe \ app \ oracle \ product \ 11.2.0 \ server) (PROGRAM = extproc) ) (SID_DESC = (SID_NAME = CLRExtProc) (ORACLE_HOME = C:\ oraclexe \ app \ oracle \ product \ 11.2.0 \ server) (PROGRAM = extproc) ) )
LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = (ADDRESS =(PROTOCOL = IPC)(KEY = EXTPROC1)) (ADDRESS =(PROTOCOL = TCP)(HOST = TIGER2)(PORT = 1521)) ) )
DEFAULT_SERVICE_LISTENER =(XE)