Unix Technical Forum

ORA-01555 error

This is a discussion on ORA-01555 error within the Oracle Database forums, part of the Database Server Software category; --> Hi guys, We have a long-running query (CTAS) that throws up ORA-01555. This is the only query running against ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2008, 12:43 AM
kwr2k
 
Posts: n/a
Default ORA-01555 error

Hi guys,
We have a long-running query (CTAS) that throws up ORA-01555. This is
the only query running against the database, which is Oracle9i
(9.2.0.6). Also, automatic undo is turned off on instructions from the
application vendor. Increasing the rollback tablespace makes this error
go away although the high water mark does not justify the increase in
tablespace size.

My question is: What are all the possible causes of this error and what
can be done in each case?

Thanks.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-25-2008, 12:43 AM
Andreas Sheriff
 
Posts: n/a
Default Re: ORA-01555 error

"kwr2k" <Kanwar.Plaha@gmail.com> wrote in message
news:1133734763.039658.176820@g14g2000cwa.googlegr oups.com...
> Hi guys,
> We have a long-running query (CTAS) that throws up ORA-01555. This is
> the only query running against the database, which is Oracle9i
> (9.2.0.6). Also, automatic undo is turned off on instructions from the
> application vendor. Increasing the rollback tablespace makes this error
> go away although the high water mark does not justify the increase in
> tablespace size.
>
> My question is: What are all the possible causes of this error and what
> can be done in each case?
>
> Thanks.
>


From 9.2 manual

ORA-01555 snapshot too old: rollback segment number string with name
"string" too small

Cause: Rollback records needed by a reader for consistent read are
overwritten by other writers.

Action: If in Automatic Undo Management mode, increase the setting of
UNDO_RETENTION. Otherwise, use larger rollback segments.

Theory: What if you created this table piecewize?
CTAS {w limit}
INSERT INTO {select from w limit}...
INSERT INTO {select from w limit}

Would be interesting to test...

--

Andreas Sheriff
Oracle 9i Certified Professional
Oracle 10g Certified Professional
Oracle 9i Certified PL/SQL Developer
----
"If you don't eat your meat, you cannot have any pudding.
"How can you have any pudding, if you don't eat your meat?"

DO NOT REPLY TO THIS EMAIL
Reply only to the group.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-25-2008, 12:43 AM
DA Morgan
 
Posts: n/a
Default Re: ORA-01555 error

kwr2k wrote:
> Hi guys,
> We have a long-running query (CTAS) that throws up ORA-01555. This is
> the only query running against the database, which is Oracle9i
> (9.2.0.6). Also, automatic undo is turned off on instructions from the
> application vendor. Increasing the rollback tablespace makes this error
> go away although the high water mark does not justify the increase in
> tablespace size.
>
> My question is: What are all the possible causes of this error and what
> can be done in each case?
>
> Thanks.


9i? Automatic undo is turned off on instructions from the vendor?

Get a new vendor.

But given you current situation ... enlarge your rollback segments ...
all of them ... and they should all be the same larger size.

Then read what Tom Kyte says about this.

And put some effort into finding a competent vendor.
--
Daniel A. Morgan
http://www.psoug.org
damorgan@x.washington.edu
(replace x with u to respond)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-25-2008, 12:43 AM
Sybrand Bakker
 
Posts: n/a
Default Re: ORA-01555 error

On 4 Dec 2005 14:19:23 -0800, "kwr2k" <Kanwar.Plaha@gmail.com> wrote:

>Hi guys,
>We have a long-running query (CTAS) that throws up ORA-01555. This is
>the only query running against the database, which is Oracle9i
>(9.2.0.6). Also, automatic undo is turned off on instructions from the
>application vendor. Increasing the rollback tablespace makes this error
>go away although the high water mark does not justify the increase in
>tablespace size.
>
>My question is: What are all the possible causes of this error and what
>can be done in each case?
>
>Thanks.



Question: do you know how Google works? Yes? PLEASE, USE IT, before
posting, This is a FAQ and the issue has been dealt with AD NAUSEAM!!!

I would also recommend searching a different vendor. Disabling
automatic undo is just utterly plain stupid.

--
Sybrand Bakker, Senior Oracle DBA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-25-2008, 12:43 AM
kwr2k
 
Posts: n/a
Default Re: ORA-01555 error

Okay, thanks for all the replies. I have googled for this issue (ad
nauseam, actually). However, there haven't yet seen a satifactory
explanation hence I decided to raise it at this forum to get specific
answers.

Anyway, two things stand out clearly from all your suggestions:

1. Increase rollback segment size -- Yes, I am going to try this next
as soon as the application team is ready
2. Get a new vendor -- Yes, I would love to do this but is an
impossibility given the size and stage of the project we are in

Cheers.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-25-2008, 12:43 AM
IANAL_VISTA
 
Posts: n/a
Default Re: ORA-01555 error

"kwr2k" <Kanwar.Plaha@gmail.com> wrote in
news:1133742197.959227.119420@z14g2000cwz.googlegr oups.com:

> Okay, thanks for all the replies. I have googled for this issue (ad
> nauseam, actually). However, there haven't yet seen a satifactory
> explanation hence I decided to raise it at this forum to get specific
> answers.
>
> Anyway, two things stand out clearly from all your suggestions:
>
> 1. Increase rollback segment size -- Yes, I am going to try this next
> as soon as the application team is ready
> 2. Get a new vendor -- Yes, I would love to do this but is an
> impossibility given the size and stage of the project we are in
>


One common cause of ORA-01555 is when a COMMIT exists within a long running
cursor that is changing (INSERT/UPDATE/DELETE) data.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-25-2008, 12:43 AM
kwr2k
 
Posts: n/a
Default Re: ORA-01555 error

Hi IANAL_VISTA,
In this case, there is no commit till the end of the transaction.

UPDATE: I have set the optimal size to NULL for now. Waiting for
results from the application team. Will post them here (and probably
more questions).

Thanks all.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-25-2008, 12:43 AM
Jonathan Lewis
 
Posts: n/a
Default Re: ORA-01555 error

"kwr2k" <Kanwar.Plaha@gmail.com> wrote in message
news:1133734763.039658.176820@g14g2000cwa.googlegr oups.com...
> Hi guys,
> We have a long-running query (CTAS) that throws up ORA-01555. This is
> the only query running against the database, which is Oracle9i
> (9.2.0.6). Also, automatic undo is turned off on instructions from the
> application vendor. Increasing the rollback tablespace makes this error
> go away although the high water mark does not justify the increase in
> tablespace size.
>
> My question is: What are all the possible causes of this error and what
> can be done in each case?
>
> Thanks.
>



1) Other DML activity going on against the
data you are reading for the CTAS.

2) Your own session causing delayed block
cleanout on the data you are reading.

In either case, the first step is to check on the
efficiency of the query that the CTAS is running -
the quicker it runs, the less chance there is for
other people to generate excess rollback; the
fewer (redundant) data blocks it visits the less
likely it is to cripple itself with delayed block
cleanout.

--
Regards

Jonathan Lewis

http://www.jlcomp.demon.co.uk/faq/ind_faq.html
The Co-operative Oracle Users' FAQ

http://www.jlcomp.demon.co.uk/cbo_book/ind_book.html
Cost Based Oracle: Fundamentals

http://www.jlcomp.demon.co.uk/appearances.html
Public Appearances - schedule updated 29th Nov 2005


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-25-2008, 12:43 AM
Eagle Fan
 
Posts: n/a
Default Re: ORA-01555 error

If you can't tune your sql to be more efficient, you can try to
separate the long query into some small parts.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-25-2008, 12:44 AM
boogab00@yahoo.com
 
Posts: n/a
Default Re: ORA-01555 error


Sybrand Bakker wrote:
> On 4 Dec 2005 14:19:23 -0800, "kwr2k" <Kanwar.Plaha@gmail.com> wrote:
>
> >Hi guys,
> >We have a long-running query (CTAS) that throws up ORA-01555. This is
> >the only query running against the database, which is Oracle9i
> >(9.2.0.6). Also, automatic undo is turned off on instructions from the
> >application vendor. Increasing the rollback tablespace makes this error
> >go away although the high water mark does not justify the increase in
> >tablespace size.
> >
> >My question is: What are all the possible causes of this error and what
> >can be done in each case?
> >
> >Thanks.

>
>
> Question: do you know how Google works? Yes? PLEASE, USE IT, before
> posting, This is a FAQ and the issue has been dealt with AD NAUSEAM!!!
>
> I would also recommend searching a different vendor. Disabling
> automatic undo is just utterly plain stupid.
>
> --
> Sybrand Bakker, Senior Oracle DBA


Don't know why I bother, but Mr. Bakker, if you're just going to slam
someone, it's best not responding at all.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:47 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com