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 4E0191003165E3
 for <oracle-l@orafaq.com>; Thu,  9 Sep 2021 14:56:28 +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 4944A4299A;
 Thu,  9 Sep 2021 12:56:27 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 29AD5400CF;
 Thu,  9 Sep 2021 12:56:27 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1631192187;
 bh=v0JoHMSTyqkwHvjUgWY11s0RIg4WZBgbXyNvsyiMgxA=;
 h=From:Sender:Sender:From;
 b=W9qkXKiegcuD0qT9u8/sTfpc9gbPAsGk0Kg5DDq+VMclE2Sgg1l+PomL7Y/TiNjU+
	 BtZV1YNCQetU0GpR35pUl/uppjFW+4WLS6pHuVw+7odtSUCDQmUZ9LBhM5b3Y4T1M2
	 no1PUbYTZdvO7dJUveMvKZZ4bv/LmnfFvp8RIN2M=
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 qBUkpwb940dX; Thu,  9 Sep 2021 12:56:27 +0000 (UTC)
Received: from turing.freelists.org (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 195AF3FEA7;
 Thu,  9 Sep 2021 12:56:21 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=freelists.org;
 s=turing; t=1631192182;
 bh=v0JoHMSTyqkwHvjUgWY11s0RIg4WZBgbXyNvsyiMgxA=;
 h=From:Sender:Sender:From;
 b=K1XsCi8aurEyfxZryGcs2K7w17Tq9wbjZ2whQjY8P49tyCu1UEmriocTakX6QrV19
	 PHqTwIMBa81aA/MkcakkBb/LF0MN3RIvoBbtfRLdKDiLmE4PRMpvCjrDHh8qELrkEe
	 4WelYKO5uL+FPWVsBzyezkwFbzajfhA1M97LLGqQ=
Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 09 Sep 2021 12:56:19 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Postfix) with ESMTP id 907C63FDF0
 for <oracle-l@freelists.org>; Thu,  9 Sep 2021 12:56:19 +0000 (UTC)
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 5oP2FJAeTQOP for <oracle-l@freelists.org>;
 Thu,  9 Sep 2021 12:56:19 +0000 (UTC)
Received: from gw2.tidalhosting.net (gateway.tidalhosting.net [155.130.128.124])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 by turing.freelists.org (Postfix) with ESMTPS id 6279A3FDE8
 for <oracle-l@freelists.org>; Thu,  9 Sep 2021 12:56:19 +0000 (UTC)
Received: from mrtr.tidalhosting.net (UnknownHost [10.0.150.3]) by gw2.tidalhosting.net with SMTP
 (version=TLS\Tls12
 cipher=Aes256 bits=256);
   Thu, 9 Sep 2021 08:56:10 -0400
Received: from mx1.tidalhosting.net (unknown [10.0.100.9])
 by mrtr.tidalhosting.net (Postfix) with ESMTPS id 7B260305C23F;
 Thu,  9 Sep 2021 08:56:05 -0400 (EDT)
Received: from mwf4500 (c-73-238-99-41.hsd1.ma.comcast.net [73.238.99.41]) by mx1.tidalhosting.net with SMTP
 (version=Tls
 cipher=Aes256 bits=256);
   Thu, 9 Sep 2021 08:55:47 -0400
From: "Mark W. Farnham" <mwf@rsiz.com>
To: "'Lok P'" <loknath.73@gmail.com>
Cc: "'Hemant K Chitale'" <hemantkchitale@gmail.com>,
 "'John Piwowar'" <jpiwowar@gmail.com>,
 "'Oracle L'" <oracle-l@freelists.org>
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> <CAKna9VZZCuZNk4qBsCxLBCK4DHVFL7wzT0ih6shTPVjGot7ZTA@mail.gmail.com>
In-Reply-To: <CAKna9VZZCuZNk4qBsCxLBCK4DHVFL7wzT0ih6shTPVjGot7ZTA@mail.gmail.com>
Subject: RE: Undo Tablespace Error
Date: Thu, 9 Sep 2021 08:55:38 -0400
Message-ID: <162101d7a579$fdc040e0$f940c2a0$@rsiz.com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----=_NextPart_000_1622_01D7A558.76B1D530"
Content-Language: en-us
X-Exim-Id: 162101d7a579$fdc040e0$f940c2a0$
X-archive-position: 80894
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-to: oracle-l-bounce@freelists.org
X-original-sender: mwf@rsiz.com
Precedence: normal
Reply-To: mwf@rsiz.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
------=_NextPart_000_1622_01D7A558.76B1D530
Content-Type: text/plain;
 charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I don=E2=80=99t know whether there is a different error fall back order. =
I thought the error was failing to extend, so I can conceive that it =
might not try to extend with autoextend off and tell you it ran out of =
space in undo instead of trying to extend and failing.

=20

It would give me the willies to have maxbytes smaller than the actual =
size, but that is just because it doesn=E2=80=99t make sense to me. =
Without the source code the only way to determine the behavior of the =
running code is to do an enumerative case test seeing what happens.

=20

My experiments with UNDO were long ago and I never bothered with the =
cases that didn=E2=80=99t make sense to me to allow, so I cannot =
definitively answer your question.

=20

In your situation, and assuming space is available, I would create a new =
UNDO that was for sure internally consistent with the values you want =
and then alter that online and wait for the current one to be completely =
inactive and eventually drop it. After that, with all the values making =
sense and being internally consistent, I would expect behavior to be =
easily predictable.

=20

IF your shop is somehow attached to the nomenclature of the current =
UNDO, you can replace UNDO twice to get back to the original name, but =
be patient with the complete clearing of the one you=E2=80=99re going to =
drop and recreate (it won=E2=80=99t drop until all transactions are =
complete, but it might let you kill read only queries to drop it, the =
same as running out of retention time.) I=E2=80=99m a bit rusty on this.

=20

Other than running away from file corruption errors, the only other =
reason to rotate UNDO was back when a variety of storage performance =
classes made sense with very large history that didn=E2=80=99t need =
super speed and intermittent large transaction batches that benefitted =
from very fast (like SSD versus spinning rust) speeds. Then you briefly =
switched to the fast stuff, started the batch transaction, and =
immediately switched back. That would put your performance requiring =
transaction on the fast stuff (possibly along with a few other things =
that happened to start before the switch back) and then do the mundane =
stuff on the routine UNDO. The operations control to mesh that was =
rarely worth the trouble and some folks from Oracle mentioned they had =
deeply tested switching but had not deeply tested switching back. It =
never failed that I saw in some cases that were bigger than a bread box. =
In the days when SSD was extremely expensive compared to spinning rust, =
it was sometimes worth it to do more complex operations to buy less of =
it and get the same benefit.

=20

I doubt any of that applies to you. I suppose with the enormous RAM =
sizes we have now and private designations, if you have an operating =
system with duplex RAM for error control putting some UNDO on RAM might =
be useful. If Oracle wants me to do that experiment for them, =
I=E2=80=99m all ears.

=20

Good luck.

=20

From: Lok P [mailto:loknath.73@gmail.com]=20
Sent: Wednesday, September 08, 2021 11:39 PM
To: Mark W. Farnham
Cc: Hemant K Chitale; John Piwowar; Oracle L
Subject: Re: Undo Tablespace Error

=20

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

=20

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?

=20

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.

=20

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.

=20

Sigh.

=20

From: Lok P [mailto:loknath.73@gmail.com]=20
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

=20

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.

=20

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?

=20

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 =
expect it to go splat failing to extend with autoextend on, because it =
fails the maxbytes limit.

=20

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.

=20

mwf

=20

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

=20

Thank you Hemant.

=20

to your point "Besides dba_hist_tbsp_space_usage you should also look at =
v$undostat"

=20

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?

=20

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_files 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 this case do you suggest just by turning OFF =
the AUTOEXTEND , we should be good to avoid this issue in future?=20

=20

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 =
AUTOEXTEND OFF having same maxBytes as ~160GB as because in both of the =
cases it can't go beyond 160GB. Is my understanding wrong here?

=20

On Wed, Sep 8, 2021 at 8:14 AM Hemant K Chitale =
<hemantkchitale@gmail.com> wrote:

=20

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 " =
Troubleshooting ORA-30036 - Unable To Extend Undo Tablespace (Doc ID =
460481.1)


=20

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)

=20

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

=20

=20

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?

=20

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.

=20

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 =
possibly  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 possible that you might still need to resize your =
undo to accommodate recent changes in your workload, but you=E2=80=99re =
better off with fixed-size undo datafiles, followed by an examination of =
 your automatic undo configuration (undo_retention, etc).=20

=20

Sorry about the vagueness of the response; I=E2=80=99m on my phone and =
can=E2=80=99t get decent references with my thumbs. :)

=20

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 =
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 like making long running queries run even longer before 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?

=20

Another thing I notice in the dba_data_files is now showing =
autoextensible as YES, so how come this query errored out with =
Ora-30036/space issues?

=20

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.

=20

=20

--=20

Regards, John P. (Typed with thumbs on a mobile device. Lowered =
expectations appreciated)


------=_NextPart_000_1622_01D7A558.76B1D530
Content-Type: text/html;
 charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta =
http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta =
name=3DGenerator content=3D"Microsoft Word 14 (filtered =
medium)"><style><!--
/* Font Definitions */
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri","sans-serif";}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue =
vlink=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>I don=E2=80=99t know whether there is a different error fall back =
order. I thought the error was failing to extend, so I can conceive that =
it might not try to extend with autoextend off and tell you it ran out =
of space in undo instead of trying to extend and =
failing.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>It would give me the willies to have maxbytes smaller than the actual =
size, but that is just because it doesn=E2=80=99t make sense to me. =
Without the source code the only way to determine the behavior of the =
running code is to do an enumerative case test seeing what =
happens.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>My experiments with UNDO were long ago and I never bothered with the =
cases that didn=E2=80=99t make sense to me to allow, so I cannot =
definitively answer your question.<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>In your situation, and assuming space is available, I would create a =
new UNDO that was for sure internally consistent with the values you =
want and then alter that online and wait for the current one to be =
completely inactive and eventually drop it. After that, with all the =
values making sense and being internally consistent, I would expect =
behavior to be easily predictable.<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>IF your shop is somehow attached to the nomenclature of the current =
UNDO, you can replace UNDO twice to get back to the original name, but =
be patient with the complete clearing of the one you=E2=80=99re going to =
drop and recreate (it won=E2=80=99t drop until all transactions are =
complete, but it might let you kill read only queries to drop it, the =
same as running out of retention time.) I=E2=80=99m a bit rusty on =
this.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Other than running away from file corruption errors, the only other =
reason to rotate UNDO was back when a variety of storage performance =
classes made sense with very large history that didn=E2=80=99t need =
super speed and intermittent large transaction batches that benefitted =
from very fast (like SSD versus spinning rust) speeds. Then you briefly =
switched to the fast stuff, started the batch transaction, and =
immediately switched back. That would put your performance requiring =
transaction on the fast stuff (possibly along with a few other things =
that happened to start before the switch back) and then do the mundane =
stuff on the routine UNDO. The operations control to mesh that was =
rarely worth the trouble and some folks from Oracle mentioned they had =
deeply tested switching but had not deeply tested switching back. It =
never failed that I saw in some cases that were bigger than a bread box. =
In the days when SSD was extremely expensive compared to spinning rust, =
it was sometimes worth it to do more complex operations to buy less of =
it and get the same benefit.<o:p></o:p></span></p><p =
class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>I doubt any of that applies to you. I suppose with the enormous RAM =
sizes we have now and private designations, if you have an operating =
system with duplex RAM for error control putting some UNDO on RAM might =
be useful. If Oracle wants me to do that experiment for them, =
I=E2=80=99m all ears.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Good luck.<o:p></o:p></span></p><p class=3DMsoNormal><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'><o:p>&nbsp;</o:p></span></p><p class=3DMsoNormal><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
Lok P [mailto:loknath.73@gmail.com] <br><b>Sent:</b> Wednesday, =
September 08, 2021 11:39 PM<br><b>To:</b> Mark W. Farnham<br><b>Cc:</b> =
Hemant K Chitale; John Piwowar; Oracle L<br><b>Subject:</b> Re: Undo =
Tablespace Error<o:p></o:p></span></p><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><p class=3DMsoNormal>Thank =
you. I will try to see the alert log for more =
details.&nbsp;<o:p></o:p></p><div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p></div><div><p =
class=3DMsoNormal>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?<o:p></o:p></p></div></div><p =
class=3DMsoNormal><o:p>&nbsp;</o:p></p><div><div><p class=3DMsoNormal>On =
Wed, 8 Sep 2021, 11:12 pm Mark W. Farnham, &lt;<a =
href=3D"mailto:mwf@rsiz.com">mwf@rsiz.com</a>&gt; =
wrote:<o:p></o:p></p></div><blockquote =
style=3D'border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in =
6.0pt;margin-left:4.8pt;margin-right:0in'><div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>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.</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>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.</span><o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Sigh.</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
Lok P [mailto:<a href=3D"mailto:loknath.73@gmail.com" =
target=3D"_blank">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 Chitale; John Piwowar; Oracle L<br><b>Subject:</b> Re: Undo =
Tablespace Error</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>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.<o:p></o:p></p><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>And then in =
this case , can it go beyond defined max_bytes? Or is it that at the =
point&nbsp;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?<o:p></o:p></p></div></div><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p><div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On Wed, Sep =
8, 2021 at 7:39 PM Mark W. Farnham &lt;<a href=3D"mailto:mwf@rsiz.com" =
target=3D"_blank">mwf@rsiz.com</a>&gt; =
wrote:<o:p></o:p></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><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>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 expect it to go splat failing to extend with autoextend on, =
because it fails the maxbytes limit.</span><o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>Since the file is already bigger than what&nbsp; 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.</span><o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>mwf</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span =
style=3D'font-size:14.0pt;font-family:"Calibri","sans-serif";color:#1F497=
D'>&nbsp;</span><o:p></o:p></p><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><b><span =
style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>=
</b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> =
<a href=3D"mailto:oracle-l-bounce@freelists.org" =
target=3D"_blank">oracle-l-bounce@freelists.org</a> [mailto:<a =
href=3D"mailto:oracle-l-bounce@freelists.org" =
target=3D"_blank">oracle-l-bounce@freelists.org</a>] <b>On Behalf 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>Subject:</b> Re: Undo Tablespace Error</span><o:p></o:p></p><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Thank you =
Hemant.<o:p></o:p></p><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><i>to your =
point &quot;Besides dba_hist_tbsp_space_usage you should also look at =
v$undostat&quot;</i><o:p></o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>This error =
occurred&nbsp;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?<o:p></o:p></p><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>If i see =
current values in v$parameter, We have UNDO_MANGEMENT set as AUTO&nbsp; =
undo_retention set as 3600. If I see current values in dba_data_files 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 =
this case do you suggest just by turning OFF the AUTOEXTEND , we should =
be good to avoid this issue in future?&nbsp;<o:p></o:p></p></div><div><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>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 AUTOEXTEND =
OFF having same maxBytes as ~160GB as because in both of the cases it =
can't&nbsp;go beyond 160GB. Is my understanding wrong =
here?<o:p></o:p></p></div></div></div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p><div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On Wed, Sep =
8, 2021 at 8:14 AM Hemant K Chitale &lt;<a =
href=3D"mailto:hemantkchitale@gmail.com" =
target=3D"_blank">hemantkchitale@gmail.com</a>&gt; =
wrote:<o:p></o:p></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><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>If you have =
AUTOEXTEND ON&nbsp; it is likely that the datafile had already hit the =
MAXSIZE.<o:p></o:p></p><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>So this =
would result in failure 6 in Oracle Support document&nbsp;&quot; =
<b><span =
style=3D'font-size:10.5pt;font-family:"Tahoma","sans-serif";color:black'>=
Troubleshooting ORA-30036 - Unable To Extend Undo Tablespace (Doc ID =
460481.1)</span></b><br =
clear=3Dall><o:p></o:p></p><div><div><div><div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Besides =
dba_hist_tbsp_space_usage you should also look at =
v$undostat<o:p></o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>(also in =
earlier versions dba_hist_tbsp_space_usage had bugs in reporting =
Tablespace Usage for Undo tablespaces)<o:p></o:p></p></div><div><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>As John =
says, if you have AUTOEXTEND ON,&nbsp; Oracle will try to keep extending =
Undo retention.&nbsp; Setting&nbsp;a max size for the datafiles and then =
setting AUTOEXTEND OFF is better.<o:p></o:p></p></div><div><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;margin-bottom:12.0pt'><br>Hemant K =
Chitale<o:p></o:p></p></div></div></div></div></div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div></div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p><div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On Mon, Sep =
6, 2021 at 2:59 AM Lok P &lt;<a href=3D"mailto:loknath.73@gmail.com" =
target=3D"_blank">loknath.73@gmail.com</a>&gt; =
wrote:<o:p></o:p></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=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>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&nbsp;about the exact error here , isn't&nbsp;it true that =
with AUTOEXTENSIBLE YES, it should&nbsp;not have made it errored out =
with Ora-30036 rather it would have thrashed/increased UNDO tablespace =
size by its own?<o:p></o:p></p><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>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&nbsp;it manually or it =
increased by itself.<o:p></o:p></p></div></div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p><div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On Sun, Sep =
5, 2021 at 2:53 AM John Piwowar &lt;<a =
href=3D"mailto:jpiwowar@gmail.com" =
target=3D"_blank">jpiwowar@gmail.com</a>&gt; =
wrote:<o:p></o:p></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=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>The =
=E2=80=9Cautoextensible=E2=80=9D setting on your undo data files is =
possibly &nbsp;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 possible that you might still need to resize =
your undo to accommodate recent changes in your workload, but =
you=E2=80=99re better off with fixed-size undo datafiles, followed by an =
examination of &nbsp;your automatic undo configuration (undo_retention, =
etc).&nbsp;<o:p></o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Sorry about =
the vagueness of the response; I=E2=80=99m on my phone and can=E2=80=99t =
get decent references with my thumbs. :)<o:p></o:p></p></div><div><p =
class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p><div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>On Sat, Sep =
4, 2021 at 1:05 PM Lok P &lt;<a href=3D"mailto:loknath.73@gmail.com" =
target=3D"_blank">loknath.73@gmail.com</a>&gt; =
wrote:<o:p></o:p></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=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hello =
Listers, In one of our&nbsp;12.1 version databases, a few days back we =
encountered an error- &quot;Ora-30036 Unable to extend segment by 128 in =
tablespace 'UNDOTBS1'&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&nbsp;like making long running queries run even longer before =
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?<o:p></o:p></p><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Another =
thing I notice in the dba_data_files is now showing autoextensible as =
YES, so how come this query errored out&nbsp;with Ora-30036/space =
issues?<o:p></o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>The USED =
space in dba_hist_tbspc_space_usage for this UNDO tablespace is =
sometimes showing completely full and sometimes it's a lot&nbsp;empty =
and i believe&nbsp;it's because of a circular =
buffer.<o:p></o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>&nbsp;<o:p><=
/o:p></p></div></div></div></blockquote></div></div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>-- =
<o:p></o:p></p><div><p class=3DMsoNormal =
style=3D'mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Regards, =
John P. (Typed with thumbs on a mobile device. Lowered expectations =
appreciated)<o:p></o:p></p></div></blockquote></div></blockquote></div></=
blockquote></div></div></div></blockquote></div></div></div></blockquote>=
</div></div></body></html>
------=_NextPart_000_1622_01D7A558.76B1D530--



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



