Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from smtp-aa.freelists.org (smtp-aa.freelists.org [23.23.80.81])
 by malta2546.startdedicated.com (Postfix) with ESMTPS id 6EE84100311819
 for <oracle-l@orafaq.com>; Mon, 31 May 2021 17:09:28 +0200 (CEST)
Received: from turing.freelists.org (ip-10-0-0-164.ec2.internal [10.0.0.164])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
 (No client certificate requested)
 by smtp-aa.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 6472740919;
 Mon, 31 May 2021 15:09:27 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 5755740D09;
 Mon, 31 May 2021 15:09:27 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1622473767;
 bh=j5RvChwM6XZx6MtvsowbJeaFr7H3I2Uy2dkJCOwj08U=;
 h=From:Sender:Sender:From;
 b=KkUmTdk8rxfBDMExKxNeCH5n+VV0bH6dlcaQyYYi6SKdt53fFv6TtEC6B2OqYxRKz
	 nS0P7MFf9rsTlQX/3IjKsuPy5bc9doFQBl1GopoE/ky0a7uOrKPPOxKAWAuiTYSi95
	 bDEcqqbRTsDw3Osa+mNQh7db2FzlelCTIKcRrX98=
X-Virus-Scanned: by FreeLists at turing2.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 vxMvICFsbzMo; Mon, 31 May 2021 15:09:27 +0000 (UTC)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id D0FC340AF9;
 Mon, 31 May 2021 15:09:24 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1622473765;
 bh=j5RvChwM6XZx6MtvsowbJeaFr7H3I2Uy2dkJCOwj08U=;
 h=From:Sender:Sender:From;
 b=kmhWsdq/NvaRdAdxPOJ/kwRe0t/blIRrgcvPjnoYBrZLDI1iChIyJI5asdCbZlMoG
	 lOzlx1B2z0AnCJTwock8NdutZctsX8F+KIr6urWlYRXNHNW/H9IsOuLjZoV/TlL3NW
	 DRa704hAki24TzDgDDkl/bJD9vLgONWDcjwv001E=
Received: with ECARTIS (v1.0.0; list oracle-l); Mon, 31 May 2021 15:09:23 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 4EE1840D09
 for <oracle-l@freelists.org>; Mon, 31 May 2021 15:09:23 +0000 (UTC)
Authentication-Results: turing.freelists.org;
 dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=tS0wHx6x;
 dkim-atps=neutral
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 k21nl66yK_w1 for <oracle-l@freelists.org>;
 Mon, 31 May 2021 15:09:23 +0000 (UTC)
Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43])
 (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 by turing.freelists.org (Postfix) with ESMTPS id 3F4A140AF9
 for <oracle-l@freelists.org>; Mon, 31 May 2021 15:09:23 +0000 (UTC)
Received: by mail-lf1-f43.google.com with SMTP id r5so17295103lfr.5
        for <oracle-l@freelists.org>; Mon, 31 May 2021 08:09:23 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject:to:cc;
        bh=PYKv3pooCwMyR8UmeP9/scXuhlTwjWdiW7e7Nv+HAzs=;
        b=nk49TfObDfdwa8pAfeoQK652b/opQEkWMLi7cO8TYD408SjTurbVxvc1zu0nWBPB1i
         0y3LiqBMfGD+Ae80R8IsSZM9PfaAdGpzOmkYU5zEDVJzxofoBS7bTodtmHyZXnzO4fc4
         Lp+n4zML35/Ugipaue6GxD5MaGdFqOk8FzS9fMhrMXMQWXGSrBfYNmEnEXyQAFnWPgjn
         ajAu9mpDNSwEnKZm5EcJJFE+nqlkddAqRYHZs6rAqNmJ3gQysuIMuzIqkLp69Vmotx9Y
         BRh/J6FGG1OWKH9Kq61eqGWkuXvBcoxbl593CtcxJilWIW/TUBdmUGpOG6LgbL7O+WJh
         jDiA==
X-Gm-Message-State: AOAM530P2p15w5VPikNhEAwwXnWuSTjcFMGdGenrsfSW1UkILtyps4UC
 1HI4/VnakJHYW7ruAQHTiQ0QxWTO0+R75MEXyTw=
X-Google-Smtp-Source: ABdhPJwDm6kyFZzXXMZvsolditD9ZXSsc6z/LsY03vZ1L1GYpdT1/465AES4MH3ghYwAB3cYqisXkVMorsu5Q0R0Tqk=
X-Received: by 2002:ac2:5979:: with SMTP id h25mr15117848lfp.497.1622473761984;
 Mon, 31 May 2021 08:09:21 -0700 (PDT)
MIME-Version: 1.0
References: <CAPCNhx3+DK3yhXD0SRMMBFSGsOOgvhi=B9OoLHhxxCJgdsz+Dw@mail.gmail.com>
 <d6b84f59-f93f-13a2-ccb1-d6258f580d84@gmail.com> <CAPCNhx0LH-VDPm5dsijcrv0LU74FLCgGFh+sD6kvfYp=gr6LxQ@mail.gmail.com>
 <CAMNBsZvXCiOE9H1ybhZ-aBEW-UK3h9FRiRxHR5v+xNS175YT7Q@mail.gmail.com>
 <CAPCNhx3Zu4q4kb07rXfcvKqdkhhM8ZPcvGR4_O=csUhuWJbwTA@mail.gmail.com> <CALcG2DLZF-V7v2X5dM9DrEbBy0ozZP9bQqWvBH934ufxEuH-xQ@mail.gmail.com>
In-Reply-To: <CALcG2DLZF-V7v2X5dM9DrEbBy0ozZP9bQqWvBH934ufxEuH-xQ@mail.gmail.com>
From: Hemant K Chitale <hemantkchitale@gmail.com>
Date: Mon, 31 May 2021 23:08:56 +0800
Message-ID: <CAMNBsZs+YTmmrjCo1QL4a4Cdn02t49Cw_78zKej1sLdSMPKf+Q@mail.gmail.com>
Subject: Re: Recovering a standby database with rman
To: Mladen Gogala <gogala.mladen@gmail.com>
Cc: Howard Latham <howard.latham@gmail.com>, ORACLE-L <oracle-l@freelists.org>
Content-Type: multipart/alternative; boundary="0000000000003d940605c3a19cf9"
X-archive-position: 80104
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: hemantkchitale@gmail.com
Precedence: normal
Reply-To: hemantkchitale@gmail.com
List-Help: <mailto:ecartis@freelists.org?Subject=help>
List-Unsubscribe: <mailto: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: <mailto:oracle-l-request@freelists.org?Subject=subscribe>
List-Owner: <mailto:>
List-post: <mailto:oracle-l@freelists.org>
List-Archive: <https://www.freelists.org/archive/oracle-l>
X-list: oracle-l
--0000000000003d940605c3a19cf9
Content-Type: text/plain; charset="UTF-8"

The RESTORE PRIMARY CONTROLFILE   command introduced in 11.2.0.4

https://docs.oracle.com/en/database/oracle/oracle-database/19/rcmrf/RESTORE.html#GUID-4491C03F-C5F8-43E5-B4C4-FE26C70F2E9B

See MOS document " Step by Step method to create Primary/Standby Database
from Standby Backup (Doc ID 1604251.1)"
The examples in the document do NOT show an RMAN Catalog being used.


Hemant K Chitale




On Mon, May 31, 2021 at 6:21 PM Mladen Gogala <gogala.mladen@gmail.com>
wrote:

> And how do you plan to restore standby backup to the primary without
> catalog?
>
> On Mon, May 31, 2021, 05:19 Howard Latham <howard.latham@gmail.com> wrote:
>
>> I think that may be the secret. Always backup logs from primary to go
>> with standby backup
>>
>> On Mon, 31 May 2021, 10:12 Hemant K Chitale, <hemantkchitale@gmail.com>
>> wrote:
>>
>>>
>>> You don't need a CATALOG.
>>>
>>> 1  Stop Recovery on the Standby, note the last ArchiveLog applied.
>>> 2. Take an RMAN Backup of the Standby.
>>> 3.  Backup additional ArchiveLogs from the Primary
>>> 4.  Restore the Backup from the Standby to the Primar
>>> 5.  RECOVER using the ArchiveLogs from Step 3
>>>
>>> See
>>> https://hemantoracledba.blogspot.com/2020/05/rman-backup-of-standby-database.html
>>>
>>> (However, I demonstrate only the Standby Backup, not the RESTORE and
>>> RECOVER at the Primary)
>>>
>>> If you DO use a CATALOG see :
>>>
>>> https://hemantoracledba.blogspot.com/2021/04/primary-and-standby-in-same-rman-catalog.html
>>>
>>>
>>>
>>> Hemant K Chitale
>>>
>>>
>>>
>>>
>>> On Sun, May 30, 2021 at 11:28 PM Howard Latham <howard.latham@gmail.com>
>>> wrote:
>>>
>>>> Hi mladen happy labor day . What I didn't make clear the exercise was
>>>> a bare metal restore all else has gone and there is no catalog.  Only an
>>>> rman backup from a standby.  We hope to rebuild our primary from this
>>>> backup.
>>>>
>>>> On Sun, 30 May 2021, 05:26 Gogala, Mladen, <gogala.mladen@gmail.com>
>>>> wrote:
>>>>
>>>>> Hi Howard!
>>>>>
>>>>> Since you need the rman catalog to backup production from standby,
>>>>> catalog will lump the backups of the same DBID under the same database.
>>>>> That means that you can backup archive logs on the primary and the database
>>>>> on the standby. When restoring you can use either one. Rman will be able to
>>>>> use any backup of archive logs that it finds in the catalog. Enjoy your
>>>>> Memorial Day and don't restore any backups during the holiday.
>>>>>
>>>>> Regards
>>>>> On 5/28/2021 5:25 AM, Howard Latham wrote:
>>>>>
>>>>> Oracle 19c
>>>>> RH EL 7
>>>>>
>>>>> We are struggling to understand how in 19 a standby can be backed up
>>>>> and then recovered from tape. A common method to reduce load on a primary
>>>>> DB. The reason is that if standby redologs are being applied rather than
>>>>> archived logs there seems to be a 'hole' in the backup if the timing is
>>>>> wrong and a log switch does not occur on the primary but redo is applied
>>>>> through the standby redo log. Has anyone experienced problems with this?
>>>>> Obviously on a primary we would force a log switch but you can't do that on
>>>>> a standby. If I've missed a doc on this apologies and please point me in
>>>>> the right direction!
>>>>>
>>>>> Best Wishes
>>>>>
>>>>> Howard A. Latham
>>>>>
>>>>>
>>>>> --
>>>>> Mladen Gogala
>>>>> Oracle DBA
>>>>> Tel: (347) 321-1217
>>>>> Blog: https://dbwhisperer.wordpress.com
>>>>>
>>>>

--0000000000003d940605c3a19cf9
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div><br></div>The RESTORE PRIMARY CONTROLFILE=C2=A0 =C2=
=A0command introduced in 11.2.0.4<div><br></div><div><a href=3D"https://doc=
s.oracle.com/en/database/oracle/oracle-database/19/rcmrf/RESTORE.html#GUID-=
4491C03F-C5F8-43E5-B4C4-FE26C70F2E9B">https://docs.oracle.com/en/database/o=
racle/oracle-database/19/rcmrf/RESTORE.html#GUID-4491C03F-C5F8-43E5-B4C4-FE=
26C70F2E9B</a></div><div><br></div><div>See MOS document &quot;

<span style=3D"color:rgb(0,0,0);font-family:Tahoma,Verdana,Helvetica,sans-s=
erif;font-size:14.3px;font-weight:700;text-align:right">Step by Step method=
 to create Primary/Standby Database from Standby Backup (Doc ID 1604251.1)&=
quot;</span></div><div><div style=3D"text-align:left"><font color=3D"#00000=
0" face=3D"arial, sans-serif"><span style=3D"font-size:14.3px">The examples=
 in the document do NOT show an RMAN Catalog being used.</span></font></div=
><div style=3D"text-align:left"><font color=3D"#000000" face=3D"arial, sans=
-serif"><span style=3D"font-size:14.3px"><br></span></font></div><div><div =
dir=3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><d=
iv dir=3D"ltr"><div><div dir=3D"ltr"><br>Hemant K Chitale<br><br><br></div>=
</div></div></div></div><br></div></div><br><div class=3D"gmail_quote"><div=
 dir=3D"ltr" class=3D"gmail_attr">On Mon, May 31, 2021 at 6:21 PM Mladen Go=
gala &lt;<a href=3D"mailto:gogala.mladen@gmail.com">gogala.mladen@gmail.com=
</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:=
0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">=
<div dir=3D"auto">And how do you plan to restore standby backup to the prim=
ary without catalog?</div><br><div class=3D"gmail_quote"><div dir=3D"ltr" c=
lass=3D"gmail_attr">On Mon, May 31, 2021, 05:19 Howard Latham &lt;<a href=
=3D"mailto:howard.latham@gmail.com" target=3D"_blank">howard.latham@gmail.c=
om</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex=
"><div dir=3D"auto">I think that may be the secret. Always backup logs from=
 primary to go with standby backup=C2=A0=C2=A0</div><br><div class=3D"gmail=
_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Mon, 31 May 2021, 10:12 He=
mant K Chitale, &lt;<a href=3D"mailto:hemantkchitale@gmail.com" rel=3D"nore=
ferrer" target=3D"_blank">hemantkchitale@gmail.com</a>&gt; wrote:<br></div>=
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"ltr"><div><br=
></div>You don&#39;t need a CATALOG.<div><br></div><div>1=C2=A0 Stop Recove=
ry on the Standby, note the last ArchiveLog applied.</div><div>2. Take an R=
MAN Backup of the Standby.</div><div>3.=C2=A0 Backup additional=C2=A0Archiv=
eLogs from the Primary</div><div>4.=C2=A0 Restore the Backup from the Stand=
by to the Primar</div><div>5.=C2=A0 RECOVER using the ArchiveLogs from Step=
 3</div><div><br></div><div>See=C2=A0<a href=3D"https://hemantoracledba.blo=
gspot.com/2020/05/rman-backup-of-standby-database.html" rel=3D"noreferrer n=
oreferrer" target=3D"_blank">https://hemantoracledba.blogspot.com/2020/05/r=
man-backup-of-standby-database.html</a>=C2=A0=C2=A0</div><div>(However, I d=
emonstrate only the Standby Backup, not the RESTORE and RECOVER at the Prim=
ary)</div><div><br></div><div>If you DO use a CATALOG see :</div><div><a hr=
ef=3D"https://hemantoracledba.blogspot.com/2021/04/primary-and-standby-in-s=
ame-rman-catalog.html" rel=3D"noreferrer noreferrer" target=3D"_blank">http=
s://hemantoracledba.blogspot.com/2021/04/primary-and-standby-in-same-rman-c=
atalog.html</a></div><div><br></div><div><br clear=3D"all"><div><div dir=3D=
"ltr"><div dir=3D"ltr"><div><div dir=3D"ltr"><br>Hemant K Chitale<br><br><b=
r></div></div></div></div></div><br></div></div><br><div class=3D"gmail_quo=
te"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, May 30, 2021 at 11:28 PM =
Howard Latham &lt;<a href=3D"mailto:howard.latham@gmail.com" rel=3D"norefer=
rer noreferrer" target=3D"_blank">howard.latham@gmail.com</a>&gt; wrote:<br=
></div><blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;=
border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir=3D"auto">=
Hi mladen happy labor day . What I didn&#39;t make clear the exercise was=
=C2=A0 a bare metal restore all else has gone and there is no catalog.=C2=
=A0 Only an rman backup from a standby.=C2=A0 We hope to rebuild our primar=
y from this backup.=C2=A0</div><br><div class=3D"gmail_quote"><div dir=3D"l=
tr" class=3D"gmail_attr">On Sun, 30 May 2021, 05:26 Gogala, Mladen, &lt;<a =
href=3D"mailto:gogala.mladen@gmail.com" rel=3D"noreferrer noreferrer" targe=
t=3D"_blank">gogala.mladen@gmail.com</a>&gt; wrote:<br></div><blockquote cl=
ass=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid=
 rgb(204,204,204);padding-left:1ex">
 =20
   =20
 =20
  <div>
    <p>Hi Howard!</p>
    <p>Since you need the rman catalog to backup production from
      standby, catalog will lump the backups of the same DBID under the
      same database. That means that you can backup archive logs on the
      primary and the database on the standby. When restoring you can
      use either one. Rman will be able to use any backup of archive
      logs that it finds in the catalog. Enjoy your Memorial Day and
      don&#39;t restore any backups during the holiday.</p>
    <p>Regards<br>
    </p>
    <div>On 5/28/2021 5:25 AM, Howard Latham
      wrote:<br>
    </div>
    <blockquote type=3D"cite">
     =20
      <div dir=3D"ltr">
        <div class=3D"gmail_default" style=3D"font-family:arial,helvetica,s=
ans-serif;font-size:large">Oracle
          19c</div>
        <div class=3D"gmail_default" style=3D"font-family:arial,helvetica,s=
ans-serif;font-size:large">RH
          EL 7</div>
        <div class=3D"gmail_default" style=3D"font-family:arial,helvetica,s=
ans-serif;font-size:large"><br>
        </div>
        <div class=3D"gmail_default" style=3D"font-family:arial,helvetica,s=
ans-serif;font-size:large">We
          are struggling to understand how in 19 a standby can be backed
          up and then recovered from tape. A common method to reduce
          load on a primary DB. The reason is that if standby redologs
          are being applied rather than archived logs there seems to be
          a &#39;hole&#39; in the backup if the timing is wrong and a log s=
witch
          does not occur on the primary but redo is applied through the
          standby=C2=A0redo log. Has anyone experienced=C2=A0problems with =
this?
          Obviously on a primary we=C2=A0would force a log switch but you
          can&#39;t=C2=A0do that on a standby. If I&#39;ve missed a doc on =
this
          apologies=C2=A0and please point me in the right direction!</div>
        <div>
          <div dir=3D"ltr">
            <div dir=3D"ltr">
              <div><br>
              </div>
              <div>Best Wishes</div>
              <div><br>
              </div>
              <div>Howard A. Latham<br>
                <br>
                <br>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <div>-- <br>
      Mladen Gogala<br>
      Oracle DBA<br>
      Tel: (347) 321-1217<br>
      Blog: <a href=3D"https://dbwhisperer.wordpress.com" rel=3D"noreferrer=
 noreferrer noreferrer" target=3D"_blank">https://dbwhisperer.wordpress.com=
</a></div>
  </div>

</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>
</blockquote></div>

--0000000000003d940605c3a19cf9--
--
http://www.freelists.org/webpage/oracle-l


