Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from puck1183.startdedicated.com (localhost [127.0.0.1])
 by puck1183.startdedicated.com (Postfix) with ESMTP id 8755D19611D3
 for <oracle-l@orafaq.com>; Tue,  9 Sep 2014 15:15:07 +0200 (CEST)
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by puck1183.startdedicated.com (Postfix) with ESMTP
 for <oracle-l@orafaq.com>; Tue,  9 Sep 2014 15:15:07 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 94B322F5B4;
 Tue,  9 Sep 2014 09:15:05 -0400 (EDT)
X-Virus-Scanned: Debian amavisd-new at turing.freelists.org
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 6L0yaKryYhlC; Tue,  9 Sep 2014 09:15:05 -0400 (EDT)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id EDB312F555;
 Tue,  9 Sep 2014 09:14:24 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 09 Sep 2014 09:13:44 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 840192F4F0
 for <oracle-l@freelists.org>; Tue,  9 Sep 2014 09:13:43 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing.freelists.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id r9GmOQpaw2aN for <oracle-l@freelists.org>;
 Tue,  9 Sep 2014 09:13:43 -0400 (EDT)
Received: from mout.gmx.com (mout.gmx.com [74.208.4.200])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 38B882F398
 for <oracle-l@freelists.org>; Tue,  9 Sep 2014 09:13:18 -0400 (EDT)
Received: from [167.19.250.100] by 3capp-mailcom-lxa13.server.lan (via
 HTTP); Tue, 9 Sep 2014 15:13:18 +0200
MIME-Version: 1.0
Message-ID: <trinity-94c7efd5-f830-43d8-b8bb-e4efbc936744-1410268397701@3capp-mailcom-lxa13>
From: "Lyall Barbour" <lyallbarbour@sanfranmail.com>
To: oracle-l <oracle-l@freelists.org>
Subject: Re: Failover to DG physical standby
Content-Type: text/html; charset=UTF-8
Date: Tue, 9 Sep 2014 15:13:18 +0200
Sensitivity: Normal
In-Reply-To: <CAJvnOJYidYrqAnfL2LcTPemu6QBSaS6-yzwv_=jK3mBCmOv0Rg@mail.gmail.com>
References: <20140908202142.6062225.46454.13960@sanfranmail.com>,
 <CAJvnOJYidYrqAnfL2LcTPemu6QBSaS6-yzwv_=jK3mBCmOv0Rg@mail.gmail.com>
X-UI-Message-Type: mail
X-Provags-ID: V03:K0:d6pVkyJmP31iaLGBKYfyEKscd1EuBK3a+UVupOeWKzs
 HD7D2eDz6H4XbYbSK6ftNxEvxj4G/goThodjqrrnnstYg+YW5U
 H68aHSTWXRVn6HZpu9LPNC70kjlSDSGkFFsFw2CEjPVD6HOi8y
 om5k5TKoETUOvUHOlPjxcmZa7XpoFrnr2RoPIp8NLDLw6vz22o
 pLuyHJ5pLGLCPpyHwuFWBwWTJFXBgad+zKKToft5pAX7MEBEXf
 7ap3qhu/Ka0fUYLy6YybEuzJNM0jbyW/0OshIEXbRhpl6uty7t
 h7Lv9pKSn/MOxFC5iQWtA7+Hohx
X-UI-Out-Filterresults: notjunk:1;
X-archive-position: 56273
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: lyallbarbour@sanfranmail.com
Precedence: normal
Reply-To: lyallbarbour@sanfranmail.com
List-help: <mailto:ecartis@freelists.org?Subject=help>
List-unsubscribe: <oracle-l-request@freelists.org?Subject=unsubscribe>
List-software: Ecartis version 1.0.0
List-Id: oracle-l <oracle-l.freelists.org>
X-List-ID: oracle-l <oracle-l.freelists.org>
List-subscribe: <oracle-l-request@freelists.org?Subject=subscribe>
List-owner: <mailto:mark.bobak@proquest.com>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l

<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Very good, i&#39;ve also used Seth&#39;s link to check into Database Triggers.&nbsp; This was used too.
<div><a href="http://www.usn-it.de/index.php/2007/06/28/how-to-fail-over-a-client-transparently-in-a-dataguard-switchoverfailover-scenario/" target="_blank">http://www.usn-it.de/index.php/2007/06/28/how-to-fail-over-a-client-transparently-in-a-dataguard-switchoverfailover-scenario/</a></div>

<div>
<div>&nbsp;</div>

<div>Definitely getting a better idea.</div>

<div>More specific question now.&nbsp; We have 10.2.0.2, 10.2.0.4 and 11.2.0.4 databases that was Vital/Critical to the company that are in a DataGuard Primary/PhyStandby configuration currently.&nbsp; We also have multiple DNS aliases for each application that points to the server that applications database is on, then Database Services, essentially, with the same name in the database.&nbsp; TNS looks something like this:</div>

<div>&nbsp;</div>

<div>VITALDB =</div>

<div>&nbsp;&nbsp; (DESCRIPTION=</div>

<div>&nbsp;&nbsp;&nbsp; (ADDRESS=</div>

<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (PROTOCOL=TCP)(HOST=VITALDB-lh)(PORT=1521)</div>

<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )</div>

<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (CONNECT_DATA=(SERVICE_NAME=VITALDB.domain.com)</div>

<div>&nbsp;&nbsp;&nbsp; )</div>

<div>&nbsp; )</div>

<div>Then, any application in that database has another tns entry, just replacing all the VITALDB names with whatever business has deemed the name of that app</div>

<div>&nbsp;</div>

<div>I want to do this, what does everyone think?&nbsp; Testing all of this in a test scenario first.</div>

<div>&nbsp;</div>

<div>1) Add the below tns connection information for all of these Vital/Critical entries</div>

<div>2) Update all the apps with these tnsnames.ora files or JDBC connection strings</div>

<div>3) Create a DB startup trigger that will start all these services if the database_role = &#39;PRIMARY&#39;, else stop the services.</div>

<div>&nbsp;</div>

<div>That&#39;s about it.</div>

<div>&nbsp;</div>

<div>Lyall Barbour</div>

<div style="margin: 10px 5px 5px 10px; padding: 10px 0px 10px 10px; border-left-color: rgb(195, 217, 229); border-left-width: 2px; border-left-style: solid;">
<div style="margin: 0px 0px 10px;"><b>Sent:</b>&nbsp;Monday, September 08, 2014 at 4:29 PM<br/>
<b>From:</b>&nbsp;&quot;Andrew Kerber&quot; &lt;andrew.kerber@gmail.com&gt;<br/>
<b>To:</b>&nbsp;lyallbarbour@sanfranmail.com<br/>
<b>Cc:</b>&nbsp;ORACLE-L &lt;oracle-l@freelists.org&gt;<br/>
<b>Subject:</b>&nbsp;Re: Failover to DG physical standby</div>

<div>
<div>Normally you just set up a failover tns entry, with both the primary and the standby nodes listed.&nbsp; Other methods include moving the name and/or ip address to the standby server in case of primary failure.&nbsp; 11gR2 allows you to define service named based on whether or not the database is primary or standby, so you use the same service name.&nbsp; Somthing like this:<br/>
<br/>
DEMODB =<br/>
&nbsp; (DESCRIPTION =<br/>
&nbsp;&nbsp;&nbsp; (ADDRESS_LIST =<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ADDRESS = (PROTOCOL = TCP)(HOST = PRIMARY)(PORT = 1521))<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (ADDRESS = (PROTOCOL = TCP)(HOST = STANDBY)(PORT = 1521))<br/>
&nbsp;&nbsp;&nbsp; )<br/>
&nbsp;&nbsp;&nbsp; (CONNECT_DATA =<br/>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (SERVICE_NAME = demodb)<br/>
&nbsp;&nbsp;&nbsp; )<br/>
&nbsp; )</div>

<div class="gmail_extra">&nbsp;
<div class="gmail_quote">On Mon, Sep 8, 2014 at 3:21 PM, Lyall personal <span>&lt;<a>lyallbarbour@sanfranmail.com</a>&gt;</span> wrote:

<blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;">
<div>
<div>All, more of a theoretical question then specifics and syntax needed. Therefore no version/OS info given</div>

<div>&nbsp;</div>

<div>We are working on a DR scenario at our company with two data centers. Trying to figure out how apps will connect to the DBs still when a disaster happens. How do you do it?</div>

<div>I&#39;m trying these tns features for FAILOVER and LOAD_BALANCE</div>

<div>&nbsp;</div>

<div>Thanks, Lyall</div>

<div>&nbsp;</div>

<div>Sent from my BlackBerry 10 smartphone.</div>
</div>
-- <a href="http://www.freelists.org/webpage/oracle-l" target="_blank">http://www.freelists.org/webpage/oracle-l</a></blockquote>
</div>
<br/>
<br clear="all"/>
<br/>
--<br/>
Andrew W. Kerber<br/>
<br/>
&#39;If at first you dont succeed, dont take up skydiving.&#39;</div>
</div>
</div>
</div>
</div></div></body></html>
--
http://www.freelists.org/webpage/oracle-l


