Home » RDBMS Server » Server Administration » What happens when UNDO space is full? Transaction takes more time to ERROR? (Oracle 11g)
What happens when UNDO space is full? Transaction takes more time to ERROR? [message #490677] Wed, 26 January 2011 11:13 Go to next message
sriramkanala
Messages: 9
Registered: December 2005
Junior Member
I have a long running transaction (more than 3 hours), and at the same time other operations are occurring on different tables, using the same UNDO space.

Sometimes we see ORA-30036, but this error occurs very late in the process.

The transaction normally takes 3 hours, but when UNDO space is full, we do not get ORA-30036 upto 8 hours or 9 hours of process.

I am wondering what could be happening in the background, when UNDO space is full, whcih makes the transaction to extend upto 8 hours or 9 hours (pl. note, this transaction gets completed within 3 hours normally).

This is in 11g, UNDO space is managed manually.

Any clues? Thanks in advance
Re: What happens when UNDO space is full? Transaction takes more time to ERROR? [message #490678 is a reply to message #490677] Wed, 26 January 2011 11:24 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
30036, 00000, "unable to extend segment by %s in undo tablespace '%s'"
// *Cause:   the specified undo tablespace has no more space available.
// *Action:  Add more space to the undo tablespace before retrying
//           the operation. An alternative is to wait until active
//           transactions to commit.
Re: What happens when UNDO space is full? Transaction takes more time to ERROR? [message #490679 is a reply to message #490677] Wed, 26 January 2011 11:39 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Quote:
UNDO space is managed manually.

What does this mean?

Regards
Michel
Re: What happens when UNDO space is full? Transaction takes more time to ERROR? [message #490682 is a reply to message #490679] Wed, 26 January 2011 11:50 Go to previous messageGo to next message
sriramkanala
Messages: 9
Registered: December 2005
Junior Member
UNDO space is set to a specific value, it's not left to AUTOEXTEND ON.
Re: What happens when UNDO space is full? Transaction takes more time to ERROR? [message #490760 is a reply to message #490677] Thu, 27 January 2011 03:50 Go to previous messageGo to next message
hkchital
Messages: 128
Registered: September 2008
Location: Singapore
Senior Member
The error message is returned to the client *after* the rollback has been completed.
A transaction starts at 1pm.
At 3pm it encounters an "out of space".
(Assuming that resumable has not been configured)
It starts rolling back.
The rollback completes at 3:45pm.
The user/client sees an error message at 3:45pm.


You can monitor USED_UREC, USED_UBLK for your transaction and see it increasing between 1pm and 3pm. After 3pm, the count starts falling -- this means that the rollback has begun. The error is presented to the user/client only after the rollback has been completed -- the database has been returned to a consistent state.


Hemant K Chitale
Re: What happens when UNDO space is full? Transaction takes more time to ERROR? [message #490840 is a reply to message #490677] Thu, 27 January 2011 11:26 Go to previous messageGo to next message
hkchital
Messages: 128
Registered: September 2008
Location: Singapore
Senior Member
See : http://hemantoracledba.blogspot.com/2011/01/transaction-failure-when-is-error.html


Re: What happens when UNDO space is full? Transaction takes more time to ERROR? [message #491035 is a reply to message #490840] Fri, 28 January 2011 09:18 Go to previous messageGo to next message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Be careful with this link, when I went for it I got a warning saying the page was trying to open a file on my workstation.
I don't know why or how, just say it as it happened.

Regards
Michel

[Updated on: Fri, 28 January 2011 09:19]

Report message to a moderator

Re: What happens when UNDO space is full? Transaction takes more time to ERROR? [message #491044 is a reply to message #491035] Fri, 28 January 2011 10:33 Go to previous messageGo to next message
mmee
Messages: 38
Registered: July 2007
Member

Mical ..

when i went for it i got original message ..in my case it's ok ..
Re: What happens when UNDO space is full? Transaction takes more time to ERROR? [message #491047 is a reply to message #491044] Fri, 28 January 2011 11:53 Go to previous message
Michel Cadot
Messages: 68718
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
Maybe my office web access is in a high security level and so is sensitive to any access.

Regards
Michel

[Updated on: Fri, 28 January 2011 11:55]

Report message to a moderator

Previous Topic: ORA-03113: end-of-file on communication channel
Next Topic: Single big tablespace versus multiple tablespace
Goto Forum:
  


Current Time: Fri Nov 29 08:41:19 CST 2024