Error exporting Oracle on the QUERY parameter

Hi all

I would like to ask for help.

This is my environment:
OS: Linux 5.4 32-bit
DB: Oracle 10.2.0.4

Here's what I would do:
Export the selected lines of SH. Table SALES using the query:

SQL > select * from sh.sales
where to_date(time_id,'DD-MON-RR:HH24:MI:SS') = to_date('28-DEC-01:00:00:00','DD-MON-RR:HH24:MI:SS');

My parfile is:

UserID = ' oracle/sys as sysdba'
buffer = 10000000
file = mysales148.dmp
Journal = mysales148.log
TABLES is sh. MySales
Query = "(où to_date(time_id,\'DD\-MON\-RR:HH24:MI:SS\')=\to_date(\'28\-DEC\-01:00:00:00\',\'DD\-MON\-RR:HH24:MI:SS\')" "
RecordLength = 65535
Statistics = none


When I run the script, I get this error:

[oracle@shaoran selective_export] $ exp parfile = exp_mysale.par

Export: Release 10.2.0.1.0 - Production the game 3 Feb 16:57:08 2011

Copyright (c) 1982, 2005, Oracle. All rights reserved.


Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With partitioning, OLAP and Data Mining options
Export in US7ASCII and AL16UTF16 NCHAR character set
Server uses WE8ISO8859P1 (possible character set conversion) character set

About to export specified tables by conventional means...
Current user has changed to SH
. . MYSALES table export
EXP-00056: ORACLE 911 error encountered
ORA-00911: invalid character
Export completed successfully with warnings.


Hope to hear from you soon.

Thank you very much!

First of all,

export NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1

It is probably the cause of your problem if you have unusual characters in your data.

If this isn't the case, you do not have these "------" in your QUERY. Since you're using parfile, just go with what you would do in sqlplus:

query="where time_id=to_date('28-DEC-01:00:00:00','DD-MON-RR:HH24:MI:SS')"

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

  • Using the QUERY parameter in exp/expdp

    Hi, I've faced a nite last question.
    IM currently using Oracle 10 g (10.2.0.4) OS - MS Windows Server 2003

    I want a dump of tables to export multiple schemas. say (acb.m1, pqr.b2, xyz.b1)

    Each table has a minimum lines of 2,000,000,

    And I want to just the initials 10 rows in each table of export

    Is it possible that I can do this...

    Please answer.
    Thanks in advance

    Export tables in multiple schemas is not supported in Data Pump until 11.1.0.7. So if you're on 10g, you will need to run multiple commands expdp. For only 10 lines of each table, use the query parameter

    Query = "where rownum"<>

    This will apply to all the tables you export.

    I hope this helps.

    Dean

    Published by: Dean WINS January 30, 2012 08:42

  • DataPump the QUERY parameter with string values? -SOLVED

    All,

    I'm trying to specify a query to the datapump API parameter but can't seem to get my correct single/double quotes so that it can work. I can successfully use the QUERY parameter with something like QUERY = table: '"number_column = 6" ' but NOT with something like QUERY = table:'"string_column ="value"" "

    I tried different versions of the single/double quotes, but all fails with slightly different errors. Someone at - it an example where a string value is used with success?

    Thanks in advance. Oracle 10.2.0.3.0 - AIX 5.3

    So after reading some other reviews on another thread - I tried this and it worked:

    QUERY = table:------"where string_column = 'value\' \' \

    Looks like you have escape all single/double quotation marks for this parameter

    Published by: potter_geek on August 31, 2009 10:47

    Hello

    Use the parameter file or if you run expdp command-line use escape character '-' (backslash) in this case.

    Concerning
    Anurag Tibrewal.

  • 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
    -------------------------------------------------------------------

  • 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

  • Unable to load the query in Crystal Designer: error "Could not load the Query builder compenent."

    Hi all
    I am using Crystal report 10 which was an upgrade of crystal 7 and 8.5
    I can open the crystal report and can do everything but I could not display the SQL query option
    It gives me an error message
    "Failed to load the Query builder compenent."
    I also reinstalled the application twice as a sysadmin even then I get this message
    Please, can someone suggest me what should I do?

    Contact technical support for Crystal Reports or watch in their forums. This is not a product of MS and is not related to the installation, upgrade and activation of Windows XP.

  • exp using the query parameter

    Hi all
    I need to export a table with the query clause = "" where rownum < 100 ' "
    His works well, but the extraction of all columns.
    But I need only selective columns.

    Is it possible to export the follwing records
    Select some_columns from table where rownum < 100
    how with exp util?

    DB version 10.2.0.4
    AIX OPERATING SYSTEM

    Thank you

    You can not specify columns, only where clause may be specified with exp/expdp.

    generate instructions insert with the help of select instead then.
    Or if you need to import this data into another database - create link db and just do insert by it.

  • Error export/import of the application to the Apex 4.1 on ORACLE 11 g 2 XE

    We have an ApEx application, what is migrated several ApEx 3 times through 3.2 to 4.1.
    There is no problem import/export demand, when we use ORACE 11 GR 2 (SE or EE).

    A few days go that put us the application on a database of the XE 11 GR 2. There was no significant or problems by running.

    Now, we have changed something and wanted to export the aplication of the database of XE and back to a different database.
    Importing (no questions about the origin of the XE) application or any other edition, we get an error:

    p_region_id = > 83466451 p_form_element_id = > null,

    *+
    ERROR on line 7:
    ORA-06550: line 7, column 26:
    PLS-00103: encountered the symbol "P_FORM_ELEMENT_ID" when awaits an of the
    Next:
    +), * & = - + <>/ at mod is rest not rem +.
    + < an exponent (*) > <>or! = or ~ = > = < = <>and or as like2 +.
    like4 likec between | submultiset of type multiset Member
    Symbol ',' was replaced by 'P_FORM_ELEMENT_ID' to.

    Looking at the source, I found:

    declare
    s varchar2 (32767): = null;
    Start
    s: = null;
    () wwv_flow_api.create_report_columns
    P_ID = > 83576346930344697 wwv_flow_api.g_id_offset, +.
    p_region_id = > 83466451 # p_form_element_id = > null,
    p_column_alias = > 'APP_USER2 ',.
    p_column_display_sequence = > 2,
    p_column_heading = > 'Benutzer ',.
    +...+

    It is absent from the code in the place where I put the #.

    Does anyone has an idea, what's not to export?

    We use a GR 11, 2 on OpenSUSE 12.1 Apex 4.1.0 ORACLE XE. The export file is about 2 MB.

    Thanks for your help
    Tilman

    If you are still able to access the original (where you got the export)

    try to export on the command-line as well... http://ruepprich.wordpress.com/2011/07/15/Exporting-an-apex-application-via-Command-Line/

    Kind regards
    Richard
    -----
    blog: http://blog.warp11.nl
    Twitter: @rhjmartens
    If you answer this question, please mark the thread as closed and give points where won...

  • Error signature: signature of the query Code failed because the author of the Package in manifest is not set to [none].

    I get this error in the second last stage of the signature process. I received an email saying that I registered successfully with the signature Server RDK. Any ideas?

    Your file to blackberry - tablet.xml have the same ranked Publisher - app.xml your publisherID file (if you have informed publisherID)?

    Do both of these match the name in your certificate that you received from RIM, which must also match your App World account publisherID seller.

    Follow the guide I linked to make sure that you set the - debug = false and then extract the bar created, ensure that the manifest file is accurate and then repackage via cmd.

  • Problem with the query parameter

    Hi,
    I have data some thing like 
    
    SQL> select * from temp_tabr;
    
    INSTITUTE  STUDNAME   GR     MARKS
    ---------- ---------- -- ---------
    xxxx       abc        A        500
    xxxx       pqq        A        550
    xxxx       zzz        B        300
    xxxx       sss        B        400
    yxxx       abc        A        500
    yxxx       pqq        A        550
    yxxx       zzz        B        300
    yxxx       sss        B        400
    
    
    
    I want a query to retrive the data based on 3 parameters
    Institue is mandatory
    GR and MARKS are optional
    
    user may pass any one of the Optional parameters GR or MARKS not both
    
    example he may pass Intitute and get all 8 records
    if he pass Institue and grade it should retrive only those matching
    if he pass institute and marks it should retrive only those matching
    
    only grade or marks will be passed or neighter of them will be passed.
    
    
                                 
    
    
    
    create table temp_tabr(institute varchar2(10),
                      studname  varchar2(10),
                      grade     varchar2(2),
                      marks      number);
    
    insert into temp_tabr values
    ('xxxx',             'abc',           'A',       '500');
    insert into temp_tabr values('xxxx',             'pqq',           'A',       550);
    
    insert into temp_tabr values('xxxx'  ,          'zzz' ,          'B'  ,     300);
    insert into temp_tabr values('xxxx'  ,          'sss' ,          'B'  ,    400);
    
    
    insert into temp_tabr values
    ('yxxx',             'abc',           'A',       '500');
    insert into temp_tabr values('yxxx',             'pqq',           'A',       550);
    
    insert into temp_tabr values('yxxx'  ,          'zzz' ,          'B'  ,     300);
    insert into temp_tabr values('yxxx'  ,          'sss' ,          'B'  ,    400);

    Like this?

    select * from temp_tabr
    where
    institute='&a'
    and grade = nvl('&b',grade)
    and marks = nvl(to_number('&c'),marks)
    

    If you pass parameters using the variable, you do not have to use to_number, you can directly pass the name of the variable. I have provided for you to test it in sql * more.

    HTH,
    Prazy

  • 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

  • CFHTTP: the trustAnchors parameter must be empty

    I'm a cfhttp call my main server to the report server. And it was working fine until a few days ago.

    But suddenly it started giving errors when I try to call http through cfhttp. This is the dump of the error:

    Charset [empty string]

    ErrorDetail I/O Exception: java.lang.RuntimeException: error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be empty

    FileContent connection failure

    Header [empty string]

    MimeType unable to determine the MIME type of the file.

    ResponseHeader

    struct [empty]

    StatusCode connection failure. Not available status code.

    Text YES

    Because this error only started to come all of a sudden. I feel it's because of the automatic update of java.

    I had seen a few keys to truststore related missing links, but nothing was not related to coldfusion.

    Anyone with the idea about it?

    Thanks in advance

    Java update to version the most recent servers solved my problem.

  • InvalidAlgorithmParameterException: the trustAnchors parameter must be empty

    Hello

    I am a newbie to vSphere Web Services SDK.

    I am trying to run the program SimpleClient.java programs examples provided with the SDK.

    I put all the required variables (JAVAHOME, AXISHOME, WBEMHOME, VMKEYSTORE). I had also executed the code Friday and it worked.

    After that, I turned off my computer.

    Today morning when I started working on the same code to try to run it, its gives me an exception like below:

    "An exception: Exception: org.apache.axis.AxisFault Message:;" nested exception is:

    "javax.net.ssl.SSLException: java.lang.RuntimeException: error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty.

    The way that I will carry out my code is as below:

    $. run.sh com.vmware.samples.general.SimpleClient - url https://& lt; IP & gt; : 8443/sdk - username & lt; user name & gt; -password & lt; password & gt;

    I'm absolutely blocked up in the present and am not able to understand the reason for the exception of tis.

    Please help me with this.

    Thank you very much in advance.

    Hello

    Please refer to the page of the guide of the installation developer No 16 & 17.

    Using - ignorecert, you can skip the server certificate verification.

    Run.bat com.vmware.samples.general.SimpleClient - url https://< IP >: 8443/sdk - username < username > - password <>password - ignorecert

    I hope this helps.

  • Cannot perform the query

    PROCEDURE get_mng_approval (mng varchar2) IS

    Start

    go_block ('temp_leaves1');
    set_block_property ('temp_leaves1', default_where,'empno in (SELECT image.org_chart FROM empno)
    CONNECT BY prior empno = report_to and ename > = chr (0)
    START WITH report_to = mng)
    and approval = "pending"');
    execute_query;

    premier_enregistrement;
    While not: temp_leaves1.empno is null loop
    Select ename, designation in: temp_leaves1.name,: image.employee temp_leaves1.designation
    where empno =: temp_leaves1.empno;
    next_record;
    end loop;

    premier_enregistrement;

    exception when no_data_found then
    message (Show_Alert ('no_leave'));

    END;

    When running, it generates an error, unable to execute the query but when I use the variable value instead of mng will give the accurate result

    any body help me in this regard

    Thank you!

    Sadiq

    Published by: user7221349 on Sep 2, 2008 23:43

    PROCEDURE current_leave_status (eno IN varchar2, cdate TO date) IS

    BEGIN
    go_block ('temp_leaves');
    set_block_property ('temp_leaves ', default_where,' empno = eno)
    and attend_date = cdate);
    execute_query;
    end;

    For eno, you can apply the same as before;
    for attend_date, you can try the to_char conversion function.
    Hope it helps you,
    Fabrizio

    Published by: Fabrizio Delli Priscoli on game-3-2008 9.20

Maybe you are looking for