Oracle 10g 异常:ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务 解决方案

问题:

SQL> connect sys/password @RAOASYS as sysdba
ERROR:
ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服务

 

Solution:

1.打开/network/admin/listener.ora文件,找到:
SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = PLSExtProc)
      (ORACLE_HOME = d:/oracle/product/10.2.0/db_1)
      (PROGRAM = extproc)
    )

)


  2. 添加:
           (SID_DESC =
       (GLOBAL_DBNAME = RAOASYS)
       (ORACLE_HOME = D:/oracle/product/10.2.0/db_1) 
       (SID_NAME = RAOASYS)
      )

  3. 全部配置如下:

# listener.ora Network Configuration File: d:/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 = d:/oracle/product/10.2.0/db_1)
      (PROGRAM = extproc)
    )
  (SID_DESC =
       (GLOBAL_DBNAME = RAOASYS)
       (ORACLE_HOME = D:/oracle/product/10.2.0/db_1) 
       (SID_NAME = RAOASYS)
      )

  )

LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = PC-200907040939)(PORT = 1521))
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
  )

你可能感兴趣的:(oracle,sql,tcp,list,File,NetWork)