How to impdp usera.table1 into userb.table2 with a query...

Greetings
Environment:
Oracle 11.2.0.3 EE on Solaris
I have a full table export of USERA.TABLE1 and I want to import a portion of that table into USERB.TABLE2 using impdp.
I have tried several versions of my parfile but have not yet been successful.  The import succeeds but imports ALL rows of the source table and not just the ones filtered by the QUERY.
Here is the latest version of my parfile: (not sure if the '{code}' formatting is still valid so pardon me if it's not)
{code}
userid=system/**********
directory=data_pump_dir
dumpfile=table1.dmp
logfile=table1_impdp.log
tables=usera.table1
remap_table=usera.table1:userb.table2
remap_schema=usera:userb
table_exists_action=append
query=usera.table1:"where trunc(ACTIVE_DATE)=to_date('31-jul-2013','dd-mon-rrrr')"
{code}
There is something wrong with the QUERY statement but I can't get the syntax correct.
ACTIVE_DATE is a valid column in both tables.
Is the schema.tablename supposed to be the original source values (usera.table1) or the new target values (userb.table2)?
Any help is greatly appreciated!!
-gary

Gary,
Here is the right parfile.  I'll explain the reasoning.
tables=orig_schema.orig_table
remap_table=orig_schema.orig_table:new_table
remap_schema=orig_schema:new_schema
query=orig_schema.orig_table:"where rownum < 10"
The tables= parameter is a filter which needs to be applied to the existing dumpfile.  It is done first regardless of which parameter you enter first on your command.  So, since no remap has taken place yet, all Data Pump knows about is the original information.
remap_table - takes an optional original schema then an optional . then the required original table name.  Then the required : and then just a new table name, NOT NEW_SCHEMA.NEW_TABLE.
In your case, you are also remapping the schema, so you need a remap schema= old_schema:new_schema
The query is also verified before any remapping is done so you need to specify the original information here.
Hope this helps.
Dean

Similar Messages

  • How to set user friendly URL in ApEx with OHS 11g ?

    Hi,
    How to set user friendly URL in ApEx with OHS 11g ?
    I want change the link http://190.148.xxx.xxx:8080/pls/apex to something like http://xxx.com.
    I dont want to use iFrame solution. Please suggest any other method to acheive the same.
    Thanks & Regards,
    Ranu

    Hi all
    Iam using apex 4.0 -oracle 11g with OHS on linux os
    I need to change my apex url http://x.x.x.x:xxxx/apex to http://x.com
    What are the settings i need to do.
    If any one knows please share the solution with me
    Thanks & In advance

  • How to find users who are running IE with different credentials ?

    How to find users who are running IE with different credentials ? 
    Is there any tool or a solution in the market will help or a i can use GPO or even Power Shell ?
    thnx & Regards ,,

    Hi Salman,
    Based on your description, we can use Windows Credential Manager to check this. Windows Credential Manager stores credentials, such as user names and passwords  that we use to log on to websites or other computers on a network.
    Regarding Credential Manager, the following article can be referred to for more information.
    Credential Manager
    http://windows.microsoft.com/en-in/windows7/what-is-credential-manager
    Manage passwords in Internet Explorer using Credential Manager
    http://www.thewindowsclub.com/manage-passwords-internet-explorer-10
    Please Note: Since the above website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best regards,
    Frank Shen

  • How to impdp data only into a specific schema

    Hello,
    How to impdp Tables and Materialized Views only into a specific schema. Also, how to exclude certain tables in particular schemas from being imported. Thank you.

    Pl Check the link
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#i1007865
    Thanks

  • How to change 'z' key into 'A' key with key blinding?

    How to change 'z' key into 'A' key?
    Although txt.setText("A") can set the text field with 'a', but it is not original input from keyboard because it cant trigger the key listener.
    It is possible to perform key pressing more than a key in same time? Example, perform 'q' & 'w' keys pressing at the same time.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Main
    {   public static void main(String[] args)
        {   JFrame f = new JFrame("Test");
            Test GUI = new Test();
            GUI.setOpaque(true);
            f.setContentPane(GUI);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setVisible(true);
    class Test extends JPanel
    {   JTextArea txta = new JTextArea(10,20);
        JTextField txt = new JTextField(10);
        JScrollPane sp_txta = new JScrollPane(txta);
        public Test()
        {   this.setPreferredSize(new Dimension(400,300));
            setLayout(new BorderLayout());
            txta.setEditable(false);
            add(sp_txta, BorderLayout.CENTER);
            add(txt, BorderLayout.PAGE_END);
            Action testAction = new AbstractAction()
            {   public void actionPerformed(ActionEvent ae){ txt.setText("A"); }
            txt.getInputMap().put(KeyStroke.getKeyStroke('z'), "test");    //Change z into A
            txt.getActionMap().put("test", testAction);
            txt.addKeyListener
            (   new KeyListener()
                {   public void keyPressed(KeyEvent e){ txta.append(e.getKeyChar() + " key is pressed \n"); }
                    public void keyReleased(KeyEvent e){ txta.append(e.getKeyChar() + " key is released \n"); }
                    public void keyTyped(KeyEvent e){ txta.append(e.getKeyChar() + " key is typed \n"); }
    }Edited by: 835972 on Feb 11, 2011 8:11 AM

    It is possible to perform key pressing more than a key in same time? Example, perform 'q' & 'w' keys pressing at the same time.With r.keyPress method, it only can perform single key pressed at a time. Do you have any idea how to perform multiple key pressed at a time?The javadoc for Robot.keyPress suggests ( "+The key should be released using the keyRelease method+" ) that the key remains "pressed" until you keyRelease(...) it. So, press the keys sequentially:
    theRobot.keyPress(KeyEvent.VK_Q);
    theRobot.keyPress(KeyEvent.VK_W);
    // At this stage both Q and W are pressed "in same time"
    ... // do stuff
    theRobot.keyRelease(KeyEvent.VK_W);
    // At this stage, only Q is pressedI suspect that in real life, unless you're a very gifted musician, you don't really press keys "at the same time" (under the time resolution of a keyboard, which I imagine is around a few milliseconds).

  • How to delete users in CMC BO integrated with SAP BW

    hello experts,
    i am using bo 4.1 , i want to delete users in CMC which is integrated with SAP BW role import.
    i am deleting manually but after BW connection refresh again users is coming in to CMC.
    please tell me any alternate way to delete users
    thanks,
    naresh.

    Hi,
    You cannot delete the users if they are integrated with SAP BW role import.
    However if you remove all the roles that the users is/are member of then the user will be removed automatically in next update but by doing so it will remove all other users part of those groups that you are not interested in also.
    may i know why are you looking to delete users ?
    If you delete manually then all the personal folders will be vanished and even if your user comes back in the next update you will not be able to recover the personal folders.
    Thanks,
    Tanveer.

  • How to save User input into DB using webdynpro abap

    Hi,
    Im trying to create an application using webdynpro abap.
    I want to know how to save the data input by user, into a database table.
    In my UI, I have a table control which is editable and user inputs data into this. I need to know how i can transfer this data to a DB table.

    hello,
    u can do it by reading ur context node.
    we bind our UI elements to context attributes of appropriate type .
    we read their values using the code wizard or by pressing control+F7, click on radio button read node/attribute
    here for ur specific case , u must have binded ur table control with the context attribute , now u need to simply read this attribute
    eg suppose u have created a context node " cn_table"
      reading context node cn_table
       DATA : lo_nd_cn_table TYPE REF TO if_wd_context_node ,
             lo_el_cn_table TYPE REF TO if_wd_context_element ,
             ls_cn_table    TYPE wd_this->element_cn_table.
    *   navigate from <CONTEXT> to <CN_TABLE> via lead selection
      lo_nd_cn_table = wd_context->get_child_node(
                       name = wd_this->wdctx_cn_table ).
    **    get element via lead selection
      lo_el_cn_table = lo_nd_cn_table->get_lead_selection(  ).
      lo_el_cn_table->get_static_attributes( IMPORTING
                 static_attributes = wa_table ).
    here wa_table is the work area of structure type . u need to create a structure first with the same variables as there are the context attributes in ur node cn_table
    in ur
    now ur wa_tablecontains value
    u can nw use appropriate FM to update , delete and modify the DB table using the value
    u cn directly use SQL statements as well in the method of ur view , but direct SQL statements are nt recommende
    rgds,
    amit

  • How to merge user accounts into one account

    I have 2 user accounts and need to merge them into one (having both running seems to slow down the computer significantly). There is some overlap in itunes and apps but none on iphoto. What would be the best way to do it?
    Krzys

    To move files from user account A to account B, log in as A, and move all the files to /Users/A/Public. Then log in as B. Navigate with Finder to /Users/A/Public, and drag them to the desktop to copy them. Then file them away in their appropriate places. When done, you can delete the A account.
    Suggestion: Keep one spare admin account around to use in an emergency. If your other account gets borked and you can't log in, it could save your bacon. A second user account is also useful for troubleshooting misbehaving apps.

  • How an Admin user log into a lock out standard user account?

    I remember that I was able to override the access to the standard account user when the standard user has the screen lock out. This appear to be missing in Lion. Has anyone knows how to do this in Lion? Thanks.

    From my personal experience I can say that at times, four folders (i guess Assets is one of them) somehow get left in C:\Program Files (x86)\Adobe\Elements 11 Organizer folder.
    I delete them and restart my system.. and reinstallation works fine. If that's the case with you, you can try it.
    CS Cleaner tool might also help.
    Thanks
    Andaleeb

  • How to accept user values into a pl/sql procedure or function on every execution

    As we accept user values on every execution in a C or a java program, is it possible to do so with a pl/sql procedure or a funtion without using parameters?
    I cannot use parameters because it is required to be interactive while accepting the user-values like,
    Please enter your date of birth in 'dd/mm/yyyy' format:

    It depends from where you are calling your PLSQL routine. If it is SQL*Plus then you can use & (ampersand) with the variable to be input at run time.
    If you are executing the PLSQL routine from another application (some front end application) then it's not possible. Because when a procedure is executing at server side, the front end application does not have control, and the control is only transfered back to front end application when the PLSQL routine either completes successfully or throws an exception.
    In either case, you can not go back to the PLSQL routine.
    In this case, what you can do is, write code in your front end application to get that variable value from user and then pass that value to PLSQL routine.

  • Querying for users logged into attendant console with AXL (help)

    I am wondering if anyone knows of any AXL commands that can be used to query who is logged into attendant console? I know that there is a perfmon counter that will tell you how many users are logged in but there is no other detail beyond that. Any help would be greatly appreciated! Thank you in advance for the assistance.

    So after speaking with O365 Support and examining the Activesync Logs (hold down control, rt. click on the exchange tray app bottom right corner of the screen, click Test ActiveSync) we were able to see outlook trying our on-premise exchange servers first.
    Despite failing on them, and moving on to activesync.outlook.com, it still would not mount the O365 mailbox & shared mailboxes appropriately.  If we set DNS to manual on the workstation to publics, the problem would go away.
    Disabling SCP by running the following command on both our exchange servers fixed the issue:
    Set-ClientAccessServer -Identity “SERVERNAME” -AutoDiscoverServiceInternalUri $NULL
    Credit to AgileIT! Here's the complete reference:  http://www.agileit.com/news/outlook-profile-autodiscover-service-order-of-precedence-and-disabling-scp-for-hosted-exchangeoffice-365-migrations/
    4 Hours dealing with this issue.  

  • If I have two separate pages documents, how do I compile them into one document with multiple pages?

    I have two separate documents, but I need them to be in one document in a sort of magazine form. How do I get the documents saved together so there are multiple pages in one document?

    Menu > View > Page Thumbnails > click on the thumbnails > Copy > Paste into second document thumbnails
    Peter

  • How to get users from Organizational Unit and with worker's subgroup

    Hi
    I am looking for a f. module to get the list of users from specific Organizational Unit and with specific worker's subgroup.
    I found f. module SWI_GET_USERS_OF_ORG_UNIT but it seems not working and only returns the users, how can I narrow the selection to get only from specific worker's subgroup?
    Thank you

    Hi,
    Try with FM RH_STRUC_GET with following parameters:
    ACT_OTYPE = O
    ACT_OBJID = worker's subgroup
    ACT_WEGID = SBESX
    Most important is to specify OBJID as the workers's subgroup, values for the others parameters may vary.
    Cheers.

  • How to Export Multiple Compositions Into Multiple Folders With Metadata?

    Currently I am working on a project which requires the export of one video file into multiple sizes and formats. In the end there are 80+ separate video files which derive from basic groupings of ratios. As you can see by the attached pictures, I have set up a waterfall type procedure in which a master composition with safe margins is inserted into the various sub-ratios until it trickles down into the final sizes at the bottom.
    I know you can simply drag and drop the files from After Effects into Media Encoder after selecting a preset to export the items. My only issue is how can I export the 80+ video files into 80+ different folders (depending on the size/ratio) along with the proper metadata?
    So my thought became is there a way to automate the process by allowing me to create on video, and much like the watch folder, export the one master video and then let Media Encoder work its magic with the 80+ other videos?
    Thanks in advance.

    Unless you care to create 80 output presets in AME I don't see it working and then even I wouldn't rely on it. AME is too notoriously error-prone. It would probably be simpler and less nerve-wrecking to create an AE script that sets up your AE render queue and creates the folders and render directly from AE...
    Mylenium

  • How to export all tracks into audio files with the same duration

    Hi everybody.
    I am trying to export all the tracks into different audio files.
    It's 10 soft. instruments and an audio track. I tried with "File>Export>All Tracks as Audio File but the result is 11 audio files with different lengths. As the song is 3 minutes and 20 seconds I would like every single track to be 3.22 sec long.
    How do I do it? In fact, each track is composed not only by played instruments but also by moments of silence.
    Thanks!!
    Alessandro

    sambino wrote:
    I tried with "File>Export>All Tracks as Audio File but the result is 11 audio files with different lengths. As the song is 3 minutes and 20 seconds I would like every single track to be 3.22 sec long.
    The files are different lengths because each instrument does not stop playing at the same moment. It would accomplish nothing other than waste disk space if Logic appended silence to the end of each file in order to make each track the same length. The different lengths you see mean nothing because the absence of appended silence means nothing.
    each track is composed not only by played instruments but also by moments of silence.
    Naturally. And that silence is accounted for in your exported files, when the silence appears at the beginning of the track, and when it appears during the track. It just isn't appended at the end because that would be pointless. Consider this project, consisting of four tracks:
    When I use the command File > Export > All Tracks as Audio Files, Logic will produce four files that look like this:
    The files are not equal in length, which is perfectly fine. What's important is that they all start at bar 1, and will align properly when imported into some other program. So all you need is the command you already used: File > Export > All Tracks as Audio Files. In one step, it will produce all the files you need, and it will produce them correctly.
    By using Bounce, you would be gaining nothing except extra work, because you would have to do it separately for each file you wanted to produce. With Export > All Tracks as Audio Files, you get all your files with just one command.
    iSchwartz wrote:
    exporting tracks means that any panning or automation will not be rendered. So if you want the engineer to put up all of your tracks at unity gain (all faders at zero) and have your tracks & stems reproduce the mix you're hearing at your studio, use bounce, not export.
    If you want to have your tracks & stems reproduce the mix you're hearing at your studio, there's no need to go to the extra effort of using Bounce instead of Export. You only need to enable (in the Export dialog) the checkbox "Include Volume/Pan Automation." This is explained on p. 1022. When you do this, any panning or automation will indeed be rendered.

Maybe you are looking for

  • Purchased album, 1 song wont play

    purchased kanye and jay-z new album, all songs appear but 1 song illest motherf***** alive wont play

  • Supplier Masters in catalog

    Dear All, We are using SRM 5.0 SP08, CCM 2.0 SP08. These are deployed in different servers. In CCM, do I need to create supplier master manually? or Are there any reports/replicating mechanism through which we can upload supplier masters from EBP to

  • Need clarification on ODBC connection in FDMEE custom sripts

    Hi All, I have a requirement to export data from table to text file in FDMEE. I am trying to create custom script for the same. (We did is in FDM) Can anyone please clarify if we can use below connection string in custom script as well. I have seen e

  • Can I turn off the setting to "erase iPad" if I find my lost iPad?

    I lost my iPad a few weeks ago, and since the battery was dead, I couldn't find it using "Find my iPhone."  I was concerned that it could have been left somewhere in public, so I set it to erase the iPad upon connection to the internet.  Now I found

  • Help Needed - Pages will not put/upload

    I will greatly appreciate your advice! - Just had my computer wiped clean and Windows XP reinstalled. I then reinstalled Dreamweaver MX 2004 with no problems. However, one of the sites I had created for a client is causing a problem. (The rest are al