Return-Path: <oracle-l-bounce@freelists.org>
X-Original-To: oracle-l@orafaq.com
Delivered-To: oracle-l@orafaq.com
Received: from turing.freelists.org (turing.freelists.org [206.53.239.180])
 by malta2546.startdedicated.com (Postfix) with ESMTPS id AD0C51003296B7
 for <oracle-l@orafaq.com>; Sun,  2 Feb 2020 20:35:04 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 611BA21140;
 Sun,  2 Feb 2020 14:33:57 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1580672037;
 bh=JqwU0x7TbX79o+Ab49w6+ey2Q5w78ZSmwptq6ay/1AM=;
 h=From:Sender:Sender:From;
 b=DkV8inCwhFhBEw1LbEKsTiZwaK8P6/OI6+yjsUMxgdWVySZesqmiW3o1/rS8L/F0j
	 OImkslYheyjhlO0jIfvmgM1WbZdoOWC/nrMqUFxahk3aCGLYIu3bPpZT4pU0Zjgn50
	 tIZov6f6PWtSJHtcHCRlnPB0cPITRKXrwBF6Jny0=
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 6XEHqvBECbQW; Sun,  2 Feb 2020 14:33:57 -0500 (EST)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id DE8ED2036B;
 Sun,  2 Feb 2020 14:33:10 -0500 (EST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1580672035;
 bh=JqwU0x7TbX79o+Ab49w6+ey2Q5w78ZSmwptq6ay/1AM=;
 h=From:Sender:Sender:From;
 b=VaTLB5Ox9VtpSg3W+U/G8OhgcJSTJ1VKSOXUKhZflDdoFsRtKsqq9rw5tH+o8YyAh
	 Ip0w22TdopGbH3+jg6Qmtp5Bhxd8DH4vTWzRXvjqJRHz75Dx+Ycz+glnvitwoXQnx9
	 +KUvLDI9FVJEpyXvCNog0HzBTJNmOyC7mlLtaXrs=
Received: with ECARTIS (v1.0.0; list oracle-l); Sun, 02 Feb 2020 14:32:25 -0500 (EST)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id AE65E20128
 for <oracle-l@freelists.org>; Sun,  2 Feb 2020 14:32:25 -0500 (EST)
Authentication-Results: turing.freelists.org;
 dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="biEMSvzb";
 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 qw_bPFrLsFPG for <oracle-l@freelists.org>;
 Sun,  2 Feb 2020 14:32:25 -0500 (EST)
Received: from mail-qv1-f66.google.com (mail-qv1-f66.google.com [209.85.219.66])
 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
 (No client certificate requested)
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTPS id 652F81FFC6
 for <oracle-l@freelists.org>; Sun,  2 Feb 2020 14:32:25 -0500 (EST)
Received: by mail-qv1-f66.google.com with SMTP id s7so5833648qvn.8
        for <oracle-l@freelists.org>; Sun, 02 Feb 2020 11:32:25 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20161025;
        h=x-gm-message-state:subject:to:references:from:message-id:date
         :user-agent:mime-version:in-reply-to:content-language;
        bh=YNIpZxFizBvLr0M3R49R2u91EAuijC6HXaFRyvWmDss=;
        b=H4QLmAzN8SGXymqo1nruTbNJQJLbFlCaBlLLJPGplYsR3OW64LIaIH1w69yVJUiOeG
         LNhxBkYI4b/n/taP0UmEEuspJRF5m58o8U0i0ZWz7GCzCFTcXhPENx3cwiwsPP5g1J5r
         6BftJOnQLzawy4JC9LnocfbsUG567WMqCkdo27PybstlRHkDiOT2M0uvqzob4dwuBD7v
         CJ/DieUKRi9YvjgpkjDb//7YcCdETowBoobLCB9hSeJZ6R18fZUQVsyeosNWqyvrARg/
         v4C+V2XQtn7UeWYdl1AzC5kOHFOryJ3eyGV2yjzCYM7JiBE2bPS5iw1E0frvHheODgju
         j3rA==
X-Gm-Message-State: APjAAAWfVkIVqpIqkHTKgGuAqX5u7fEoRGo806WC5P+l12Ki+96w22HR
 o2PmlW8v7YOc7VL0dRJzP+K/kPT1
X-Google-Smtp-Source: APXvYqw2Y0++kOJCkXkD/V5CBcTHpucfapOXbT1o4JH0JiFV8wcTF+hbPm8YH2voP29ZuL1+aiEmtQ==
X-Received: by 2002:a05:6214:6aa:: with SMTP id s10mr20347230qvz.138.1580671943631;
        Sun, 02 Feb 2020 11:32:23 -0800 (PST)
Received: from [192.168.2.7] (pool-100-8-173-246.nwrknj.fios.verizon.net. [100.8.173.246])
        by smtp.gmail.com with ESMTPSA id r5sm8436554qtn.25.2020.02.02.11.32.22
        for <oracle-l@freelists.org>
        (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
        Sun, 02 Feb 2020 11:32:23 -0800 (PST)
Subject: Re: the best approach to migrate a database to new server
To: oracle-l@freelists.org
References: <1580480521140.9749333.9cd7754cbf44139091ba49d1e7f93876550c49d8@spica.telekom.de>
From: Mladen Gogala <gogala.mladen@gmail.com>
Message-ID: <d82d1be4-c4bb-c6d4-b2b8-05e98263017c@gmail.com>
Date: Sun, 2 Feb 2020 14:32:22 -0500
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.4.1
MIME-Version: 1.0
In-Reply-To: <1580480521140.9749333.9cd7754cbf44139091ba49d1e7f93876550c49d8@spica.telekom.de>
Content-Type: multipart/alternative;
 boundary="------------55347323D49A1C8258EFA722"
Content-Language: en-US
X-archive-position: 76136
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: gogala.mladen@gmail.com
Precedence: normal
Reply-To: gogala.mladen@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: <http://www.freelists.org/archives/oracle-l>
X-list: oracle-l
--------------55347323D49A1C8258EFA722
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

This is a very complex question. You can't use snapshots because AIX 
volume manager and JFS2 are not compatible with Linux. It would be 
practically impossible to mount JFS2 file systems created on top of AIX 
volume manager devices on a Linux server. The most realistic option is 
bonding 4 10GB Ethernet devices into a 40Gbit/sec link, capable of 
transferring 12 TBytes/hour and use NFS mount. With such a fast NFS 
mount, you can do rman convert in approximately 2 hours. You can then 
re-create the control file and open the database. That would give you 
Oracle 11g database on Linux. Upgrading it should also take around 1 
hour, depending on the speed of the Linux disk subsystem, which would 
require around 5 hours of downtime.

Data pump would be a very tricky option because it would very likely 
mess up PL/SQL objects, views, synonyms and grants. As a matter of fact, 
it could be done, a team that included Arup Nanda and myself has done 
something like that with a classic export/import in 2001. The project 
was finalized during the Labor Day on 2001 and I was dealing with the 
remaining issues late into evening of Monday, September the 10th 2001. 
The next morning I came to the office late and, boy, was I in for a 
shock. It was a beautiful late summer morning of Tuesday, September 
11th, 2001. I will never, ever forget that day.

However, such project requires careful planning, numerous dry runs, lots 
of scripting and a very competent DBA personnel.  Our databases were 
much smaller, the LAN speed was 100MBit/sec and we were moving database 
from Oracle 7.3.5 on a Pyramid Nile system to Oracle 8.3 on a HP 9000/N 
4-way RAC. The largest table has just exceeded 1 GB and the entire 
database was around 700 GB, which was considered huge in 2001. So, you 
should count on additional hardware expenses and around 6 months of time 
for the project. This is not something that can be achieved by using 
Agile project management methodology.


On 1/31/20 9:22 AM, ahmed.fikri@t-online.de wrote:
> Hi all,
>
> we are planning to migrate a 16 Terabyte database from 11g on aix 
> machine to 12c on linux. In the target db is Dataguard used. The DB 
> has about 50 Schemas the biggest one is about 11 TB the second is 2.6 
> TB then four with each one 1 TB the rest is each one less than 1 TB. 
> Unfortunately all Schemas share the table spaces.
>
> Wich approach could we use with less downtime?
>
> My idea was to move the schemas to separate tablespaces an migrate the 
> Schemas using transportable ts.
> Or somehow copying the metadata to do new instance in such way the new 
> db use the old data files and then copy them separately one by one.
>
> Or even copying the Schemas separately using dblink and data pump.
>
> Any idea please?
>
> Regards
> Ahmed Fikri
>
>
> ------------------------------------------------------------------------
> Gesendet mit der Telekom Mail App 
> <https://kommunikationsdienste.t-online.de/redirects/email_app_android_sendmail_footer> 
>

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217


--------------55347323D49A1C8258EFA722
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>This is a very complex question. You can't use snapshots because
      AIX volume manager and JFS2 are not compatible with Linux. It
      would be practically impossible to mount JFS2 file systems created
      on top of AIX volume manager devices on a Linux server. The most
      realistic option is bonding 4 10GB Ethernet devices into a
      40Gbit/sec link, capable of transferring 12 TBytes/hour and use
      NFS mount. With such a fast NFS mount, you can do rman convert in
      approximately 2 hours. You can then re-create the control file and
      open the database. That would give you Oracle 11g database on
      Linux. Upgrading it should also take around 1 hour, depending on
      the speed of the Linux disk subsystem, which would require around
      5 hours of downtime.</p>
    <p>Data pump would be a very tricky option because it would very
      likely mess up PL/SQL objects, views, synonyms and grants. As a
      matter of fact, it could be done, a team that included Arup Nanda
      and myself has done something like that with a classic
      export/import in 2001. The project was finalized during the Labor
      Day on 2001 and I was dealing with the remaining issues late into
      evening of Monday, September the 10th 2001. The next morning I
      came to the office late and, boy, was I in for a shock. It was a
      beautiful late summer morning of Tuesday, September 11th, 2001. I
      will never, ever forget that day.</p>
    <p>However, such project requires careful planning, numerous dry
      runs, lots of scripting and a very competent DBA personnel.  Our
      databases were much smaller, the LAN speed was 100MBit/sec and we
      were moving database from Oracle 7.3.5 on a Pyramid Nile system to
      Oracle 8.3 on a HP 9000/N 4-way RAC. The largest table has just
      exceeded 1 GB and the entire database was around 700 GB, which was
      considered huge in 2001. So, you should count on additional
      hardware expenses and around 6 months of time for the project.
      This is not something that can be achieved by using Agile project
      management methodology. <br>
    </p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 1/31/20 9:22 AM,
      <a class="moz-txt-link-abbreviated" href="mailto:ahmed.fikri@t-online.de">ahmed.fikri@t-online.de</a> wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:1580480521140.9749333.9cd7754cbf44139091ba49d1e7f93876550c49d8@spica.telekom.de">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div style="background-color:white; width=100%;"> Hi all, <br>
        <br>
        we are planning to migrate a 16 Terabyte database from 11g on
        aix machine to 12c on linux. In the target db is Dataguard used.
        The DB has about 50 Schemas the biggest one is about 11 TB the
        second is 2.6 TB then four with each one 1 TB the rest is each
        one less than 1 TB. Unfortunately all Schemas share the table
        spaces. <br>
        <br>
        Wich approach could we use with less downtime? <br>
        <br>
        My idea was to move the schemas to separate tablespaces an
        migrate the Schemas using transportable ts. <br>
        Or somehow copying the metadata to do new instance in such way
        the new db use the old data files and then copy them separately
        one by one. <br>
        <br>
        Or even copying the Schemas separately using dblink and data
        pump. <br>
        <br>
        Any idea please? <br>
        <br>
        Regards <br>
        Ahmed Fikri <br>
        <br>
        <br>
        <hr>Gesendet mit der <a
href="https://kommunikationsdienste.t-online.de/redirects/email_app_android_sendmail_footer"
          moz-do-not-send="true">Telekom Mail App</a>
      </div>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
</pre>
  </body>
</html>

--------------55347323D49A1C8258EFA722--
--
http://www.freelists.org/webpage/oracle-l


