Return-Path: <oracle-l-bounce@freelists.org>
Delivered-To: 2-oracle-l@orafaq.com
Received: (qmail 9733 invoked from network); 7 Dec 2007 20:11:12 -0600
Received: from freelists-180.iquest.net (HELO turing.freelists.org) (206.53.239.180)
  by 69.64.49.119 with SMTP; 7 Dec 2007 20:11:12 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 140277D5AE5;
 Fri,  7 Dec 2007 21:11:13 -0500 (EST)
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 25827-07; Fri, 7 Dec 2007 21:11:12 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 7F8C27D5C4A;
 Fri,  7 Dec 2007 21:11:12 -0500 (EST)
Received: with ECARTIS (v1.0.0; list oracle-l); Fri, 07 Dec 2007 20:24:16 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 5F40C7D51A1
 for <oracle-l@freelists.org>; Fri,  7 Dec 2007 20:24:16 -0500 (EST)
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 18370-05-2 for <oracle-l@freelists.org>;
 Fri, 7 Dec 2007 20:24:16 -0500 (EST)
Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 081377D5422
 for <oracle-l@freelists.org>; Fri,  7 Dec 2007 20:24:16 -0500 (EST)
Received: by py-out-1112.google.com with SMTP id u77so2035812pyb
        for <oracle-l@freelists.org>; Fri, 07 Dec 2007 17:24:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references;
        bh=cVD1VHa1q2DooWcnGwjDCWNLqUDmBDE0TXJURm8XSSE=;
        b=qLldXa26/QJ6PkW5dqUVHRpuBnVjQTqewqAKOXVGJAVo5BSzfOPZeE7vAKn2AL7+vfDkzMOasL4KmA/wsrUkoIrOOsHOhI4kjSwp++1rNEQRWIk47tIacitIgcy4rgpjnebrqN0bgSSBFZk3Y4BbdRSpoX0yMtvz42rkRze/U8Y=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references;
        b=DwfLlpnKLmRH4itnGxFIKxjRo4npPtbETR/VXm5mL6qO6pADeaFQENFOJrml+OX+U9jSA8T/YIgBORGWUkFGkQgWy/Mk1uy+Y4xAZNv1FSFvvLQocU806g3lm/XySCCq2rMMEsj/nI0glQB6kmRex1Ch5iTMuGds6nCvJqiD8H8=
Received: by 10.35.79.3 with SMTP id g3mr4164976pyl.1197077041870;
        Fri, 07 Dec 2007 17:24:01 -0800 (PST)
Received: by 10.35.119.5 with HTTP; Fri, 7 Dec 2007 17:24:01 -0800 (PST)
Message-ID: <74f79c6b0712071724t2877c614p4ded913b96ea5ccd@mail.gmail.com>
Date: Fri, 7 Dec 2007 20:24:01 -0500
From: "Finn Jorgensen" <finn.oracledba@gmail.com>
To: david.barbour1@gmail.com
Subject: Re: Change Datafile Location on Standby Database - Sanity Check
Cc: oracle-l <oracle-l@freelists.org>
In-Reply-To: <69eafc3f0712070854n1925cb77y67086d24ff14301f@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_18178_17518839.1197077041865"
References: <69eafc3f0712070854n1925cb77y67086d24ff14301f@mail.gmail.com>
X-archive-position: 3798
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: finn.oracledba@gmail.com
Precedence: normal
Reply-to: finn.oracledba@gmail.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:steve.adams@ixora.com.au>
List-post: <mailto:oracle-l@freelists.org>
List-archive: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
X-Virus-Scanned: Debian amavisd-new at localhost.localdomain
------=_Part_18178_17518839.1197077041865
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Always, always, always test in a smaller test environment when doing
something you haven't tried before. Then you'll know for sure.

Finn

On Dec 7, 2007 11:54 AM, David Barbour <david.barbour1@gmail.com> wrote:

> Running Oracle 9.2.0.7 on AIX 5.3.  We're moving to a new datafile
> structure on a new SAN.  I preparation for the move, I've created a a
> standby database on the new SAN, attached to a different server (still AIX
> 5.3)   It's using the new filesystem layout that has 9 locations for the
> datafiles vs. 4 we're currently using.
>
> The standby is running perfectly fine thank you, but I have a bit of a
> problem.  Between the time we laid this out and the time we restored the
> production database to the standby and new locations, growth in the
> production system has caused us to come perilously close to running out of
> space in two of the filesystems.  I need to move some of the Oracle
> datafiles currently in these two filesystems to one of the new filesystems.
>
>
> Before I screw this up, thought it wouldn't hurt to run it by the list.
>
> Currently standby_file_management is set to 'auto'.  All the datafile
> locations for the standby are listed in the init<standby>.ora file using:
>
> db_file_name_convert=(
>
> '/oracle/PR1/sapdata1/autodata/autodata01.dbf','/oracle/PR1/sapdata1/autodata/autodata01.dbf',
>
> '/oracle/PR1/sapdata2/autoindex/autoindexes01.dbf','/oracle/PR1/sapdata2/autoindex/autoindexes01.dbf',
>
> '/oracle/PR1/sapdata1/bkpfd_1/bkpfd.data1','/oracle/PR1/sapdata1/bkpfd_1/bkpfd.data1',
>
> '/oracle/PR1/sapdata2/bkpfd_2/bkpfd.data2','/oracle/PR1/sapdata2/bkpfd_2/bkpfd.data2',
>
> '/oracle/PR1/sapdata3/bkpfd_3/bkpfd.data3','/oracle/PR1/sapdata3/bkpfd_3/bkpfd.data3',
>
> '/oracle/PR1/sapdata4/bkpfd_4/bkpfd.data4','/oracle/PR1/sapdata4/bkpfd_4/bkpfd.data4',
>
> '/oracle/PR1/sapdata1/bkpfi_1/bkpfi.data1','/oracle/PR1/sapdata5/bkpfi_1/bkpfi.data1',
>
> '/oracle/PR1/sapdata2/bkpfi_2/bkpfi.data2','/oracle/PR1/sapdata6/bkpfi_2/bkpfi.data2',
>
> '/oracle/PR1/sapdata3/bkpfi_3/bkpfi.data3','/oracle/PR1/sapdata7/bkpfi_3/bkpfi.data3',
>
> '/oracle/PR1/sapdata4/bkpfi_4/bkpfi.data4','/oracle/PR1/sapdata8/bkpfi_4/bkpfi.data4',.....................etc.
>
> Here's what I plan to do:
>
> On the Primary:
>
> 1.  sqlplus> alter system set standby_file_management = 'manual';
>
> On the Standby:
>
> 1.  sqlplus> alter system set standby_file_management = 'manual';
> 2.  Cancel Managed Recovery
> 3.  Shut down the database.
> 4.  Move the datafile to the new location.
> 5.  Edit the init<standby> .ora to relect the change.
> 7.  Restart and mount the database using the new init.ora file.
> 8.  Rename the datafile to reflect the change using   'alter database
> rename file ....'
> 9.  sqlplus> alter system set standby_file_management = 'auto';
> 10.Start managed recovery.
>
> On the Primary:
>
> 1.  sqlplus> alter system set standby_file_management = 'auto';
>
> Comments?
>

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

<div>Always, always, always test in a smaller test environment when doing something you haven&#39;t tried before. Then you&#39;ll know for sure.</div>
<div>&nbsp;</div>
<div>Finn<br><br></div>
<div class="gmail_quote">On Dec 7, 2007 11:54 AM, David Barbour &lt;<a href="mailto:david.barbour1@gmail.com">david.barbour1@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Running Oracle <a href="http://9.2.0.7/" target="_blank">9.2.0.7</a> on AIX 5.3.&nbsp; We&#39;re moving to a new datafile structure on a new SAN.&nbsp; I preparation for the move, I&#39;ve created a a standby database on the new SAN, attached to a different server (still AIX 
5.3)&nbsp;&nbsp; It&#39;s using the new filesystem layout that has 9 locations for the datafiles vs. 4 we&#39;re currently using.&nbsp; <br><br>The standby is running perfectly fine thank you, but I have a bit of a problem.&nbsp; Between the time we laid this out and the time we restored the production database to the standby and new locations, growth in the production system has caused us to come perilously close to running out of space in two of the filesystems.&nbsp; I need to move some of the Oracle datafiles currently in these two filesystems to one of the new filesystems.&nbsp; 
<br><br>Before I screw this up, thought it wouldn&#39;t hurt to run it by the list.&nbsp; <br><br>Currently standby_file_management is set to &#39;auto&#39;.&nbsp; All the datafile locations for the standby are listed in the init&lt;standby&gt;.ora file using:
<br><br>db_file_name_convert=(<br>&#39;/oracle/PR1/sapdata1/autodata/autodata01.dbf&#39;,&#39;/oracle/PR1/sapdata1/autodata/autodata01.dbf&#39;,<br>&#39;/oracle/PR1/sapdata2/autoindex/autoindexes01.dbf&#39;,&#39;/oracle/PR1/sapdata2/autoindex/autoindexes01.dbf&#39;,
<br>&#39;/oracle/PR1/sapdata1/bkpfd_1/bkpfd.data1&#39;,&#39;/oracle/PR1/sapdata1/bkpfd_1/bkpfd.data1&#39;,<br>&#39;/oracle/PR1/sapdata2/bkpfd_2/bkpfd.data2&#39;,&#39;/oracle/PR1/sapdata2/bkpfd_2/bkpfd.data2&#39;,<br>&#39;/oracle/PR1/sapdata3/bkpfd_3/bkpfd.data3&#39;,&#39;/oracle/PR1/sapdata3/bkpfd_3/bkpfd.data3&#39;,
<br>&#39;/oracle/PR1/sapdata4/bkpfd_4/bkpfd.data4&#39;,&#39;/oracle/PR1/sapdata4/bkpfd_4/bkpfd.data4&#39;,<br>&#39;/oracle/PR1/sapdata1/bkpfi_1/bkpfi.data1&#39;,&#39;/oracle/PR1/sapdata5/bkpfi_1/bkpfi.data1&#39;,<br>&#39;/oracle/PR1/sapdata2/bkpfi_2/bkpfi.data2&#39;,&#39;/oracle/PR1/sapdata6/bkpfi_2/bkpfi.data2&#39;,
<br>&#39;/oracle/PR1/sapdata3/bkpfi_3/bkpfi.data3&#39;,&#39;/oracle/PR1/sapdata7/bkpfi_3/bkpfi.data3&#39;,<br>&#39;/oracle/PR1/sapdata4/bkpfi_4/bkpfi.data4&#39;,&#39;/oracle/PR1/sapdata8/bkpfi_4/bkpfi.data4&#39;,.....................etc.
<br><br>Here&#39;s what I plan to do:<br><br>On the Primary:<br><br>1.&nbsp; sqlplus&gt; alter system set standby_file_management = &#39;manual&#39;;<br><br>On the Standby: <br><br>1.&nbsp; sqlplus&gt; alter system set standby_file_management = &#39;manual&#39;;
<br>2.&nbsp; Cancel Managed Recovery<br>3.&nbsp; Shut down the database.<br>4.&nbsp; Move the datafile to the new location.<br>5.&nbsp; Edit the init&lt;standby&gt; .ora to relect the change.&nbsp; <br>7.&nbsp; Restart and mount the database using the new 
init.ora file.<br>8.&nbsp; Rename the datafile to reflect the change using&nbsp;&nbsp; &#39;alter database rename file ....&#39;<br>9.&nbsp; sqlplus&gt; alter system set standby_file_management = &#39;auto&#39;;<br>10.Start managed recovery.
<br><br>On the Primary:<br><br>1.&nbsp; sqlplus&gt; alter system set standby_file_management = &#39;auto&#39;;<br><br>Comments?<br></blockquote></div><br>

------=_Part_18178_17518839.1197077041865--
--
http://www.freelists.org/webpage/oracle-l


