Error ORA-01652 while running select query

A select query returning millions of records is returning the following error.
SQL Error [
ORA-01652: unable to extend temp segment by 128 in tablespace TEMP
We requested DBA to increased the TEMP tablespace. He increased it to 20GB and also, changed to Autoextent.
When we executed the query again, we got the same error ?
What could be the reason of this issue and how it can be resolved ?

All sort operations that don't fit into the SORT_AREA_SIZE will go to the temp tablespace (they can be seen as direct writes in the trace file).
It can easy be the case, that your temp tablespace needs to be many GB in size [we have a table with millions of rows and for the loading/merging our temp is 80GB in size].
May be you can change your process of loading i.e. with this select you fill a intermediate table (with CTAS) and do your processing there or even try to do the processing in SQL while building the table. You could also try to do the processing with a cursor and BULK COLLECT LIMIT 100 and then inserting into the target table with the FORALL statement.

Similar Messages

  • Facing error- ORA-23324: while running DBMS_JOB.run(job#)

    Hi,
    I am a new comer to this forum. I'm facing the follwing error
    while running a push job in multimaster replication env. Though
    able to delete the pending transactions from Deftran relating to
    two groups which i'm going to resync.
    ORA-23324: error ORA-06512: at line , while creating deferror
    entry at "DB.WORLD" with error 100
    ORA-06512: at "SYS.DBMS_DEFER_SYS", line 1425
    ORA-06512: at "SYS.DBMS_DEFER_SYS", line 1488
    ORA-06512: at line 1
    any help is appreciated.
    thanks
    Hsingh

    I apologize if you already solved this.. but see Metalink ID 790221.1
    +*<Moderator Edit - deleted contents of MOS Doc - pl do NOT post such content - it is a violation of your Support agreement>*+                                                                                                                                                                                                                                                                                                                                                                                                               

  • MDX Error in WebI while running Bex Query

    Dear Experts,
    In my System BO XI R3.1 Enterprise and Integration kit For SAP has installed.
    While creating query with Efashion and MS Acess files query is running fine.
    But in case of BI queries(InfoCube or BEx Query) it is giving "Select Dimension 1 CrossJoin Dimension2...."Error(10901).
    Test Connection of BI (The server is responding)is working fine.
    How to solve the issue?
    Thanks in Advance
    Venkat P

    Hi Venkat,
    Obviously there is something wrong with your query.
    What happens if you parse the MDX using the BW transaction MDXTEST  - does it work ok?
    You need to try and identify at what point the query is failing, i.e. is it caused at the BW layer or is it a problem at the XI3.1 application layer...?
    I hope this is a very helpful answer to you.
    Kind regards,
    John

  • ERROR ORA-30200 IN RUNNING CREATION FILE - Forms [32 Bit]

    Running a process of Forms [32 Bit] Version 6.0.5.35.3 get the error ORA-30200 while running the same process from a different computer file creation occurs in a correct way (This is a client-server)
    The form uses the TEXT_IO and specifically the following functions
    TEXT_IO.FILE_TYPE;
    TEXT_IO.FOPEN (FILE, 'W');
    TEXT_IO.PUT_LINE (OUT_FILE CR);
    TEXT_IO.FCLOSE (OUT_FILE);
    At this point I believe that the problem is not in form but more in the PC used for the implementation thereof; Can you help on what to monitor and especially if there are requirements for the client so that TEXT_IO functions properly.
    Thank you very much ...

    Daniele,
    What is the format of the file name you are creating? I did a quick Google search and the common thread I found was a reference to a file name used "Long File Names" instead of the old 8.3 format. It is also possible that this error could result from the user not having permission to write to the file location.
    Craig...

  • Database Error while running the query.

    Hi,
    While running the query in webi rich client i am having a "database error IES 10901 and WIS 10901" , it is showing that the data source name not found and default driver is not specified.
    I am trying to generate report from efashion universe which is in .unx format, same client version and universe is running fine on another machine (webi rich client).
    PS: The above mentioned universe is running fine on my BI launch pad, the problem is with webi rich client only.
    Please help!!

    Hi,
    Which Database your are using .
    As explained by Yuvraj You need to install driver for specific database .
    Ask for client or (your Database ) driver from administrator .
    After installation you can see your database Driver in following path
    Control Panel\System and Security\Administrative Tools\Data Sources (ODBC)
    See in Drivers Tab .
    If you are using oracle & client is install on your system then Check TNS Names File in NETWORK folder .

  • Error message while running a query

    Hello experts,
    While running a query I am getting an error message as :
    Abort error 'connection closed (no data) in RSRDC_CUBE_DATA_GET_RFC could not
    Abort system error in program SAPLRRK0 and form RSRDR; SRRK0F30-01-
    please advice what are these errors, cause and resolution for these errors.
    Thanks,
    Anamika

    Hi Anamika,
             If you are running your query in Web Portal, it seems your web portal is not defined in RFC connection with system. Ask BASIS to connect it.
             Also, You can run your report in RSRT with ABAP Web option and check if it is working on ABAP engine.
    Regards,
    Harpal
    Edited by: Harpalsinh Gohil on Aug 17, 2009 2:53 PM

  • No Data Shown because an error occurred while running the query

    Discoverer 10gR2 using Plus on Firefox:
    I have one workbook. The first sheet summarizes by Vendor. Parameters are Type, Category, Vendor (all optional) and mandatory date range.
    The second sheet summarized by Vendor and Model. Parameters are Type, Category, Vendor, Model (all optional) and mandatory date range.
    All parameters except the extra "Model" are shared between the sheets.
    When I run the Vendor sheet, parameters pop up, I put in dates and leave the rest blank. Results display. Yeah!
    When I then run the Model sheet, parameters pop up again (because it has one more parameter). Dates carry forward, leave the rest blank. I get the error No Data Shown because an error occurred while running the query. Refreshing does not help.
    If I click back to the Vendor sheet, then come back to the Model sheet, no parameter screen and the query runs.
    Booooo.
    Have tried multiple DBs, multiple EULs, multiple underlying data sources, replacing the offending parameter with a whole new one, no difference.
    Has any body run into this behavior? Is there an answer?
    -- Ron Olcott, Business Intelligence Product Manager

    What about trying this. On the parameter definition, you have a section on the bottom left of the Parameters window, called "Do you want to allow different parameter values for each worksheet?". When you say in your posting that all but the Model parameter is shared, I assume you mean that you have set this section value to "Allow only one set of paratmeter values for all worksheets". Try setting this to "Allow different parameter values for each worksheet". See if that might make a difference for you. If that works, you may have to leave the option at this, as the lesser of your evils. From my limited experience, the "Allow only one set of parameter mvalues for all worksheets" is a bit flaky in how it works. So I pretty much have gone to always saying to allow different parameter values for each worksheet. Hope this helps a bit. If worse comes to worse, if you have not done so already, log a service request with support and see what they say. Good luck.
    John DIckey

  • Am facing this error sqlcode :-6502 while running sql code in plsql block

    Am facing this error sqlcode :-6502 while running sql code in plsql block.
    am using query :
    SELECT SUBSTR('123456DE789KL|987654321|B',1,INSTR('123456DE789KL|987654321|B','|')-1) FROM DUAL;
    CAN any body tell me why.

    BD_Fayez wrote:
    I've tried the following, but don't get any error.As I mentioned, most likely variable is too short:
    SQL> declare
      2  strSub varchar2(2);
      3  begin
      4  SELECT SUBSTR('123456DE789KL|987654321|B',1,INSTR('123456DE789KL|987654321|B','|')-1) into strSub FROM DUAL;
      5  dbms_output.put_line(strSub);
      6  end;
      7  /
    declare
    ERROR at line 1:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06512: at line 4
    SQL> SY.

  • SQL Error: ORA-01791: not a SELECTed expression 01791. 00000 -  "not a SELE

    guys getting an error with a simple query. help me out please.
    the query is:
    select DISTINCT(product_code ||' ' || subproduct_code ||' '|| position_number) from alm_owner.wrr_recon_source order by product_code, subproduct_code, position_number;
    Error report:
    SQL Error: ORA-01791: not a SELECTed expression
    01791. 00000 - "not a SELECTed expression"
    *Cause:   
    *Action:
    any help is much appriciated.

    Raghunadh wrote:
    Yes. If he wants the result to be sorted on product_code, he can do something like:
    select DISTINCT Det from (
    select product_code ||' ' || subproduct_code ||' '|| position_number as Det
    from alm_owner.wrr_recon_source)
    order by substr(product_code,1);This will atleast sort the first section of the result. For example,
    @raghu> select distinct det from (select empno ||' ' || ename ||' '|| sal Det from emp);
    DET
    7499 ALLEN 1600
    7369 SMITH 5600
    7844 TURNER 7000
    7900 JAMES 950
    7654 MARTIN 6500
    7698 BLAKE 2850
    7788 SCOTT 3000
    7934 MILLER 6600
    7566 JONES 2975
    7839 KING 5000
    7521 WARD 1250
    7369 SMITH 800
    7844 TURNER 1500
    7876 ADAMS 1100
    7934 MILLER 1300
    7876 ADAMS 6200
    7782 CLARK 2450
    7521 WARD 6500
    7900 JAMES 5900
    7902 FORD 3000
    @raghu> select distinct det from (
    2  select empno ||' ' || ename ||' '|| sal Det from emp) order by substr(det,1);
    DET
    7369 SMITH 5600
    7369 SMITH 800
    7499 ALLEN 1600
    7521 WARD 1250
    7521 WARD 6500
    7566 JONES 2975
    7654 MARTIN 6500
    7698 BLAKE 2850
    7782 CLARK 2450
    7788 SCOTT 3000
    7839 KING 5000
    7844 TURNER 1500
    7844 TURNER 7000
    7876 ADAMS 1100
    7876 ADAMS 6200
    7900 JAMES 5900
    7900 JAMES 950
    7902 FORD 3000
    7934 MILLER 1300
    7934 MILLER 6600(Dont worry about the records in emp table, I inserted some sample duplicate records to test something)I don't understand what SUBSTR(det,1) is for. That's the same as ORDER BY det surely? Which is also the same as ORDER BY empno ||' ' || ename ||' '|| sal....
    Edited by: Bravid on Mar 2, 2012 11:56 AM

  • READER_1_1_1RR_4035SQL Error [ ORA-01652: unable to extend temp segment b

    Hi,
    I am still facing the error for table space evnthough datafile is avl
    READER_1_1_1     RR_4035     SQL Error [
    ORA-01652: unable to extend temp segment by 128 in tablespace TEMP2
    Database driver error...
    Function Name : Execute
    SQL Stmt : SELECT
    ONLINE     DATA     PERMANENT     LOCAL     200     0.063     0.03
    ONLINE     DEV1_BIPLATFORM     PERMANENT     LOCAL     64     44.313     69.24
    ONLINE     DEV1_IAS_TEMP     TEMPORARY     LOCAL     100     0     0
    ONLINE     DEV1_MDS     PERMANENT     LOCAL     100     5.438     5.44
    ONLINE     DEV_BIPLATFORM     PERMANENT     LOCAL     64     44.313     69.24
    ONLINE     DEV_IAS_TEMP     TEMPORARY     LOCAL     100     0     0
    ONLINE     DEV_MDS     PERMANENT     LOCAL     100     5.438     5.44
    ONLINE     EXAMPLE     PERMANENT     LOCAL     975.188     109.125     11.19
    ONLINE     FLA_TBS1     PERMANENT     LOCAL     10     0.063     0.63
    ONLINE     MES_DW2     PERMANENT     LOCAL     2,091.19     1,794.19     85.8
    ONLINE     SYSAUX     PERMANENT     LOCAL     1,245.38     906.938     72.82
    ONLINE     SYSTEM     PERMANENT     LOCAL     3,300.00     2,429.44     73.62
    ONLINE     TEMP     TEMPORARY     LOCAL     24,458.00     5,020.00     20.52
    ONLINE     TOOLS     PERMANENT     LOCAL     1,050.00     0.063     0.01
    ONLINE     UNDOTBS1     UNDO     LOCAL     2,670.00     95.438     3.57
    ONLINE     USERS     PERMANENT     LOCAL     43,530.98     30,366.30     69.76

    No Sense:
    ORA-01652: unable to extend temp segment by 128 in tablespace TEMP2
    tablespace TEMP2
    Database driver error...
    Function Name : Execute
    SQL Stmt : SELECT
    ONLINE     DATA     PERMANENT     LOCAL     200     0.063     0.03
    ONLINE     DEV1_BIPLATFORM     PERMANENT     LOCAL     64     44.313     69.24
    ONLINE     DEV1_IAS_TEMP     TEMPORARY     LOCAL     100     0     0
    ONLINE     DEV1_MDS     PERMANENT     LOCAL     100     5.438     5.44
    ONLINE     DEV_BIPLATFORM     PERMANENT     LOCAL     64     44.313     69.24
    ONLINE     DEV_IAS_TEMP     TEMPORARY     LOCAL     100     0     0
    ONLINE     DEV_MDS     PERMANENT     LOCAL     100     5.438     5.44
    ONLINE     EXAMPLE     PERMANENT     LOCAL     975.188     109.125     11.19
    ONLINE     FLA_TBS1     PERMANENT     LOCAL     10     0.063     0.63
    ONLINE     MES_DW2     PERMANENT     LOCAL     2,091.19     1,794.19     85.8
    ONLINE     SYSAUX     PERMANENT     LOCAL     1,245.38     906.938     72.82
    ONLINE     SYSTEM     PERMANENT     LOCAL     3,300.00     2,429.44     73.62
    ONLINE     TEMP     TEMPORARY     LOCAL     24,458.00     5,020.00     20.52
    ONLINE     TOOLS     PERMANENT     LOCAL     1,050.00     0.063     0.01
    ONLINE     UNDOTBS1     UNDO     LOCAL     2,670.00     95.438     3.57
    ONLINE     USERS     PERMANENT     LOCAL     43,530.98     30,366.30     69.76
    tablespace TEMP2 doesn't exist.
    i used statement
    ALTER TABLESPACE temp
    ADD TEMPFILE 'D:\app\TEMP16.DBF' SIZE 128M autoextend on;
    ALTER TABLESPACE
    USERS ADD DATAFILE 'D:\app\SYS00.DBF' SIZE 1080M autoextend on;
    alter user DATAWAREHOUSE quota unlimited on USERS
    why add datafile in user tablespace¿?
    and you solved the issue doing the same like we told you a few days before in:
    ORA-1652: unable to extend temp segment by 128 in tablespace
    unable to create INITIAL extent for segment in tablespace USERS
    Remember close your threads:
    896398     
    Handle:      896398 
    Status Level:      Newbie
    Registered:      Nov 9, 2011
    Total Posts:      530
    Total Questions:      158 (116 unresolved)

  • While running the query how much time it will taken, I want to see the time

    Hi Folks
    I would like to know ... While running the query how much time it will be taken, I want to see the time? in WEBI XI R2.....
    Plz let me know  the answer.......

    Hi Ravi,
    The time a report runs is estimated based on the last time it was run. So you need to run the report once before you can see how long it will take. Also it depends on several factors... the database server could cache some queries so running it a second time immediately after the first time could be quicker. And there is the chance of changing filters to bring back different sets of data.
    You could also schedule a report and then check the scheduled instance's status properties and view how long a report actually ran.
    Good luck

  • Problem while running BEx Query

    Hi All,
    I had reqiurement of calculating the difference of the two dates.I calculated Date Difference but I am getting problem when I run the Query.
    The problem is " I am finding the difference between Schedule Line Date and Posting Date. There are some blank spaces in the cube over Schedule Line Date and also over Posting Date. While running the Query Blank Space is taken as # symbol and while calculating the differences it is giving the differences in Lakhs."
    Can anybody help me to solve the problem " To remove the # symbol and calculate the differences properly".
    Thanks in advance.
    With Regards
    Mahi

    Hi,
    Use the Boolean concept like below:
    I hope you are using formula varibles to get Dates into the formula.
    Lets assume fv1 is formulavarible on Schedule line date and FV2 is Formula varible on Posting date.
    (FV1 == '' OR FV2 == '') * 0 + (FV1 <> '' AND FV2 <> '') * (FV1-FV2).
    With rgds,
    Anil Kumar Sharma .P

  • Error ORA-02375 while trying to export/import JTF.JTF_PF_REPOSITORY table

    We have already created an SR, In the mean time, trying to see whether anyone else has come across this issue.  Thanks.
    On : 11.2.0.3 version, Data Pump Import
    Error ORA-02375 while trying to import JTF.JTF_PF_REPOSITORY table
    We are getting the below error while performing the full db
    import.
    ORA-02375: conversion error loading table
    "JTF"."JTF_PF_REPOSITORY" partition "EBIZ"
    ORA-22337: the type of accessed
    object has been evolved
    ORA-02372: data for row: SYS_NC00040$ :
    0X'8801FE000004AD0313FFFF0009198401190A434F4E4E454354'
    This issue is
    stopping our upgrade of database from 10.2.0.4 to 11.2.0.3. This is very
    critical for us to be resolved.

    Hi,
    seems this is Character set issue fo source and Target DB check this doc:Unable to Export Table WF_ITEM_ATTRIBUTE_VALUES due to errors ORA-02374, ORA-22337, and ORA-02372 (Doc ID 1522761.1)
    HTH

  • Error ORA-01422 while compressing a cube

    Hello,
    I am trying to compress the initial balnce of the European Inventory KPI  (KPINVMOEU) cube after reloading it and I encountered the oracle error-01422 which says:
    system error:error-01422:exact fetch returns more than requested
    system error:CONDENSE_FACTTABLE-5-ERROR-01422
    Has anyone dealt with this error before? Any input is appreciated.
    Thanks in advance,
    madhu

    Madhu,
        can you please look into these notes: 485766 and 385660.
    at the same time look into these links which is for similar problem.
    ERROR: System error: CONDENSE_FACTTABLE-5- ERROR:12805
    Error during compress 0IC_C03
    error ORA-01422 while compressing a cube
    Re: Cube compression failing
    All the best.
    Regards,
    Nagesh Ganisetti.

  • "A critical error has occurred while running the virtual machine and the machine execution has been stopped"

    I have the following error:
    "A critical error has occurred while running the virtual machine and the machine execution has been stopped"
    When I am installing grid clusterware and when is copying files from one node to other I received that virtualbox error and is stop working.
    Can somebody give me any hint how to solve it ?
    Thank you
    Eugen

    I think that is not a Clusterware issue, The clusterware installation may generating a high load on your machine and Virtual Box is not supporting.
    Check vbox.log file to identify root cause.

Maybe you are looking for