ORA-01652 Unable to extend temp segment by 64 in tablespace TEMP

Posted on 2006-04-10
Last Modified: 2013-12-12

I am using Import / Export Wizard in SQL SERVER 2000.
When copying tables into SQL SERVER from Oracle database I receive the following error:

ORA-01652 Unable to extend temp segment by 64 in tablespace TEMP

What does this mean from the ORACLE side.

Thank you,
Question by:Lucia
    LVL 4

    Accepted Solution

    ORA-01652: unable to extend temp segment by string in tablespace string
    Cause: Failed to allocate an extent for temporary segment in tablespace.
    Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the tablespace indicated.

    Author Comment

    Hi I am not familiar at all with Oracle.  Thanks, Lucy
    LVL 3

    Expert Comment

    Oracle documentation says:
    "When processing queries, Oracle often requires temporary workspace for intermediate
    stages of SQL statement parsing and execution. Oracle automatically allocates this disk
    space called a temporary segment. Typically, Oracle requires a temporary segment as a
    database area for sorting. Oracle does not create a segment if the sorting operation can
    be done in memory."

    Import/Export Wizard executes queries against Oracle database. One of these queries didn't fit into memory and Oracle wrote intermediate results to the disk, i.e. to a 'temporary segment'. The 'temporary segment' grew so much it didn't fit into TEMP tablespace. Your Oracle database run out of space for temporary data.
    What can you do?
    1. Retry. It could be because there were other queries that performed extensive sorting at the time you run Import/Export Wizard.
    2. If retry didn't help, contact your DBA and ask to increase TEMP tablespace (or if you are your own DBA,  execute ALTER TABLESPACT TEMP ADD DATAFILE '<filename>' SIZE <filesize>;).

    Author Comment

    Thank you JaceMycha.

    This is quite thorough. I am working remotely from the server.
    I understand exactly what you are telling me to do.


    Featured Post

    Live: Real-Time Solutions, Start Here

    Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Init.ora File Points to SPFILE 6 51
    Oracle Query 13 58
    how to tune this sql query 61 74
    Create index on View 27 46
    This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
    From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
    Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
    This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now