Import to different tablespace

Hi all..
I created dump file in one database with tablespace1 in Oracle 10g XE using expdp
and
now i want to import that dump file in another database with different tablespace2 name.
What is the option for this...?
Thanks in advance
Pal

Change the default tablespace of the user, under which the dump is to be imported, to a different tablespace.
Once importing is done, you can restore the tablespace.

Similar Messages

  • Export Import with different tablespaces

    Does anyone know if there is a way to export from one database (creating a dmp file) and then importing into another database with different tablespaces? I have tried this and get this error:
    ORA 959. It complained that the tablespace doesnt exist (which it doesnt). Is there a way I can change the export or import parameters to avoid this and just use the default tablespaces?
    I may well be missing the point here so please feel free to tell me I am being a fool.
    Thanks
    Johan

    Example. All these tables are from the same schema with the same tablespace specified in the dmp file. There are many more and 90 % fail but not all.
    importing SCHEMA1 objects into SCHEMA2
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE TABLE "ACCOUNT_RPRT_NOT_TOBE_PUBLISH" ("O__NUM" CHAR(13) NOT NULL EN"
    "ABLE, "O__ST" NUMBER(4, 0) NOT NULL ENABLE, "STEP_COUNTER" NUMBER(7, 0), "S"
    "TATUS" NUMBER(1, 0), "RETRY_COUNTER" NUMBER(5, 0), "RESTART_COUNTER" NUMBER"
    "(5, 0), "PID" NUMBER(3, 0), "OBJ_LOCK" VARCHAR2(10), "MYFILE" VARCHAR2(200)"
    ", "LONG_FIELD" CLOB, "LAST_SELECT_B_S" VARCHAR2(250), "LAST_SELECTION" VARC"
    "HAR2(250), "L_EXECUTION_CTRL" CHAR(13), "ID" NUMBER(6, 0), "ERROR_COUNTER" "
    "NUMBER(7, 0), "CREATION_TIME" NUMBER(5, 0), "CREATION_DATE" NUMBER(6, 0), ""
    "COMPLETION_TIME" NUMBER(5, 0), "COMPLETION_DATE" NUMBER(6, 0), "COMMIT_COUN"
    "TER" NUMBER(5, 0)) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(I"
    "NITIAL 65536 FREELISTS 1 FREELIST GROUPS 1) TABLESPACE "AIA_DATA_T_256K" LO"
    "GGING NOCOMPRESS LOB ("LONG_FIELD") STORE AS (TABLESPACE "AIA_DATA_T_256K""
    " ENABLE STORAGE IN ROW CHUNK 8192 PCTVERSION 10 NOCACHE STORAGE(INITIAL 65"
    "536 FREELISTS 1 FREELIST GROUPS 1))"
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'AIA_DATA_T_256K' does not exist
    . . importing table "ACTUARIAL_RPT_CNTR" 0 rows imported
    . . importing table "ACTUARIAL_RPT_CVRG" 0 rows imported
    . . importing table "ALIS_CANCEL_BILLING" 2799 rows imported

  • Importing to different tablespace with no quota

    Hi,
    I am using Oracle 10.2.0.2.0 on Sun Solaris server.
    I have received a export dump file of user "SUN"
    The "SUN" user is using tablespace "SUN_DATA".
    Here in my database, I have created a new tablespace "SUN_NEW_DATA"
    and created a new user "SUN_NEW".
    I have granted quota unlimited on SUN_NEW_DATA to "SUN_NEW" user.
    I have not given any quota on "SUN_DATA" to "SUN_NEW" user.
    Though my database is also having "SUN_DATA" tablespace which is being used by other users.
    Now when I give the command :
    imp sun_new/sun_new file=sun_exp.dmp log=sun_exp.log fromuser=sun touser=sun_new
    I am seeing that all the tables are created in "SUN_DATA" tablespace.
    Can someone explain me why the import have created objects in "SUN_DATA" tablespace though
    the user "SUN_NEW" does not have any quota on that tablespace.
    Thanks & Regards
    Arun Tayal

    And I think the DEFAULT TABLESPACE at the database level is defined as SUN_DATA.
    --Luckys.                                                                                                                                                                                           

  • Import schema to a different tablespace

    hi,
    I've exported my instance:
    EXP SYSTEM/MANAGER@OLDINSTANCE FULL=Y FILE=C:\EXP_FILE.DMP LOG=C:\ERROR_EXP.LOG
    after I've created new tablespace and new user:
    CREATE TABLESPACE MAX DATAFILE 'c:\MAX01.dbf' SIZE 3800M REUSE DEFAULT STORAGE
    (INITIAL 10240 NEXT 10240 MINEXTENTS 1 MAXEXTENTS 256 PCTINCREASE 0) ONLINE;
    CREATE USER MAX IDENTIFIED BY MAX DEFAULT TABLESPACE MAX TEMPORARY TABLESPACE TEMP;
    finally I've imported tom's objects in MAX:
    IMP SYSTEM/MANAGER@NEWINSTANCE FROMUSER=TOM TOUSER=MAX FILE=C:\EXP_FILE.DMP LOG=C:\ERROR_IMP.log
    but in some tables I get these errors:
    IMP-00017: following statement failed with ORACLE error 1658:
    "CREATE TABLE "AREA" ("OFL" VARCHAR2(4), "OBL" VARCHAR2(32), "OSITE" V"
    "ARCHAR2(32), "OLS" VARCHAR2(32), "OAREA" NUMBER, "DV_ID" VARCHAR2(32), "DP_"
    "ID" VARCHAR2(32), "ODISMESSO" VARCHAR2(2), "OTYPE" VARCHAR2(64), "OCAT" VAR"
    "CHAR2(64), "OOCCUP" NUMBER, "SFL" VARCHAR2(32), "SBL" VARCHAR2(32), "SSITE""
    " VARCHAR2(32), "PRORATE" VARCHAR2(8), "STYPE" VARCHAR2(64), "SCAT" VARCHAR2"
    "(64), "SAREA" NUMBER, "SOCCUP" NUMBER, "AREA_SERV" NUMBER) PCTFREE 10 PCTU"
    "SED 40 INITRANS 1 MAXTRANS 255 LOGGING STORAGE(INITIAL 314572800 NEXT 52428"
    "800 MINEXTENTS 1 MAXEXTENTS 1000 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS "
    "1 BUFFER_POOL DEFAULT) TABLESPACE "TOM""
    IMP-00003: ORACLE error 1658 encountered
    ORA-01658: unable to create INITIAL extent for segment in tablespace TOM
    In new instance there are 2 tablespaces (TOM, MAX)
    I tried 2 solution:
    1) I've taken the tablespace TOM offline in the new instance, but when I import fromuser=TOM touser=MAX.............
    I get error because not exist tablespace TOM
    2)I removed MAX's quota on the TOM tablespace in the new instance.
    ALTER USER MAX QUOTA unlimited ON TOM;
    but when I import I get alway the same error:
    ORA-01658: unable to create INITIAL extent for segment in tablespace TOM
    I know That I must encrease tablespace TOM for avoid this error, but I must create 6 new users in 6 different tablespaces and I'd to increase tablespace TOM too much (how many GB?).
    how can I import schema to a different tablespace?
    Thanks
    Raf

    I don't understand why you cannot import TOM's scheme
    to new instance, because you say that you' ve TOM
    tablespace in the database.
    Check size of it, may be you need to increase size or
    you can TOM tablespace set autoextended.
    Also, you can set MAX tablespace is default in new database and set TOM tablespace is readonly.
    Then import cannot create object in TOM tablespace
    and create this in MAX tablespace.
    Best regards, Victor

  • How to import partitioned tables in different tablespace

    Hi everyone,
    I try to import the partitioned tables in different tablespace.
    Consider the following situation:
    I have a dump file which is created by using "Export" utility. Some data are in partitioned tables, some of them are in non-partitioned tables. Also, all tables are located in "MYTBS" tablesapce. I try to import all data from this dump file to another database. I didn't get error messages when importing the data from non-partitioned tables. However, I got error message when importing the data from partitioned tables. The error message is: tablespace 'MYTBS' does not exist.
    I just want to how I can solve this problem other than create 'MYTBS' tablespace for my new database.
    Thanks in advance.
    Angel

    Hi,
    I got the following error message:
    IMP-00017: following statement failed with ORACLE error 959:
    "CREATE TABLE "FACILITYCONNECTION",....., "CONNECTIONTYPE" "
    "NUMBER(1, 0) NOT NULL ENABLE) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 25"
    "5 PARALLEL ( DEGREE DEFAULT INSTANCES 1) NOLOGGING STORAGE( PCTINCREASE 0) "
    "TABLESPACE "MYTBS" PARTITION BY RANGE ("CONNECTIONTYPE" ) (PARTITION "
    ""EXT" VALUES LESS THAN (1) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 S"
    "TORAGE(INITIAL 65536) TABLESPACE "MYTBS" NOLOGGING, PARTITION "FAC" VA"
    "LUES LESS THAN (2) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 STORAGE(I"
    "NITIAL 65536) TABLESPACE "MYTBS" NOLOGGING )"
    IMP-00003: ORACLE error 959 encountered
    ORA-00959: tablespace 'MYTBS' does not exist
    Thanks.
    Angel

  • How can I import schema to a different tablespace in a new database?

    Hi,
    I want to transport a schema "abc", which is on 'USERS" tablespace in the old database, to a new database using Data Pump. But on the new server, I want it on a different tablespace, say "TEST". How can I do that? I tried the following but it does not work:
    1. Create a user "abc" on new database, assign "TEST" as its default tablespace;
    2. use impdp to import the dmp file;
    I found that on the new server, the imported tables are still on the "USERS" tablespace.
    Can anyone tell me how to do it? thanks a lot.

    Use the REMAP_TABLESPACE option:
    REMAP_TABLESPACE = source_tablespace:target_tablespace
    Rick

  • Importing data into a different tablespace

    How do we import an user level export file into another user and a different tablespace from the tablespace clause specified in the export file ?
    Thanx in advance
    Abhijit

    >
    I can say that anybody with
    no experience could easily do an export/import in
    MSSQLServer 2000.
    Anybody with no experience should not mess up my Oracle Databases !

  • Import of a tablespace using a tablespace different name

    Hi,
    i'm trying to import a transportable tablespace into the same database it was exported from, but using a different name; the import utility fails saying that it can't find the original tablespace.
    The parameters used during export and import are:
    exp 'sys/pwd@host as sysdba'
    transport_tablespace=yes
    tablespaces=test_tbs
    direct=yes
    triggers=no
    constraints=no
    buffer=100000
    file=test_tbs.dmp
    imp 'sys/pwd@host as sysdba'
    transport_tablespace=yes
    tablespaces=test_tbs
    file=test_tbs.dmp
    buffer=100000
    datafiles='test_tbs.dbf'
    Both tools are spawned as child processes of my application.
    Is there any way to import a tablespace with a new name or to rename the tablespace after import. Needless to say, that I can't predict the new name at export time.
    What I basically want to do, is to imitate the "Attach/Detach Database" feature of mssql.
    Thanks in advance
    Heiko

    You can't rename tablespace with transport_tablespace features. Read the piece of information extracted from the metalink note : 103013.1
    Transported tablespaces are plugged in in a read-only configuration, however the file header also stores the tablespace name, so any attempt to rename it would require an update to the file header. Similarly at unplug time there is a requirement that the tablespace is in read only mode and the same restrictions therefore apply - you can't 'RENAME' a tablespace, because you might only be taking a copy of the datafile.

  • Oracle 10g Data Dump---Import to different users

    Hi everybody,
    I exported data in oracle 10g using expdp in user schema(abc1).
    Now i want to import that data in different user schema (abc2) and another user schema (abc3). Both schemas (abc2 and abc3) are in same tablespace.
    How to do this. Shall i need to export that data in SYSTEM mode to import for different users..?
    Thanks in advance
    Pal

    Shall i need to export that data in SYSTEM mode to import for different users..?No need. You can use REMAP_SCHEMA option on import, e.g.
    impdp system/<password> directory=<directory> dumpfile=<dumpfile> remap_schema=abc1:abc2
    See http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#sthref339

  • Assign AW to a different tablespace

    Hello all,
    We would like to move an analytical workspace (Oracle 10.2.0.1) to a different tablespace. The owner user was originally assigned to a shared tablespace; however, it was changed to use a dedicated tablespace. I have attempted to export / import the AW upon the change, but it is still assigned to the original shared tablespace. Could you please let me know how to change the tablespace, so I don't have to recreate the AW from scratch.
    Many thanks!

    If I read this correctly, you have an existing AW that you want to move to a different tablespace. If so, you will need to recreate your AW. The easiest way to do this is as follows:
    1. Save dimensions and cubes to XML templates. (Save them independantly, don't just save the AW to a template.)
    2. Create a new AW, using the tablespace option. (I recall that there was a bug in 10.x where the tablespace option got ignored. After you create your AW with the spacespace option, check to see which tablespace the AW$ table is in. If it's in the default tablespace, not the tablespace you have chosen, you probably need a patch or upgrade.)
    3. Create your dimensions and then cubes from the templates in the new AW.

  • How to import tables, indexes, tablespace, etc from a DMP.

    Hello,
    I like to know how to import tables, indexes, tablespace, etc from an DMP export of a Oracle 10.2.0.1 to be apply on a Oracle 11.2.0. When I import the DMP file all the data is going to one single Tablespace, for example, Users tablespace.
    On the original database we have various tablespace's each separated with different content (tables, indexes) and I like to know if it posible to import the same schema,tables, indexes, tablespace all made with one single DMP Export. I can't use DBUA because the software of the database on the 10.2 is missing, I have only a DMP file (24GB) of DMP!.
    Thanks for the reply,
    Sorry for my english :).
    Regards.

    thanks for that but is not what Im looking for.
    Look, on my ORCL directory of the oracle 10.2 I have for example this:
    CONTROL01.CTL
    EXAMPLE01.DBF
    REDO01-1.LOG
    REDO01.LOG
    REDO02-2.LOG
    REDO02.LOG
    REDO03-3.LOG
    REDO03.LOG
    RMAN.DBF
    SYSAUX01.DBF
    SYSTEM01.DBF
    TEMP01.DBF
    UNDOTBS01.DBF
    USERS01.DBF
    TABLESPACE1.ORA
    TABLESPACE2.ORA
    TABLESPACE3.ORA
    TABLESPACE4.ORA
    TABLESPACE5.ORA
    I make a full export to a DMP. Then in my 11.2 version first I created the user then when import the DMP file none of the tablespace (TABLESPACE1, TABLESPACE2, ETC...) is created, all is going to the USERS tablespace, SO, im looking a way to tell imp command that generates the exactly tablespace structure that i was have on the 10.2.
    Hope this can explain more my problem.
    Thanks again!.

  • I would like to import two different cf cards from two different cameras into the same project/folder and have them be in order of the times they were taken, is there a trick?

    I would like to import two different cf cards from two different cameras into the same project/folder and have them be in the order of the times they were taken, any ideas on how to do this?

    Just import them normally and sort the project by date. They will fall into place. If you tried this and it isn;t happening then make sure the data and times on the two cameras are identical and make sure you are sorting by date and time and nothing else.

  • Why are my HD videos all importing with different resolutions?

    Hi, I tried looking through like 10 pages of discussions on here and didn't see anybody else having this problem.
    I have a Canon Vixia HF200, I keep the settings on MXP (highest quality 1920 x 1080). Every time I log and transfer my videos they import at different resolutions (everything from the same day will be the same), some of them come in as 1440 x 1080, 720 x 480, etc, when they should all be 1920 x 1080.
    So, since some of them ended up being a completely different aspect ratio, I went into Motion>Distort and changed them all to 1920 x 1080, and I thought it was fine, but now I'm noticing that some of the videos look really out of focus (it seems like they get more out of focus every time I open it), so I'm thinking I probably shouldn't have stretched them....
    I checked the original videos in the browser and they all say 1920 x 1080 now, when I watch them in the viewer, they actually look like good HD videos, but in the canvas they're out of focus...
    I'm also working with multiple sequences, and when I copy videos from one sequence to another, it changes the resolution/aspect ratio/scale again, and becomes more blurry when I try to fix it.
    So basically, I have a huge mess. I'm working on editing a documentary that I'm making and now most of the video looks bad and I'm not sure how to change it back. I even tried starting a new project and importing the original videos, but they don't seem to have the original quality.
    Anybody know how I can either fix this or somehow replace the clips in the sequence with the originals in the browser to at least get some quality back?
    Also, a lot of the time when I render, I come back to the computer and it says something like "Error: Illegal (something) render failed" and completely loses the rendering that it spent a long time doing.
    I appreciate any help.
    Lisa

    Hi Lisa,
    Your 1920x1080 clips most likely import at their normal frame size, and then you placed them in the wrong sequence. Make sure your +File > Easy Setup+ is set to *Apple Intermediate Codec 1920x1080i60* before you create a new sequence.

  • Problem in importing two different classes with same name...

    I have to import two different classes in my program with the same name....
    import org.apache.lucene.document.Document;
    import org.w3c.dom.Document;
    //    I AM USING THE DOCUMENT FROM W3C PACKAGE HERE....
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                     DocumentBuilder builder = factory.newDocumentBuilder();
                     InputSource is = new InputSource( new StringReader( tempString ) );
                     d = builder.parse( is );
                     NodeList images = d.getElementsByTagName("img");
                     int length = images.getLength();
                     for(int i = 0;i<length;i++)
                         Node image = images.item(i);
                         String tempAltText = image.getAttributes().getNamedItem("alt").getNodeValue();
                         altText = altText.concat(" ").concat(tempAltText);
                     }and the error i am getting is
    [javac] C:\Documents and Settings\sumit-i\WolframWorkspaces\Base\WolframNutch\src\java\com\wolfram\nutch\indexer\InfoCenterFilter.java:20: org.apache.lucene.document.Document is already defined in a single-type import
        [javac] import org.w3c.dom.Document;
        [javac] ^
        [javac] C:\Documents and Settings\sumit-i\WolframWorkspaces\Base\WolframNutch\src\java\com\wolfram\nutch\indexer\InfoCenterFilter.java:132: incompatible types
        [javac] found   : org.w3c.dom.Document
        [javac] required: org.apache.lucene.document.Document
        [javac] d = builder.parse( is );
        [javac] ^
        [javac] C:\Documents and Settings\sumit-i\WolframWorkspaces\Base\WolframNutch\src\java\com\wolfram\nutch\indexer\InfoCenterFilter.java:133: cannot find symbol
        [javac] symbol  : method getElementsByTagName(java.lang.String)
        [javac] location: class org.apache.lucene.document.Document
        [javac] NodeList images = d.getElementsByTagName("img");
        [javac] ^
        [javac] Note: Some input files use unchecked or unsafe operations.
        [javac] Note: Recompile with -Xlint:unchecked for details.
        [javac] 3 errorsany idea ..how to resolve it
    Edited by: ping.sumit on Jul 16, 2008 3:39 PM
    Edited by: ping.sumit on Jul 16, 2008 3:40 PM

    now i changed the code to
    import org.apache.lucene.document.Document;
    import org.w3c.dom.Document;
    org.w3c.dom.Document d = null;
    try{
         System.out.println("in author");
                   URL url = new java.net.URL(urlString);
                   java.net.URLConnection conn = url.openConnection();
                   BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));
                   while ((in.readLine()) != null)
                        //tempString = tempString.concat(in.readLine());
                        String temp = in.readLine();
                        tempString = tempString + " " + temp;
                   System.out.println("the string in author" + tempString);
                    in.close();
                    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
                     DocumentBuilder builder = factory.newDocumentBuilder();
                     InputSource is = new InputSource( new StringReader( tempString ) );
                     d = builder.parse( is );
                     NodeList images = d.getElementsByTagName("img");and their is only one error i am getting ...and that is
    [javac] C:\Documents and Settings\sumit-i\WolframWorkspaces\Base\WolframNutch\src\java\com\wolfram\nutch\indexer\InfoCenterFilter.java:20: org.apache.lucene.document.Document is already defined in a single-type import
        [javac] import org.w3c.dom.Document;
        [javac] ^
        [javac] Note: Some input files use unchecked or unsafe operations.
        [javac] Note: Recompile with -Xlint:unchecked for details.
        [javac] 1 error

  • When importing a CD, the CD Lookup Results dialogue box came up and I choose the wrong CD title.  Now iTunes is importing a different song list than the one on my CD.  How can I retrieve the CD Lookup Results to choose the correct title?

    When importing a CD, the "CD Lookup Results" dialogue box came up and I choose the wrong CD title.  Now iTunes is wanting to import a different song list than the one on my CD.  I've shut down my computer and opened iTunes from the hard drive Program Files and tried to import the CD again with the same problem.  How can I retrieve the "CD Looup Results" diaglogue box to choose the correct CD title to fit the song list on my original CD?

    You might also be able to do it without importing the songs again I think. Just highlight the tracks, right click them and choose "Get Track Names". This feature only works on CDs that were imported via iTunes.

Maybe you are looking for

  • Error in report bursting/distribution

    I develop a group report for distribution. I use XML file to save report output as pdf into a particular location. Files save with column name exist in group. Its working fine, but some time i face a problem that report save with different name and t

  • How to configure firewall access for ASA 5510

    Hi, This is my first time to use the Cisco ASA 5500 family. I have a request from a user to create an access rule, to allow all LAN traffic to Destination IP address 165.241.29.17, 165.241.31.254 with Destination TCP port 5060,5061,5070 and UDP port

  • Compilation problem in a JSP page

    Hi all, I'm trying to write a jsp page and some java stuff in it. It goes something like this - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <%@ page contentType="text/html;charset=windows-125

  • DC20 setting

    Hi Gurus, Questoion. Is the path  in DC20 --> Define data carier  server, front end applicable to all users? Can it be changed to user specific? example: USER1 path is c:\temp\ User2 path is d:\temp\can this be done? Thank you

  • How to deploy the Wikis, Blogs and Discussions Sample Portlets ?

    Hi all, I'm trying to deploy Wikis, Blogs and Discussions Sample Portlets located at http://www.oracle.com/technology/products/webcenter/release11_demos.html (the demo at the bottom). I've successfully, deployed the portlet to WebCenter Portlet servi