How can I specify a different schema when importing using DBMS_DATAPUMP?

I use the following procedure to import a schema. Is it possible that I can specify the import to import into another schema?

Basically, what I want to do is take a pattern and copy it into another schema

DECLARE
v_dp_job_handle NUMBER;     -The handful of job data pump
v_count NUMBER;     -Index of the loop
v_percent_done NUMBER;     -Percentage of job complete
v_job_state VARCHAR2 (30);     -To keep track of job status
v_message KU$ _LOGENTRY;     -For error messages and work in PROGRESS
v_job_status KU$ _JOBSTATUS;     -The State of the work of get_status
v_status KU$ _STATUS;     -The status returned by get_status object
v_logfile NUMBER;
T_DATE VARCHAR2 (13).
BEGIN
v_project: = 'TEST ';
T_DATE: = '03272009_1048 ';

/ * IMPORT * /.
/ * OPEN THE DATAPUMP PROCEDURE * /.
v_dp_job_handle: = DBMS_DATAPUMP. OPEN)
OPERATION = > "IMPORT."
JOB_MODE = > "SCHEMA."
-REMOTE_LINK = > v_desitination_server_name,
JOB_NAME = > v_project | ' _IMP_' | T_DATE,
VERSION = > 'LAST');

/ * ADD THE NAME OF THE DUMP FILE TO THE DATAPUMP PROCEDURE * /.
DBMS_DATAPUMP. ADD_FILE)
MANAGE = > v_dp_job_handle,
FILENAME = > v_project | ' _EXP_' | T_DATE |'. DMP',.
DIRECTORY = > "DATAPUMP");

/ * ADD THE NAME OF THE LOG IMPORT FILE TO THE DATAPUMP PROCEDURE * /.
DBMS_DATAPUMP. ADD_FILE)
MANAGE = > v_dp_job_handle,
FILENAME = > v_project | ' _IMP_' | T_DATE |'. JOURNAL '.
DIRECTORY = > 'DATAPUMP. "
FILETYPE = > DBMS_DATAPUMP. KU$ _FILE_TYPE_LOG_FILE);

/ * START THE IMPORT * /.
DBMS_DATAPUMP. START_JOB (v_dp_job_handle);

/ * END OF THE DATAPUMP PROCEDURE * /.
DBMS_DATAPUMP. Detach (v_dp_job_handle);
END;

Use metadata_remap with the REMAP_SCHEMA option proc:

DBMS_DATAPUMP. METADATA_RAMAP (id, 'REMAP_SCHEMA', 'SOURCE_SCHEMA', 'DESTINATION_SCHEMA');

Tags: Database

Similar Questions

  • How can I stop and then resume when you use the magnetic Lasso tool?

    CS4 on Mac. I have some fairly complicated selections to make and the magnetic lasso tool seems a good choice. However: How can I stop and then resume when in use? For example, I would like to zoom, start by dragging along the edge, then stop, move the image to a different area of it is in the middle of my screen, then pick up again where I left.

    Hi MarieMeyer,

    You can press the SPACEBAR shortcut to activate the hand tool temporarily once you are finished with the selection on a part of the image.

    Then, move the image with the key space key and let it continue with the selection by using the magnetic lasso tool.

    You can use the SHIFT key to add to the selection by using the magnetic lasso tool.

    Kind regards

    Claes

  • How can I disable the mouse pad when you use a mouse plug-and-play?

    How can I disable the mouse pad when you use a mouse plug-and-play? I tried to disable the driver, and nothing works.

    Hello

    Check with support of the manufacturer system, documentation online or forums that there is probably
    Shortcut keys that enable and disable the touchpad functions.

    Parameters for TouchPad located in the control panel - mouse (there may be several tabs with TouchPad entered)
    and some come with a utility that loads in the Notification area next to the clock in the bottom right.

    ==========================================

    If necessary: (make sure that you have restarted at least once, if the above did not work)

    Panel of configuration manager devices - mouse and pointing devices - Double click on the touchpad - the driver tab-
    Click on update driver (it comes may not do anything like MS is far behind the drivers of certification), now right CLICK
    on the TouchPad and UNINSTALL.

    Then go to the USB and UNINSTALL ALL controllers except the category itself (all in). RESET

    This will refresh the driver for the TouchPad and battery USB. This does not prevent the touchpad from working.

    The similar procedure on XP, Windows 7 and Vista is the same, except that we need to clear the specific device if present.
    http://support.Microsoft.com/kb/310575

    Then go to the system manufacturer's website and get the latest touchpad drivers.

    Download - SAVE - go to where you put it-click on - RUN AS ADMIN.

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • How can I specify the Page size when exporting PDF in CS5?

    Hi all

    I just upgraded to ID CS5 and I'm really impressed with the improvements. Of course, however, some aspects take a few adjustments that brings me to my question. How can I specify the size of the "printed" page when you export a PDF file? Basically, in CS4 I could set up a document to have, for example a page size of 20x20cm. I could then print it in PDF format and select a page A4 format. This meant that I could get my printer to print the document of 20 x 20 irregular size on a standard paper size and include benchmarks of crop etc. In CS5, I cannot get ID to export the pages that they are configured (i.e. 20x20cm).

    I don't know I must be missing something obvious here, someone has any ideas?

    I hope that I managed to explain my problem clearly enough and we hope to hear from someone soon. Thank you very much in advance for any help you can provide!

    Gavin.Fraser wrote:

    As a student of architecture, I'm pretty new to publication. My main need is for portfolio presentations and also my thesis work. So far, as mentioned earlier, before CS5 I was printing to / check-in PDF directly from ID without problem. For some reason any (and I stil have not thought to it yet) it seems the only way I can get the PDF of ID files is to create a Postscript file, open with Preview (I use a Mac) and then save as PDF.

    Try file > report > Adobe PDF (Print)... to make a PDF file you can print from Acrobat or Reader. You will have several presets of your choice, or you can use your own options if you have settings that you prefer, which will make a PDF suitable for different types of printing scenarios. For digital output instead of a commercial press, a ggod preset choice would be of high quality printing, but you can even use the same jopoptions or settings file you were using to print directly to PDF in the past.

  • How can I specify an output folder when exporting?

    I'm under Premiere Pro CS5.5 Adobie.

    I got to file-> export-> Media. The "export settings" box will appear.

    I know how to set my desired export settings. The issue I'm having, it's under the "Summary" section where the output is specified. Often, I find that my video is output to the random and unwanted files. My videos are found in records buried deep into my drive hard, where some have been lost forever. How can I specify the output location so I can easily find my video in a place that I want and that it is convenient?

    -very frustrated.

  • How can I read from the InputStream when I use StreamConnectionNotifier

    I want to make a program that will listen on port 100 and exchange with PC message.

    And the program uses wifi to connect with the PC.

    I have StreamConnectionNotifier choice and I can receive request for socket of PC, but when I open imputStream, Exception throw.

    My code:

    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;

    Import javax.microedition.io.Connector;
    Import javax.microedition.io.StreamConnection;
    Import javax.microedition.io.StreamConnectionNotifier;

    SerializableAttribute public class ServerThread extends Thread {}
    constants
    private public static final String URL = ""http://:100;interface=wifi;deviceside=false "; "
    fields
    private StreamConnectionNotifier _notify;
    private InputStream _in;
    private OutputStream _out;
    private StreamConnection stream = null;
    private HelloWorld _app;
       
    Private boolean isStop = false;
     
    public ServerThread() {}
      
    }
     
    {} public void setApp (HelloWorld app)
    _APP = app;
    }
     
    public void run() {}
    try {}
    {while(!isStop)}
    {Synchronized (this)}
    _notify = Connector.open (URL) (StreamConnectionNotifier);
    }
    Stream = _notify.acceptAndOpen ();
    _in = stream.openDataInputStream ();  //<-- i="" think="" this="" line throw="" excepiton,="" excepiotn="" 's="" message="" is:request line="" is="">
    _out = stream.openDataOutputStream ();
    extract the data from the input stream
    StringBuffer sb = new StringBuffer();
    Reference int = - 1;
    {While (-1! = (reference = {_in.read ()))}
    Reference of the SB. Append ((Char));
    }
        
    _APP.updateText (SB. ToString());
        
    StringBuffer res = new StringBuffer();
    Res. Append ("HTTP/1.0 200 OK \r\n");
    Res. Append ("Content-type: text/html \r\n");
    Res. Append ("Content-Length: 1 \r\n");
    Res. Append ("1");
    _out. Write (res. ToString(). GetBytes());
        
    _in. Close();
    _out. Close();
    _notify. Close();
    }
    } catch (IOException e) {}
    probably the stream has been closed.
    System.Err.println (try ());
    _APP.updateText (try ());
    } {Finally
    try {}
    If (stream! = null) {}
    Stream.Close ();
    }
    } catch (Exception ex) {}
    }
    try {}
    If (_notify! = null) {}
    _notify. Close();
    }
    } catch (Exception ex) {}
    }
    }
    }
     
    {} public void stop()
    isStop = true;
    try {}
    If (stream! = null) {}
    Stream.Close ();
    }
    } catch (Exception ex) {}
    }
    try {}
    If (_notify! = null) {}
    _notify. Close();
    }
    } catch (Exception ex) {}
    }
    }

    }

    When I use IE application this port the program can block reading of inputStream.

    What's wrong? Please help me.

    What could happen is the following (Please check if this is the case however). Your code side device receives an incoming connection, but is then stuck on waiting for InputStream.read return anything. This translates your code aside PC it also blocks its BufferedReader.readLine, because the device-side code is not send anything (yet). So, you have a classic network impasse. If it is exactly what is happening, then you can try to fix the problem in several ways.

    1. change the code aside device to read byte-by-byte (int InputStream.read () instead of void InputStream.read (byte [],...)). It might help because on a few BlackBerrys the TCP stack returns the data received so that the stream is closed by a peer until you start viewing byte-by-byte.

    AND/OR

    2. change the PC-side code to close the output stream before reading the input stream (that's how works HTTP/1.0, for example). It might help because on a few BlackBerrys the TCP stack does not return data received until the stream is closed by a peer.

  • How can I specify the first directory when Thunderbird looks like to attach a file?

    I want to easily attach a file to a standard directory, so I want Thunderbird to look here first
    I specify an attachment for outgoing mail. Any suggestions?

    Thank you, finitarry. It was not clear that the backup
    location was also used for the location of reading.

  • How can I keep my current theme when you use the private window

    I went from using a complete theme for just a regular theme (one is no longer compatible with the 40.0.2 full update). When I open a private window I am presented with the default theme of Firefox with no way to change to one of the other themes that I try to apply. Is there something that I am missing, or was it a change that has taken place through many updates for Firefox, while I was still using the complete theme? I would like to use the theme on windows normal and private is it possible?

    Sorry, it's a 'function' private browsing and using a light theme. PB takes the default theme. Been like that for quite some time now - as can be as far as Firefox 29, 30 or 31.

  • How can I clear the browser history when you use the custom settings for history?

    When my history option is set to "Use the custom settings for history", the options page has no link to "clear recent history". There was formerly a menu option, but that seems to be gone now with Firefox 29. Is my only option to access the dialog box, clear the history all to change the historical option to history to remember and then change it back? Is there another way to access the option erase history all?

    I think you can get the menu bar by pressing the ALT key. If you want to return permanently, click View > toolbars and check menu bar.

  • How can I disable those ANNOYING rattling when I use the keyboard of my Samsung Galaxy Mega?

    Please help me! I can't understand how to do this, and these clicking noises are driving me crazy

    brosa5080 wrote:
    Please help me! I can't understand how to do this, and these clicking noises are driving me crazy

    Maybe ask in a Samsung forum might be a better idea?

    WyreNut

  • How can I specify what font I want to use, use a font of the web that I got from Typekit?

    Hello, I recently just got how integrate web fonts - Tykepit (fonts obtained while creating an Adobe Typekit kit, not through the Adobe Edge Web Fonts). I would like to know how I can use special fonts in a family of fonts in specific pieces of text. I'm not all good at CSS and coding, so some clarifying would be appreciated.

    Thank you.

    You can apply the font of the text panel, or select the text itself and apply the police.

    Also check this:

    https://www.YouTube.com/watch?v=d0jZcBNsd1M

    Adobe Help Typekit: Use of several weights and styles

    Thank you

    Sanjit

  • When you open a new tab, how can I specify a site or empty? My open tabs to a site I want to see.

    When you open a new tab, how can I specify a site, the home page or empty? My new tabs open to a site that I don't want to see.

    This can be done easily.
    Just install the addon FEATURE My Homepage

    You can get it here:

    https://addons.Mozilla.org/en-us/Firefox/addon/my-homepage

    I hope this helps.
    Thank you!

  • RH9-how can I specify the first page to display when I generate WebHelp?

    I use RoboHelp 9.

    When I generate WebHelp, first point, I've specified in the table of contents is not the first screen. How can I specify the first screen to display when the poster of WebHelp?

    Thank you.

    Hello

    Unique recipe Source presentation settings, expand the categories of content and click on the category that you use. Then click on the button select and propose a new topic to be the default value.

    See you soon... Rick

    Useful and practical links

    Wish to RoboHelp form/Bug report form

    Begin to learn RoboHelp HTML 7, 8 or 9 in the day!

    Adobe Certified RoboHelp HTML Training

    SorcerStone blog

    RoboHelp EBooks

  • How can I specify cookies that I want not deleted when the private browsing session?

    I want to use Private Browsing all the time, but want to keep certain cookies as my sign in info for hotmail.com and some banking newspapers in info. How can I specify cookies that I don't want to not deleted?

    You can protect specific cookies with CookieCuller extension.
    The cookies are protected in this extension, so otherwise (clear recent history) will still remove them.
    You can leave all cookies expire if you close Firefox and keep protected cookies.
    If you use build-in Manager the cookie then you can do exceptionally allow for a specific domain, but CookieCuller can protect specific cookies.

  • How can I specify VISA as the interface of the wizard of IVI instrument driver?

    After a long hiatus and to reinstall on a new hard drive, I resumed an IVI driver development. Previously, when I experienced, I was able to generate a driver that uses the API of VISA.

    Now, on this new installation, when I start the wizard, the only choices I have are Gbspecifications FOR, serial and VXI (message and registry).

    How can I specify VISA?

    Hey Frog,

    As this measure Studio LabWindows/CVI Instrument Driver Developer Guide , VISA i/o interface is the mechanism through which the pilot communicates with the hardware of the instrument. The IVI Instrument Driver Wizard allows you to only select among GPIB, VXI and series more specify the interface for your instrument.

    I hope this information helps!

Maybe you are looking for

  • Satellite C50-A-157 Sandisk USB does not work in Recovery Media Centre

    I can't get Sandisk Cruzer USB to work in recovering from the media library. Have tried formatting but no luck. I read on another forum of Toshiba that Sandisk USB keys do not work and you need to use another brand. Anyone know if it's true? Thank yo

  • Impossible to install internal modem on my Satellite A80

    My Toshiba recovery cd is corrupted, so I got the latest version of XP on CD and loaded with a lot of success. However, the internal modem necessary to a driver who was on the restore cd but not on the new CD.I downloaded which, in my opinion, is for

  • 700 black upgrades

    Can upgrade you the ram and ssd yourself on black 700?

  • Very old game

    Defender of the Crown

  • Toshiba L300D - Vista - invalid key

    I completely formatted and reinstalled my laptop the month last using the product key that was given to me with the laptop when I bought a refurb from PC World several years ago. I was given a CD key and OEM product ID.Yesterday windows told me the p