一个IP上有两个oracle数据库

时间:2016-07-15 11:54:20

标签: oracle listener tns

我拥有的: 1)本地系统上的Oracle 11R1服务 2)其他帐户上的Oracle 12c服务

TNS监听器从oracle 11R1运行(但我也为12c创建了一个)

作为第一个解决方案,我尝试

A12c =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 1.1.1.1)(PORT = 1531))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = A12c.1.1.1)
    )
  )


B11R1 =
  (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 1.1.1.1)(PORT = 1521))
    (CONNECT_DATA =
      (SERVER = DEDICATED)
      (SERVICE_NAME = B11R1)
    )
  )


LISTENER =
  (DESCRIPTION_LIST =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 1.1.1.1)(PORT = 1521))
    )
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 1.1.1.1)(PORT = 1531))
    )
  )

使用这种配置,我可以连接到11r1(也可以连接到1531端口!)但是连接到12c。当我设置两个监听器的情况是一样的。当我使用12c监听器运行时,我无法连接到任何数据库。

对任何建议都会感激不尽。 谢谢

0 个答案:

没有答案