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 00CDE100319364
 for <oracle-l@orafaq.com>; Sun, 21 Mar 2021 18:52:01 +0100 (CET)
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 6C1D440538;
 Sun, 21 Mar 2021 17:51:59 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 5F4E43FFCF;
 Sun, 21 Mar 2021 17:51:59 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1616349119;
 bh=vTQSzNsbLHdyl+rTSIsEkUYwPIqtlzRIppCtn/O+hOk=;
 h=From:Sender:Sender:From;
 b=VFBMyVgqJ03Uycm443kdBSv+YeN1GaJg6h4E3vPS96kYRiGFFzxpWbtMWEhfYs5mW
	 3LmTZCt49oienoKRnCpUQBL8mkzE95PhVuRp95wn7m/eUGSA+IIoZbwxyq8OvJSRzf
	 Y4t75kb7SI1AMGjCgkk3ncyEdY1koD95yS5AGaS4=
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 3vljKSoVAezp; Sun, 21 Mar 2021 17:51:59 +0000 (UTC)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 039293FFD0;
 Sun, 21 Mar 2021 17:51:57 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1616349117;
 bh=vTQSzNsbLHdyl+rTSIsEkUYwPIqtlzRIppCtn/O+hOk=;
 h=From:Sender:Sender:From;
 b=bvxmUce2rRileztBUYN7/R+INcdRfXV2v+y1d17xfnRhhzHtbWOLCGAG0/XxOfIWq
	 911bDuK2whVPPrTxh0BbsoHYHz+hvug2qfu4bof9lHrVl5dvK/xbD5AMQ4qwMpQOdk
	 yfS9xD/cpzOp5CvsTuMhglUEsxz7l4DjLObQ50GE=
Received: with ECARTIS (v1.0.0; list oracle-l); Sun, 21 Mar 2021 17:51:55 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 8D3AC3FFCE
 for <oracle-l@freelists.org>; Sun, 21 Mar 2021 17:51:55 +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=QoZn6bsI;
 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 6dDXYW4FhFZo for <oracle-l@freelists.org>;
 Sun, 21 Mar 2021 17:51:55 +0000 (UTC)
Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52])
 (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 7AE2F3FF2E
 for <oracle-l@freelists.org>; Sun, 21 Mar 2021 17:51:55 +0000 (UTC)
Received: by mail-pj1-f52.google.com with SMTP id ot17-20020a17090b3b51b0290109c9ac3c34so6945001pjb.4
        for <oracle-l@freelists.org>; Sun, 21 Mar 2021 10:51:55 -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=Ri0IJvStQdCPJwxaCgTvyeKA8eD/K8BI6j3W0jJn/1A=;
        b=YOOBGbrvIZvL3PxmjQxj2xPrs1DXYBVgscdh5krRH5nbOEsqV03uyf8Y14K4zHSywj
         2xrVjgrqw0no9nBsIz0b3TEsqvuasfyuw7py1O/CqoYt3wVGnXyXoIuvMAfuLlRRcsWO
         VTHISHLnbOBbzJF2RlIe7c8jus8wzbvPiWVmljTWOEXMchtNDQaNsdGi3SABW2EA+j5b
         /sI/4Ro/uAd9raaN6H44b5Uwpx9c3NrKBJOqEsuBYGcyujnSB9DcJhQlGCo5FYxbSHtm
         6CQDsJWTdPcyb/p9oB6ClFYbNETldPoJr+TJ4LFeYUkuIE7ddpSEPqYDbWlQSVhGuPYF
         n/3g==
X-Gm-Message-State: AOAM532U+Q97cUEE6/j6ZXaSAhgJU7IynCSTh5xdyu8w+Ym4SBKZy2fZ
 8i2ZCQ7gYC0iwBrL0XTqDTckpVAjEfTAtaq8yQ==
X-Google-Smtp-Source: ABdhPJyHWHzciLAQDbQwXoSJZcBuksVN0YewKZoLtR4JEhP7AJDOyb+txt5+TlDkkVJT3JNxHwnunt5b6ne8JmrAPAc=
X-Received: by 2002:a17:90b:438a:: with SMTP id in10mr9102112pjb.165.1616349114649;
 Sun, 21 Mar 2021 10:51:54 -0700 (PDT)
MIME-Version: 1.0
References: <CAEjw_fgV9psqr4UmLzbVAVXLHiQegNp2eA7A4J0FV_fHvMFu3g@mail.gmail.com>
 <495f94ae-3567-1a5c-0813-694ffa65c910@gmail.com> <CAEjw_fgG4OJHmYG+TuYRqqEv5YD7UjMXV0iqw-MctTF-=P9zSA@mail.gmail.com>
 <dfd8c14c-d72b-8f90-d424-9c62a9b8d617@gmail.com>
In-Reply-To: <dfd8c14c-d72b-8f90-d424-9c62a9b8d617@gmail.com>
From: Paul Drake <bdbafh@gmail.com>
Date: Sun, 21 Mar 2021 13:51:43 -0400
Message-ID: <CAPptggXcnT3Vm-1vm7WuYQkxgaA6vYAM5gMs0hREFnHem6AEoQ@mail.gmail.com>
Subject: Re: UNDO Space Error
To: Pap <oracle.developer35@gmail.com>
Cc: Oracle L <oracle-l@freelists.org>
Content-Type: multipart/alternative; boundary="000000000000cfd1b805be0f9ab1"
X-archive-position: 79348
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: bdbafh@gmail.com
Precedence: normal
Reply-To: bdbafh@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
--000000000000cfd1b805be0f9ab1
Content-Type: text/plain; charset="UTF-8"

https://imgflip.com/i/52l14s

http://www.nocoug.org/download/2012-11/NoCOUG_201211_Tim_Gorman_Data_Warehouse_Partitioning.pdf

You want to maximize the amount of work not being performed.

Do you really care about how much undo is being generated? No. You want the
data loaded. Quickly.

Stop focusing on making more room available for undo and minimize
generating undo.

The volume of redo being generated is likely causing other issues as well.

Apologies for replying to the wrong thread snippet.

Paul

On Sun, Mar 21, 2021, 12:49 Mladen Gogala <gogala.mladen@gmail.com> wrote:

> This can be replaced by a PL/SQL selecting into an array, doing bulk
> inserts and committing regularly. PL/SQL will not perform as well as the
> SQL below but will probably perform good enough. There is a rather
> infamous optimization of commit in a PL/SQL loop which will mitigate the
> impact of a gazillion commits. As for the conjecture about indexes, it
> is most likely correct. Direct insert uses the blocks after the HWM
> which are empty  so there is not much content in the data blocks to
> write to the undo space. The content is probably coming from the index
> blocks.
>
> On 3/21/21 1:16 AM, Pap wrote:
> >
> > INSERT /*+ append parallel(16) nologging */ INTO USER1.TAB (c1, c2,
> > c3, c4... c11) SELECT...;
> >
> --
> Mladen Gogala
> Database Consultant
> Tel: (347) 321-1217
> https://dbwhisperer.wordpress.com
>
> --
> http://www.freelists.org/webpage/oracle-l
>
>
>

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

<div dir=3D"auto"><div dir=3D"auto"><a href=3D"https://imgflip.com/i/52l14s=
" rel=3D"noreferrer noreferrer" target=3D"_blank">https://imgflip.com/i/52l=
14s</a><div dir=3D"auto"><br></div><div dir=3D"auto"><a href=3D"http://www.=
nocoug.org/download/2012-11/NoCOUG_201211_Tim_Gorman_Data_Warehouse_Partiti=
oning.pdf" target=3D"_blank" rel=3D"noreferrer">http://www.nocoug.org/downl=
oad/2012-11/NoCOUG_201211_Tim_Gorman_Data_Warehouse_Partitioning.pdf</a><br=
></div><div dir=3D"auto"><br></div><div dir=3D"auto">You want to maximize t=
he amount of work not being performed.</div><div dir=3D"auto"><br></div><di=
v dir=3D"auto">Do you really care about how much undo is being generated? N=
o. You want the data loaded. Quickly.</div><div dir=3D"auto"><br></div><div=
 dir=3D"auto">Stop focusing on making more room available for undo and mini=
mize generating undo.</div><div dir=3D"auto"><br></div><div dir=3D"auto">Th=
e volume of redo being generated is likely causing other issues as well.</d=
iv><div dir=3D"auto"><br></div><div dir=3D"auto">Apologies for replying to =
the wrong thread snippet.</div><div dir=3D"auto"><br></div><div dir=3D"auto=
">Paul</div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"=
gmail_attr">On Sun, Mar 21, 2021, 12:49 Mladen Gogala &lt;<a href=3D"mailto=
:gogala.mladen@gmail.com" rel=3D"noreferrer noreferrer" target=3D"_blank">g=
ogala.mladen@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_q=
uote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1e=
x">This can be replaced by a PL/SQL selecting into an array, doing bulk <br=
>
inserts and committing regularly. PL/SQL will not perform as well as the <b=
r>
SQL below but will probably perform good enough. There is a rather <br>
infamous optimization of commit in a PL/SQL loop which will mitigate the <b=
r>
impact of a gazillion commits. As for the conjecture about indexes, it <br>
is most likely correct. Direct insert uses the blocks after the HWM <br>
which are empty=C2=A0 so there is not much content in the data blocks to <b=
r>
write to the undo space. The content is probably coming from the index <br>
blocks.<br>
<br>
On 3/21/21 1:16 AM, Pap wrote:<br>
&gt;<br>
&gt; INSERT /*+ append parallel(16) nologging */ INTO USER1.TAB (c1, c2, <b=
r>
&gt; c3, c4... c11) SELECT...;<br>
&gt;<br>
-- <br>
Mladen Gogala<br>
Database Consultant<br>
Tel: (347) 321-1217<br>
<a href=3D"https://dbwhisperer.wordpress.com" rel=3D"noreferrer noreferrer =
noreferrer noreferrer" target=3D"_blank">https://dbwhisperer.wordpress.com<=
/a><br>
<br>
--<br>
<a href=3D"http://www.freelists.org/webpage/oracle-l" rel=3D"noreferrer nor=
eferrer noreferrer noreferrer" target=3D"_blank">http://www.freelists.org/w=
ebpage/oracle-l</a><br>
<br>
<br>
</blockquote></div></div>

--000000000000cfd1b805be0f9ab1--
--
http://www.freelists.org/webpage/oracle-l


