Chinaunix首页 | 论坛 | 博客
  • 博客访问: 235820
  • 博文数量: 50
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 533
  • 用 户 组: 普通用户
  • 注册时间: 2015-07-28 21:56
个人简介

活着,寻找生存。

文章分类

全部博文(50)

文章存档

2017年(1)

2016年(20)

2015年(29)

我的朋友

分类: Oracle

2015-12-02 00:01:22


单击此项可添加到收藏夹 Error 12154 received logging on to the standby whenever primary instance startup with srvctl (文档 ID 1943178.1) 转到底部转到底部

In this Document

Symptoms
Changes
Cause
Solution
References


APPLIES TO: 

Oracle Database - Enterprise Edition - Version 11.2.0.1 to 11.2.0.4 [Release 11.2]
Information in this document applies to any platform.

SYMPTOMS

Whenever a primary instance is started via srvctl, below error message written to the instance alert log

Wed Oct 29 14:42:16 2014
Error 12154 received logging on to the standby
PING[ARC2]: Heartbeat failed to connect to standby 'CLUSTER1'. Error is 12154.

No errors are reported in the alert log when the instance is started via sqlplus.

CHANGES

Data guard environment

CAUSE

Possible causes:

1. The tnsnames.ora resides in a non-default location pointed to via the TNS_ADMIN environment variable. This variable is set in the database users environment (e.g. user profile) but not for the database resource stored in the OCR (ora..db).

2. The TNS_ADMIN environment variable is set for the database resource but pointing to a incorrect location.

As a result, when the primary database tries to connect to the standby using the TNS alias specified after 'service=' on the remote destination (log_archive_dest_), it fails to resolve the TNS alias hence the error ORA-12154 "TNS:could not resolve the connect identifier specified" is reported.

SOLUTION

1. Verify if the variable TNS_ADMIN is used in the database users environment:

env|grep TNS_ADMIN

 2. Check if the database resource has the TNS_ADMIN variable set:

srvctl getenv database -d -t "TNS_ADMIN"

3. Depending on the output of 1 & 2 either unset TNS_ADMIN on the database resource:

srvctl unsetenv database -d -t "TNS_ADMIN"

 or set/correct the value of TNS_ADMIN on the database resource:

srvctl setenv database -d  -T "TNS_ADMIN=
阅读(1440) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~