Import a dumpy file to newly created schema using the old schematablespace!

I'd created an export dump file of user X with rows=n (for Replicating the schema data structures to another schema). When I import using this dump file to newly created user Y. The newly created objects(tables,indexes) are using the tablespaces that were used in X instead of the default tablespace of Y.
How can I import X objects into Y with Y's default tablespace.?

CJ and others,
This just worked fine for me. here is what I did:
sql> connect system/manager
create tablespace tbs1 datafile tbs1.f size 10m;
create tablespace tbs2 datafile tbs2.f size 10m;
create user user1 indentified by user1 default tablespace tbs1;
create user user2 indentified by user2 default tablespace tbs2;
create table user1.tab1 (a number);
insert into user1.tab1 values (100):
commit;
exit;
$ exp user1/user1 file=user1.dmp
sql> connect system/manager
drop tablespace tbs1 including contents;
exit
imp system/manager file=user1.dmp fromuser=user1 touser=user2
This imported user2.tab1 into tablespace tbs2. I think if tbs1 was still around, then it would have imported it into tbs1.
Thanks
Dean

Similar Messages

  • How to import a doc file which is a file created by using the codings?

    Hai to all....
    i'm now trying to import a word doc file which is created by using the
    CreateFile() method in Win32 Programming....
    When i manually created a doc file and import that file using the
    PlaceFileInFrame method.... the contents of the doc file is placing in
    the document perfectly...
    But when i'm trying to create a doc file using CreateFile() method and importing it... and use the PlaceFileInFrame method... its not placing the
    contents of the file...
    i will show u the codings what i had done...
    HANDLE hFile;
    DWORD wmWritten;
    //FOR CREATING A DOC FILE....
    hFile = CreateFile(L"C:\\tab.doc",GENERIC_READ|GENERIC_WRITE,
    FILE_SHARE_READ,NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);
    //FOR WRITIND DATA INTO THAT FILE FROM row[2] IN A MYSQL DATABASE
    WriteFile(hFile,row[2],(DWORD)(strlen(row[2])),&wmWritten,NULL);
    CloseHandle(hFile);
    //USED PLACEFILEINFRAME METHOD FOR PLACING THE CONTENTS OF THE DOC FILE
    tempfilename="C:/tab.doc";
    target = "/" ;
    replace = "\\" ;
    s.Replace(tempfilename,target,replace);
    IDFile idFile;
    idFile.SetFileName(tempfilename);
    UIFlags uiFlags = K2::kMinimalUI;
    UIDRef ref = layoutHelper.PlaceFileInFrame (idFile,placeUIDRef,boundsInParentCoords,
    uiFlags,
    kTrue, //retainFormat
    kTrue, //convertQuotes
    kFalse, //applyCJKGrid
    NULL);
    But the import is failed...
    When i manually created a doc file and import that file using the
    PlaceFileInFrame method.... the contents of the doc file is placing in
    the document perfectly...
    Is there any ImportProvider or ImportFilter available for
    importing this type of written files?
    Can any one plzz explain me?
    thanks in advance..
    senthil

    Hai Oscar,<br /><br />Now i'm trying like this for importing XML files...<br />----------------------------------------------------------------------<br />IActiveContext* activeContext = snpRunContext->GetActiveContext();<br />UIDRef documentUIDRef = ::GetUIDRef(myContext->GetContextDocument());<br />tempfilename="C:/1.xml";<br />target = "/"   ;<br />replace = "\\" ;<br />IDFile idFile;<br />idFile.SetFileName(tempfilename);<br />IDataBase* db = documentUIDRef.GetDataBase();<br />InterfacePtr<IDocument> document(documentUIDRef, UseDefaultIID());<br />          ASSERT(document);<br />          if(!document) {<br />               break;<br />          }<br />        InterfacePtr<IXMLReferenceData> xmlReferenceData(document, UseDefaultIID());<br />          ASSERT(xmlReferenceData);<br />          if(!xmlReferenceData) {<br />               break;<br />          }<br />          XMLReference xmlRef = xmlReferenceData->GetReference();<br /><br />     <br />        InterfacePtr<IIDXMLElement> element(xmlRef.Instantiate());<br />          ASSERT(element);<br />          if(!element) {<br />               break;<br />          }<br /><br />        <br />      InterfacePtr<IK2ServiceRegistry> serviceRegistry(gSession, UseDefaultIID());<br />          ASSERT(serviceRegistry);<br />          InterfacePtr<IK2ServiceProvider> xmlParserServiceProvider<br />               (serviceRegistry->QueryServiceProviderByClassID(kXMLParserService, <br />                         kXMLParserServiceBoss));<br />          ASSERT(xmlParserServiceProvider);<br />          if(!xmlParserServiceProvider) {<br />               break;<br />          }<br />          InterfacePtr<IXMLAccess> access(xmlParserServiceProvider, UseDefaultIID());<br />          ASSERT(access);<br />          if(!access) {<br />               break;<br />          }<br />        // -precondition<br />         <br />         InterfacePtr<ICommand> importCmd(CmdUtils::CreateCommand(kImportXMLFileCmdBoss));<br />         ASSERT(importCmd);<br />         InterfacePtr<IImportXMLData> importXMLData(CreateObject2<IImportXMLData>(kImportXMLDataBoss));<br />         ASSERT(importXMLData);<br />         if(!importXMLData) {<br />             break;<br />         }<br />         importXMLData->Set(db, idFile,kInvalidXMLReference, kSuppressUI);<br />         InterfacePtr<IXMLImportOptions> docXMLOptions( document->GetDocWorkSpace(), UseDefaultIID() );<br />         ASSERT(docXMLOptions);<br />         if(!docXMLOptions) {<br />             break;<br />         }<br />         InterfacePtr<IXMLImportOptions> importXMLOptions(importXMLData, UseDefaultIID());<br />         ASSERT(importXMLOptions);<br />         if(!importXMLOptions) {<br />             break;<br />         }<br />         importXMLOptions->Copy(docXMLOptions);<br /> <br />         InterfacePtr<IPMUnknownData> pmUnknownData(importCmd, UseDefaultIID());<br />         ASSERT(pmUnknownData);<br />         if(!pmUnknownData) {<br />             break;<br />         }<br />         pmUnknownData->SetPMUnknown(importXMLData);<br /> <br />         CmdUtils::ProcessCommand(importCmd);<br />---------------------------------------------------------------------           <br />But it showing the following 2 errors...<br /><br />error C2065: 'snpRunContext' : undeclared identifier<br />error C2227: left of '->GetActiveContext' must point to class/struct/union  type is ''unknown-type''<br /><br />Then i tried to declare snpRunContext like this...<br />InterfacePtr<ISnpRunnableContext>snpRunContext(parentUIDRef,UseDefaultIID());<br /><br />its sucessfully compiled... But the output is not coming...<br />Its showing unhandled exception in the line<br />IActiveContext* activeContext = snpRunContext->GetActiveContext();<br /><br />So, what shal i do for declaring snpRunContext... <br /><br />plz give me an idea...<br /><br />thanks.<br />senthil.

  • I am trying to import standard midi file that I created in Band in a Box into Logic Pro 9.  I can not get all the track to play with internal instrument sounds... only the piano track.  how can I get the others to play... drums, bass etc????   Help

    I am trying to import standard midi file that I created in Band in a Box into Logic Pro 9.  I can not get all the track to play with internal instrument sounds... only the piano track.  how can I get the others to play... drums, bass etc????   Help

    Don't drag the midi into an open Logic project. The tracks won't set up correctly.
    'Open' the midi file with Logic as if it were a Logic project. Then all the tracks will be set up so you can start editing them and applying better saved sounds and instruments, but you'll be at a starting place where you can hear what's going on.

  • I can't drag and drop iTunes music files into Roxio Jam 6 anymore and, now I have to import music one song at a time by using the " " or "-" buttons on the bottom. What is going on? G5 Dual 2 Ghz and OS 10.4.11

    Hi. I have not used Roxio Jam for quite a long time and I just wanted to make a few CDs. Jam used to work easily and well. I have a problem. I can't drag and drop iTunes music files anymore and, now I have to import music one song at a time by using the "+" or "-" buttons on the bottom. What is going on? I trashed the preferences file and restarted Jam to no avail. I also have selected that Jam should open files with iTunes in the Jam preferences. I have a G5 DP 2Ghz PPC  machine with OS 10.4.11, iTunes 9.2.1 and Quicktime's version is 7.6.4. I have 2 GB of RAM and the machine has dual 1.25 Ghz. processors plus a 500 GB HD. Can anybody give me any suggestions?
    Thanks in advance,
    Larry

    I found an solution.
    Uninstalling AirParrot as well as the two offending AirParrotDriver.kext and APExtFramebuffer.kext files in System>Library>Extensions was the fix. All problems disappeared.

  • What are the .fm.sp files that are created when using SharePoint?

    What are the .fm.sp files that are created when using SharePoint? When I'm working with SharePoint, I've noticed that duplicate files ending in .fm.sp are created. I've been unable to find any reference or documentation about them so far.

    Whe you use sharepoint as a CMS connections in Framemaker it creates the folder where Sp is installed and also a file ending .sp is created that let SP know that its the file associated with it.
    .fm.sp indicates that its the framemaker type SP file.
    Dont worry about it as its not creating any mess in the system.
    Harpreet

  • While creating Projects Using the API, get two errors: 'Customer name must be passed' and 'class category is invalid'

    Hi
    While trying to Create Projects using the API, I'm getting two types of errors -
    The first is : 'API failed in one stage 1 Customer Name is a mandatory Quick Entry field. Value must be passed'
    The second is : '
    'API failed in one stage 1 Project: '<Project_Number>'
    The class category is invalid.'
    Both the messages are produced by our custom program. .. however I am not able to understand why the underlying errors occur.
    The first error ( Customer Name is a mandatory quick entry field), is caused by Projects that are to be created from Project templates where it is configured with Quick Entry Customer Name required. We are passing Customer Site number ( Party Bill to site number and Party Ship to side number). The site numbers being passed are also set as 'Primary'. Yet they are failing.
    For the second Error ( The Class Category is invalid), I rechecked multiple times, the Class categories for the Projects I am trying to create, with the Config in R12 and they are fine. Can't understand the reason for these two issues. Has anyone encountered such an issue ? If so how was it resolved?
    Regards
    Vivek

    HI All
    I resolved both the issues. In case there are others facing similar issues, following was the cause and resolution of my errors
    1. Error 1: Customer Name is a Mandatory Quick Entry field. Value must be passed.
    The cause was that the data loaded into our custom staging table was not in the right fields. This was because the data file values and the CTL were not in sync.
    Resolution:
    Corrected the data file to be in Sync with the structure defined in the CTL and  this loaded it successfully
    2. Error 2: The class category is invalid.
    The cause of this error was that  in the  Projects Template (used to create the project from), the Quick Entry setup had a Class Category set as required and I was not passing a value ( a class code value) for that Class Category.
    Hope this helps somebody else
    Cheers
    Turnbill

  • I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down eliminate

    I am trying to get space on an external hard drive which has some old time machine back up files that I do not need but can not eliminate, even by going into the time machine, clicking on the backup file to be eliminated and using the drop down menu with the gear box symbol to eliminate

    I cannot find this 300GB "Backup" in the Finder, only in the Storage info when I check "About This Mac".
    You are probably using Time Machine to backup your MacBook Pro, right? Then the additional 300 GB could be local Time Machine snapshots.  Time Machine will write the hourly backups to the free space on your hard disk, if the backup drive is temporarily not connected. You do not see these local backups in the Finder, and MacOS will delete them, when you make a regular backup to Time Machine, or when you need the space for other data.
    See Pondini's page for more explanation:   What are Local Snapshots?   http://pondini.org/TM/FAQ.html
    I have restarted my computer, but the information remains the same. How do I reclaim the use of the 300GB? Why is it showing up as "Backups" when it used to indicate "Photos"? Are my photos safe on the external drive?
    You have tested the library on the external drive, and so your photos are save there.  
    The local TimeMachine snapshot probably now contains a backup of the moved library.  Try, if connecting your Time Machine drive will reduce the size of your local Time Machine snapshots.

  • I'd like to know how can i connect my old iMac tiger with new one iMac lion. I wanna use the old one for external disk to collect files from there to new one.

    I'd like to know how can i connect my old iMac tiger with new one iMac lion. I wanna use the old one for external disk to collect files from there to new one.

    Hi mshields1162,
    Great question, and welcome to Apple Support Communities.
    First, you may want to choose to have the sidebar displayed for familiarity:
    iTunes 11: Frequently used features
    http://support.apple.com/kb/HT5649
    Afterwards, your device should be displayed if connected:
    We'll want to click on it, and choose the Music tab at the top. Let's make sure "Sync Music" is checked:
    Afterwards, you'll have the option to sync either the entire music library (for your first iPod), or "Selected playlists, artists, albums, and genres" (for the secondary device). Upon selecting this option, four larger option boxes will appear allowing you to pick and choose what content will be synced. For audiobooks, you may need to do the above in the "Books" section. For a visual instruction on how to do this, see the following:
    iTunes 10: Sync to your iPod
    http://support.apple.com/kb/VI72
    Thanks,
    Matt M.

  • How do I import photos from my PC to my iPad3 using the latest version on iTunes?

    How do I import photos from my PC to my iPad3 using the latest version on iTunes? The previous version had a 'photos' function in top right of the home screen but this has disappeared from the current version (Dec'12).

    If you are on iTunes 11 on your computer then you can re-enable the left-hand sidebar via View > Show Sidebar (control-S), which should make it look similar to how it used to look - if you then select the iPad on that sidebar do you then get a Photos tab on the right-hand side ?

  • I created a new ID for my Iphone, because the old ID was an email address I no longer have. Also, the phone wouldn't recognize the password I have always used. Now the problem is when I try to update my apps, it automatically wants to use the old ID.

    I created a new ID for my Iphone, because the old ID was an email address I no longer have. Also, the phone wouldn't recognize the password I have always used. Now the problem is when I try to update my apps, it automatically wants to use the old ID. I've set the new ID for the phone, but it defaults to the old one when asking for a password to update apps.

    That's because all apps are forever tied to the Apple ID used to obtain them, & can only be updated using that ID.
    To use your new ID with these apps, you'll have to delete them, then repurchase. Or, contact iTunes support, explain the situation, & ask that they add these apps to the download queue of your new ID.

  • Trying to create Invoice using the API,however i am not able to create the customer accounts in the front end

    when creating invoice using the API AR_INVOICE_AP_PUB.Create_Single_invoice Am Getting the below Error:
    Transaction type is invalid with current transaction date
    invalid transaction type
    either an inventory item description must be provided
    Kindly help me here

    Hi Team,
    I  tried creating the invoice and I got the above errors, however, when updated the batch source ID I am now getting this following error only, i am just left with the following Error only
    Either an inventory item or description must be provided.
    Please help me on this.

  • I migrated info from a hard drive to a new mac under time machine. It says I have shared files, but I don't see the old info on the new machine. Where do I look for it ? How do I make the old backup the base for my new macbook ?

    I migrated info from a hard drive to a new mac under time machine. It says I have shared files, but I don't see the old info on the new machine. Where do I look for it ? How do I make the old backup the basis for my new macbook ?
    The old OS was Mac X 10.5.8.   I think the new one is  10.7.2     Lion.

    Have a read here How do I set up a new Mac from an old one, its backups, or a PC?
    Stefan

  • Why my safari browser is not opening pdf files?I'm currently using the lat 2013 macbook pro with os mavericks and all my software is uptodate?

    Why my safari browser is not opening pdf files?I'm currently using the lat 2013 macbook pro with os mavericks and all my software is uptodate? 

    Back up all data.
    If Adobe Reader or Acrobat is installed, there should be a setting in its preferences such as Display PDF in Browser. I don't use those applications myself, so I can't be more precise. Deselect that setting, if it's selected. Otherwise do as follows.
    Triple-click anywhere in the line of text below on this page to select it, the copy the selected text to the Clipboard by pressing the key combination command-C:
    /Library/Internet Plug-ins
    In the Finder, select
    Go ▹ Go to Folder
    from the menu bar, or press the key combination shift-command-G. Paste into the text box that opens (command-V), then press return.
    From the folder that opens, move to the Trash any items that have "Adobe" or “PDF” in the name. You may be prompted for your login password. Then quit and relaunch Safari, and test.
    The "Silverlight" web plugin distributed by Microsoft can also interfere with PDF display in Safari, so you may need to remove it as well, if it's present. The same goes for a plugin called "iGetter," and perhaps others — I don't have a complete list.
    If you still have the issue, repeat with this line:
    ~/Library/Internet Plug-ins
    If you don’t like the results of this procedure, restore the items from the backup you made before you started. Relaunch Safari again.

  • I have a sequence on tcp that is Standard Def. I have a new set of files in High Def that match the old files. I would like to replace all the SD footage with the HD footage. Anyone know of a workflow to do this task?

    I have a sequence on tcp that is Standard Def. I have a new set of files in High Def that match the old SD files. I would like to replace all the SD footage with the HD footage. Anyone know of a workflow to do this task?

    Do a media manage of the sequence converting the files to the appropriate HD format making the clips offline.  Then simply reconnect the offline clips to the HD clips.  There may be issues in the file names, but they can usually be worked out either with the naming options in media manager or renaming your hd files.  There are many utilities that allow you to batch rename files. 

  • How can I increase the speed of importing audio cds into my iTunes library?  On my old Dell PC cds imported at 30-35x, but my new iMac (using the Apple Superdrive) is trudging along at 8-10x.  Any suggestions?

    How can I increase the speed of importing audio cds into my iTunes library?  On my old Dell PC cds imported at 30-35x, but my new iMac (using the Apple Superdrive) is trudging along at 8-10x.  Any suggestions?

    Hi,
    Not sure you can do anything about this. I get vaiable import speeds - a lot depends on the actual disc. The Read Write spec is 24X but I rarely see speeds close to this.
    Jim

Maybe you are looking for

  • How to delete files from time machine volume

    Before selling my old MacBook Pro, I had backed up all my data on to an external WD hard drive using Time Machine. I had since switched to a desktop but since I did not have any need for the MacBook Pro files at the time, I had put aside that WD hard

  • How to generate SEO URLs in ATG 10.0.1..?

    how to generate SEO URLs in ATG.. pls explain how it works..? Thanks in advance, Vishnu & Nithin Kayithi

  • Weblogic portal 10.3.4 Domain creation issue

    Hi All, I have created the weblogic portal 10.3.4 domain with Oracle Data Base for the following connection pools (cgDataSource-jdbc.xml, cgDataSource-nonXA-jdbc.xml, p13nDataSource-jdbc.xml, p13nProfileDataSource-jdbc.xml, portalDataSourceAlwaysXA-j

  • Heterogeneous Connectivity to MySQL with ODBC 5.1

    Hi, I have a setup with an oracle 10g XE version on an windows Server 2003 together with a MySQL 5.5 I setup a Heterogeneous Link using MySQL ODBC 5.1. Every time I select something from a mysql table all varchar and text fields ignored in result set

  • Another Netbeans Victim

    I'm running netbeans 5 with sdk 1.5 and am having what seems like a common problem running java outside of nb. Of course the code runs fine within nb. The code has a package, my.mosclient.pkg. Within the folder /my/mosclient/pkg are the class files,