Tablespace TEMP too small

Hi all


We have a database Oracle 10.2.0.4 Reporting, each batch of al night data is refreshed from production databases.
For this update this database uses complex Materialized View definitions.

We continue to recently short TEMP tablespace during the updating of these MV. The TEMP tablespace has recently increased several times (in the past months 15 GB to 25 GB total).
The great MV is only 3 GB big. Especially one that has lacked tablespace TEMP last night is only 1 GB big.
The error message:

ORA-12008: error path refresh materialized view
ORA-12801: error reported in the parallel query P002 Server
ORA-01652: unable to extend temp segment of 64 in tablespace TEMP

Can someone tell me what could cause this behavior?

Some features:

Oracle 10.2.0.4
Platform: AIX 5.3 TL06

SGA_TARGET = 3504M
PARALLEL_MAX_SERVERS = 8
temp_tablespace_size = 25600 MB

Thanks in advance

It seems that it is just the pure-grunt that are necessary to update this particular MV which is the single drain on the space. Of the top line of the PLAN to EXPLAIN:

SELECT STATEMENT SELECT cost: * 278 496 * bytes: * 13,752,541,260 * cardinality: * 18,864,940 *.

The statistics are up-to-date, and these estimates are reasonably accurate, more than 13 billion bytes of data are involved and close to 19 million lines. And from him alone, it seems that the temp space required is not particularly excessive.

Are the statistics on the base to update tables (dwh_products_dim, dwh_months_dim, dwh_customers_dim, dwh_financial_fct)? And have you tried to run it manually with parallelism turned off?

And, have you ever tried to set up a quick refresh?

Either way, I wouldn't be too concerned with the size of the end of the MV and how this could be a determinant of temporary space in the materialization of this one, which will be generally the smallest to the largest being the amount of aggregation in the source query.

Published by: Seanmacgc on April 15, 2009 03:01

Tags: Database

Similar Questions

  • ORA-02354: Error exporting/importing data, ORA-01555: snapshot too old: rollback segment number with the name "" too small

    Hello

    I am getting below error while taking expdp backup table of BLOB.

    ORA-31693: Data Table object 'HCLM_ADMIN '. "' SCAN_UPLOADEDFILES_TEMP ' failed to load/unload and being ignored because of the error:

    ORA-02354: Error exporting/importing data

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

    ORA-22924: snapshot too old

    ORA-31693: Data Table object 'HCLM_ADMIN '. "' TPA_FAXWATCHER ' failed to load/unload and being ignored because of the error:

    ORA-02354: Error exporting/importing data

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

    ORA-22924: snapshot too old

    We have already set aside retention to 50000 .table structure are:

    SQL > show Cancel parameter

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    UNDO_MANAGEMENT string AUTO

    UNDO_RETENTION integer 50000

    undo_tablespace string UNDOTBS1

    SQL > alter table hclm_admin. SCAN_UPLOADEDFILES_TEMP modify lob (FILE_BLOB) (RETENTION);

    Modified table.

    SQL > select nom_de_colonne, pctversion and retention

    from dba_lobs where owner = 'HCLM_ADMIN' and table_name = "SCAN_UPLOADEDFILES_TEMP";

    COLUMN_NAME

    --------------------------------------------------------------------------------

    PCTVERSION RETENTION

    ---------- ----------

    FILE_BLOB

    50000

    SQL > alter table hclm_admin. TPA_FAXWATCHER modify lob (FILEDATA_BLOB) (RETENTION);

    Modified table.

    SQL > select column_name, pctversion and retention of dba_lobs where owner = 'HCLM_ADMIN' and table_name = "SCAN_UPLOADEDFILES_TEMP";

    Column_name PCTVERSION RETENTION

    ---------- ----------

    FILE_BLOB

    50000

    CREATE TABLE HCLM_ADMIN. TPA_FAXWATCHER

    (

    FILENAME_VAR VARCHAR2 (50 BYTE),

    DATE OF CREATED_DATE_DTE,

    FILEPATH_VAR VARCHAR2 (100 BYTE),

    DATE OF TIMESTAMP_DTE,

    FAXNO_VAR VARCHAR2 (15 BYTE),

    DEPARTMENT_VAR VARCHAR2 (50 BYTE),

    REQUESTTYPE_VAR VARCHAR2 (50 BYTE),

    TAGTO_VAR VARCHAR2 (50 BYTE),

    REMARK_VAR VARCHAR2 (1000 BYTE),

    DOCTYPE_VAR VARCHAR2 (50 BYTE),

    TAGTOVALUE_VAR VARCHAR2 (50 BYTE),

    DOCTYPE_OTHER_VAR VARCHAR2 (50 BYTE),

    HEGIC_NO_VAR VARCHAR2 (50 BYTE),

    RECORDNO_NUM NUMBER OF NON-NULL,

    FILEDATA_BLOB BLOB,

    DATE OF FAXLOCKDATE_DTE,

    NUMBER OF FAXLOCKSTATUS_VAR

    FAXLOCKBYUSER_VAR VARCHAR2 (50 BYTE)

    )

    (STORE AS) LOB (FILEDATA_BLOB)

    TABLESPACE HCLM_ALERTSVC

    ALLOW ONLINE STORAGE

    8192 CHUNK

    RETENTION

    NOCACHE

    LOGGING

    INDEX)

    TABLESPACE HCLM_ALERTSVC

    STORAGE)

    64K INITIALS

    ACCORDING TO 1 M

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    DEFAULT USER_TABLES

    ))

    STORAGE)

    64K INITIALS

    ACCORDING TO 1 M

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    DEFAULT USER_TABLES

    ))

    TABLESPACE HCLM_ALERTSVC

    PCTUSED 0

    PCTFREE 10

    INITRANS 1

    MAXTRANS 255

    STORAGE)

    64K INITIALS

    ACCORDING TO 1 M

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    DEFAULT USER_TABLES

    )

    LOGGING

    NOCOMPRESS

    NOCACHE

    NOPARALLEL

    MONITORING;

    ALTER TABLE HCLM_ADMIN. (ADD) TPA_FAXWATCHER

    KEY ELEMENTARY SCHOOL

    (RECORDNO_NUM)

    USING INDEX

    TABLESPACE HCLM_ALERTSVC

    PCTFREE 10

    INITRANS 2

    MAXTRANS 255

    STORAGE)

    64K INITIALS

    ACCORDING TO 1 M

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    ));

    CREATE TABLE HCLM_ADMIN. SCAN_UPLOADEDFILES_TEMP

    (

    NUMBER OF TEMPID_NUM

    SESSION_ID VARCHAR2 (200 BYTE),

    NUMBER OF UPLOADFILE_NUM

    NUMBER OF DOCNO_NUM

    NUMBER OF SCANJOB_NUM

    FILENAME_VAR VARCHAR2 (200 BYTE),

    FILETYPE_VAR VARCHAR2 (200 BYTE),

    FILE_BLOB BLOB,

    VARCHAR2 (200 BYTE) FLAG,

    NUMBER OF USERID_NUM

    CREATED_DATE DATE

    )

    (STORE AS) LOB (FILE_BLOB)

    TABLESPACE PHCLMDBTBS

    ALLOW ONLINE STORAGE

    8192 CHUNK

    RETENTION

    NOCACHE

    LOGGING

    INDEX)

    TABLESPACE PHCLMDBTBS

    STORAGE)

    64K INITIALS

    ACCORDING TO 1 M

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    DEFAULT USER_TABLES

    ))

    STORAGE)

    64K INITIALS

    ACCORDING TO 1 M

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    DEFAULT USER_TABLES

    ))

    TABLESPACE PHCLMDBTBS

    PCTUSED 0

    PCTFREE 10

    INITRANS 1

    MAXTRANS 255

    STORAGE)

    64K INITIALS

    ACCORDING TO 1 M

    MINEXTENTS 1

    MAXEXTENTS UNLIMITED

    PCTINCREASE 0

    DEFAULT USER_TABLES

    )

    LOGGING

    NOCOMPRESS

    NOCACHE

    NOPARALLEL

    MONITORING;

    Kind regards

    Hello

    First check the lob corrupt as:

    SQL > create table corrupted_lob_data (corrupted_rowid rowid);

    Table created.

    SQL > set off concat

    SQL >

    declare

    SQL > error_1555 exception;

    pragma exception_init (error_1555,-1555);

    number num.

    Start

    for cursor_lob in (select rowid r, & lob_column of table_owner. & table_with_lob) loop

    Start

    NUM: = dbms_lob.instr (. cursor_lob & lob_column, hextoraw ('889911'));

    exception

    When error_1555 then

    insert into corrupted_lob_data values (cursor_lob.r);

    commit;

    end;

    end loop;

    end;

    2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

    17.

    Enter the value of lob_column: FILE_BLOB

    Enter the table_owner value: hclm_admin

    Enter the value of table_with_lob: SCAN_UPLOADEDFILES_TEMP

    former 6: for cursor_lob in (select rowid r, & lob_column of table_owner. & table_with_lob) loop

    6 news: for cursor_lob (select rowid r, FILE_BLOB of hclm_admin loop SCAN_UPLOADEDFILES_TEMP.)

    old 8: num: = dbms_lob.instr (. cursor_lob & lob_column, hextoraw ('889911'));

    8 new: num: = dbms_lob.instr (cursor_lob. FILE_BLOB, hextoraw ('889911'));

    PL/SQL procedure successfully completed.

    SQL > select * from corrupted_lob_data;

    CORRUPTED_ROWID

    ------------------

    AAASF/AAKAABacyAAA

    To resolve this problem, we have 3 options

    (1) to restore and recover the LOB segment using physical backup.

    (2) empty LOBs affected using the UPDATE, as mentioned in the Note 787004.1statement:

    SQL > update SCAN_UPLOADEDFILES_TEMP

    Set FILE_BLOB = empty_blob()

    where rowid in (select corrupted_rowid

    of corrupted_lob_data);

    SQL > commit;

    (3) perform the export, excluding the corrupt ROWID. by adding the following to export command parameter

    Query =------"where rowid not in (\'AAASF/AAKAABacyAAA\'\) \ \" "

    Kind regards

    Alok Dwivedi

  • Tablespace Temp created primary not replicated to standby mode

    Hello

    I configured Oracle 9i data guard recently, while doing, that I was forced to restructure primary db since maxlog files was 5, so I used backup controlfile to trace and changed the maxlogfiles to 6 and then transported the remaining steps. While I was using the trace file and restructuring of the Db, I did not notice that I missed to add the temporary file and moving it in standby mode. Yest.Day once get a team request error, that I created a new tablespace temp and logs switch made, however this tablespace temp tempfile was not copied to the standby server. Does this cause anything serious or can I do now to copy it in standby? Only the manual copy with primary db shutdown or any other means?

    standby
    SQL > SELECT NAME FROM V$ TEMPFILE;

    no selected line

    Use the commands below

    SQL > alter tablespace add tempfile ' D:\ORACLE\ORADATA\CTSOC\TEMPNEW01. DBF' size 31457280;

    If you take controlfile trace (or) metadata, you can see command DDL that too.
    Thank you.

  • Restored coldbackup and trouble with tablespace TEMP

    Hi, I've successfully restored from a coldbackup on solaris. (oracle 9.2)
    I can connect to databases using toad, query the database, but when I try to take an export or something I got the error

    EXP-00056: ORACLE error 1157
    ORA-01157: cannot identify/lock data file 203 - see DBWR trace file
    ORA-01110: data file 203: ' / sun2int1/oracle92/app/oracle/product/9.2.1/oradata/TPRS/temp03.dbf'
    ORA-06512: at "SYS." DBMS_LOB", line 424
    ORA-06512: at "SYS." Dbms_metadata", line 1140
    ORA-06512: at line 1
    EXP-00000: export completed unsuccessfully


    When I did the restore, I simply rename the data files and redo logs.
    But I was not rename the TEMP data file, as you can rename it with a command 'alter database rename file... ". »
    That's the problem!

    I plan to create a new default temp. tablespace and simply do it by default and a drop. but it does not work!

    I tried to run:

    CREATE a TABLESPACE TEMPORARY TMP4 TEMPFILE ' / oracleAS/TPRS/oradata/TPRS/temp4.dbf' SIZE 5 M REUSE AUTOEXTEND ON NEXT 1 M MAXSIZE unlimited
    EXTENT MANAGEMENT UNIFORM LOCAL 1 M SIZE;

    create tablespace temp01 temporary tempfile ' / oracleAS/TPRS/oradata/TPRS/temp01.dbf' size 100M;

    but they all hang! I wait, but nothing happens! (and the alert log will not connect anything too)

    Finally, I tried to drop the default tablespace and I couldn't let it go as I thought. (ORA-12906: cannot remove the temporary tablespace default)
    )

    So, im stuck and I think I should RENAME the data file for the temporary tablespace. How can I do this?

    Published by: merope on June 9, 2009 11:32

    I just found this link:
    http://dbaforums.org/Oracle/lofiversion/index.php?t4552.html
    which is something talk no problem of tablespace temp cold backup restore. In the end, it's say that the OP got solution due to the existence of a DDL trigger or something like that.

    HTH
    Girish Sharma

  • Doubt about tablespace temp

    Hi all

    DB version: 9.2.0.4.1
    version of the operating system: windows 2003 server sp2 (64-bit)

    the application team runs a job of loading each month which requires more temp tablespace.
    so every time my colleague will create new tablespace temp with 30 GB in size and makes it as default.
    He will be too old (old temp is also 30 GB).

    (1) if we do not create a new, old temp will be reused?
    (2) is it a bug in this version so that temp is not re-used? (unfortunately, my colleague don't know the answers for these)

    also, according to my understanding, oracle will not release tablespace temp paques1861 once the work is completed. Instead it is attributed to another transaction when required.
    Please correct if I am wrong.

    Thanks in advance.

    Glance,

    It's pretty simple: just as it is easy to become addicted to alcohol and hard to get rid of him, it is easy to increase a tablespace and hard to reduce its size.
    When you have
    -SQL with the runaway temporary use
    AND
    -you are convinced Oracle must release tablespace temp (which it doesn't)
    you use measures like your colleague has set up.

    Apart from wasting your time (you'd better give that SQL), you do nothing.

    Oracle does not release space for some reason:
    outside the allocation and release of the extents over and over again are very expensive.
    You want to avoid that.

    --------
    Sybrand Bakker
    Senior Oracle DBA

  • Safari 10: too small font size

    After the installation of Safari 10.0 this morning, nothing is as it used to be - printing on most websites is too small for me to read. The option to adjust the size to a minimum size by default in the Preferences window has disappeared; pages can be enlarged in 125, 150% etc but not what I want.

    I no has not upgraded to the latest version of Safari to end up reading texts too small they are printed on stamps!

    Do these guys at apple all this walk with a watchmakers eyepiece? All solutions (style sheets?)?

    There are a number of discussions on this issue with your same concern. I agree, the issue of font size is really bad and the zoom function is NOT a way to solve this problem. As others have suggested sending back to Apple is a way of approaching the question with the hope that they give the choice of font size in preferences rather than this impassable zoom feature.

  • The pop-up box to define privacy choices is too small. Only half of the text is available. Unable to access the "EDIT" button to the right to save the settings.

    I can't change any settings that are shown in a popup box. The box is too small to contain the message and cannot be adjusted. I can make changes, but cannot save them. As a result, I am stuck with either save no history, or the history. My problem is to save the cookies but the problem is extensive. I am running Firefox 41.0 2 under Ubuntu LTS 14.04. This problem did not until the 41.x update. At that time, my settings in Firefox are YOU, and I had to reload all the preferences, (several times). Thunderbird doesn't seem to be affected.

    The text seems important enough in the screenshot.

    You have a size of upper text somewhere (Firefox or Linux settings)?

  • resolution of 4 k too small icons

    I bought a 4 k (Samsung UE590) screen.

    I m using a MacBook Pro of the retina (end 2013) with a DisplayPort adapter cable MiniDisplayPort (Thunderbolt) to. I m running a resolution of 3840 x 2160. He runs @60 as Hz as opposed to what support page Apple´s suggests.

    I know that some people are complaining that the icons and text were too small, but I thought that Mac OS 10.10 and above solves this problem.

    I have the same problem, all the icons and text are much too small. Is there a high way to end it without losing resolution 4 k?

    OS X El Capitan: make it easier to see what is on the screen

  • Google calendar appears too small to see in windows 8.1

    While in the past google calandar was normql, now in firefox is too small to see. This happens in every night and firefox but not on opera. I use windows8.1 on laptop. everything else is normal.

    Check that you did not Zoom in the Page 'out '.
    This can happen quite easily if the user keeps the CTRL key and use the mouse wheel to scroll the page.

    https://support.Mozilla.org/en-us/KB/font-size-and-zoom-increase-size-of-Web-pages#w_zoom-in-and-out-of-a-website

  • Printing in the columns of the object is too small for my old eyes. :-)

    When I look at the screen that lists the emails and who they come from, dates, etc., they are too small. I have dumbed down Safari screen resolution so it will work, but none of your tips explains how to expand the guy I see.
    Thank you.

    I think that this module will help you: https://addons.mozilla.org/en-us/thunderbird/addon/theme-font-size-changer

    How to install: http://chrisramsden.vfast.co.uk/3_How_to_install_Add-ons_in_Thunderbird.html

  • U / I is a small window + preference cannot be seen on imac too small popup

    When the T-Bird opens in the 21 "iMAC is the OS of Yellowstone, is a small window and I have to manually expand... and when I go to preferences that the popup is too small and cannot move the Info window to read, despite the police being large enough. The popup is static in size so I can't expand. Since the installed version, in the last three weeks, cannot be found because of this problem. Sorry, can take a screen shot for you.

     My question then is: will there an update soon or will I need to switch to another?
    

    Apparently there is no solution as indicated by the lack of answers. Thanks guys, no answer is a good answer indeed. I will go to a different e-mail program.

  • Print too small to read from the printer to the Page shrink on 30%

    When printing on Xerox 7225 e-mail, printing is too small to read even with retractable page on 30%. last email is from an AOL account and wrap the header lines. This problem is new.

    Select the e-mail
    'File' > 'Print Preview '.

    You can change the font size by changing the 'ladder '.

    increase level to increase the police.
    so start by selecting: scale = 100%
    When everything looks correct, click on the button 'print '.

  • R button too small, wrong place

    The Refresh button on Firefox is too small and in the wrong place. With Chrome, it is to the left of the address bar and is of an appropriate size. In Firefox, it is too small and the right size.

    How can I increase the size of the buttons and move it to the left of the address bar?

    In fact, I think this solves: https://addons.mozilla.org/en-US/firefox/addon/metal-lion-addressbar-improvem/?src=dp-dl-othersby

  • The Web site is too small to read

    On a single website (Noxxic.com), I have somehow shrunk the whole site is too small. Yes, the display is set in full screen. The beginning of the problem occurred when suddenly my mouse wheel had control of displayed information & I rolled the scroll wheel and locked it in a smaller position. I tried without success to reproduce the situation.

    I have cleared the cache, cookies and history within the application

    Hello, try pressing ctrl + 0 ("zero") while you are on the page to restore the zoom level or where it does not browse other troubleshooting procedures common to the Web sites look bad or appear differently than they should.

  • iCloud not able to download the Photos because they are too small

    I'm trying to install iCloud and download all my photos from the photos app. However, about 500 (out 3,00) cannot be downloaded, because they are "too small". Is there a solution to this? Also once I have downloaded them will be safe to remove them from the photos app to create a space on my mac?

    See you soon.

    I have not heard of "too small" subject problem and cannot help with that.

    Regarding

    Also once I have downloaded them will be safe to remove them from the photos app to create a space on my mac?

    Note If you are using iCloud photo library (Apple menu > System Preferences > iCloud > Photos > iCloud photo library) all photos you delete app Photos on your Mac will also be deleted photos at https://www.icloud.com/ and any other device connected to this library to iCloud. Apple offers no option only cloud storage for Photos. iCloud library is primarily designed for photos of synchronization between devices rather than as cloud storage only. You can reduce the amount of storage space required on your Mac by opening the photo and then click on Preferences in the menu called Photos, click on iCloud in the bar at the top of the preferences window and select "Optimize Mac Storage."

Maybe you are looking for