Skip to Main Content
  • Questions
  • ORA-12008: error in materialized view refresh path ;;; PLZ HELP ME TOM

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Wissem.

Asked: August 20, 2007 - 5:19 am UTC

Last updated: August 05, 2019 - 9:05 am UTC

Version: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0

Viewed 50K+ times! This question is

You Asked

Hi Tom,

I 'm using Oracle Database 10g Enterprise Edition Release 10.2.0.1.0; I got these errors when I tried to refresh my materialized view ;

ORA-12008: error in materialized view refresh path
ORA-01555: snapshot too old: rollback segment number 5 with name "_SYSSMU5$"
too small
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2255
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2461
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2430


I don't understand what mean these errors and why i got them?

Someone can help me please ?

Thanks
regards,

and Tom said...

you have set your undo retention period too short - this is a classic ora-1555 (search asktom for that, hundreds of articles on ora-1555)

increase your undo retention to be longer than your longest running query (or refresh in this case)

make sure you have sufficient undo tablespace configured as well.

Rating

  (3 ratings)

Is this answer out of date? If it is, please let us know via a Comment

Comments

I´m same problem

Bin, October 16, 2009 - 9:25 am UTC

I have same problem about refresh materialized view. My materialized view has been executing in a job in diferents times, at 6:00 AM and at 4:00Pm but it error happening only 6:00AM would be need increase the retention period too?

snapshot too old error why on materialized view refresh

raju, September 20, 2012 - 12:34 pm UTC

Hi Tom,

first of all, thanks for your great posts on different topics of Oracle.

1.i understand that this error happens on the long running queries(while the accessed rollback segments are overwritten). But why this error occurs during materialized view refresh(long running)?

2.i asked the above question, because, i have set the undo_retention to 23000 and undo tablespace size to 7gb

as per the guidelines in the below link, but i still get this error(snapshot too old error) :

http://www.akadia.com/services/ora_optimize_undo.html

the below is the exact error message, i am getting

BEGIN DBMS_MVIEW.REFRESH('test_info_mv2','C'); END;

*
ERROR at line 1:
ORA-12008: error in materialized view refresh path
ORA-01555: snapshot too old: rollback segment number 2 with name "_SYSSMU2$"
too small
ORA-02063: preceding line from OPRD.DSTB.NET
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2537
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2743
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2712
ORA-06512: at line 1

do i still need to increase the undo_retention and undo tablespace size?

thanks in advance.

regards
Tom Kyte
September 26, 2012 - 12:07 pm UTC

1) because there would be a long running query in a long running refresh.

2) so either the undo retention is too low (does the fresh take longer than ~6 hours?) or 7gb is insufficient to hold the amount of undo you generate (are you looking to see if we are having to expire extents prematurely? look in v$undostat)



you need to decide if undo retention is long enough (6 hours - is that long enough?) and if 7gb is sufficient to hold 6 hours worth (are we expiring extents prematurely?)

I am getting the below error..Any input?

A reader, August 01, 2019 - 11:58 pm UTC

ORA-12008: error in materialized view refresh path
ORA-00600: internal error code, arguments: [ktbsdp1], [], [], [], [], [], [], [], [], [], [], []
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 85
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2199
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 2778
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 3058
ORA-06512: at "SYS.DBMS_SNAPSHOT", line 3017
ORA-06512: at "DWCOMMON.DWCOMMON_PKG", line 105
ORA-06512: at line 3
Connor McDonald
August 05, 2019 - 9:05 am UTC

Whenever you get

ORA-00600: internal error code, arguments: [ktbsdp1], [], [], [], [], [], [], [], [], [], [], []

its time to talk to Support. They will probably refer to MOS note 1959229.1

Cause: The Materialized Views were defined as WITH PRIMARY KEY but the primary key constraints did not exist due to errors when running the creation scripts.