今天遇到到oracle郁闷问题(已经解决)

昨天刚用的plsq,但是早上上班打开电脑,使用plsql 连接本地数据库连接不上,连接其他机器的服务器能连接上
在cmd下 可以连接上本地数据库
plsql 一登录本地数据库就未响应 昨天还是好的 今早就登录不上了 ,不知道怎么回事?

遇到这个问题,我首先想到就是监听出问了,立马找打 oracle\ora92\network\admin\tnsnames.ora 文件,查看监听文件,这个文件昨天没动啊,里面配置也是好好的。配置如下:

 

# TNSNAMES.ORA Network Configuration File: d:\oracle\ora92\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

ORCL =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 20110717-1550)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = orcl)
    )
  )

INST1_HTTP =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 20110717-1550)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = SHARED)
      (SERVICE_NAME = MODOSE)
      (PRESENTATION = http://HRService)
    )
  )

EXTPROC_CONNECTION_DATA =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )
    (CONNECT_DATA =
      (SID = PLSExtProc)
      (PRESENTATION = RO)
    )
  )

 自己ip没换过,主机名也没换过,不该存在问题啊。但是就是plsql连不上,郁闷。网上查资料,也没找到方法,然后自己尝试的把主机名换为IP,127.0.0.1 ,竟然连上了,晕!!!!!!!!!

你可能感兴趣的:(oracle)