How to copy one schema into another

I need to copy one schema into another. That means, all the tables, views, constraints, etc, and all the data as well.
I have a dmp file of source-schema (created daily with expdp by our backup schedule).
Can I use impdp to import this dmp file into dest-schema? I'm thinking about something like this:
The dmp file was created with:
expdp source-schema/pwd DIRECTORY=dmpdir DUMPFILE=myproject.dmp
Create the copy on dest-schema with:
impdp dest-schema/pwd DIRECTORY=dmpdir DUMPFILE=myproject.dmp
(dest-schema is an existing schema on the same machine. I'll drop all the tables before executing the command. Is there anything else I should do first?)
If this approach is not feasible, kindly suggest me an alternative.
Thank you.
Edited by: mgro on Apr 16, 2010 3:22 AM (changed 2nd command: expdp to impdp)

Thank you both. Dean, I've made a note of your proposed command. May use it next time.
In the end I used the following command and it worked for me. I added TABLE_EXISTS_ACTION=REPLACE since the destination was not empty.
First I ran these command logged in as SYS
GRANT Import Full Database TO dest-schema;
GRANT Create Any Directory TO dest-schema;
GRANT Unlimited Tablespace TO dest-schema;
impdp
dest-schema/pwd
DIRECTORY=dmpdir
DUMPFILE=myproject.dmp
REMAP_SCHEMA=source-schema:dest-schema
TABLE_EXISTS_ACTION=REPLACE
LOGFILE=implog.log
There were some errors though. The import process complained about constraints referencing non-existent primary keys.
It turns out that the source schema has some constraints that are marked with status DISABLED. These constraints either:
- are not part of the DUMP file
or
- are in the DUMP file but skipped during import
Don't know if this is a bug or by design behavior.

Similar Messages

  • How to copy one request to another request

    Hi all,
    How to copy one request to another new request?
    I have a released workbench request in which it has around 1200 Objects (including data elements, domains, programs and many more), now i need to copy all these objects into a new request.
    I can do this by SE03 (Include Objects in a Transport Request ) transaction, but it is a lengthy process.
    Is there any way to copy directly in one go.
    Plz help...
    Regards,
    Satish Reddy D.

    Hi,
    The thing is like this....
    i have a released request in which we have more than 1200 objects, in that i dont need 10 objects.
    so when i create it as copy of transport request, i just deleted those 10 objects and saved.
    Now, if i transport the new request how many objects will go? 1200 or 1190?
    in the new request i am getting the old request under Comment: Object List Included.
    is it necessary to transport the old request?
    i need to transport only 1190 objects.
    Regards,
    Satish Reddy.
    Edited by: Sathish Reddy on Jan 28, 2010 2:18 PM

  • How to include one view into another view

    Hi SDN's,
                   Could any please tell me,How to include one view into another view.
    In my requirment.I want to create a 'Z' view for an interface .In that  view i have to take,
    1) Ship-to-email adrr by
                              LIKP-KUNNR -> KNA1-ADRNR
                              KNA1-ADRNR -> ADR6-ADDRESNUMBER.
    2) E-mail addr of person who created the document.i.e
        LIKP-ERNAM -> USR21-BNAME.
        USR21-ADDRESNUMBER ->  ADR6-ADDRESNUMBER 
        USR21-PERSNUMBER -> ADR6-PERSNUMBER.
       In both the case we have to pass ADDRESSNUMBER to ADR6 table.
    If we pass these condition it fails,B'Coz at a time it passes Two ADDRESSNUMBER and a PERSNUMBER.
    So i created two which fetches only the email addr of  person who created the document.and another view fetches Ship-to-email addr.
    Now i want to include the second view into first view . Is it possible?or please
    tell me someother way to get these email addresses in a single view.

    hi
    as per my knowledge, nested views are not possible. However, while creating a new view, selection method will not giv u option to select the already created view(S) except the tables..i think so.
    regards,
    shamim

  • How can I copy one sheet into another spreadsheet or another file?

    I am trying to copy a sheet from one file into another.  Is that possible in Numbers?

    Open both documents.
    Click on the sheet icon of the sheet you want to Copy fom the Source document. Copy
    Switch to the second document.
    Click on the icon of one of the Sheets on that document. Paste.
    The copied sheet (and its contents) will be pasted into the list immediately below the selected sheet.
    Regards,
    Barry

  • How to call one  JSFF into another JSFF

    Hi,
    I am very new to ADf. Could you please tell me how to call one JSFF inside another JSFF. We have a common pop-up written in one JSFF. Is there any best approach to get this pop-up into other JSFF.
    Thanks in Advance.
    Regards
    Narasimha

    If you want to resue the jsff code, make use of bounded task flow with page fragment and then use it as a region.
    For more details you can refer: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/taskflows_regions.htm
    One more:
    http://docs.oracle.com/cd/E18941_01/tutorials/jdtut_11r2_57/jdtut_11r2_57.html

  • How to merge one library into another library?

    In iPhoto  9.6, is it possible to merge one library into another library? Or otherwise, import individual pictures, from one library into the other library? All of this happening on the same computer.I understand that this feature was covered by Aperture but that this is no longer supported under Yasemite?

    No
    The current version of Aperture can merge libraries (I have no idea where you got the incorrect information that it can not)
    The paid version of iPhoto Library Manager - http://www.fatcatsoftware.com/iplm/ -  can
    Those are you only two choices
    LN

  • How do you copy one page into another pages 5.2 doc

    Working in version 5.2 and want to add (copy) one page from one pages document into another pages document. (both documents are made w 5.2)
    Thanks!

    You could copy and paste pages from one document to another in Pages '09, but Apple removed this from Pages 5.
    Best you can do is copy the content.
    Peter

  • How to copy exitsitng extracter into another new extracter?

    Hello,
    Please some one can tel me how to copy the existing  extracter into another new extracter.
    I have requirment as below
    Currect me if i am wrong ,need to enhance the existing extracter and add some new fields,and need to include some masterdata filds also to it.
    For master data i am going to do write routines at Transfermation so that no need to include in my exter for those filds to extracter.
    Please some one guide me in this scenario.
    Chrs

    Hi,
    you do not have to copy the extractor, you can enhance it with fields and fill them via enhancement coding --> rsa6.
    If you want to copy it, you need to check what kind of extractor you have. Is it a function module or just a table extractor.
    for fm: copy the function module via se37 and copy the extract structure via se11. Add your enhancements in the copied structures and coding. Create a new datasource with rso2.
    for table extractor: create a view adding the additionally needed fields. create a new ds with rso2. Surely you need to add some coding in the relevant enhancement.
    regards
    Siggi

  • How to add one DC into Another

    Hi
         I have created one DC ,now I want to use this DC into another.
         My application is like:
         I have one i/p field and beside it one button which calls another DC.So how     to   do this?
    Thanks
    Prajakta

    Hi,
    This link will solve your problem.
    WebDynpro DC -create and use
    Correct steps to use Java class in WD Java DC from another WD Java DC
    For any queries feel free to ask.
    Regards,
    Praveen

  • HR ABAP-How to copy a PERNR into another new PERNR?

    Hi All,
            How can we copy all the Infotype details related to a Personnel Number into another new Personnel number?
    Thanks in Advance,
       Anjaly

    Hi anjaly,
    1. There is no method/concept of Copying, w.r.t Personnel number.
    2. A new pernr,
        has to be hired in the system FIRST,
        via pa30/pa40 (hiring action),
    3. ONLY THEN,
    4. A new pernr is created in the sytem,
    5. ONLY AFTER THAT,
       we can put other data realted to pernr in the system using pa30 or anything else.
    regards,
    amit m.

  • How to copy report properties into another report?

    I have created one updated list report and I wanted to create another updated list report with same report properties of first one but with different data objects so I don't have to redo properties settings.
    I copied first report to another name and I tried to change data objects but It didn't allow me to choose different data object. It says "Data object must contain at least the same fields as in the Original Data object".
    Do I have to create another report from scratch?

    You could edit the report xml.

  • How to insert one document into another in microsoft word?

    I would like to set up a word document such that the document has embedded in it another document shrunk down a bit to make room for additional comments and information which I will add on the side. I've been looking to see if word 2007 has this feature
    but have had difficulty finding it. Is it possible to take an entire document and insert it as a resizeable object into another?
    Some of my research suggests that I might be able to accomplish something of this nature with publisher, and while several people in my office do not have publisher and we'd prefer if it were doable in word, instructions for publisher would be appreciated
    as well if Word 2007 cannot do this.

    Hi,
    Thank you for using 
    Word IT Pro Discussions
    forum. 
    From your description, I understand that 
    you would like to know to how to add a Word document into another Word document in Word 2007, and you can make some comments besides the embedded Word documents.
    If there is any misunderstanding, please feel free to let me know.
     Thank you for your inquiring.
    To insert a Word document to another Word document in Word 2007, follow the steps below:
    =========
    1.      
    In the Word document, click the
    Insert tab.
    2.      
    Click the
    Object in the Text group.
    3.      
    Click
    object. Then click the Create from file tab.
    4.      
    Click the
    Browse button to select the Word document. Also, check the checkboxes before:
    Link to file and Display as icon.
    5.      
    Click
    OK to save the settings.
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything I can do for
    you, please feel free to let me know.
    Best Regards,
    Sally Tang

  • How to Copy one CD to another CD

    Hi: I want to copy a non-copyrighted music CD to a blank CD to that I can have a CD copy of the original music CD.
    I have a Mac Mini Intel, Solo, 1.5GZ, Running Tiger 10.4.11, which I upgraded to 2Gigs of ram.
    I know there must be an easy way to copy one music CD to a blank CD, but for the life of me I can't figure it out. Thanks very much. Jerry.

    Thanks so much, Fortuny and Awfers. I haven't had a chance to use SimplyBurns yet and I plan to try it, but I was able to import the CD into ITunes and follow the directions Awfers gave. I really appreciate your help. Best wishes, Jerry.

  • How to Include one iView into another iView

    Hi All,
    My requirement is to have 3 input fields across many iviews. on entering the values in those fields, i will invoke a Web Service Model.
    I dont want to keep these 3 fields in all iviews, rather i am planning to create one iview with 3 fields integrated with model and call this iview in many other iviews.
    How do i achieve this in wed dynpro coding. In JSP, there is a concept called "Include Jsp Page" . Is there any similar kind of functionality in WD.
    Kindly guide me .
    Reg/Venkat

    Hi,
    In the portal, create a page and place the iView having the three input fields on top. Place the second iView below. Keep differing the second iView for every page. In this way you can make the iView with 3 input fields only in the desired pages. You can use EPCF to invoke / navigate to another iView.
    Regards
    Srinivasan T

  • Imp records of One schema into another schema of same table.

    I had done following steps,
    schemas(toy,toys)
    1) i open the session of toy schema
    First i taken backup of table
    create table bck20121103_himan as select * from himan;
    Backup table is created.
    After taking the Backup table
    delete himan;(deleting the records)
    2) i log in to another session(toys)
    exp toys/toys@orcl file=20121103TOYs.DMP TABLES=(HIMAN) /* Particular table is taken*/
    3) i log in to toy schema
    imp toy/toy@orcl file=<dump file name> TABLES=(HIMAN) INDEXES=N IGNORE=Y
    i tried the above statement it taken so much of time..
    Later i tried
    I log in to toy session
    i rename the table with other name.
    later i imported
    imp toy/toy@orcl file=<dump file name> TABLES=(HIMAN) IGNORE=Y FULL=Y
    it's successfully imported..
    kindly correct me if its wrong or any other steps is their ..

    as per your first method.
    you took backup
    you deleted not commited.
    took export from toys and imported into toys without fromuser & touser
    after correction.
    ============
    you mentioned
    you took backup
    you deleted toy.himen (again not commited)
    exported toy.himen
    imported toy.himen
    check you might have got the duplicate records also
    when you delete any records its a dml operation which does not auto commit you need to commit it.
    hope you got the point.
    Regards
    Kaleem.

Maybe you are looking for

  • How do I get Adobe to help with an installation problem?

    I removed Windows Vista, and installed XP instead. Then tried to install CS3 using the file I downloaded from Adobe 2 years ago. It installed Acrobat, but the other components (InDesign, Photoshop, Illustrator) failed with "Component not installed."

  • Are there specific BW Info Cubes for RTR, ALM, PTP, OTC?

    Looking to understand if there are standard delivered reporting cubes to support Records to Report (RTR), Asset Lifecycle Management (ALM), Procure to Pay (PTP) and Orders to Cash (OTC).

  • HP/Agilent 33120A Single Pulse Using Burst

    Hello, I am trying to trigger an on demand pulse from an HP 33120A function generator. The pulse has to be a single, 0-5V ramp with adjustable frequency/period. I was able to get as much from the FG by using Burst and manually triggering off the fron

  • Encounter java.lang.OutOfMemoryError when notifyDestroyed

    Hi... i am developing a j2me application using WTK... when my code reaches notifyDestroyed(), it will return me java.lang.OutOfMemoryError and does not exit the midlet. any help?

  • MX 7 Developer Installation Issue

    I am having an issue installing the developer version of Cold Fusion MX7. Long ago I had the MX6 developer version installed. It was removed - uninstalled. When attempting to install MX 7 I cannot select either Server Configuration or Multiserver con