UCM archiver Export query parameter

I would like to use IdcCommand to run archive service to export some documents in UCM.
I noticed there seems a parameter "aExportQuery" (by searching internet) can be used to create query but I'm not sure what the syntax is for this parameter
also, I don't see this parameter mentioned in the official document of archiver services:
http://docs.oracle.com/cd/E21043_01/doc.1111/e11011/c07_archive002.htm#i3246938
on another hand, this document says :
dataSource: Must be set to RevisionIDs. This is the query stub which, along with the export query, will be used to create the list of revisions to export.
sounds like this is where query should be created in.
Could someone clarify how to specify query for UCM export using IdcCommand ?
Thanks

Hi ,
I would suggest to set the following trace sections on UCM to get the details :
requestaudit,socketrequest and enable Full verbose tracing .
Then create a new archive export collection - once it is done go to view server output and check Socketrequest output , it will give the exact set of parameters and how the values are set for each of them .
Thanks,
Srinath

Similar Messages

  • Export Query parameter

    Hello,
    I am just getting to grips with the Export and Import utilities in Oracle. If i create an Export command with a query is it possible to have a greater than (>) or less than (<) within the query. For example, if the query part is;
    query=' where DEPTNO > 40 '
    I am given an error that where DEPTNO has no closing quote.
    Also, does the Export \ Import process generally provide the same process as Spool \ SqlLoader? Can SQLLoader be used instead to deal with constraints on the Import target table?
    Thanks in advance

    Hi, if you have Oracle 10g runining thats is posible, you can use expdp command and especify your sql that you needed.
    For more information, review the next link, there exists information about of this command.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_export.htm#SUTIL200
    Luck.
    Have a good day.
    Regards.

  • 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                                                                                                                                                                                                                                                                                                                                           

  • Assistance with export query

    Greetings,
    I am hoping to get some assistance with what I am thinking should be a simple content export. I am running UCM 11g with Folders_g. I have some root folder named rootfolder which has 30 or so content items directly in it and then 100 or so sub-folders. I have already migrated all the subfolders with their content successfully. Now I only need to export the remaining 30 or so items directly in the rootfolder. This sounds simple, but when I select that root folder using Folder Structure Archive, even though I do not place a check mark in any of the subfolders, the resultant export took 4 hours had over 160,000 items. I am only expecting these 30 or so items. How can I form a query to get only these? Idea i am thinking of is maybe to query for content which has parent folder id of rootfolder?
    Thank you in advance for any help,
    -Kaycee

    Thank you Jonathan - I wasn't receiving email notifications for this thread, so i wasn't aware that you had replied.
    After "playing" around, I did end up with a successful export of the source folder's 30 items by using this query: xCollectionID = valueforfolder and dReleaseState = 'Y'
    This did work, but there still remains for me some confusion around the use of Folder Structure Archive. I guess I was expecting that when using Folder Archive Configuration only, by checking the box of my intended parent folder and no other sub-folders under that box, that it should have exported it's 30 content items. And not the content items of the +/-100 sub-folders. I did not expect to have to add a content export query to refine/achieve the result. Simply, when using folder structure archive, shouldn't the export of content only pertain to the folder's checkbox you have marked?
    Thanks again,
    Kaycee

  • Export Query SQL multi-linee in XML format and Import XML in SAP

    Good morning
    Someone know if is possible after Export Query SQL on OITT and ITT1 with thousands rows in XML with values already change thru the query.
    Then import the XML without using loop in SAP with the above code vb.net
    oDistinta = DirectCast(m_oCompany.GetBusinessObjectFromXML(xmlFile, 0), SAPbobsCOM.ProductTrees)
                    Dim errCode As Integer = 0
                    Dim strErrore As String = ""
                    Dim iErrore As Integer = 0
                    oDistinta.Browser.ReadXml(xmlFile, 0)
                    errCode = oDistinta.Update
                    m_oCompany.GetLastError(iErrore, strErrore)
                    'on error
                    If iErrore <> 0 Then
    To make easy the program i post with 2 ProductTrees item. The 2 item already exist in OITT e ITT1.
    When i update the 1st item is modify but the 2nd not change.
    Here is the XML
    <?xml version="1.0" encoding="UTF-16"?>
    <BOM>
      <BO>
        <AdmInfo>
          <Object>66</Object>
          <Version>2</Version>
        </AdmInfo>
        <ProductTrees>
          <row>
            <TreeCode>V9998</TreeCode>
            <TreeType>iProductionTree</TreeType>
            <Quantity>1000.000000</Quantity>
            <U_SHI_MZDA>0</U_SHI_MZDA>
            <U_SHI_PUMA>0</U_SHI_PUMA>
            <U_SHI_PUUO>0</U_SHI_PUUO>
          </row>
        </ProductTrees>
        <ProductTrees_Lines>
          <row>
            <ItemCode>1047</ItemCode>
            <Quantity>5.000000</Quantity>
            <Warehouse>Mc</Warehouse>
            <Price>0.000000</Price>
            <Currency>
            </Currency>
            <IssueMethod>im_Backflush</IssueMethod>
            <Comment>
            </Comment>
            <ParentItem>V9998</ParentItem>
            <PriceList>2</PriceList>
            <DistributionRule>
            </DistributionRule>
            <U_IDE_POS>10</U_IDE_POS>
            <U_IDE_FASE>0</U_IDE_FASE>
            <U_IDE_OPER>10</U_IDE_OPER>
            <U_SHI_UndInv>N</U_SHI_UndInv>
            <U_SHI_Pri1>
            </U_SHI_Pri1>
            <U_SHI_Pri2>
            </U_SHI_Pri2>
            <U_SHI_Pri3>
            </U_SHI_Pri3>
            <U_SHI_Prgm>
            </U_SHI_Prgm>
            <U_SHI_Tim2>0.000000</U_SHI_Tim2>
            <U_SHI_Tim3>0.000000</U_SHI_Tim3>
            <U_SHI_DexNACQ>
            </U_SHI_DexNACQ>
            <U_SHI_BP>
            </U_SHI_BP>
            <U_SHI_PrcKit>0.000000</U_SHI_PrcKit>
            <U_SHI_ItmNACQ>
            </U_SHI_ItmNACQ>
            <U_SHI_LineOk>N</U_SHI_LineOk>
          </row>
        </ProductTrees_Lines>
        <ProductTrees>
          <row>
            <TreeCode>V9999</TreeCode>
            <TreeType>iProductionTree</TreeType>
            <Quantity>1000.000000</Quantity>
            <U_SHI_MZDA>0</U_SHI_MZDA>
            <U_SHI_PUMA>0</U_SHI_PUMA>
            <U_SHI_PUUO>0</U_SHI_PUUO>
          </row>
        </ProductTrees>
        <ProductTrees_Lines>
          <row>
            <ItemCode>1015</ItemCode>
            <Quantity>1000.000000</Quantity>
            <Warehouse>Mc</Warehouse>
            <Price>0.000000</Price>
            <Currency>
            </Currency>
            <IssueMethod>im_Backflush</IssueMethod>
            <Comment>
            </Comment>
            <ParentItem>V9999</ParentItem>
            <PriceList>5</PriceList>
            <DistributionRule>
            </DistributionRule>
            <U_IDE_POS>30</U_IDE_POS>
            <U_IDE_FASE>0</U_IDE_FASE>
            <U_IDE_OPER>30</U_IDE_OPER>
            <U_SHI_UndInv>N</U_SHI_UndInv>
            <U_SHI_Pri1>
            </U_SHI_Pri1>
            <U_SHI_Pri2>
            </U_SHI_Pri2>
            <U_SHI_Pri3>
            </U_SHI_Pri3>
            <U_SHI_Prgm>
            </U_SHI_Prgm>
            <U_SHI_Tim2>0.000000</U_SHI_Tim2>
            <U_SHI_Tim3>0.000000</U_SHI_Tim3>
            <U_SHI_DexNACQ>
            </U_SHI_DexNACQ>
            <U_SHI_BP>
            </U_SHI_BP>
            <U_SHI_PrcKit>0.000000</U_SHI_PrcKit>
            <U_SHI_ItmNACQ>
            </U_SHI_ItmNACQ>
            <U_SHI_LineOk>N</U_SHI_LineOk>
          </row>
        </ProductTrees_Lines>
      </BO>
    </BOM>
    Someone know the reason ?
    Thanks in advance.
    Regards

    Hi Gabriele,
    The issue is that the ReadXml method takes an index parameter which is the number of the object that you want to read from the XML data. In your code you are specifying index 0 which is the first product tree in your file so when you call the Update method this is the only record that will be updated. It is not possible to do a mass update using the DI API in this way, you must always load each object separately. You can use the GetXMLelementCount method of the Company object to find out how many product tree objects are in your file and then use the ReadXML method to load each one by incrementing the index parameter in a loop.
    Kind Regards,
    Owen

  • 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

  • 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

  • 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

  • Export query clause problem

    I am trying to export some data using the query clause. I am getting this error "LRM-00116: syntax error at ')' following 'mm/dd/yyyy'
    my query clause is :
    QUERY = \"where TREND_DATE \> to_date('01/01/2006','mm/dd/yyyy') \"
    Can anyone help me with what the problem is.
    Thanks!
    Melissa

    try this....
    QUERY = \"where TREND_DATE \> to_date(\'01/01/2006\',\'mm/dd/yyyy\') \"
    Restrictions on QUERY parameter...
    The parameter QUERY cannot be specified for full, user, or tablespace mode exports.
    The parameter QUERY must be applicable to all specified tables.
    The parameter QUERY cannot be specified in a direct path export (DIRECT=y)
    The parameter QUERY cannot be specified for tables with inner nested tables.
    You cannot determine from the contents of the export file whether the data is the result of a QUERY export

  • EXPORT 시 QUERY OPTION에 대한 사용 예(ORACLE 8I 이상)

    제품 : ORACLE SERVER
    작성날짜 : 2004-03-17
    EXPORT 시 QUERY OPTION에 대한 사용 예(ORACLE 8I 이상)
    ============================================
    PURPOSE
    ============
    oracle 8i에서 export 시 query option에 대한 사용 예
    8i에서 export의 query syntax 를 이용하여 table data의 한 부분만 exporting 이 가능
    - 8i 에서 select 문장의 where 절을 사용하는 것처럼 export 시에 부분적으로 table data 를 받아 낼수 있는 기능을 소개 한다.
    - Direct 옵션은 사용될 수 없다..
    - where 절에 해당하는 export utility는 query parameter 를 사용한다.
    UNIX syntax:
    - Example:
    1.SCOTT.Emp table의 ename 이 JAME과 비슷한 이름의 data 를 export ..
    exp scott/tiger query=\"where ename like \'JAME%\'\" tables=emp file=exp.dmp log=exp.log
    2. employee와 cust table에서 new york 주의 data 만 export ..
    exp scott/tiger query=\"where st=\'NY\'\" tables=(employee,cust) file=exp.dmp log=exp.log
    query 문장에서 UNIX reserved characters( ", ', ,< .. 등) 를 사용하는 경우에는 escape ('\') 을 반드시 사용해야 한다.
    예)query=\"where JOB = \'SALESMAN\' and salary \< 1600\"
    더 중요한 것은 command line에서 export option을 사용할때는 반드시 escape 이 있어야 하나
    parfile을 사용할때는 eacape이 불필요하다.
    예를 보면 .. p라는 이름의 file을 다음과 같이 생성
    tables=emp query="where job='SALESMAN'"
    parfile을 이용해서 export 를 실행해 보면
    [rmtdchp6]/apac/rdbms/64bit/app/oracle/product/9.2.0> exp scott/tiger parfile=p
    Export: Release 9.2.0.4.0 - Production on Wed Mar 17 00:12:34 2004
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses KO16KSC5601 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    . . exporting table EMP 4 rows exported
    와 같이 정상 처리 됨을 알수 있다.
    만일 command line에서 위의 내용을 실행하게 되면 다음과 같이 error 를 만난다.
    exp scott/tiger tables=emp query="where job='SALESMAN'"
    LRM-00101: unknown parameter name 'job'
    EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
    EXP-00000: Export terminated unsuccessfully
    command line에는 query 내에 single(')나 double quotes(") 를 사용한다면 반드시 double quotes(") 를 사용하여
    query 문을 묶어야 한다.그러나 query 내에서 single ('')나 double quotes(") 를 사용하지 않는다면 single quotes (')을 사용하여
    query 문을 수행할 수도 있다..
    다음 예를 보면..
    1>exp scott/tiger tables=emp query=\'where deptno=20\'
    Export: Release 9.2.0.4.0 - Production on Wed Mar 17 00:22:00 2004
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to: Oracle9i Enterprise Edition Release 9.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.4.0 - Production
    Export done in US7ASCII character set and AL16UTF16 NCHAR character set
    server uses KO16KSC5601 character set (possible charset conversion)
    About to export specified tables via Conventional Path ...
    . . exporting table EMP 4 rows exported
    2>exp scott/tiger tables=emp query=\'where job=\'SALESMAN\'\'
    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
    즉.. 정리를 하자면
    command line에서 query 내에 '," 을사용하지 않는 다면 '나 " 으로 query option을 사용할수 있다
    query=\'where deptno = 20\'
    query=\"where deptno = 20\"
    query=\'where deptno \< 2\'
    (이 경우 single 이나 double quotes 을 둘다 사용할수 있다.)
    parfile을 사용하는 경우에는 다음과 같이 단순하게 사용이 가능하다.
    query='where deptno = 20'
    query="where deptno = 20"
    query='where deptno < 20'
    WINDOWS NT / 2000 와 NETWARE syntax:
    다음의 자료를 참조바란다.
    Example:
    EXP demo/demo tables=emp file=exp1.dmp query="""where deptno>30"""
    double quotes(") 를 둘러 싸는 경우에는 space 가있으면 안된다.
    parfile의 사용은 다음과 같이 하시면 됩니다.
    file=exp66.dmp
    query="where deptno > 20"
    tables=(emp)
    log=log66.txt
    userid=scott/tiger
    Explanation
    Windows NT or Win2000의 경우 command line에서는 3 double quotes 이 필요하고
    'PARFILE 을 사용하는 경우에는 double quotes(") 한번만 필요함
    Reference Documents
    Oracle8i Utilities guide
    Note:91864.1

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

  • Doubts on datapump query parameter

    Hi,
    Oracle Version : 10.2.0.1
    Operating system:Windows
    Can any one please tell me the difference between the two export statements where i user Query parameter in my export .
    E:\oracle\dbdump>expdp scott/tiger directory=dbdump dumpfile=partion.dmp logfile=partion.log exclude=statistics,grants tables=emp QUERY=emp:'"where deptno<20"'
    Export: Release 10.2.0.1.0 - Production on Wednesday, 21 October, 2009 11:47:55
    Copyright (c) 2003, 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
    Starting "SCOTT"."SYS_EXPORT_TABLE_01":  scott/******** directory=dbdump dumpfile=partion.dmp logfile=partion.log exclude=statistics,grants tables=emp QUERY=emp:'where deptno<20'
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 64 KB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    ORA-31693: Table data object "SCOTT"."EMP" failed to load/unload and is being skipped due to error:
    ORA-00933: SQL command not properly ended
    Master table "SCOTT"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
    Dump file set for SCOTT.SYS_EXPORT_TABLE_01 is:
      E:\ORACLE\DBDUMP\PARTION.DMP
    Job "SCOTT"."SYS_EXPORT_TABLE_01" completed with 1 error(s) at 11:48:06
    E:\oracle\dbdump>expdp scott/tiger directory=dbdump dumpfile=partion.dmp logfile=partion.log exclude=statistics,grants tables=emp QUERY='"where deptno<20"'
    Export: Release 10.2.0.1.0 - Production on Wednesday, 21 October, 2009 11:57:32
    Copyright (c) 2003, 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
    Starting "SCOTT"."SYS_EXPORT_TABLE_01":  scott/******** directory=dbdump dumpfile=partion.dmp logfile=partion.log exclude=statistics,grants tables=emp QUERY='where deptno<20'
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 64 KB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    . . exported "SCOTT"."EMP"                               7.375 KB       3 rows
    Master table "SCOTT"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
    Dump file set for SCOTT.SYS_EXPORT_TABLE_01 is:
      E:\ORACLE\DBDUMP\PARTION.DMP
    Job "SCOTT"."SYS_EXPORT_TABLE_01" successfully completed at 11:57:44

    Hi,
    Here another doubt i am trying to take a full dump of the scott schema and i want the emp table data based on the salary condition .But i am getting the following error .Please help me that we can't user query option when taking full schema dump.
    E:\oracle\dbdump>expdp scott/tiger directory=dbdump dumpfile=full_1.dmp logfile=full_1.log exclude=statistics,grants  QUERY=scott.emp:'"where sal<3000"'
    Export: Release 10.2.0.1.0 - Production on Wednesday, 21 October, 2009 12:14:44
    Copyright (c) 2003, 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
    Starting "SCOTT"."SYS_EXPORT_SCHEMA_01":  scott/******** directory=dbdump dumpfile=full_1.dmp logfile=full_1.log exclude=statistics,grants QUERY=scott.emp:'where sal<3
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 192 KB
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/COMMENT
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    ORA-31693: Table data object "SCOTT"."DEPT" failed to load/unload and is being skipped due to error:
    ORA-00933: SQL command not properly ended
    ORA-31693: Table data object "SCOTT"."EMP" failed to load/unload and is being skipped due to error:
    ORA-00933: SQL command not properly ended
    ORA-31693: Table data object "SCOTT"."SALGRADE" failed to load/unload and is being skipped due to error:
    ORA-00933: SQL command not properly ended
    . . exported "SCOTT"."BONUS"                                 0 KB       0 rows
    Master table "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
    Dump file set for SCOTT.SYS_EXPORT_SCHEMA_01 is:
      E:\ORACLE\DBDUMP\FULL_1.DMP
    Job "SCOTT"."SYS_EXPORT_SCHEMA_01" completed with 3 error(s) at 12:14:56
    E:\oracle\dbdump>expdp scott/tiger directory=dbdump dumpfile=full_11.dmp logfile=full_11.log exclude=statistics,grants  QUERY='"where sal<3000"'
    Export: Release 10.2.0.1.0 - Production on Wednesday, 21 October, 2009 12:30:30
    Copyright (c) 2003, 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
    Starting "SCOTT"."SYS_EXPORT_SCHEMA_01":  scott/******** directory=dbdump dumpfile=full_11.dmp logfile=full_11.log exclude=statistics,grants QUERY='where sal<3000'
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 192 KB
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/COMMENT
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    ORA-31693: Table data object "SCOTT"."DEPT" failed to load/unload and is being skipped due to error:
    ORA-00904: "SAL": invalid identifier
    . . exported "SCOTT"."EMP"                               7.703 KB      11 rows
    ORA-31693: Table data object "SCOTT"."SALGRADE" failed to load/unload and is being skipped due to error:
    ORA-00904: "SAL": invalid identifier
    . . exported "SCOTT"."BONUS"                                 0 KB       0 rows
    Master table "SCOTT"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
    Dump file set for SCOTT.SYS_EXPORT_SCHEMA_01 is:
      E:\ORACLE\DBDUMP\FULL_11.DMP
    Job "SCOTT"."SYS_EXPORT_SCHEMA_01" completed with 2 error(s) at 12:30:51

  • How do I correct this export query error?

    I am attempting to export everything newer than 90 days from a a table using ...query="where TRUNC(datefield) > TRUNC(SYSDATE)-90" but I'm getting the LRM-00112 error - multiple values not allowed for parameter 'query'.
    What would be a way around this? I can't use a specific date string because the requirement is to be able to clear a table based on 30, 45,90, or 180 day increments from the current SYSDATE.
    Thanks in advance for any help/suggestions with this.
    Wayne

    It's likely that your command interpreter (Unix shell ?) tries to interpret the '>' in your command line.
    Try to use an export parameter file for the query parameter to avoid this problem:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96652/ch01.htm#1004778
    Message was edited by:
    Pierre Forstmann

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

  • 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

Maybe you are looking for