Exp query parameter error

Hi ,
What is wrong in query parameter?
userid=crmodrepo/reports file=crmodrepo4.dmp log=crmodrepo4.log statistics=NONE indexes=Y tables=(ODPERF_REQUEST_DATA) query=\"DATETIME >'10-MAY-08 01.00.00'\"
I am getting bellow error. I have tried differently, but same result.
-bash-3.00$ exp parfile=crmodrepo.par
LRM-00112: multiple values not allowed for parameter 'query'
LRM-00113: error when processing file 'crmodrepo.par'
EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
EXP-00000: Export terminated unsuccessfully
Could you please help me?
Thanks in advance.
THanks
Asif Khan

Try to format the string as you would in case of a normal query. so try with
query='datetime > to_date (''01.01.2008 00:00:00'', ''dd.mm.yyyy hh24:mi:ss'')'
HTH...

Similar Messages

  • Oracle 10g exp error with query parameter

    Hi all,
    I am trying to perform an export but getting this error when using the query parameter. I think it's a syntax problem but not sure where.
    I'm in a dos prompt
    E:\>exp file=xxxxx.dmp log=xxxx.log tables=xxxxx query='where responseid not in (select responseid from aaaa_bbbbb)';
    LRM-00112: multiple values not allowed for parameter 'query'
    EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
    EXP-00000: Export terminated unsuccessfully
    Thx

    This is why I love this forum so much.
    I've probably done thousands of exports and never used the query parameter.
    Here's something that will help you. Please read and note the requirement to escape, or protect, special characters and such.
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch01.htm
      exp scott/tiger TABLES=emp QUERY=\"WHERE job=\'SALESMAN\' and sal \<1600\"ji li

  • Problem in using query parameter in exp(9.2)

    Hi Folks,
    I'm not able to take export from a table with query option on a Solaris machine. here is my parameter file which has query parameter in it. I'm also posting error message.
    file=utf_exp_raw_citation.dmp
    log=utf_exp_raw_citation.log
    owner=utf8admin
    statistics=none
    tables=raw_citation
    query=\"where nvl(source,'AAA') in ('EMC','HMD','HSR','KIE','NASA','PIP','AAA')"\
    rows=y
    Error:-*
    $ exp utf8admin/[email protected] parfile=exp_raw_citation_07_01_2011_new.dat
    LRM-00116: syntax error at ')' following 'AAA'
    LRM-00113: error when processing file 'exp_raw_citation_07_01_2011_new.dat'
    EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
    EXP-00000: Export terminated unsuccessfully
    Please help me in this.
    regards
    Krishna Prasad Donepudi

    I suggest you utilize a parameter file to avoid the shell messing with metacharacters on command line

  • SSRS countrow Aggregate error(Aggregate and lookup functions cannot be used in query parameter expressions.)

    Below expression works fine with text box but gives error in dataset expression.
    ="SET FMTONLY OFF select  "+ join(Parameters!Column.Value,",") +" FROM pamcustom.dbo.vw_HFL_HFD_HotfileData INNER JOIN pamcustom.dbo.HFL_HFB_HotFileBatch  on BatchID = HFB_intBatchID where BatchID ="+Parameters!BatchId.Value+"
    and "+Parameters!cmbTranType.Value+" "+ iif(CountRows("DS_Aml_Mnr_Iss_Desc")=Parameters!Mnr_Iss_Desc.count," "," and aml_mnr_iss_desc in "+"('" & join(Parameters!Mnr_Iss_Desc.Value,"','")
    & "')")+iif(CountRows("ds_ReportingCategory")=Parameters!ReportingCategory.count," "," and ReportingCategory in "+"('" & join(Parameters!ReportingCategory.Value,"','") & "')")+iif(CountRows("ds_NAICSubGroup")=Parameters!NAICSubGroup.count,"
    "," and naicsubgroup in "+"('" & join(Parameters!NAICSubGroup.Value,"','") & "')")+iif(CountRows("ds_PortTrading")=Parameters!PortTrading.count," "," and porttrading in "+"('"
    & join(Parameters!PortTrading.Value,"','") & "')")+iif(CountRows("ds_GL_LE")=Parameters!GL_LE.count," "," and gl_le in "+"('" & join(Parameters!GL_LE.Value,"','") &
    "')")+iif(CountRows("ds_coagroup")=Parameters!cmbCoaGrp.count," "," and coagroup in "+"('" & join(Parameters!cmbCoaGrp.Value,"','") & "')")+iif(CountRows("Portfolio")=Parameters!cmbPort.count,"
    "," and portfolio in "+"('" & join(Parameters!cmbPort.Value,"','") & "')")+IIf(IsNothing(Parameters!txtSecID.Value)," "," and secid in ('"+Replace(Parameters!txtSecID.Value,",","','")+"')")+iif(IsNothing(Parameters!minPortFilter.Value)
    and IsNothing(Parameters!MinPort.Value)," "," and portfolio "+Parameters!minPortFilter.Value+Parameters!MinPort.Value)+iif(IsNothing(Parameters!maxPortFilter.Value) and IsNothing(Parameters!MaxPort.Value)," ","
    and portfolio "+Parameters!maxPortFilter.Value+Parameters!MaxPort.Value)+iif(IsNothing(Parameters!minCoaFilter.Value) and IsNothing(Parameters!txtMinCoa.Value)," "," and portfolio "+Parameters!minCoaFilter.Value+Parameters!txtMinCoa.Value)+iif(IsNothing(Parameters!maxCoaFilter.Value)
    and IsNothing(Parameters!txtMaxCoa.Value)," "," and portfolio "+Parameters!maxCoaFilter.Value+Parameters!txtMaxCoa.Value)
    I guess the error " Aggregate and lookup functions cannot be used in query parameter expressions." is because I am using CountRow to ensure that if all values of multi select all selected i will not use that filter in where clause.
    Pls. guide...

    Hi, Include your parameter total count in the dataset for parameter and instead of using countrows() function use the count from dataset in the expression.
    Hope this helps.........
    Ione

  • Oracle Export Error on QUERY Parameter

    Hi All,
    I would like to ask for assistance.
    Here's my environment:
    OS: Linux 5.4 32bit
    DB: Oracle 10.2.0.4
    Here's what I would like to do:
    Export selected rows from SH.SALES table 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="sys/oracle as sysdba"
    buffer=10000000
    file=mysales148.dmp
    log=mysales148.log
    TABLES=sh.mysales
    query="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\')"
    recordlength=65535
    statistics=none
    When I run the script, I am getting this error:
    [oracle@shaoran selective_export]$ exp parfile=exp_mysale.par
    Export: Release 10.2.0.1.0 - Production on Thu Feb 3 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 the Partitioning, OLAP and Data Mining options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    Current user changed to SH
    . . exporting table MYSALES
    EXP-00056: ORACLE error 911 encountered
    ORA-00911: invalid character
    Export terminated successfully with warnings.
    Hope to hear your feedback soon.
    Thanks a lot!

    Hi Guys,
    Thanks for the feedback.
    I edited my parfile as shown here:
    [oracle@shaoran selective_export]$ cat exp_mysale.par
    userid="sys/oracle as sysdba"
    buffer=10000000
    file=mysales148.dmp
    query="where time_id=\to_date(\'28\-DEC\-01:00:00:00\',\'DD\-MON\-RR:HH24:MI:SS\')"
    log=mysales148.log
    TABLES=sh.mysales
    recordlength=65535
    statistics=none
    [oracle@shaoran selective_export]$
    and I did the following steps:
    [oracle@shaoran selective_export]$ export NSL_LANG=AMERICAN_AMERICA.UTF8
    [oracle@shaoran selective_export]$ exp parfile=exp_mysale.par
    Export: Release 10.2.0.1.0 - Production on Fri Feb 4 11:34:03 2011
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in UTF8 character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    Current user changed to SH
    . . exporting table MYSALES
    EXP-00056: ORACLE error 911 encountered
    ORA-00911: invalid character
    Export terminated successfully with warnings.
    [oracle@shaoran selective_export]$
    I still get the same error. :(

  • Expdp error with query parameter

    i am trying to use datapump and using query parameter in there as below...
    but when i use the below, its exporting some system "repcat$" tables and
    nothing realted to scott.audit table or anything realted to my query where
    clause...what am i doing wrong ??
    expdp system
    DUMPFILE=test.dmp
    LOGFILE=test.log
    DIRECTORY=DATA_PUMP_DIR
    TABLES=SCOTT.AUDIT
    QUERY=SCOTT.AUDIT:'"WHERE TRUNC (audit.audit_timestamp)
    BETWEEN TO_DATE ('01012008','DDMMYYYY') AND TO_DATE ('13012008','DDMMYYYY')"'
    also when i use scott instead of system user i get below error
    Export: Release 10.2.0.3.0 - 64bit Production on Wednesday, 22 July, 2009 12:53:45
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Password:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    ORA-39002: invalid operation
    ORA-39070: Unable to open the log file.
    ORA-39145: directory object parameter must be specified and non-null

    i treid again, but creating a new datapump dir as follows...create or replace dir dpdump as '/backup/dpdump/orcl';
    then gave grant read,write on directory dpdump to system
    and now why is oracle looking at a differnt location ?? even when i changed the
    direcotry ???
    $ expdp SYSTEM
    DUMPFILE=test.dmp
    LOGFILE=test.log
    DIRECTORY=DPDUMP
    QUERY=SCOTT.AUDIT:'"WHERE TRUNC (audit.audit_timestamp)
    BETWEEN TO_DATE ('01012008','DDMMYYYY') AND TO_DATE ('13012008','DDMMYYYY')"'
    Export: Release 10.2.0.3.0 - 64bit Production on Wednesday, 22 July, 2009 13:27:18
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Password:
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    ORA-39001: invalid argument value
    ORA-39000: bad dump file specification
    ORA-31641: unable to create dump file "/oracle/app/oracle/product/10.2.0/admin/orcl/dpdump/expdat.dmp"
    ORA-27038: created file already exists
    Additional information: 1
    $>
    Seems little weird but can you:--
    1. Drop the dpdump directory.
    SQL> drop directory dpdump;
    2. recreate it and then grant the permissions.
    SQL> create directory dpdump as '/backup/dpdump/orcl';
    The folders must exists in the location.
    SQL> grant read,write on directory dpdump to system;
    3. SELECT directory_name, grantee, privilege
    FROM user_tab_privs t, all_directories d
    WHERE t.table_name(+)=d.directory_name
    ORDER BY 1,2,3;
    Anand

  • Selected Query Parameter backend error

    Hi, experts,
         I am having some backend error whenever I add a parameter to the Selected Query Parameter to the ValueHelpQuery of an OVS.
         Can anybody please tell me why it is happening?
         Any help is needed and highly appreciated.
    Regards,
    May T.

    Hi, Horst,
    Thanks, I understand it.   
    I did not bind that N_AccountUUID with nothing else. Do I have to?
    I always add a new field to the SearchParameters and than I bind it in the Selected Query Parameters.
    I don't bind it with anything else.
    Is that a problem?
    I just bound it with my BO data field and it shows "The data field is bound to query parameter".
    Regards,
    May T.

  • How to resolve EXP-00056: ORACLE error 19206 encountered during an export.

    Hi,
    I am facing the problem while exporting the user in ORACLE 9i. It is showing the following error message's
    EXP-00056: ORACLE error 19206 encountered
    ORA-19206: Invalid value for query or REF CURSOR parameter
    ORA-06512: at "SYS.DBMS_XMLGEN", line 83
    ORA-06512: at "SYS.DBMS_METADATA", line 353
    ORA-06512: at "SYS.DBMS_METADATA", line 418
    ORA-06512: at "SYS.DBMS_METADATA", line 457
    ORA-06512: at "SYS.DBMS_METADATA", line 1181
    ORA-06512: at "SYS.DBMS_METADATA", line 1162
    ORA-06512: at line 1
    I have tried in the below way to solve the above issue.
    I have logged in to sql+ sheet : sys/sys@esmr as sysdba [username/password@net service name as sysdba] and executed the query " $ora92/rdbms/admin/catmeta.sql "
    But still I am unable to export the database user.Still it is showing me the same error. Please help me out.
    Thanks so much,
    Sudheer Reddy T
    Edited by: 921309 on Mar 15, 2012 10:24 PM

    Dear User,
    Please check the below Document for details regarding your error.
    ORA-19206 EXP-56 While Taking Export (Doc ID 206313.1)
    Regards...
    Chetan DBA@ORACLE

  • EXP-00056: ORACLE error 936 encountered error while exporting data

    Hi,
    When i execute following query i get "EXP-00056: ORACLE error 936 encountered".
    Anything m i missing in the query or do i need to specifiy any other parameter.
    c:\exp HKKR/HKKR@oracle10 tables=T_Transaction_image query=\"where transaction_id in select transaction_id from t_transaction where transaction_datetime between to_date\(\'01-april-2012 09:00:00\',\'dd-mm-yyyy hh24:mi:ss\'\) AND to_date\(\'01-april-2012 09:30:00\',\'dd-mm-yyyy hh24:mi:ss\'\)\" file='/u01/app/oracle/HKKR_TRANSImage_DATE061212.DMP' LOG='/u01/app/oracle/HKKR_TRANSimage_DATE061212.log' rows=y buffer=100000
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses WE8ISO8859P1 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    *. . exporting table T_TRANSACTION_IMAGE*
    *. . exporting partition NOV11*
    EXP-00056: ORACLE error 936 encountered
    ORA-00936: missing expression
    Export terminated successfully with warnings.
    Regards,
    Yogesh

    missing parenthesis for the sub-query
    ... where transaction_id in ( select ... )

  • SOAP web service: query parameter?

    Hi guys,
    I'm a newbie when it comes to web services and I've hit a problem that I didn't expect. I've exposed several SOAP services using the JAX-WS and WebLogic which are working fine. I've tried implementing an access key security mechanism such as Amazon does by adding a filter in front of the service's handling servlet to check for an access key sent as an HTTP query parameter. So basically, the service that was exposed at the following URL:
    http://localhost/company/service
    must now be accessed using the following URL:
    http://localhost/company/service?accessKey=123
    The filter checks the accessKey parameter and short-circuits the request if the wrong access key is sent.
    While this approach works well with JAX-RS web services, it doesn't seem to be working as well with JAX-WS web services: adding the parameter makes WebLogic return a 404 error instead of processing the request. I'm convinced I've seen web services being called with query parameters and that this can be done, but I don't see how. Any ideas anyone?
    Cheers!

    It seems that the servlet generated by Workshop doesn't handle extra parameters too well. I've managed to get it working by tweaking the filter so that it lets WSDL retrieval requests pass through but still filters the other requests. Everything is working fine.

  • EXP-00105: parameter CONSISTENT is not supported for this user

    Hi,
    I have use Oracle 10g on unix platform
    i have export is taken from following command
    exp \'/ as sysdba\' file=t.dmp full=y buffer=10485760 log=0101.log CONSISTENT=y statistics=none
    export is sucessfull but one warning
    EXP-00105: parameter CONSISTENT is not supported for this user
    if i have use without CONSISTENT parameter then export is successfull ,
    why EXP-00105 error occured ?

    As per Oracle Error Notes:
    EXP-00105: parameter string is not supported for this user
    Cause: The user attempted to specify either CONSISTENT or OBJECT_CONSISTENT when connected as sysdba.
    Action: If a consistent export is needed, then connect as another user.
    Looks likE the SYS user cannot do a transaction level consistent read (read-only transaction). You could have performed this by SYSTEM user or any DBA priviliged user to to take the complete export of your DB.
    Anyway, for more information the error "EXP-00105", please take a look into the same question on another Oracle related forums.
    http://www.freelists.org/archives/oracle-l/05-2006/msg00236.html
    Regards,
    Sabdar Syed.

  • Export using a QUERY parameter

    I am trying to export a subset of data using the following parms:
    FILE=C:\EXPORT\ADM_ACCESS_LOG.DMP
    GRANTS=Y
    INDEXES=Y
    DIRECT=N
    ROWS=Y
    CONSISTENT=N
    TRIGGERS=Y
    CONSTRAINTS=Y
    FEEDBACK=1000
    TABLES=(THRESHER.ADM_ACCESS_LOG)
    QUERY=\"WHERE LOGIN_DT='31-JUL-2005'\"
    The table exists as does the column, however, I get the following error:
    LRM-00101: unknown parameter name 'LOGIN_DT'
    I have everything spelled correctly and I am logging into export as thresher.
    What am I doing wrong?
    Thanks

    use the query parameter like this
    QUERY="WHERE to_char(dte,'mm/dd/yyyy')='07/31/2005'"
    or
    QUERY="WHERE to_char(dte,'dd-mon-yyyy')='31-JUL-2005'"
    --thedba                                                                                                                                                                                                                                                                                                                                           

  • Query Engine Error in Visual Studio 2005

    Post Author: Chris K
    CA Forum: Crystal Reports
    I created a report in Crystal 11 and have included it in a project created in Visual Studio 2005.  When I try to run the report in VS I get the message: "Query Engine Error: 'Error Code: 0x' Failed to open a rowset.  Error in File"  I can run the report in Crystal without any errors.  The report has subreports and parametes.  I am using a stored procedure in SQL 2005.  I have included may other reports in this project and not had any problems.  Any suggestions?

    Post Author: gandasi
    CA Forum: Crystal Reports
    I had an issue that sounds very similar - report worked beautifully in Crystal, but "failed to return rowset" when run from my application (which is not VS2005, but in my case that didn't matter).
    Turns out that I had not given execute rights to the stored procedure to the public group in SQL server. I guess when running the report in Crystal it was using my Windows Authentication to logon or something which was why that was running OK.
    I explicitly set the permissions on the stored proc to grant public execute, and the report would run from my app.
    Hope this helps
    Cheers

  • XSQL arbitrary adhoc query - misleading error

    Newbie question: How can I allow arbitrary adhoc queries without getting misleading errors? (I am aware this can be a security hazard)
    Trying
    CREATE table test5(tla varchar2(3), description varchar2(80), primary key (tla))
    on the following .xsql page
    <?xml version="1.0"?>
    <xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql"
    null-indicator="yes"
    allow-client-style="yes">
    {@query}
    </xsql:query>
    yields a
    <?xml version="1.0" ?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: ORA-01009: missing mandatory parameter</ERROR>
    Note that despite the error the test5 database is actually created and usable in SQLPlus.
    Retrying the same xsql query a little later confirms this and yields
    <?xml version="1.0" ?>
    - <xsql-error code="955" action="xsql:query">
    <statement>create table test5(tla varchar2(3), description varchar2(80), primary key (tla))</statement>
    <message>ORA-00955: name is already used by an existing object</message>
    </xsql-error>
    Any ideas on how to avoid the misleading error message?
    Otherwise XSQL works nicely.
    Thanks.
    null

    <xsql:query> expects a query to be done.
    Use <xsql:dml> if you want other kinds of DML/DDL statements to be done.

  • EXP-00056: ORACLE error 12705 encountered

    Dear All,
    till today everything went fine with the export utility, but now it shows the following:
    EXP-00056: ORACLE error 12705 encountered
    ORA-12705: invalid or unknown NLS parameter value specified
    I don't know why this error appears, nobody changed anything on the server or on the client. I've done some modifications regarding to the advices of various web pages, but the error doesn't want to disappear... (The same export code runs fine on other machines.)
    Please advise!
    Thx!
    Franky

    I would advise you to read the metalink note ORA-12705 - Common Reasons and How to Resolve Them - Note:158654.1
    What is your export command ?
    Is it the same export command ?
    Is it the same OS user and then same environment variables ?
    What is your OS and oracle version ?
    What are NLS_* variables values and database ?
    etc...
    Nicolas.

Maybe you are looking for