Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 16551 invoked from network); 10 Oct 2006 04:11:35 -0500
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 10 Oct 2006 04:11:35 -0500
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 94A2B4463C7;
 Tue, 10 Oct 2006 05:10:58 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 20175-05-2; Tue, 10 Oct 2006 05:10:58 -0400 (EDT)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1010E4462A1;
 Tue, 10 Oct 2006 05:10:58 -0400 (EDT)
Received: with ECARTIS (v1.0.0; list oracle-l); Tue, 10 Oct 2006 05:10:00 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id F0115446190
 for <oracle-l@freelists.org>; Tue, 10 Oct 2006 05:09:59 -0400 (EDT)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 19840-02 for <oracle-l@freelists.org>;
 Tue, 10 Oct 2006 05:09:59 -0400 (EDT)
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id DB9DA446308
 for <oracle-l@freelists.org>; Tue, 10 Oct 2006 05:09:58 -0400 (EDT)
Received: by nf-out-0910.google.com with SMTP id p77so232858nfc
        for <oracle-l@freelists.org>; Tue, 10 Oct 2006 02:10:32 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references;
        b=kEdHplKBQBsZ6wMC3PvqGl9WFLZJArBfE9SKYNDoFhhcTykyreGkS+N29SON76kePjdkLcRETHbu8fodbmEfUbPbq5PUkLFvLLH7ChX/NfIPJuIrv5E+FQMFzLNL/84eDWkslzjPpAu9Xzn82QCGKiHCbLGIj+jU5++hJ4AoaZg=
Received: by 10.49.80.12 with SMTP id h12mr1100536nfl;
        Tue, 10 Oct 2006 02:10:32 -0700 (PDT)
Received: by 10.49.51.1 with HTTP; Tue, 10 Oct 2006 02:10:32 -0700 (PDT)
Message-ID: <4415a5ed0610100210u28498e42pb56f0c8cb09aab2c@mail.gmail.com>
Date: Tue, 10 Oct 2006 17:10:32 +0800
From: "eagle fan" <eagle.f@gmail.com>
To: Roger.Xu@dp7upbg.com
Subject: Re: 9i Physical Standby failover
Cc: "Oracle-L@Freelists. Org (E-mail)" <oracle-l@freelists.org>
In-Reply-To: <A6801E8A03316A4DA597866F77A013F70C8D4361@irv2kexch01.tx.bg.corp>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_6309_5727205.1160471432065"
References: <A6801E8A03316A4DA597866F77A013F70C8D4361@irv2kexch01.tx.bg.corp>
X-archive-position: 40535
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: eagle.f@gmail.com
Precedence: normal
Reply-to: eagle.f@gmail.com
X-list: oracle-l
X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at avenirtech.net
------=_Part_6309_5727205.1160471432065
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

hi:

If you active standby database, you need to build a new standby database for
the new activated primary database.

I think it's not your original purpose. You planned to do swithover but at
last you did activate standby. They are different things.

On 10/10/06, Roger Xu <Roger.Xu@dp7upbg.com> wrote:
>
>  It's working now - thank you all - Roger
>
> SQL> *alter database mount standby database;*
>
> Database altered.
>
> SQL> *ALTER DATABASE ACTIVATE STANDBY DATABASE;*
>
> Database altered.
>
> SQL> select status from v$instance;
>
> STATUS
> ------------
> STARTED
>
> SQL> *alter database mount;*
>
> Database altered.
>
> SQL> *alter database open;*
>
> Database altered.
>
> SQL> select status from v$instance;
>
> STATUS
> ------------
> OPEN
>
> SQL>
>
> -----Original Message-----
> *From:* oracle-l-bounce@freelists.org [mailto:
> oracle-l-bounce@freelists.org]*On Behalf Of *Roger Xu
> *Sent:* Monday, October 09, 2006 2:54 PM
> *To:* Oracle-L@Freelists. Org (E-mail)
> *Subject:* 9i Physical Standby failover
>
> Hi,
>
> I am testing failover but getting ORA-1666 error.
> Am I missing something here?
>
> Thanks,
>
> Roger
>
>
>
> SQL> *alter database recover managed standby database finish;*
>
> Database altered.
>
> SQL> *alter database commit to switchover to primary;
> *alter database commit to switchover to primary
> *
> ERROR at line 1:
> ORA-16139: media recovery required
>
>
> SQL> *shutdown immediate;
> *ORA-01109: database not open
>
>
> Database dismounted.
> ORACLE instance shut down.
> SQL> *startup
> *ORACLE instance started.
>
> Total System Global Area  420480856 bytes
> Fixed Size                   730968 bytes
> Variable Size             117440512 bytes
> Database Buffers          301989888 bytes
> Redo Buffers                 319488 bytes
> ORA-01666: controlfile is for a standby database
>
>
> SQL>
>
>
> This e-mail is intended solely for the person or entity to which it is
> addressed and may contain confidential and/or privileged information. Any
> review, dissemination, copying, printing or other use o
> ____________________________________________________________________
> This email has been scanned for all viruses by the MessageLabs Email
> Security System.
>
> This e-mail is intended solely for the person or entity to which it is
> addressed and may contain confidential and/or privileged information. Any
> review, dissemination, copying, printing or other use o
> ____________________________________________________________________
> This email has been scanned for all viruses by the MessageLabs Email
> Security System.
>



-- 
Eagle Fan

Oracle DBA

------=_Part_6309_5727205.1160471432065
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

hi:<br><br>If you active standby database, you need to build a new standby database for the new activated primary database.<br><br>I think it's not your original purpose. You planned to do swithover but at last you did activate standby. They are different things.
<br><br><div><span class="gmail_quote">On 10/10/06, <b class="gmail_sendername">Roger Xu</b> &lt;<a href="mailto:Roger.Xu@dp7upbg.com">Roger.Xu@dp7upbg.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div>
<div><span><font color="#0000ff" face="Arial" size="2">It's 
working now - thank you all - Roger</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span>&nbsp;</div>
<div><span><font face="Courier New" size="2">SQL&gt; 
<strong>alter database mount standby database;</strong></font></span></div>
<div><font face="Courier New"></font>&nbsp;</div>
<div><span><font face="Courier New" size="2">Database 
altered.</font></span></div>
<div><font face="Courier New"></font>&nbsp;</div>
<div><span><font face="Courier New" size="2">SQL&gt; 
<strong>ALTER DATABASE ACTIVATE STANDBY DATABASE;</strong></font></span></div>
<div><font face="Courier New"></font>&nbsp;</div>
<div><span><font face="Courier New" size="2">Database 
altered.</font></span></div>
<div><font face="Courier New"></font>&nbsp;</div>
<div><span><font face="Courier New" size="2">SQL&gt; 
select status from v$instance;</font></span></div>
<div><font face="Courier New"></font>&nbsp;</div>
<div><span><font face="Courier New" size="2">STATUS<br>------------<br>STARTED</font></span></div>
<div><font face="Courier New"></font>&nbsp;</div>
<div><span><font size="2"><font face="Courier New">SQL&gt; <strong>alter database mount;</strong></font></font></span></div>
<div><font face="Courier New"></font>&nbsp;</div>
<div><font face="Courier New">Database altered.</font></div>
<div><font face="Courier New"></font>&nbsp;</div>
<div><font face="Courier New">SQL&gt; <strong>alter database 
open;</strong></font></div>
<div><font face="Courier New"></font>&nbsp;</div>
<div><font face="Courier New">Database altered.</font></div>
<div><font face="Courier New"></font>&nbsp;</div>
<div><font face="Courier New">SQL&gt; select status from 
v$instance;</font></div>
<div><font face="Courier New"></font>&nbsp;</div>
<div><font face="Courier New">STATUS<br>------------<br>OPEN</font></div>
<div><font face="Courier New"></font>&nbsp;</div>
<div><font face="Courier New">SQL&gt;</font></div><div><span class="e" id="q_10e2ed9616035999_1">
<blockquote>
  <div dir="ltr" align="left"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b> 
  <a href="mailto:oracle-l-bounce@freelists.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">oracle-l-bounce@freelists.org</a> [mailto:<a href="mailto:oracle-l-bounce@freelists.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
oracle-l-bounce@freelists.org</a>]<b>On 
  Behalf Of </b>Roger Xu<br><b>Sent:</b> Monday, October 09, 2006 2:54 
  PM<br><b>To:</b> Oracle-L@Freelists. Org (E-mail)<br><b>Subject:</b> 9i 
  Physical Standby failover<br><br></font></div>
  <div><font face="Courier New" size="2"><span>Hi,</span></font></div>
  <div><font face="Courier New" size="2"><span></span></font>&nbsp;</div>
  <div><font face="Courier New" size="2"><span>I am 
  testing failover but getting ORA-1666 error.</span></font></div>
  <div><font face="Courier New" size="2"><span>Am I 
  missing something here?</span></font></div>
  <div><font face="Courier New" size="2"><span></span></font>&nbsp;</div>
  <div><font face="Courier New" size="2"><span>Thanks,</span></font></div>
  <div><font face="Courier New" size="2"><span></span></font>&nbsp;</div>
  <div><font face="Courier New" size="2"><span>Roger</span></font></div>
  <div><font face="Courier New" size="2"><span></span></font>&nbsp;</div>
  <div><font face="Courier New" size="2"><span></span></font>&nbsp;</div>
  <div><font face="Courier New" size="2"></font>&nbsp;</div>
  <div><font face="Courier New" size="2">SQL&gt; <strong>alter database recover 
  managed standby database finish;</strong></font></div>
  <div><font face="Courier New"></font>&nbsp;</div>
  <div><font face="Courier New" size="2">Database altered.</font></div>
  <div><font face="Courier New"></font>&nbsp;</div>
  <div><font face="Courier New" size="2">SQL&gt; <strong>alter database commit to 
  switchover to primary;<br></strong>alter database commit to switchover to 
  primary<br>*<br>ERROR at line 1:<br>ORA-16139: media recovery 
  required</font></div>
  <div><font face="Courier New"></font>&nbsp;</div><font size="2">
  <div><br><font face="Courier New">SQL&gt; <strong>shutdown 
  immediate;<br></strong>ORA-01109: database not open</font></div>
  <div><font face="Courier New"></font>&nbsp;</div>
  <div><br><font face="Courier New">Database dismounted.<br>ORACLE instance shut 
  down.<br>SQL&gt; <strong>startup<br></strong>ORACLE instance 
  started.</font></div>
  <div><font face="Courier New"></font>&nbsp;</div>
  <div><font face="Courier New">Total System Global Area&nbsp; 420480856 
  bytes<br>Fixed 
  Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  730968 bytes<br>Variable 
  Size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  117440512 bytes<br>Database 
  Buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 301989888 
  bytes<br>Redo 
  Buffers&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  319488 bytes<br>ORA-01666: controlfile is for a standby database</font></div>
  <div><font face="Courier New"></font>&nbsp;</div>
  <div><br><font face="Courier New">SQL&gt;</font></div></font></blockquote></span></div></div><div><span class="e" id="q_10e2ed9616035999_3"><br>This e-mail 
  is intended solely for the person or entity to which it is addressed and may 
  contain confidential and/or privileged information. Any review, dissemination, 
  copying, printing or other use 
  o<br>____________________________________________________________________<br>This 
  email has been scanned for all viruses by the MessageLabs Email Security 
  System.<br>
<br>
This e-mail is intended solely for the person or entity to which it is addressed and may contain confidential and/or privileged information. Any review, dissemination, copying, printing or other use o<br>
____________________________________________________________________<br>
This email has been scanned for all viruses by the MessageLabs Email Security System.<br>


</span></div></blockquote></div><br><br clear="all"><br>-- <br>Eagle Fan<br><br>Oracle DBA

------=_Part_6309_5727205.1160471432065--
--
http://www.freelists.org/webpage/oracle-l


