电脑重启后 oracle ORA-12514: TNS: 监听进程不能解析在连接描述符的问题

本人装了oracle11G后,用PL/SQL连接  没问题,  但是重启下电脑后发下无法连接,网上找了找发现


lintener.ora文件上  要加上一段   原本是 

SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = Oracle8)
      (SID_NAME = ORCL)
    )
  )


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

要改成


SID_LIST_LISTENER =
  (SID_LIST =
    (SID_DESC =
      (GLOBAL_DBNAME = Oracle8)
      (SID_NAME = ORCL)
    )
    (SID_DESC =
       (GLOBAL_DBNAME = orcl)
       (ORACLE_HOME = D:\app\xwt\product\11.1.0)
       (SID_NAME = orcl)
     )

  )


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



在改的过程中 ,有碰到头疼的问题,因为我装的是win7,没法修改listener.ora文件,所以没办法  改了后拷到  桌面上,再删除掉原本的,最后  在复制进去


重启电脑  链接  没问题,问题解决


另外碰到一个问题是,之前一个同事把pl/sql安装进c盘下面的program下面,这样也会提示出无法连接,只要把pl/sql安装到别的盘就行了

你可能感兴趣的:(电脑重启后 oracle ORA-12514: TNS: 监听进程不能解析在连接描述符的问题)