Export DataPump with the query option

Hi all

My environment is IBM AIX, Oracle 10.2.0.4.0 database.

I need a few sets of records using a query in export production. Request is attached to several tables. Since we have the BLOB data type, we export using datapump.

We have weaker environments, but have not the same set of data and tables, and therefore not able to simulate the same query in lower environment. But created a small table and faked the query.

My order is

expdp system / < pwd > @orcl tables = dump.dump1 query = dump.dump1:' ' where num < 3 ' ' directory = DATA_PUMP_DIR dumpfile = exp_dp.dmp logfile = exp_dp.log

Query in the command pulls two records directly. By running the command above, I see the size 80KO dump file,
In the export log file.

I see Total estimation using BLOCKS method: 64 KB.
export Dump.Dump1 = 4,921 KB 2 rows.

My doubts are,
(1) is the correct command that I am running.
(2) estimate said 64 k, considering that it says also exported 4,921 KB. But the dump file created is 80KO. It is exported correctly?
(3) given that I run with the use of the system, apart from 2 rows, export all data. We must send the dump file to the other Department. We should not export all of the data other than the query output.
(4) in the order if I am not using "tables = dump.dump1), the export file big mess." Don't know which is the right.

Your answers will be more useful.

The short answer is 'YES', he did the right thing.

The long answer is:

Query in the command pulls two records directly. By running the command above, I see the size 80KO dump file,
In the export log file.

I see Total estimation using BLOCKS method: 64 KB.
export Dump.Dump1 = 4,921 KB 2 rows.

My doubts are,
(1) is the correct command that I am running.

Yes. As long as you query is correct. DataPump will export on the lines that match this query.

(2) estimate said 64 k, considering that it says also exported 4,921 KB. But the dump file created is 80KO. It is exported correctly?

Estimate is made using the full picture. Since you specify, he used the method of estimation of block. Basically, how many blocks have been attributed to this table. In your case, I guess it was 80KB.

(3) given that I run with the use of the system, apart from 2 rows, export all data. We need to send the dump file to other > Department. We should not export all of the data other than the query output.

I will export all the data, but going to export metadata. It exports the table definition, all indexes on it, all the statistics on tables or indexes, etc. This is why the dump file could be bigger. There is also a 'main' table that describes the export job who gets exproted. This is used by export and import to find what is in the dumpfile, and where in the dumpfile these things are. It is not user data. This table needs to be exported and will take place in the dumpfile.

(4) in the order if I am not using "tables = dump.dump1), the export file big mess." Don't know which is the right.

If you only want this table, then you order export is right. If you want to export more, then you need to change your export command. From what you say, it seems that you order is correct.

If you do not want any expoirted metadata, you can add:

content = data_only

at the command line. This will only export the data and when the dumpfile is imported, it must have the table already created.

Dean

Tags: Database

Similar Questions

  • Syntax for taking export with the "Query" parameter

    Hi all

    Please help me about the syntax for export with the query parameter taking

    Hello

    exp file=d:\exp.dmp log=d:\exp.log tables=scott.emp query='where empno=10'
    
    exp file=d:\exp.dmp log=d:\exp.log tables=scott.emp query='where ename='''SCOTT''
    

    Salman

  • The query options using command exp

    Hello

    I'm trying to export a data tables under the following conditions, but it fails. How to export data from tables with the sub condition? The data type of the column is ID NOT NULL VARCHAR2 (80)

    test/test exp = EMP query = tables------"' where id like ' % 00% ' \ ' log = emp.log file = emp.dmp"

    Export: Release 11.2.0.1.0 - Production Fri Nov 21 21:54:12 2013

    Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

    Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

    With partitioning, OLAP, Data Mining and Real Application Testing options

    Export in US7ASCII and AL16UTF16 NCHAR character set

    Server uses WE8MSWIN1252 (possible character set conversion) character set

    About to export specified tables by conventional means...

    . . export the table EMP

    EXP-00056: ORACLE 911 error encountered

    ORA-00911: invalid character

    Export completed successfully with warnings.

    The same conditions as the table below mentioned number of records.

    SQL > select count (*) from emp where id like ' % 00% ';

    COUNT (*)

    ----------

    2701

    Kind regards

    007

    PL note that first export is desupported in 11 GR 2 - see the first section of the Note to the Original export

    You should use expdp with the QUERY parameter - Data Pump Export

    HTH
    Srini

  • How to write the query option in expdp

    Hi Please someone help me how to write the query option in expdp... .in expdp using the query option...

    where AM columnname between 5 May 12 02:57:00.000' and ' 02:59:59.999 6 May 12: ';


    Please do what is necessary...

    Pavan Kumar says:
    QUERY = (columnname scott.test: "where between 5 May 12 02:57:00.000 h ' and ' 6 May 12 AM 02:59:59.999'")

    Who will fail in databases, because you assume nls_date_format. How it is difficult to put to_date() surround channels? Rather than play with quotation marks, using one parfile thusly.

    query=table_owner.table_1:"where business_date between to_date('20120505025700 am','yyyymmddhhmiss am') and to_date('20120505025959 am','yyyymmddhhmiss am')"
    query=table_owner.table_2:"where business_date between to_date('20120505025700 am','yyyymmddhhmiss am') and to_date('20120505025959 am','yyyymmddhhmiss am')"
    query=table_owner.table_3:"where business_date between to_date('20120505025700 am','yyyymmddhhmiss am') and to_date('20120505025959 am','yyyymmddhhmiss am')"
    

    You do not have to have all the clauses in a single line, as they are side by side parfile, which would be enough. For this reason parfile is better than the command line in order to avoid all the back-citing dance.

  • IMPDP | Possible using the query option

    HI PPL,

    I wanted to know if IMPDP is possible by using the query option, as I took full expdp dump of the mentioned table and want to import only select lines.

    Impdp arup/arup directory = demo_dir dumpfile = employees.dmp
    Query = employees:------"" where salary\ > 10000\ order of salary "tables used ="

    version: 10 gr 2
    platform: UNIX

    concerning

    Obviously, it will be slow if you are using the query option, because IMPDP must import only the data that meets the criteria; It of why we export only limited data (one or two tables as needed) and import them completely.

    Concerning
    Girish Sharma

  • help with the new option of memories

    Sorry for my English

    Please help me with the new option of memories

    no memories option appears me

    I have an iphone with IOS 10.02 5

    Hello

    Try this support article > enjoy your memories in pictures - Apple Support

  • Table: "move with the text -" option restores the "stay on the page.

    I'm under Pages 5.6.1 on MacBook Pro (15-inch, mid-2015, retina, 10.11.3).) 2.8 i7 1 TB flash, 16 GB 1600 MHz DDR3, GHz Intel Core.

    The question that I will have (and frankly, have frequently), it is that when I have a table or an image embedded in a Pages document, I have problems affecting this table or an image to "move with the text" Format--> arranges--> object--> move with text placement, inevitably the option 'dressing' going on to "in line with text." But I don't want "inline with the text" option is selected, I want the text to wrap around the image. After scouring the other threads, I found the idea that it has to do with the provision of two-sided objects, and that the image or table should be sent to the front to make it possible. However, these options are completely grayed out during this effort together.

    Anything you can do to help would be appreciated, Internet.

    The Baron

    I'm under v5.6.1 Pages on 10.11.3. Table and image in the screenshot below have wrapping of text around the value and purpose of investment for both is stay on the Page. Get a text wrapping. Is this your goal of flow?

  • On closure of my MacBook Pro always get question "continue application"? with the boxes option to cancel or continue the request.

    On my Mac Book Pro to always stop get question "continue application"? with the boxes option to cancel or continue the request.

    Selection of abandonment does not prevent the following message appears when closing next down.

    Activity monitor shows all the applications that you have

    installed, running in the background? Something can be...

    If you open the force quit, are there topics other than the Finder

    and maybe a browser?

    You repaired the disk from disk utility permissions lately?

    We could also see other boot options on the use in

    Recovery of OS X to use the "OS X Utilities" in there. Be careful.

    Is there more than one user account on your computer? If you

    Start in another user account and have auto login for

    the fact that it is one that rises at the start, a piece

    similar issues or is it just works fine on shut down?

    The question may take some trial and error troubleshooting. This

    may include some basic startup keyboard shortcuts for

    the computer to start in Safe Mode, to do more test, etc.

    If you have access to an official Apple store, you can be

    able to set up an engineering appointment & have someone closer.

    Good luck anyway...

  • RunAs with the /savecred option does not accept the credentials stored by the cmdkey command

    Hello

    I am trying to automate the storage of credentials for profiles of several people on several servers so that they can use it with scripts, they will use that have the command 'runas' with the /savecred option.  I use the command "cmdkey" to store the user and the password, but when the runas command is run, it prompts for the password anyway.  I know that the /savecred works since if I leave the command-line runas for the password and I enter, on subsequent runs, he is more requested for the password.  Curiously, if I use the cmdkey command to replace the stored credentials, runas invite you again the password so it can store it himself.  Almost as runas does not 'trust' cmdkey.  Any thoughts on why this can happen and how can I get around it?  I really need to automate the identification information storing or it will take a couple hundred manual executions of the runas command to get this store on the profiles of all the people in need.

    Hello

    The question you have posted is related to professional level support. Please visit the below mentioned link to find a community that will support what ask you:

    http://social.technet.Microsoft.com/forums/en/category/w7itpro, w8itpro, windowsvistaitpro, windowsxpitpro, windowsintune

  • How to move the "blue bar" with the start option and the clock and icons of a vertical__position on the left side of the screen to the bottom of the screen... has this before happen__once, can't remember what to do.

    How can I move the 'blue bar' with the start option and the clock and icons on the left side of the screen to the bottom of the screen.  It's happened before and I forgot how to move.

    Hello pookprec

    Here's how to do it

    .

  • Difference b/w PIX &amp; router (router with the firewall option)

    Hi all

    I want to know that how we can differ with router (router with the firewall option) PIX bcz can also make Staefull packet filtering. What PIX device that reviewed by the customer to use PIX of the router.

    Thank you best regards &,.

    Guelma

    Hello

    There is a discussion in this forum on this topic; Check "Firewalling: PIX vs IOS Firewall" last conversation was released January 10, 2006. Let me know if it helps.

    Rgrds,

    Haitham

  • Help with the query

    Hi, can someone help me with the query. I try to display comm based on calculation below

    SAL < 5000 then 10%

    5000 - 10000 then 15%

    > 10000 then 20%

    This is the query

    DECLARE

    v_comm number (7.2);

    v_Name emp.ename%type;

    v_empno emp.empno%type;

    v_sal emp.sal%type;

    BEGIN

    SELECT ename, empno, sal IN

    v_Name, v_empno, v_sal

    EMP;

    v_comm: = (IF v_sal < v_sal*.10 then 5000;)

    ELSIF v_sal between 5001 AND 10000 THEN v_sal*.15;

    Of ANOTHER v_sal > 10001 THEN v_sal*.20;

    END IF ;);

    dbms_output.put_line(v_Name||) e with empno' | v_empno | "win a comm' | v_comm);

    END; /

    also tried

    DECLARE

    v_comm number (7.2);

    v_Name emp.ename%type;

    v_empno emp.empno%type;

    v_sal emp.sal%type;

    BEGIN

    SELECT ename, empno, sal IN

    v_Name, v_empno, v_sal

    EMP;

    IF v_sal < v_comm then 5000: = v_sal*.10;

    ELSIF v_sal between 5001 AND 10000 THEN v_comm: = v_sal*.15;

    Of ANOTHER v_sal > 10001 THEN v_comm: = v_sal*.20;

    END IF ;);

    dbms_output.put_line(v_Name||) e with empno' | v_empno | "win a comm' | v_comm);

    END;

    /

    Hello

    Look at the syntax of the IF in the PL/SQL manual.  Comapre to the instruction BOX and also the expression BOX.

    Perhaps, instead of an IF statement

    v_comm: = (IF v_sal<5000 then="">

    ELSIF v_sal between 5001 AND 10000 THEN v_sal*.15;

    ELSE v_sal > 10001 THEN v_sal*.20;

    END IF ;);

    you wanted to write an expression BOX, like this:

    v_comm: = BOX

    WHEN v_sal< 5000                ="" then="" v_sal="" *="">

    WHEN v_sal BETWEEN 5001 AND 10000 THEN v_sal *.15

    WHEN v_sal > 10001 THEN v_sal *.20

    END;

    Or perhaps cela:

    v_comm: = v_sal * CASE

    WHEN v_sal<=  5000="" then="">

    WHEN v_sal<= 10000="" then="">

    OF AUTRE.20

    END;

    You can also use a CASE expression in the SELECT statement.

  • I am user of Lightroom 5. Consider purchase version 6. Not happy with the subscription option, bcs, it looks like a year of use I will not be able to continue to use this version and you want me to pay more to continue to use LightRoom 6. Is this good? If

    I am user of Lightroom 5. Consider purchase version 6. Not happy with the subscription option, bcs, it looks like a year of use I will not be able to continue to use this version and you want me to pay more to continue to use LightRoom 6. Is this good? If so - I'll stay with Lightroom 5.

    You have two options to switch to Lightroom 6:

    1. Subscribe (including Photoshop CC 2014), or
    2. Buy the traditional way CS6 upgrade:

    Products

    Click buy

    I want to buy: menu, choose Update (instead of the default is Full)

    I own: Photoshop Lightroom 5.x

    Make your purchase.

  • Help with the query to select only one record from the result set in double

    Hello

    Please help with the query. Version of Oracle database we use is 10g R2.

    I have a vision that is duplicated IDS, but they are used across the different functions. See below examples of data. Please help me with a query to select only one record (based on ID regardless of the area) from the bottom of the result set of duplicate records. For what is the point of view is there unique records, given the combination of the fields ID, Org, DF, dry, Sub-Sec

    ID
    Org
    DF
    Sec Sub-Sec

    (163)CQCPDMCPDMHD(163)PCENGENGENG(163)CQASICASICIS8888TSTACTACTAC(163)TSHEHESW6789CQINFOINFOFOS6789PCSECSYSSECSYSINFO16789TSSECSYSSECSYSINFO29009PCBMSBMSBMS1

    My result set must eliminate the duplicate identifiers regardless of whoever we choose of the result set. (I mean without distinction Org, DF, s, Sub-s). My expected result set should be.

    ID
    DSB

    DF
    SEC
    Sub-Sec
    (163)CQCPDMCPDMHD8888TSTACTACTAC6789CQINFOINFOFOS9009PCBMSBMSBMS1


    Thank you

    Orton

    Hello

    This sounds like a job for ROW_NUMBER:

    WITH got_r_num AS

    (

    SELECT id, DSB, df, s, sub_sec org

    ROW_NUMBER () OVER (PARTITION BY ID.

    ORDER BY org

    ) AS r_num

    OF view_x

    )

    SELECT id, DSB, df, sub_sec s,

    OF got_r_num

    WHERE r_num = 1

    ;

    He is a Top - N query example, where you choose the elements of N (N = 1 in this case) from the top of an ordered list.

    I hope that answers your question.
    If not, post a small example of data (CREATE TABLE and INSERT, only relevant columns instructions) to your sample data and the results desired from these data.  (I know that you said that you were a view selection.  Just for this thread, pretending it is a picture and post simple CREATE TABLE and INSERT statements to simulate your point of view).
    Point where the above query is to produce erroneous results, and explain, using specific examples, how you get the right results from data provided in these places.  (I didn't quite understand the explanation above.  I don't know why you want to

    ID ORG DF DRY SUB_SEC

    --      ---     --      ---     -------

    1234 CQ DPRK DPRK HD

    and is not

    1234 IS CQ ASIC, ASIC

    or

    TS 1234 IT IT SW

    or

    1234 CQ ASIC ASIC HD

    )
    If you change the query at all, post your modified version.
    Always say what version of Oracle you are using (for example, 11.2.0.2.0).

    See the FAQ forum: https://forums.oracle.com/message/9362002

  • APEX export report rerun the query

    Hi all!

    Version-
    Oracle 11.2
    Apex 4.1

    We have a report of Apex that is generated by calling a function. When the report is displayed in the area, when you click Export to export to CSV, the query is executed again. The report should not be exported without rerunning the query?
    Y at - it all parameters must be configured to disable the query to new while exporting a report or it comes to APEX?

    Thanks in advance.

    -SS.

    Export a report is a separate application and it will get the requested data and create a CSV file out of it. Thus, the query will always to run once more. The report that you view on your page will always get only that number of lines to the customer as requested in the paging and the condition in your report can ask many more lines.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

Maybe you are looking for

  • System Explorer is unable to find the file RT pilot VI.vi more

    I work with a custom device called PWM_Async_1. Customized, among other things, device library includes the file PWM_Async_1 RT pilot VI.vi. (1) To test a few things I've created different versions of (1) renamed PWM_Async_1 RT pilot VI.bak1, .bak2..

  • search for Windows 'user' Active Directory

    the system will have many users, test records must be saved in the c:\Documents and Settings\\Application Data\Pacing FAT32\ How can I dynamically determine this path for different users?

  • Post it notes

    How do you download post it notes in windows mail?

  • Can I use my WRT160N V1 as a signal booster/access point?

    I have a router Linksys WRT160N I want to use it as an access point for the devices in my basement. The main modem is a century link PK5001A. How could I go to set it up?

  • My remote desktop connection will not register

    Recently, my laptop crashed and I completely restored it to factory settings. I didn't use it much, but recently, my remote desktop connection did not work as I restored it. My school has a server where I can connect to the server, but it has not wor