无法通过tnsnames登录

时间:2018-08-13 10:27:25

标签: oracle oracle12c

我正在虚拟机中的rhel 6.6中运行oracle 12c。

我已经为ODG配置了所有参数,并相应地编辑了tnsnames和侦听器文件。

我能够对两个节点进行tnsping,但是当我尝试通过tnsnames登录时,我得到了ORA 12514

我已经创建了orapwd文件并将其复制到辅助节点上。

tnsnames

ODGORADBDR =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.35)(PORT = 1522))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = oradbdr)
    )
  )

ODGORADB =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.30)(PORT = 1522))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = oradb)
    )
  )

备用侦听器文件

ORADBDR =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.35)(PORT = 1522))
    )

SID_LIST_ORADBR =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = oradbdr)
      (ORACLE_HOME = /oracle/product/12.1.0/dbhome_1)
      (ENVS='EPC_DISABLED=TRUE')
    )
  )

主要数据库监听器

ORADB =
    (DESCRIPTION =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.30)(PORT = 1522))
    )

SID_LIST_ORADB =
  (SID_LIST =
    (SID_DESC =
      (SID_NAME = oradb)
      (ORACLE_HOME = /oracle/product/12.1.0/dbhome_1)
      (ENVS='EPC_DISABLED=TRUE')
    )
  )

只想知道我做错了什么。

0 个答案:

没有答案