本机oracle其他机器不能访问

今天在本机安装了oracle,配置完后,本机可以正常访问,用plsql也可以访问,但在其他机器使用eclipse使用ip连接我本机数据库时,总是报错,大概意思是无法建立连接。后在网上查找资料,终于解决,现分享如下:
listener.ora监听文件内容如下:
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 = orcl)
       (ORACLE_HOME = D:\oracle\product\10.2.0\db_1)
       (SID_NAME = orcl)
      )
  )
LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
      (ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
      (ADDRESS = (PROTOCOL = TCP)(HOST = 机器名)(PORT = 1521)))   
  )
注:只要加上黑体部分那一行就可以了。本机oracle其他机器不能访问

你可能感兴趣的:(oracle)