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 ABDF6100313C65
 for <oracle-l@orafaq.com>; Thu,  9 Sep 2021 05:39:21 +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 4CB8640009;
 Thu,  9 Sep 2021 03:39:18 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 3F6EE3F9C0;
 Thu,  9 Sep 2021 03:39:18 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1631158758;
 bh=05c6dQCEX0IPonMvOFYagvO3HO8cuxXdBEMdnxQDqYI=;
 h=From:Sender:Sender:From;
 b=TY7+rDPUsxoYJuThnKU19Dnrv9ldRlqH1hzNhgeyGfYEUdKyt64fLZ+pXTsylDXAs
	 f76uCpzN6JO4SHV6Ku9oNX7yWcTXVKe/di7vGhzTRAuqOdaH9Ru2H0lto3PDEL1qtT
	 0BvcQmN6opwABWt0ArmMp60Y+QoFDE2bwICbDlvg=
X-Virus-Scanned: by FreeLists 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 x2fdis0SOSjR; Thu,  9 Sep 2021 03:39:18 +0000 (UTC)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 14D98413E3;
 Thu,  9 Sep 2021 03:39:15 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1631158756;
 bh=05c6dQCEX0IPonMvOFYagvO3HO8cuxXdBEMdnxQDqYI=;
 h=From:Sender:Sender:From;
 b=EXi98Wv4IG0C3EGIlhD2koHqIpF3P8MkOZReiIrh2J8yrDYUHDpKSG2L/HbVBSiA1
	 yRNW7i7Y0T7NpaHt2629kjbknPAGAoIsrFFJN7WNcPeTHjdOWzYjM+HNb8pHm3l1DP
	 j761PpBQXRbYBQfebWqDi/bLaa8krZtqdTVvSZeE=
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 09 Sep 2021 03:39:13 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 54B0C3F9C0
 for <oracle-l@freelists.org>; Thu,  9 Sep 2021 03:39:13 +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=20210112 header.b=P3GZ0SUF;
 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 RL-SAYUoXzMd for <oracle-l@freelists.org>;
 Thu,  9 Sep 2021 03:39:13 +0000 (UTC)
Received: from mail-yb1-f178.google.com (mail-yb1-f178.google.com [209.85.219.178])
 (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 428E73F9BE
 for <oracle-l@freelists.org>; Thu,  9 Sep 2021 03:39:13 +0000 (UTC)
Received: by mail-yb1-f178.google.com with SMTP id y13so1093679ybi.6
        for <oracle-l@freelists.org>; Wed, 08 Sep 2021 20:39:13 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20210112;
        h=x-gm-message-state:mime-version:references:in-reply-to:from:date
         :message-id:subject:to:cc;
        bh=klGXtjCRVUCeY9rczkI4mRtQwsiuyvVSN/lgOMKFVr8=;
        b=dOdvUbs1oy/LZrS/mCh5J0yWX2vDxTheRxrLsjD4aJwPkP2rOt2ml8kpuFN3WfWycu
         Idaghpmc4GihO0ChaXEk7KKVh5XYY0sQk7hU4Z+xE9l6/Vo7AocQ0jMivrb7Dn8uPr0r
         D7xLPkz+98QIvWM+BIOQNvlr3UOSic5syuvGTbxFsGHr1h8VTddIaUeCbaW9xl0ZVSAA
         1hVCX0iDx5lOkCu4rFj2g+Bix50DgYj0rNiEtCtF9eLxQbKy0JWXG0ZRgrtIjW/1yLpb
         tuYyzcAOOXhf3ltAlHF7axFjd8MUlE8YhOHPiHESEbDrS2X0jozYS7axzvTEmppM/tAP
         1dtQ==
X-Gm-Message-State: AOAM533g4wf5ar7yGPpuoIr12SrG2WDJUEfFBPad3Y/yP4H2ASS/7lPv
 YkWP+vMo7JA9U/FjCsfxlm5M8wWiEJ+cnEFpN+I=
X-Google-Smtp-Source: ABdhPJz05PgQuxFdjZJwFY/G+EVj+sCZjlQHKuBm4tRmXhmA+oSmu/8LjJc11ILyms3y3qe0LLGyZiL1r6bJ7eE3cCs=
X-Received: by 2002:a25:cc1:: with SMTP id 184mr1021430ybm.363.1631158752675;
 Wed, 08 Sep 2021 20:39:12 -0700 (PDT)
MIME-Version: 1.0
References: <CAKna9VYzDJnp22R8E82J2z-u6A4=4n+fD_e0mULQFXLpFuiwOw@mail.gmail.com>
 <CAJgcjAA7Vr=03RZGGYsGHODmvAbTd0_HhabxxfQxCSTeK+WyFw@mail.gmail.com>
 <CAKna9VY+MprSDC5=A068EavoTopjnnisM_rp44z8Zqci_dnp_A@mail.gmail.com>
 <CAMNBsZs2MUPfML3RX_nGr_cygYuEVMbSxPExcPK29Bqy3-ug7g@mail.gmail.com>
 <CAKna9Vb___ZLqn4CPWDP+cB1UNUkQJcF_pQX3waqsYVV6zrSwA@mail.gmail.com>
 <151101d7a4bb$02dd82f0$089888d0$@rsiz.com> <CAKna9Va3U-S+YPA256z9xfDN6R3qQp9x8aL+1f1SOjLn94L-JQ@mail.gmail.com>
 <156d01d7a4d8$cd223020$67669060$@rsiz.com>
In-Reply-To: <156d01d7a4d8$cd223020$67669060$@rsiz.com>
From: Lok P <loknath.73@gmail.com>
Date: Thu, 9 Sep 2021 09:08:55 +0530
Message-ID: <CAKna9VZZCuZNk4qBsCxLBCK4DHVFL7wzT0ih6shTPVjGot7ZTA@mail.gmail.com>
Subject: Re: Undo Tablespace Error
To: "Mark W. Farnham" <mwf@rsiz.com>
Cc: Hemant K Chitale <hemantkchitale@gmail.com>, John Piwowar <jpiwowar@gmail.com>,
 Oracle L <oracle-l@freelists.org>
Content-Type: multipart/alternative; boundary="000000000000068cb005cb87beb5"
X-archive-position: 80893
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: loknath.73@gmail.com
Precedence: normal
Reply-To: loknath.73@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
--000000000000068cb005cb87beb5
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Thank you. I will try to see the alert log for more details.

But if my understanding is correct , in current scenario with maxsize being
set there is no difference in undo behaviour if we keep the data file as
either Autoextend ON or OFF. Correct me if wrong?

On Wed, 8 Sep 2021, 11:12 pm Mark W. Farnham, <mwf@rsiz.com> wrote:

> We cannot tell from the apparent information presented HOW it got to 200.
> But it should not be able to extend beyond the set MAXBYTES. The behavior=
 I
> would have built is to complain if you try to set maxbytes lower than an
> already existing size for a file. If you keep logs of the manual
> intervention sections (at least) or complete alert logs for at least the
> system, then you might discover how it got to 200.
>
>
>
> Yes, you ARE within the limits of bigfile, presuming that more space is
> available on the storage volume. NO, it should not autoextend if it is at
> or beyond the MAXBYTES defined for the file, and tossing the error you ar=
e
> seeing seems correct behavior to me.
>
>
>
> Sigh.
>
>
>
> *From:* Lok P [mailto:loknath.73@gmail.com]
> *Sent:* Wednesday, September 08, 2021 12:13 PM
> *To:* Mark W. Farnham
> *Cc:* Hemant K Chitale; John Piwowar; Oracle L
> *Subject:* Re: Undo Tablespace Error
>
>
>
> I see it's a bigfile tablespace. And if i am correct it will go beyond
> normal ~31Gb individual data file size limit. Correct me if I'm wrong.
>
>
>
> And then in this case , can it go beyond defined max_bytes? Or is it that
> at the point when it reaches ~160GB size it throws an ora-30036 error and
> then someone has increased the size to ~200GB but it's not updated in
> dba_data_files? But in any scenario, is behaviour of UNDO different if we
> have AUTO EXTEND ON with defined max_size(i.e. our current setup) VS
> Autoextend OFF with the same max_size?
>
>
>
> On Wed, Sep 8, 2021 at 7:39 PM Mark W. Farnham <mwf@rsiz.com> wrote:
>
> If you have a single file limited to 160 and it is already 200, it seems
> to me that file cannot extend. If you have reached 200, then I would expe=
ct
> it to go splat failing to extend with autoextend on, because it fails the
> maxbytes limit.
>
>
>
> Since the file is already bigger than what  someone probably set it down
> to later, the maxbytes seems like a red herring and autoextend could only
> come into play if you added a file.
>
>
>
> mwf
>
>
>
> *From:* oracle-l-bounce@freelists.org [mailto:
> oracle-l-bounce@freelists.org] *On Behalf Of *Lok P
> *Sent:* Wednesday, September 08, 2021 9:00 AM
> *To:* Hemant K Chitale
> *Cc:* John Piwowar; Oracle L
> *Subject:* Re: Undo Tablespace Error
>
>
>
> Thank you Hemant.
>
>
>
> *to your point "Besides dba_hist_tbsp_space_usage you should also look at
> v$undostat"*
>
>
>
> This error occurred to us 4-5days ago. So from min(begin_time) , I am
> seeing it doesn't have those time data in v$undostat anymore. So is there
> another way to dig into history?
>
>
>
> If i see current values in v$parameter, We have UNDO_MANGEMENT set as
> AUTO  undo_retention set as 3600. If I see current values in dba_data_fil=
es
> we have only one data file for the UNDo tablespace. and it has BYTES as
> 200GB, MAXBYTES- 160GB, USER_BYTES- 200GB, Autoextensible- YES. So in thi=
s
> case do you suggest just by turning OFF the AUTOEXTEND , we should be goo=
d
> to avoid this issue in future?
>
>
>
> But I had one question, even if we have AUTOEXTEND ON, as we have defined
> the MAXBYTES as ~160GB for that data file, so that is as good as AUTOEXTE=
ND
> OFF having same maxBytes as ~160GB as because in both of the cases it
> can't go beyond 160GB. Is my understanding wrong here?
>
>
>
> On Wed, Sep 8, 2021 at 8:14 AM Hemant K Chitale <hemantkchitale@gmail.com=
>
> wrote:
>
>
>
> If you have AUTOEXTEND ON  it is likely that the datafile had already hit
> the MAXSIZE.
>
> So this would result in failure 6 in Oracle Support document " *Troublesh=
ooting
> ORA-30036 - Unable To Extend Undo Tablespace (Doc ID 460481.1)*
>
>
>
> Besides dba_hist_tbsp_space_usage you should also look at v$undostat
>
> (also in earlier versions dba_hist_tbsp_space_usage had bugs in reporting
> Tablespace Usage for Undo tablespaces)
>
>
>
> As John says, if you have AUTOEXTEND ON,  Oracle will try to keep
> extending Undo retention.  Setting a max size for the datafiles and then
> setting AUTOEXTEND OFF is better.
>
>
> Hemant K Chitale
>
>
>
>
>
> On Mon, Sep 6, 2021 at 2:59 AM Lok P <loknath.73@gmail.com> wrote:
>
> Thank You John. I understand your point that with AUTOEXTENSIBLE YES
> oracle may tend to keep the expired UNDO longer to satisfy retention
> thereby increasing the UNDO tablespace to higher size. But , If we will
> talk specifically about the exact error here , isn't it true that with
> AUTOEXTENSIBLE YES, it should not have made it errored out with Ora-30036
> rather it would have thrashed/increased UNDO tablespace size by its own?
>
>
>
> Also as I see from dba_hist_tbspc_space_usage , the UNDO
> usage(tablespace_usedsize) was ~160GB which was equal to tablespace_size
> when it failed with ora-30036 , but then it increased to ~200GB after
> 4-5hrs, yet to see if somebody has increased it manually or it increased =
by
> itself.
>
>
>
> On Sun, Sep 5, 2021 at 2:53 AM John Piwowar <jpiwowar@gmail.com> wrote:
>
> The =E2=80=9Cautoextensible=E2=80=9D setting on your undo data files is p=
ossibly  the
> culprit here. Undo segments are a bit of a special case, and Oracle=E2=80=
=99s
> decision-making about when to reclaim expired undo can be thrown off when
> it thinks it has the option to extend a data file instead. It=E2=80=99s p=
ossible
> that you might still need to resize your undo to accommodate recent chang=
es
> in your workload, but you=E2=80=99re better off with fixed-size undo data=
files,
> followed by an examination of  your automatic undo configuration
> (undo_retention, etc).
>
>
>
> Sorry about the vagueness of the response; I=E2=80=99m on my phone and ca=
n=E2=80=99t get
> decent references with my thumbs. :)
>
>
>
> On Sat, Sep 4, 2021 at 1:05 PM Lok P <loknath.73@gmail.com> wrote:
>
> Hello Listers, In one of our 12.1 version databases, a few days back we
> encountered an error- "Ora-30036 Unable to extend segment by 128 in
> tablespace 'UNDOTBS1'" for a delete query. This failure has never happene=
d
> before. And we were trying to see if we really have to increase the size =
of
> UNDO tablespace(current size is ~200GB) as it has other impacts like maki=
ng
> long running queries run even longer before hitting ora-01555/snapshot to=
o
> old etc. Or anyway we can track and fix the long transactions which might
> have consumed large UNDO during that time and then we can try to break th=
at
> into small transactions?
>
>
>
> Another thing I notice in the dba_data_files is now showing autoextensibl=
e
> as YES, so how come this query errored out with Ora-30036/space issues?
>
>
>
> The USED space in dba_hist_tbspc_space_usage for this UNDO tablespace is
> sometimes showing completely full and sometimes it's a lot empty and i
> believe it's because of a circular buffer.
>
>
>
>
>
> --
>
> Regards, John P. (Typed with thumbs on a mobile device. Lowered
> expectations appreciated)
>
>

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

<div dir=3D"auto">Thank you. I will try to see the alert log for more detai=
ls.=C2=A0<div dir=3D"auto"><br></div><div dir=3D"auto">But if my understand=
ing is correct , in current scenario with maxsize being set there is no dif=
ference in undo behaviour if we keep the data file as either Autoextend ON =
or OFF. Correct me if wrong?</div></div><br><div class=3D"gmail_quote"><div=
 dir=3D"ltr" class=3D"gmail_attr">On Wed, 8 Sep 2021, 11:12 pm Mark W. Farn=
ham, &lt;<a href=3D"mailto:mwf@rsiz.com">mwf@rsiz.com</a>&gt; wrote:<br></d=
iv><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left=
:1px #ccc solid;padding-left:1ex"><div lang=3D"EN-US" link=3D"blue" vlink=
=3D"purple"><div class=3D"m_-1021748196614869155WordSection1"><p class=3D"M=
soNormal"><span style=3D"font-size:14.0pt;font-family:&quot;Calibri&quot;,&=
quot;sans-serif&quot;;color:#1f497d">We cannot tell from the apparent infor=
mation presented HOW it got to 200. But it should not be able to extend bey=
ond the set MAXBYTES. The behavior I would have built is to complain if you=
 try to set maxbytes lower than an already existing size for a file. If you=
 keep logs of the manual intervention sections (at least) or complete alert=
 logs for at least the system, then you might discover how it got to 200.<u=
></u><u></u></span></p><p class=3D"MsoNormal"><span style=3D"font-size:14.0=
pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u=
></u>=C2=A0<u></u></span></p><p class=3D"MsoNormal"><span style=3D"font-siz=
e:14.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1f49=
7d">Yes, you ARE within the limits of bigfile, presuming that more space is=
 available on the storage volume. NO, it should not autoextend if it is at =
or beyond the MAXBYTES defined for the file, and tossing the error you are =
seeing seems correct behavior to me.<u></u><u></u></span></p><p class=3D"Ms=
oNormal"><span style=3D"font-size:14.0pt;font-family:&quot;Calibri&quot;,&q=
uot;sans-serif&quot;;color:#1f497d"><u></u>=C2=A0<u></u></span></p><p class=
=3D"MsoNormal"><span style=3D"font-size:14.0pt;font-family:&quot;Calibri&qu=
ot;,&quot;sans-serif&quot;;color:#1f497d">Sigh.<u></u><u></u></span></p><p =
class=3D"MsoNormal"><span style=3D"font-size:14.0pt;font-family:&quot;Calib=
ri&quot;,&quot;sans-serif&quot;;color:#1f497d"><u></u>=C2=A0<u></u></span><=
/p><p class=3D"MsoNormal"><b><span style=3D"font-size:10.0pt;font-family:&q=
uot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style=3D"fon=
t-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Lok P=
 [mailto:<a href=3D"mailto:loknath.73@gmail.com" target=3D"_blank" rel=3D"n=
oreferrer">loknath.73@gmail.com</a>] <br><b>Sent:</b> Wednesday, September =
08, 2021 12:13 PM<br><b>To:</b> Mark W. Farnham<br><b>Cc:</b> Hemant K Chit=
ale; John Piwowar; Oracle L<br><b>Subject:</b> Re: Undo Tablespace Error<u>=
</u><u></u></span></p><p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p><div><=
p class=3D"MsoNormal">I see it&#39;s a bigfile tablespace. And if i am corr=
ect it will go beyond normal ~31Gb individual data file size limit. Correct=
 me if I&#39;m wrong.<u></u><u></u></p><div><p class=3D"MsoNormal"><u></u>=
=C2=A0<u></u></p></div><div><p class=3D"MsoNormal">And then in this case , =
can it go beyond defined max_bytes? Or is it that at the point=C2=A0when it=
 reaches ~160GB size it throws an ora-30036 error and then someone has incr=
eased the size to ~200GB but it&#39;s not updated in dba_data_files? But in=
 any scenario, is behaviour of UNDO different if we have AUTO EXTEND ON wit=
h defined max_size(i.e. our current setup) VS Autoextend OFF with the same =
max_size?<u></u><u></u></p></div></div><p class=3D"MsoNormal"><u></u>=C2=A0=
<u></u></p><div><div><p class=3D"MsoNormal">On Wed, Sep 8, 2021 at 7:39 PM =
Mark W. Farnham &lt;<a href=3D"mailto:mwf@rsiz.com" target=3D"_blank" rel=
=3D"noreferrer">mwf@rsiz.com</a>&gt; wrote:<u></u><u></u></p></div><blockqu=
ote style=3D"border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0i=
n 6.0pt;margin-left:4.8pt;margin-right:0in"><div><div><p class=3D"MsoNormal=
"><span style=3D"font-size:14.0pt;font-family:&quot;Calibri&quot;,&quot;san=
s-serif&quot;;color:#1f497d">If you have a single file limited to 160 and i=
t is already 200, it seems to me that file cannot extend. If you have reach=
ed 200, then I would expect it to go splat failing to extend with autoexten=
d on, because it fails the maxbytes limit.</span><u></u><u></u></p><p class=
=3D"MsoNormal"><span style=3D"font-size:14.0pt;font-family:&quot;Calibri&qu=
ot;,&quot;sans-serif&quot;;color:#1f497d">=C2=A0</span><u></u><u></u></p><p=
 class=3D"MsoNormal"><span style=3D"font-size:14.0pt;font-family:&quot;Cali=
bri&quot;,&quot;sans-serif&quot;;color:#1f497d">Since the file is already b=
igger than what=C2=A0 someone probably set it down to later, the maxbytes s=
eems like a red herring and autoextend could only come into play if you add=
ed a file.</span><u></u><u></u></p><p class=3D"MsoNormal"><span style=3D"fo=
nt-size:14.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color=
:#1f497d">=C2=A0</span><u></u><u></u></p><p class=3D"MsoNormal"><span style=
=3D"font-size:14.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;=
;color:#1f497d">mwf</span><u></u><u></u></p><p class=3D"MsoNormal"><span st=
yle=3D"font-size:14.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&qu=
ot;;color:#1f497d">=C2=A0</span><u></u><u></u></p><p class=3D"MsoNormal"><b=
><span style=3D"font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-=
serif&quot;">From:</span></b><span style=3D"font-size:10.0pt;font-family:&q=
uot;Tahoma&quot;,&quot;sans-serif&quot;"> <a href=3D"mailto:oracle-l-bounce=
@freelists.org" target=3D"_blank" rel=3D"noreferrer">oracle-l-bounce@freeli=
sts.org</a> [mailto:<a href=3D"mailto:oracle-l-bounce@freelists.org" target=
=3D"_blank" rel=3D"noreferrer">oracle-l-bounce@freelists.org</a>] <b>On Beh=
alf Of </b>Lok P<br><b>Sent:</b> Wednesday, September 08, 2021 9:00 AM<br><=
b>To:</b> Hemant K Chitale<br><b>Cc:</b> John Piwowar; Oracle L<br><b>Subje=
ct:</b> Re: Undo Tablespace Error</span><u></u><u></u></p><p class=3D"MsoNo=
rmal">=C2=A0<u></u><u></u></p><div><p class=3D"MsoNormal">Thank you Hemant.=
<u></u><u></u></p><div><p class=3D"MsoNormal">=C2=A0<u></u><u></u></p></div=
><div><p class=3D"MsoNormal"><i>to your point &quot;Besides dba_hist_tbsp_s=
pace_usage you should also look at v$undostat&quot;</i><u></u><u></u></p></=
div><div><p class=3D"MsoNormal">=C2=A0<u></u><u></u></p></div><div><p class=
=3D"MsoNormal">This error occurred=C2=A0to us 4-5days ago. So from min(begi=
n_time) , I am seeing it doesn&#39;t have those time data in v$undostat any=
more. So is there another way to dig into history?<u></u><u></u></p><div><p=
 class=3D"MsoNormal">=C2=A0<u></u><u></u></p></div><div><p class=3D"MsoNorm=
al">If i see current values in v$parameter, We have UNDO_MANGEMENT set as A=
UTO=C2=A0 undo_retention set as 3600. If I see current values in dba_data_f=
iles we have only one data file for the UNDo tablespace. and it has BYTES a=
s 200GB, MAXBYTES- 160GB, USER_BYTES- 200GB, Autoextensible- YES. So in thi=
s case do you suggest just by turning OFF the AUTOEXTEND , we should be goo=
d to avoid this issue in future?=C2=A0<u></u><u></u></p></div><div><p class=
=3D"MsoNormal">=C2=A0<u></u><u></u></p></div><div><p class=3D"MsoNormal">Bu=
t I had one question, even if we have AUTOEXTEND ON, as we have defined the=
 MAXBYTES as ~160GB for that data file, so that is as good as AUTOEXTEND OF=
F having same maxBytes as ~160GB as because in both of the cases it can&#39=
;t=C2=A0go beyond 160GB. Is my understanding wrong here?<u></u><u></u></p><=
/div></div></div><p class=3D"MsoNormal">=C2=A0<u></u><u></u></p><div><div><=
p class=3D"MsoNormal">On Wed, Sep 8, 2021 at 8:14 AM Hemant K Chitale &lt;<=
a href=3D"mailto:hemantkchitale@gmail.com" target=3D"_blank" rel=3D"norefer=
rer">hemantkchitale@gmail.com</a>&gt; wrote:<u></u><u></u></p></div><blockq=
uote style=3D"border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0=
in 6.0pt;margin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:=
5.0pt"><div><div><p class=3D"MsoNormal">=C2=A0<u></u><u></u></p></div><p cl=
ass=3D"MsoNormal">If you have AUTOEXTEND ON=C2=A0 it is likely that the dat=
afile had already hit the MAXSIZE.<u></u><u></u></p><div><p class=3D"MsoNor=
mal">So this would result in failure 6 in Oracle Support document=C2=A0&quo=
t; <b><span style=3D"font-size:10.5pt;font-family:&quot;Tahoma&quot;,&quot;=
sans-serif&quot;;color:black">Troubleshooting ORA-30036 - Unable To Extend =
Undo Tablespace (Doc ID 460481.1)</span></b><br clear=3D"all"><u></u><u></u=
></p><div><div><div><div><div><p class=3D"MsoNormal">=C2=A0<u></u><u></u></=
p></div><div><p class=3D"MsoNormal">Besides dba_hist_tbsp_space_usage you s=
hould also look at v$undostat<u></u><u></u></p></div><div><p class=3D"MsoNo=
rmal">(also in earlier versions dba_hist_tbsp_space_usage had bugs in repor=
ting Tablespace Usage for Undo tablespaces)<u></u><u></u></p></div><div><p =
class=3D"MsoNormal">=C2=A0<u></u><u></u></p></div><div><p class=3D"MsoNorma=
l">As John says, if you have AUTOEXTEND ON,=C2=A0 Oracle will try to keep e=
xtending Undo retention.=C2=A0 Setting=C2=A0a max size for the datafiles an=
d then setting AUTOEXTEND OFF is better.<u></u><u></u></p></div><div><p cla=
ss=3D"MsoNormal" style=3D"margin-bottom:12.0pt"><br>Hemant K Chitale<u></u>=
<u></u></p></div></div></div></div></div><p class=3D"MsoNormal">=C2=A0<u></=
u><u></u></p></div></div><p class=3D"MsoNormal">=C2=A0<u></u><u></u></p><di=
v><div><p class=3D"MsoNormal">On Mon, Sep 6, 2021 at 2:59 AM Lok P &lt;<a h=
ref=3D"mailto:loknath.73@gmail.com" target=3D"_blank" rel=3D"noreferrer">lo=
knath.73@gmail.com</a>&gt; wrote:<u></u><u></u></p></div><blockquote style=
=3D"border:none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;m=
argin-left:4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt"><di=
v><p class=3D"MsoNormal">Thank You John. I understand your point that with =
AUTOEXTENSIBLE YES oracle may tend to keep the expired UNDO longer to satis=
fy retention thereby increasing the UNDO tablespace to higher size. But , I=
f we will talk specifically=C2=A0about the exact error here , isn&#39;t=C2=
=A0it true that with AUTOEXTENSIBLE YES, it should=C2=A0not have made it er=
rored out with Ora-30036 rather it would have thrashed/increased UNDO table=
space size by its own?<u></u><u></u></p><div><p class=3D"MsoNormal">=C2=A0<=
u></u><u></u></p></div><div><p class=3D"MsoNormal">Also as I see from dba_h=
ist_tbspc_space_usage , the UNDO usage(tablespace_usedsize) was ~160GB whic=
h was equal to tablespace_size when it failed with ora-30036 , but then it =
increased to ~200GB after 4-5hrs, yet to see if somebody has increased=C2=
=A0it manually or it increased by itself.<u></u><u></u></p></div></div><p c=
lass=3D"MsoNormal">=C2=A0<u></u><u></u></p><div><div><p class=3D"MsoNormal"=
>On Sun, Sep 5, 2021 at 2:53 AM John Piwowar &lt;<a href=3D"mailto:jpiwowar=
@gmail.com" target=3D"_blank" rel=3D"noreferrer">jpiwowar@gmail.com</a>&gt;=
 wrote:<u></u><u></u></p></div><blockquote style=3D"border:none;border-left=
:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-top=
:5.0pt;margin-right:0in;margin-bottom:5.0pt"><div><p class=3D"MsoNormal">Th=
e =E2=80=9Cautoextensible=E2=80=9D setting on your undo data files is possi=
bly =C2=A0the culprit here. Undo segments are a bit of a special case, and =
Oracle=E2=80=99s decision-making about when to reclaim expired undo can be =
thrown off when it thinks it has the option to extend a data file instead. =
It=E2=80=99s possible that you might still need to resize your undo to acco=
mmodate recent changes in your workload, but you=E2=80=99re better off with=
 fixed-size undo datafiles, followed by an examination of =C2=A0your automa=
tic undo configuration (undo_retention, etc).=C2=A0<u></u><u></u></p></div>=
<div><p class=3D"MsoNormal">=C2=A0<u></u><u></u></p></div><div><p class=3D"=
MsoNormal">Sorry about the vagueness of the response; I=E2=80=99m on my pho=
ne and can=E2=80=99t get decent references with my thumbs. :)<u></u><u></u>=
</p></div><div><p class=3D"MsoNormal">=C2=A0<u></u><u></u></p><div><div><p =
class=3D"MsoNormal">On Sat, Sep 4, 2021 at 1:05 PM Lok P &lt;<a href=3D"mai=
lto:loknath.73@gmail.com" target=3D"_blank" rel=3D"noreferrer">loknath.73@g=
mail.com</a>&gt; wrote:<u></u><u></u></p></div><blockquote style=3D"border:=
none;border-left:solid #cccccc 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:=
4.8pt;margin-top:5.0pt;margin-right:0in;margin-bottom:5.0pt"><div><p class=
=3D"MsoNormal">Hello Listers, In one of our=C2=A012.1 version databases, a =
few days back we encountered an error- &quot;Ora-30036 Unable to extend seg=
ment by 128 in tablespace &#39;UNDOTBS1&#39;&quot; for a delete query. This=
 failure has never happened before. And we were trying to see if we really =
have to increase the size of UNDO tablespace(current size is ~200GB) as it =
has other impacts=C2=A0like making long running queries run even longer bef=
ore hitting ora-01555/snapshot too old etc. Or anyway we can track and fix =
the long transactions which might have consumed large UNDO during that time=
 and then we can try to break that into small transactions?<u></u><u></u></=
p><div><p class=3D"MsoNormal">=C2=A0<u></u><u></u></p></div><div><p class=
=3D"MsoNormal">Another thing I notice in the dba_data_files is now showing =
autoextensible as YES, so how come this query errored out=C2=A0with Ora-300=
36/space issues?<u></u><u></u></p></div><div><p class=3D"MsoNormal">=C2=A0<=
u></u><u></u></p></div><div><div><p class=3D"MsoNormal">The USED space in d=
ba_hist_tbspc_space_usage for this UNDO tablespace is sometimes showing com=
pletely full and sometimes it&#39;s a lot=C2=A0empty and i believe=C2=A0it&=
#39;s because of a circular buffer.<u></u><u></u></p></div><div><p class=3D=
"MsoNormal">=C2=A0<u></u><u></u></p></div><div><p class=3D"MsoNormal">=C2=
=A0<u></u><u></u></p></div></div></div></blockquote></div></div><p class=3D=
"MsoNormal">-- <u></u><u></u></p><div><p class=3D"MsoNormal">Regards, John =
P. (Typed with thumbs on a mobile device. Lowered expectations appreciated)=
<u></u><u></u></p></div></blockquote></div></blockquote></div></blockquote>=
</div></div></div></blockquote></div></div></div></blockquote></div>

--000000000000068cb005cb87beb5--
--
http://www.freelists.org/webpage/oracle-l


