ORA-12514: TNS:无监听器

ORA-12514: TNS:无监听器
此错误是因为listener.ora文件配置不全,解决办法:
一、加上下文中的红色代码。
二、紫色代码不能写localhost,可以是IP地址或计算机名。否则在其他电脑上访问会报此错误。


# listener.ora Network Configuration File: E:\oracle\product\10.2.0\db_1\network\admin\listener.ora
# Generated by Oracle configuration tools.

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = E:\oracle\product\10.2.0\db_1)
      (PROGRAM = extproc)
    )
  (SID_DESC =
    (GLOBAL_DBNAME = ORCL)
    (ORACLE_HOME = E:\oracle\product\10.2.0\db_1) 
    (SID_NAME = ORCL)
    )
  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.142)(PORT = 1521))
    )
  )



你可能感兴趣的:(oracle)