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

Similar Messages

  • 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 can i import tables from a different schema into the existing relational model... to add these tables in the existing model? plss help

    how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
    note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
    can I import the same way as I did previously??
    but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
    please help ...
    thanks

    Hi,
    Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
    You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
    In step 1 use a suitable database connection that can access the relevant table definitions.
    In step 2 select the schema (or schemas) to import.  The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
    In step 3 select the tables to import.  (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
    After the import itself has completed, the "Compare Models" dialog is displayed.  This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
    Just selecting the Merge button should apply all the additions and changes in the new import.
    Having updated your Relational Model, you can then update your Logical Model.  To do this you repeat the "Engineer to Logical Model".  This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
    Just selecting the Engineer button should apply all the additions and changes.
    I hope this helps you achieve what you want.
    David

  • How can i import contacts from another AIM account to this new one

    If you reference my last ichat question, you will see that I have had serious problems and had to create a new account.
    How can I import contacts from another AIM account to this new one??

    Hi,
    Use AIM for Mac and use the Export and Import features.
    Other than that it is a question on making sure every Single Buddy has more than just their Screen name in the IChat Address Card so it is added to the Address Book and dragging them back from there
    9:08 PM Thursday; February 7, 2008

  • How can I import my iweb site into iweb on my new laptop?

    I recently got a new MacBook Pro and transferred my files over from my PBG4 12-inch (great little laptop). However my iWeb files/site didn't seem to transfer over to my laptop. I found the files of on my PBG4, and thought I placed them in the correct folder on my one.
    Every time I open iWeb it asks to start a new site. How can I import my old iweb site into it and continue with it? Is there a way of doing it? I've a read a few posts some talk about the file 'Domain' in the Home/Library/Application Support/iWeb folder.
    If I copy that file over to my new MacBook Pro, will my site be in iWeb again? I greatly appreciate some advice. Thanks.
    MacBook Pro   Mac OS X (10.4.8)  

    Isotopecrunch,
    Welcome to the iWeb forums!
    You are correct about referring to the Domain file; this is the file that contains all of your work created in iWeb, and the file that needs to be transferred to your new MacBook. There are some notes on how to do this here.
    Take the time also to make back up copies of this file, and keep them in a safe place.
    Mark

  • How can I import old photos on my iPhone to my new iPad mini

    How can I import old photos on my iPhone on to my new iPad mini?

    How to use iTransfer
    1. Launch iTransfer on both devices
    2. Tap "Tap to Connect" on both devices
    3. Select the device to pair and wait for device to connect
    4. Tap "Accept" on the other device
    5. Select Photos, Music or Files to transfer
    6. Tap "Received File"
    7. Select the received file and decide what action you'll like to take e.g. View, Email, Open In

  • How can I import CD's with differing custom settings? IWhen I want to change settings the AAC encoder window does not appear because Itunes has adopted the first custom settings as default.

    I imported a CD with custom settings for stereo bit rate, sample rate and channels. When I tried to import a second CD with different settings I could not get to the AAc encoder window that gave the settings options. The custom settings I had chosen for the first CD had become the default "custom" settings.

    Hi there,
    please take a look at my suggestion under message #19227279
    regards,
    Markus

  • How can I import Quicken Files from a G4 to a new iMac.

    I need to transfer my Quicken 2007 files from my G4 to my new iMac. My G4 is running OS 10.4 and Quicken Essentials for Mac requires 10.5 or above. My G4 cannot run 10.5. My iMac is running Lion and I've heard if I load Mac Essentials on my iMac, I won't be able to import the files from my G4. Anybody have any ideas?
    I've been considering making a copy of my system and applications folders on an external firewire drive, then connecting it to my iMac. I thne plan to use the external drive as a startup disk and load Quicken essentials on the external drive. Then, once eveything is loaded, I was hoping I could copy the files and pull them over to my applications folder on my iMac. Does anybody know if that will work?

    I'm in the same boat!!! Been a long Time Quicken user and they finally made the software almost un-useable. I have 2 intel laptops in the house and a G4. The intel systems are both running Lion had I known the quicken conversion software dosen't run on Lion I would have converted all my quicken backups (going back to 1997) before installing Lion.
    To answer your question, what I have found out is convert all your files on Lepoard then update to lion. The conversion software that comes with Quicken Essentials will work on Lepoard. Thats how I converted mine. But last week I needed to go back to and old backup looking for some transactions and found the Lion issue. Had to boot up the G4 and load the old Quicken software to look at the backups.
    Been really thinking of switching to another product.

  • How can I import address book info from old mac to new one?

    Just got a macbook, and migrated all the info as per instructions. Now I need to get all the info from my old address book to the new one. Spent about 6 hours today trying to figure this out, and an hour of that was spent on the phone with a friendly but clueless customer service rep. Managed to get all the vcards transferred, but no group info. Since this is for my business, I need to get this taken care of ASAP--- help, anyone? Thanks!!!

    Exporting vCards from Address Book partially preserves group information - it puts it in the notes field as Categories, which is not very useful. I suggest you export one group at a time. I don't think you can import directly into a group, so create a group, import the cards for that group, then select all the cards in the "Last Import" pseudo-group and drag them to the appropriate group.
    If some of your contacts are in multiple groups the duplicates will be spotted on import. Unless you have hundreds of groups it should not be to much of a pain. Otherwise look at Gwenhiver.net - Applications - Address Book Exporter - it may preserve groups on re-import (but I don't know).
    AK

  • How can i import my files from an Acer into my new iMac - easiest idiot proof solution pls

    i bought an iMac, and would like to migrate all data from my old Acer aspire one over to the mac
    i tried thru wireless ------ too dumb for it - or to bad step by step guides to do it
    same for connecting the two by ethernet....
    can someone guide a dummy thru this pls?

    Do you have a USB flash drive or an external hard drive, if so then plug it in to your USB port on your Acer and copy your my documents folder to to the drive.  After ejecting the drive insert it into the Mac and copy the files into your home folder.  I would copy folder to folder from drive, for example; your documents folder files from Acer to Mac documents folder and so forth.

  • How can I import Canon .CR2 raw files gererated by the new Canon 5D MkIII?

    Just got the new Canon 5D MkIII and none of the Adobe products can recognize the raw files (called .CR2) it generates.
    I'd be happy just converting them to .DNG but converters won't recognize them either.
    Anyone know a solution for me?
    Thanks.

    FasterElectron wrote:
    As of today, the raw converter still doesn't work with MkIII files, (v 6.6.0.261).
    The Release Candidate 6.7 converter does work with the 5D Mk III and as stated LR 4.1 RC also works:
    http://labs.adobe.com/technologies/cameraraw6-7/
    http://labs.adobe.com/downloads/lightroom4-1.html

  • How can I import my music from iphone 4 to my new MacBook Pro

    Is it possible to transfer my music on my iphone 4 to my new MacBook Pro??

    There are ways to do it for non iTunes purchases.  Look for forum threads before posting questions, you may find your results faster.  Remember, Google is your best friend.
    https://discussions.apple.com/thread/4930527?start=0&tstart=0
    https://discussions.apple.com/message/22852526#22852526
    There is a whole list of Applications here;
    https://discussions.apple.com/docs/DOC-3991
    I like MusicRescue the best but I definitely haven't tried them all.

  • How can I import data from a csv file into databse using utl_file?

    Hi,
    I have two machines (os is windows and database is oracle 10g) that are not connected to each other and both are having the same database schema but data is all different.
    Now on one machine, I want to take dump of all the tables into csv files. e.g. if my table name is test then the exported file is test.csv and if the table name is sample then csv file name is sample.csv and so on.
    Now I want to import the data from these csv files into the tables on second machine. if I've 50 such csv files, then data should be written to 50 tables.
    I am new to this. Could anyone please let me know how can I import data back into tables. i can't use sqlloader as I've to satisfy a few conditions while loading the data into tables. I am stuck and not able to proceed.
    Please let me know how can I do this.
    Thanks,
    Shilpi

    Why you want to export into .csv file.Why not export/import? What is your oracle version?
    Read http://www.oracle-base.com/articles/10g/oracle-data-pump-10g.php
    Regards
    Biju

  • How can I import pictures from my iphone to PC which I imported to the iphone from another PC? The folder doesn't show on my computer. I see all other pictures I took with the phone but not the imported folder.

    How can I import pictures from my iphone to PC which I imported to the iphone from another PC? The folder doesn't show on my computer. I see all other pictures I took with the phone but not the imported folder.

    Photos that were synced from a computer won't show for copying to a computer. If you want to copy them back then you will need a third-party app on your phone such as Simple Transfer which can copy them off via your wifi network. But photos are 'optimised' when they are synced to a device, any that you then copy back to a computer may not be exactly the same as they originally were on your computer (e.g. their dimensions might be different and their colours may look a bit different).

  • How can I import SMS / MMS from old phone to iPhone?

    Greetings. I wonder, how can I import messages (SMS and MMS) from my old phone to a new iPhone? I have my current phone for about five years and I have there many important messages I can't afford to lose. I know, that exporting messages is often tricky (my old phone is using Windows Mobile 6), but there are some programs that can export messages to various formats (.xml, .txt, .sms etc.). But the question is, how to import these messages into iPhone.
    Is it possible via iTunes? Is there an app? Sould I visit Apple Store or support? Thank you for any ideas.
    Johny

    Well, I am thinking about iPhone for the first time. My five years old phone is smartphone, but very early one (HP iPAQ 514, running Windows Mobile 6). I know that transfering data between different systems might be difficult, but on the other hand, we have the end of 2011, so I believe in interoperability (at least via third party apps).
    Anyway, I've discovered few softwares that can export my messages from my old phone and put it into a file on a computer (in different formats, such as .sms, .txt., .xml or .csv; depends on software and options). But the question is, how to import it into new iPhone.
    I've also noticed (from various discussions), that iPhone-related messages are usually saved somewhere in iTunes (something.mdbackup), but again, the question is, how to import it back to phone..
    To be honest, I am quite surprised that there is not some easy on-click way (or at least tons of how-to or tutorials). The iPhone is quite a new product (since 2007) and before it there was already quite a large mobile and smartphone market - so "transferring data" should be already solved.. (similar to transferring contacts, calendars and so on).

Maybe you are looking for

  • Is there a way to programmatically tell what version of LabVIEW a VI is compiled in?

    Is there a way to tell programmatically what version of LabVIEW a VI is compiled in? LabVIEW seems to know.  If you click on "List Unsaved Changes", it (sometimes?) tells you the version of LabVIEW that the VI is already saved under (i.e., 8.0 instea

  • Issues with lightroom 5.3 update in windows 7 HP SP1

    After downloading and installing the 5.3 update I could open lightroom and it seemed to work fine. But when I tried to open a cr2 file in explorer no known program was found. I instructed to use lightroom now found in the folder lightroom 5.3, but in

  • HT5654 iPad 4 won't turn on

    All of a sudden my iPad 4 turned off and won't turn back on. I tried charging it and connecting it to iTunes. When I connect it to iTunes it says that my device is in restore more. So I restore it and then it says that it's preparing the ipad for res

  • Authorization on BP Internal Recon

    Dear all expert, Is Super user only that can do internal reconciliation for BP ? because when I open internal reconciliation using no super user, the table is blank but if i'm using Super User, the table is filled with all unreconcilied transaction..

  • Can`t open saved file ( I named it 15.05.08 )

    I just finished a huge 20 hours project in Photoshop . I don`t save my files after I`ve finished working with them . I named my project 15.05.08 and I didn`t check if everything was OK . A few minutes later I wanted to open it but to my big surprise