ITPub博客

首页 > 数据库 > Oracle > ORA-12545: Connect failed because target host or object does not exist

ORA-12545: Connect failed because target host or object does not exist

原创 Oracle 作者:sky850623 时间:2015-09-25 18:26:58 0 删除 编辑
环境:red hat 4.7 +oracle 10g
1.在节点1的tnsname.ora增加
local_listener_rac=
(ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.201)(PORT = 1521))
)

其中host=192.168.1.201 为vip地址

2.在节点2的tnsname.ora增加
local_listener_rac=
(ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.202)(PORT = 1521))
)

3.在任意节点修改local_listener参数
SQL> alter system set local_listener='local_listener_rac' scope=spfile;

System altered.
4.重启各节点上的实例

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26937943/viewspace-1809396/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: OSWatcher工具使用
请登录后发表评论 登录
全部评论

注册时间:2013-05-30

  • 博文量
    154
  • 访问量
    515358