Export using query option

Good morning everyone,
I am currently trying to an export on a table with a where clause of value1= 1 or value1 = 2. When I do this I find the export to be extremely slow. But if I do two exports ie. one export with value1=1 and another export with value1=2 they are quite fast. Now when I do this it is done in two dmp files. Is there a way of doing two exports on the same table into one dmp file without losing any data?? Thank you in advance.
Troy

Hi;
Please see:
Issue with data pump "Query" parameter
Export/Import DataPump Parameter QUERY Specification
http://arjudba.blogspot.com/2008/04/exportimport-datapump-parameter-query.html
Also see:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_export.htm#i1006293
Regard
Helios

Similar Messages

  • Failed to export using the options you specified. Please check your options

    Hi..
    i was using crystal report10.5 with visual studio 2008(c#)..
    now im migrated to visual studio 2010....and i have installed these setups http://www.sdn.sap.com/irj/boc/crystalreports and http://www.sdn.sap.com/irj/sdn/crystalreports-dotnet ...
    when i open my project it will ask to convert crystal reports and i have converted ...reports are working fine but in tool bar if i click and select a pdf format to export it will display a error message Failed to export using the options you specified. Please check your options and try again. and if i click on print button it is not working(i have set printmode=pdf)...when i was working on vs2008 both were working fine but in vs2010 it is not working..

    Hello,
    What type of app you are using? A win app will not have this option. Also what FW are you using? Have you made changes to the viewer(after migrating) and ensure that you are using the 13.0.2000.0?
    Take a look at [this|Export and print problem; thread, also.
    Thanks.

  • Help with export with query option

    I need help with an export with query option.
    I have a script that includes the following
    auddate=`date '+20%y%m%d'`
    file="cal_shrlgpa"$auddate".dmp"
    exp / file=$file tables=shrlgpa query\=" where shrlgpa_pidm in (Select sztahbr_pidm from purdue.sztahbr where sztahbr_to_extract\=\'Y\' and sztahbr_export_status\=\'N\')\"
    echo 'cal export file created:'$file
    when I run the script, I get the following error:
    cal_export_tables.sh[7]: 0403-057 Syntax error at line 7 : `"' is not matched.
    Can somone help me with the query option?

    I made the suggested change:
    exp / file=$file tables=shrlgpa query=" where shrlgpa_pidm in (Select sztahbr_pidm from purdue.sztahbr where sztahbr_to_extract=\'Y\' and sztahbr_export_status=\'N\')"
    and got the following error:
    LRM-00116: syntax error at 'sztahbr_to_extra' following 'where'
    EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
    Shannon

  • IMPDP |Possible  using Query option

    HI PPL,
    I wanted to Know whether IMPDP is possible using query option, as i have taken full expdp dump of the mentioned table and want to import only select rows.
    impdp arup/arup directory=demo_dir dumpfile=employees.dmp
    query=employees:\"where salary\>10000\ order by salary" tables=employees
    version:10gR2
    platform:UNIX
    regards

    Hello,
    Yes you can use QUERY parameter with IMPDP.
    But the syntax may be a little bit different than with the old IMP utility:
    QUERY
    Default: There is no default
    Purpose
    Allows you to specify a query clause that filters the data that gets imported.
    Syntax and Description
    QUERY=[[schema_name.]table_name:]query_clauseYou may have more examples on the following link:
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10701/dp_import.htm#BEHFGIGF
    Hope this help.
    Best regards,
    Jean-Valentin

  • Export with query option

    Hi all!
    I need export different tables from my 10.2.0.4 database using expdp. Some of this tables, needs be under different conditions. How can I prepare my parameter file for this export?
    Table1 --> query: where valid=1
    Table2 --> query: where valid=1 and secure=0
    Table3 --> query: where valid=1 and secure=1
    Thanks a lot!!!

    I'm a bit confused about parameter file ...
    *1. ways to export*
    There are 3 ways to export, you can use parameter file but there is no need for it (personally I never use it)
    a. using expdp
    b. using PL/SQL
    c. external table
    *2. what to export*
    you simply use QUERY clause to specify where conditions, for example if you want to use (a) then it would look like this
    $ expdp query=employees:"where salary>10000" tables=employeesif if you want to use parameter file
    TABLES:emp_salary
    DUMPFILE=dump_dir
    QUERY= emp_salary:"WHERE emp_id IN (SELECT id from emp
    where join_date> to_date('2004-01-01','YYYY-MM-DD')
    AND dept='SALSE')"here are some useful links
    Part I http://www.orafaq.com/node/65
    Part II http://www.orafaq.com/node/67
    Part III http://www.orafaq.com/node/74
    http://www.rampant-books.com/art_nanda_datapump.htm

  • Exporting using "HD" option but doesn't show up on ATV

    I just noticed that when "exporting" out of imovie that what I think is a new option, "HD" is now there. I used to use "large" for everything. I have an HD camera so I was excited to see the quality.
    The resulting video is showing 1280 x 720 dimensions. I checked the ATV and it should play those dimensions and file type. Would imovie really export to a format ATV couldn't use?
    I tried to stream and copy it to the ATV...nothing doing.
    Any advice?

    This option is mainly for people who are exporting to YouTube or Vimeo in HD. These services require 1280x720.
    Apple TV needs 960x540. AppleTV can handle 1280x720 at 24 frames per second, but ony certain Hollywood movies are shot at this rate, most camcorders are either 29.97 fps or 25 fps.
    For BluRay, most people would use 1920x1080.

  • Impdb using QUERY option

    I am using the following to filter the rows of a data pump import
    impdp $IMP_ADMIN schemas=$FROMUSER remap_schema=$FROMUSER:$TARGET_SCHEMA transform=OID:N exclude=USER,GRANT dumpfile=DATAPUMP_DIR:$DUMPFILE logfile=DATAPUMP_DIR:import$TARGET_SCHEMA.log parfile=$ACCNT_PAR
    $ACCNT_PAR is
    query=SCHEMA.TABLE_2:"WHERE column_id > (select max(column_id)-32 from SCHEMA.TABLE_1)"
    query=SCHEMA.TABLE_3:"WHERE column_id > (select max(column_id)-32 from SCHEMA.TABLE_1)"
    query=SCHEMA.TABLE_4:"WHERE column_id > (select max(column_id)-32 from SCHEMA.TABLE_1)"
    query=SCHEMA.TABLE_5:"WHERE column_id > (select max(column_id)-32 from SCHEMA.TABLE_1)"
    When the import happens before SCHEMA.TABLE_1 is imported i get
    . . imported "SCHEMA"."TABLE_2" 0 MB 0 out of 391523 rows
    then after the SCHEMA.TABLE_1 table is imported i get
    . . imported "SCHEMA"."TABLE_3" 16.25 MB 91256 out of 175825 rows
    If i seperately import the TABLE_1 table first, and then run another import. I get the results i am looking for.
    . . imported "SCHEMA"."TABLE_2" 16.25 MB 91256 out of 175825 rows
    . . imported "SCHEMA"."TABLE_3" 16.25 MB 91256 out of 175825 rows
    Question:
    Is there a way to force the query based table (TABLE_1) to be imported fisrt?
    Or is there another approach i could use?
    Thanks and Regards
    Timothy

    If i seperately import the TABLE_1 table first, and then run another import. I get the results i am looking for.You have a working solution.

  • Exp & Query option causing EXP-00056 ORA-00904

    Experts,
    Database Version: 9.2.0.4.0
    I'm trying to export with using query option, But having below errors.
    Any suggestions Please.
    exp system/***** tables=ORDERS_TN file=ORDERS_TN.dmp log=ORDERS_TN.log query=\" WHERE ORDERS_ID IN \('A1','A201','A3'\) \"
    Export: Release 9.2.0.4.0 - Production on Wed Feb 1 21:42:02 2012
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    Export done in WE8ISO8859P1 character set and AL16UTF16 NCHAR character set
    About to export specified tables via Conventional Path ...
    . . exporting table                     ORDERS_TN
    EXP-00056: ORACLE error 904 encountered
    ORA-00904: "A3": invalid identifier
    Export terminated successfully with warnings.Thanks.

    Hello,
    The preferred way to use the query option is to use it in the parfile, because the query option may have special characters within its values which need to be escaped and every OS has its own way of escaping those characters. So in order to make it portable and easy, create a file parfile and use that in the export command.
    For example create a file myval.txt and put following query in it:
    query="WHERE ORDERS_ID IN ('A1','A201','A3')"
    and then use export command as:
    exp system/***** tables=ORDERS_TN file=ORDERS_TN.dmp log=ORDERS_TN.log parfile=myval.txt
    regards
    Fahd

  • Export Using Compressor locks up FCP

    Im kind of a newb to compressor so bear with me.... I was under the impression that when you export using compressor from FCP that you were still able to edit and work within FCP as compressor is a separate program. However, whenever i use the export using compressor option i get a dialogue box in FCP that says 'compressor processing' and then it goes through my whole FCP timeline frame by frame. I know in the past i have exported using that option and was still able to work inside of FCP while compressor rendered. Could i have possibly changed some settings in compressor to cause this to happen?

    This also is normal when compressing an HDV source sequence into h.264.
    HDV is a Long-GOP format, which requires a lot of processing power to decode. H.264 is also a highly compressed format, which also takes processor power to use.
    Depending on your machine, you may want to look into how to set up a Quickcluster.

  • Quality difference between exporting via Export vs. Export using Quicktime

    In iMovie 08, is there a difference in quality between Exporting a movie at the largest available size via the "Export" menu item, versus using "Export using Quicktime"?
    I have a very long movie of family movies (9 hours) and have been unable to do a straight export (gets to the end after 25 hours or so and gives me a non-descript "can't complete" error message), but would rather split it up into several smaller files than compromise on quality, if there is such a compromise using the Quicktime function.
    If I do go the Quicktime route, what settings should I choose, or just the default. Also, Export using Quicktime option makes a .mov file. What file type does the straight "Export" function create?
    thanks much!
    Neil
    [email protected]

    What file type does the straight "Export" function create?
    All presets are compressed as H.264/AAC content.
    Also, Export using Quicktime option makes a .mov file.
    The MOV file container is "generic" and may contain any form of compressed data compatible with the QT components installed on your system and which the accessing application will allow you to use. In the case of iMovie '08, proprietary and third-party components are not allowed even if installed.
    If I do go the Quicktime route, what settings should I choose, or just the default.
    You use the audio and video codec and settings best suited to the goals of your export. Since you have not mentioned what your are trying to do with your exported content, it is impossible to make any recommendations here.
    I have a very long movie of family movies (9 hours) and have been unable to do a straight export (gets to the end after 25 hours or so and gives me a non-descript "can't complete" error message), but would rather split it up into several smaller files than compromise on quality, if there is such a compromise using the Quicktime function.
    A 9 hour export at the largest (960x540) dimensions implies a 4.128 Mbps data rate which equates to a file on the order of about 16 GBs in size. As you did not mention which export/sharing option you were using or if everything was being done on a single hard drive, such an export may require a total of 48-64 GBs of available storage space for temporary, Media Browser, and target/duplicate file(s) plus free memory for rendering purposes. So one of your potential problems could be file space availability.
    As a general rule, increases in the duration of your target movie may require geometric increases in either available file space or the time it takes to perform the processing. It is, therefore, usually better to "chunk" your projects (break them into smaller, more manageable segments than to process them as a single project/file) and process the segments independently. In addition most people will not watch a 9-hour movie in one sitting in any case. (I have gone as high as 5 hours but even the product of this effort amounted to less than 4 GBs of file space.)
    To "chunk" an iMovie '08 project, simply duplicate your completed project as many times as needed and then divide each into manageable segments and deleting segments so as to remove the duplicated segments. I would likely consider 6 segments targeted at about 90 minutes each but division of content anywhere between 60 and 120 minutes would probably be considered "manageable" for most purposes.
    In iMovie 08, is there a difference in quality between Exporting a movie at the largest available size via the "Export" menu item, versus using "Export using Quicktime"?
    There should be no difference in quality if you use the same compression formats and target settings. Changing either the compression format (each of which may have its own particular characteristics) or the settings (such as the data rate which directly affects both file size and quality) will usually produce visual differences in your product.

  • Use of QUERY option in 9iRel2 Export utility

    Hi All,
    Is it possible to use a query option to the export utility of the form below assuming I am exporting a table called test1:
    query="(test1.col1,test1/col2) not in (select test2.col1,test2.col2 from test2)"
    I am not sure if it is allowed to reference another table in the query clause, test2 in the example above....?
    Thanks

    I don't have a 9iR2 environment with me right now but this works on 10gR2. And I have no reason to believe that it would not work in 9iR2.
    SQL> select * from a;
            ID
             1
             2
    SQL> select * from b;
            ID
             2
    SQL> $
    Microsoft Windows XP [Version 5.1.2600]
    (C) Copyright 1985-2001 Microsoft Corp.
    C:\>exp sysadm/itbagain@qo810 tables=(A) query='where id not in (select id from b)'
    Export: Release 10.2.0.4.0 - Production on Wed Sep 8 14:17:49 2010
    Copyright (c) 1982, 2007, Oracle.  All rights reserved.
    Connected to: Oracle Database 10g Release 10.2.0.4.0 - Production
    Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export specified tables via Conventional Path ...
    . . exporting table                              A          1 rows exported
    Export terminated successfully without warnings.
    C:\>

  • Require Code which export SQL Query resuluts to excel using checkbox option

    Hi All,
    I need a sample code which can export the SQL Query results directly to an excel file using checkbox option. for example
    if I select checkbox1 and press a save button, then on backend SQL Query will execute and save the results in a excel file and so on.
    Thanks in advance..
    Regards,
    Chetan

    Thanks for the Code.
    Actually I need a code which is based on combo base values and when I click on Button, the SQL Query will execute using SQL Connection string and the results from that query will save into a excel file. Below is the screenshot of the form. Hope this will
    clear the requirements.
    Hello,
    To be honest, this forum is not for coding for anybody.
    You could refer to the suggestions shared above, and if you get any issue when using that code, you could share the code and error with us, we will focus on your code to help you.
    You could separate them into multiple steps, like the following.
    1. Getting the value of any control, like the textbox and combobox or even checkbox.
    2. Execute method inside button click event handler.
    3. Using ado.net to execuate sql query.
    4. Saving data to Excel.
    Then you could have a try step by step, if you get any issue, then post it in another thread with the code and error message.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • ORACLE 8I EXPORT의 QUERY OPTION 기능

    제품 : ORACLE SERVER
    작성날짜 : 2000-09-19
    Oracle 8i EXPORT의 Query Option 기능
    ====================================
    Oracle 8i에서는 export 작업 수행 시 Query Option을 이용하여 테이블의
    부분적인 추출이 가능하다.
    SQL> select empno, ename, job, sal from emp order by job;
    EMPNO ENAME JOB SAL
    7788 SCOTT ANALYST 3000
    7902 FORD ANALYST 3000
    9999 홍길동 ANALYST 2000
    7369 SMITH CLERK 800
    7876 ADAMS CLERK 1100
    7934 MILLER CLERK 1300
    7900 JAMES CLERK 950
    7566 JONES MANAGER 2975
    7782 CLARK MANAGER 2450
    7698 BLAKE MANAGER 2850
    7839 KING PRESIDENT 5000
    7499 ALLEN SALESMAN 1600
    7654 MARTIN SALESMAN 1250
    7844 TURNER SALESMAN 1500
    7521 WARD SALESMAN 1250
    위와 같이 구성된 EMP 테이블에서 만일 'MANAGER'로 JOB을 가진 사원중 SAL
    컬럼이 2500이상인 레코드를 export하고 싶다면, 다음과 같이 수행하면 된다.
    % exp scott/tiger tables=emp query=\"where job=\'MANAGER\' and sal\>=2500\"
    Export: Release 8.1.5.0.1 - Production on Tue Sep 19 16:14:15 2000
    About to export specified tables via Conventional Path ...
    . . exporting table EMP 2 rows
    exported
    Export terminated successfully without warnings.
    한글 컬럼에 대해서도 동일한 where 조건에 지정이 가능하다.
    % exp scott/tiger tables=emp query=\"where ename like \'홍%\'\"
    V8.1.5 버젼에서 제공되는 Query 옵션의 특징:
    1. 테이블 레벨의 export 명령어에서만 가능하다.
    2. Direct 옵션과 함께 사용될 수 없다.
    3. Nested 테이블을 갖는 테이블에는 적용할 수 없다.
    4. Partition 테이블에 대한 export에도 적용가능하다.
    5. Import 명령에는 적용되지 않는다.

    Thanks Guys,
    I am still a bit lost though...
    It may be simply a matter of me finding Oracle 8i so I can do what I need to do.
    Where can I get Orcale 8i from? Does anybody have it? The oracle site only has a version back to 9.2 I queried with a employee from Oracle University here in Australia, and he suggested asking in the forums.
    Just so you know what I'm trying to do:
    Data Server:
    Running Aix with Oracle 7.14... actually could be 7.41 - I'll check today.
    This system will not be upgraded to any later version of Orcale, because systems are in place, and core systems at our other sites have to be the same. (my project is a local one)
    Web Server:
    Running XP profession with IIS and using ASP (active server pages)
    Currently running Oracle 10g, and ASP code connects to the local database on this machine via an ODBC connection.
    At the moment, I have scripts on the Aix server that dumps data from Oracle 7.x into a .csv file.
    Then, I have scripts that copy those csv files to the XP server, and they are imported to the local Oracle 10g database.
    To display this data on the website, I use ASP via the odbc connection to query the local database on the XP server.
    As said in my previous post, there must be an easier way to do this.
    I need a local database on the XP server too, and am thinking the best way is to downgrade to 8i.
    Can anybody tell me where I can get 8i to try this out? I have been trying to reasearch this for a while now without luck. Any help would be appreciated, and thanks for those who have replied so far.
    -Tom

  • How to hide/disable option "Export In Query Ready Mode" in HTML FR reports

    Hi all,
    is there a way to hide or disable the option "Export In Query Ready Mode" for HTML FR reports?
    Thanks in advance!
    Regards
    André

    Yes, it is a cool feature but I didnt ask for it :-) Besides it doesnt work completely without errors/warnings:
    If i click on the link and then on open (save xls works fine) an error message occurs: "Could not open 'http://<servername>/hr/hrget/modules/com/hyperion/reporting/web/office/HROfficeReport.jsp/test.xls?gridname=grid1&iInstanceId=18885&format=excel.2002&viewAs=query&previewDone=true&promptDone=true'"
    After click on OK another error message occurs:
    "Microsoft Excel cannot access the file 'http://<servername>/hr/hrget/modules/com/hyperion/reporting/web/office/HROfficeReport.jsp/test.xls?gridname=grid1&iInstanceId=18885&format=excel.2002&viewAs=query&previewDone=true&promptDone=true'. There are several possible reasons:
    The file name or path does not exist.
    The file is being used by another program.
    The workbook you are trying to save has the same name as a currently open workbook.
    After click on OK the XLS export opens correctly but the messages are annoying. Perhaps anybody can help me ;-)
    Thanks and kind regards
    Andre

  • FR 11.1.1.3 "export to query ready mode" option not working

    Hi All,
    We have a scenario where few users are not able to use the "export to query ready mode" option after running an FR report.
    For some reason the save dialog box doesnt open or doesnt pop up when this option is ticked.
    Note that this issue comes only on running FR Essbase reports. (for FR HFM reports it works fine)
    Does any body have any resolution to this.
    Kindly advise.

    Hi,
    Can anybody explain me the option of this *"Export in Query ready mode"*???
    Is there any document through which I can understand???
    Thanks
    Sourabh
    Edited by: CM on May 11, 2011 6:32 AM

Maybe you are looking for

  • Unable to download/install Photoshop Elements 11

    I purchased download of Adobe Photoshop Elements 11 and Adobe Premiere Elements 11.  The Adobe Premier Elements 11 downloaded and installed properly (I think). I don't see that the Photoshop Elements 11 downloaded - although I do have a serial number

  • House Bank with Multiple Account ID's

    Hi all, I have a problem in House Bank configuration. 1.     Business doing business with ICICI bank, having 2 accounts in Same Branch. 2.     I created one House Bank u2013ICICI 3.     Two Account ID for the same bank u2013 ICIC1, ICICI2 4.     How

  • XML extension tag with axis

    Hi, Im trying to create a stub from a WSDL-file. The schema of the WSDL uses "extension", but the genereated class doesn't extend antyhing, but tries to invoke super(stringval) in the constructor, which doesn't work. The extended value is not a membe

  • Smartforms : split lines

    Hi Gurus, Trying to find help on the forums, I didn't find solution to my problem. The issue is the following : when editing PO in smartforms, last word of the header text is cut in the middle. How can I avoid the last word of a line to be cut into 2

  • Auto submit trigger required validation

    I am using Jdeveloper 11g R (11.1.2.3) & weblogic 10 G In my pages I use JSF & Facelet In a page I have a field with Auto submit = true and another field with required = true When I a create a new record and add some thing in first field second field