ORA-12514: TNS:listener does not currently know of service requested in connect descriptor

今天装了11G 的oracle 数据库库 登陆的时候 报上面错误 网上好多回答,我的是11G 的。 下面是解决方法,是配置问题 


首先找到 E:\app\wen\product\11.2.0\dbhome_1\NETWORK\ADMIN  下面的listerner.ora 文件 用文本编辑器打开 


然后修改为下面


# listener.ora Network Configuration File: E:\app\wen\product\11.2.0\dbhome_1\NETWORK\ADMIN\listener.ora
# Generated by Oracle configuration tools.


SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = CLRExtProc)
      (ORACLE_HOME = E:\app\wen\product\11.2.0\dbhome_1)
    )
    (SID_DESC   =    
(GOLBAL_DBNAME=   orcl)                 
(ORACLE_HOME   =   E:\app\wen\product\11.2.0\dbhome_1)            
(SID_NAME=orcl)    
)
  )


LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
    )
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 10.118.7.191)(PORT = 1521))
    )
  )


ADR_BASE_LISTENER = E:\app\wen

重启监听程序 试试 就ok

你可能感兴趣的:(oracle,数据库)