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:\>

Similar Messages

  • How to use 10.2.0.1.0 Export utility for 10.1.0.2.0 databases

    Hi All
    My computer server is using Oracle 10.1.0.2.0.
    Client is using Oracle 10.2.0.1.0
    How to use 10.2.0.1.0 Export utility for 10.1.0.2.0 databases without the following errors:
    EXP-00056: ORACLE error 6550 encountered
    ORA-06550: line 1, column 41:
    PLS-00302: component 'SET_NO_OUTLINES' must be declared
    ORA-06550: line 1, column 15:
    PL/SQL: Statement ignored
    EXP-00000: Export terminated unsuccessfully
    Thiensu

    Command export:
    C:\Documents and Settings\USER>exp pjdb/pjdb@ORCLfile=C:\pjdb.dmp full=no
    Export: Release 10.2.0.1.0 - Production on Thu Apr 23 17:01:06 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    EXP-00056: ORACLE error 6550 encountered
    ORA-06550: line 1, column 41:
    PLS-00302: component 'SET_NO_OUTLINES' must be declared
    ORA-06550: line 1, column 15:
    PL/SQL: Statement ignored
    EXP-00000: Export terminated unsuccessfully
    C:\Documents and Settings\USER>
    Thiensu

  • 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

  • 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

  • How to use "Routing Table" option in Proxy service in OSB ?

    Hi,
    I have created Business and Proxy services in my OSB console. I have used "Custom Query" option while creating the Database Adapter and I'm passing one input parameter to the query. My input parameter is "Name".
    Based on the input values for this parameter, I need to pass a corresponding values to the query. For example, If I pass the following values to "Name" input parameter (India) I need to pass "Value1" to my query -
    India --> Value1
    China --> Value2
    America --> Value3
    To achieve this requirement, I have used "Routing Table" option. I have specified the values as follows -
    Expression - $body/fet:FetchCustDataInput/fet:Name
    Operator- '='
    Compare value - India
    Service - "My Webservice"
    Operaton- "My Service Operation"
    In the "Request Actions:" I have added the "Add an Action --> Messaging Processing --> Replace" and provided the following values -
    Replace <XPath> = $body/fet:FetchCustDataInput/fet:Name
    in Variable = "Name"
    with Expression = xs:string('Value1')
    and selected "Replace node contents" option.
    No validation errors I faced. I have created the Routing table in Proxy service. But when I try to execute the proxy service in my Test Console, I get the following error message -
    "The invocation resulted in an error: Unknown error while processing message for service ProxyService OSBQueryService/FetchByCustomQuery/FetchByCustomQueryPS."
    I have even enabled "Direct call" and "Include Tracing" options as well. The message under "Tracing" give "(echoing request)
    Routed Service. No Service has been invoked, the request is echoed.".
    Can anyone please help me to resolve this issue.
    Thanks in Advance,
    Udaya

    Did you put any loggers in the proxy at request pipeline prior to route node ? Can you trace if the request has entered request pipeline aleast.
    If not just check the transport headers under the request window in the test console. There should be a text box for entering username/password which should be left blank. I have faced this unknown exception from test console in some browsers where an incorrect username/password used to get populated here. Check this ..
    Edited by: atheek1 on Jul 22, 2010 2:02 AM

  • Java exception: Planning Data Form Import/Export Utility: FormDefUtil.sh

    Hi,
    We have the following in our environment
    Oracle 10gAS (10.1.3.1.0)
    Shared Services (9.3.1.0.11)
    Essbase Server (9.3.1.3.01)
    Essbase Admin Services (9.3.1.0.11)
    Provider Services (9.3.1.3.00)
    Planning (9.3.1.1.10)
    Financial Reporting + Analysis UI Services (9.3.1.2)
    I got the following error while using the Planning Data Form Import/Export Utility. Does anyone have any idea?
    hypuser@server01>$PLANNING_HOME/bin/FormDefUtil.sh import TEST.xml localhost admin password SamApp
    [May 6, 2009 6:25:11 PM]: Intializing System Caches...
    [May 6, 2009 6:25:11 PM]: Loading Application Properties...
    [May 6, 2009 6:25:11 PM]: Looking for applications for INSTANCE: []
    [May 6, 2009 6:25:13 PM]: The polling interval is set =10000
    Arbor path retrieved: /home/hypuser/Hyperion/common/EssbaseRTC/9.3.1
    [May 6, 2009 6:25:14 PM]: Setting ARBORPATH=/home/hypuser/Hyperion/common/EssbaseRTC/9.3.1
    Old PATH: /home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/AnalyticServices/bin:/home/hypuser/Hyperion/common/JRE-64/IBM/1.5.0/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/hypuser/bin:/usr/bin/X11:/sbin:.
    [May 6, 2009 6:25:14 PM]: Old PATH: /home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/common/JRE/IBM/1.5.0/bin:/home/hypuser/Hyperion/AnalyticServices/bin:/home/hypuser/Hyperion/common/JRE-64/IBM/1.5.0/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/hypuser/bin:/usr/bin/X11:/sbin:.
    java.lang.UnsupportedOperationException
    at com.hyperion.planning.olap.HspEssbaseEnv.addEssRTCtoPath(Native Method)
    at com.hyperion.planning.olap.HspEssbaseEnv.init(Unknown Source)
    at com.hyperion.planning.olap.HspEssbaseJniOlap.<clinit>(Unknown Source)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:187)
    at com.hyperion.planning.HspJSImpl.createOLAP(Unknown Source)
    at com.hyperion.planning.HspJSImpl.<init>(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.createHspJS(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.getHspJSByApp(Unknown Source)
    at com.hyperion.planning.HyperionPlanningBean.Login(Unknown Source)
    at com.hyperion.planning.HyperionPlanningBean.Login(Unknown Source)
    at com.hyperion.planning.utils.HspFormDefUtil.main(Unknown Source)
    Setting Arbor path to: /home/hypuser/Hyperion/common/EssbaseRTC/9.3.1
    [May 6, 2009 6:25:15 PM]: MAX_DETAIL_CACHE_SIZE = 20 MB.
    [May 6, 2009 6:25:15 PM]: bytesPerSubCache = 5654 bytes
    [May 6, 2009 6:25:15 PM]: MAX_NUM_DETAIL_CACHES = 3537
    Setting HBR Mode to: 2
    Unable to find 'HBRServer.properties' in the classpath
    HBR Configuration has not been initialized. Make sure you have logged in sucessfully and there are no exceptions in the HBR log file.
    java.lang.Exception: HBR Configuration has not been initialized. Make sure you have logged in sucessfully and there are no exceptions in the HBR log file.
    HBRServer.properties:HBR.embedded_timeout=10
    HBR Configuration has not been initialized. Make sure you have logged in sucessfully and there are no exceptions in the HBR log file.
    java.lang.ExceptionInInitializerError
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:205)
    at com.hyperion.hbr.api.thin.HBR.<init>(Unknown Source)
    at com.hyperion.hbr.api.thin.HBR.<init>(Unknown Source)
    at com.hyperion.planning.db.HspFMDBImpl.initHBR(Unknown Source)
    at com.hyperion.planning.db.HspFMDBImpl.initializeDB(Unknown Source)
    at com.hyperion.planning.HspJSImpl.createDBs(Unknown Source)
    at com.hyperion.planning.HspJSImpl.<init>(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.createHspJS(Unknown Source)
    at com.hyperion.planning.HspJSHomeImpl.getHspJSByApp(Unknown Source)
    at com.hyperion.planning.HyperionPlanningBean.Login(Unknown Source)
    at com.hyperion.planning.HyperionPlanningBean.Login(Unknown Source)
    at com.hyperion.planning.utils.HspFormDefUtil.main(Unknown Source)
    Caused by: Exception HBR Configuration has not been initialized. Make sure you have logged in sucessfully and there are no exceptions in the HBR log file.
    ClassName: java.lang.Exception
    at com.hyperion.hbr.common.ConfigurationManager.getServerConfigProps(Unknown Source)
    at com.hyperion.hbr.cache.CacheManager.<clinit>(Unknown Source)
    at java.lang.J9VMInternals.initializeImpl(Native Method)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:187)
    ... 11 more
    [May 6, 2009 6:25:15 PM]: Regeneration of Member Fields Complete
    [May 6, 2009 6:25:16 PM]: Thread main acquired connection com.hyperion.planning.olap.HspEssConnection@5f0e5f0e
    [May 6, 2009 6:25:16 PM]: Thread main releasing connection com.hyperion.planning.olap.HspEssConnection@5f0e5f0e
    [May 6, 2009 6:25:16 PM]: Thread main released connection com.hyperion.planning.olap.HspEssConnection@5f0e5f0e
    [May 6, 2009 6:25:16 PM]: Need to create an Object. pool size = 0 creatredObjs = 1
    java.lang.RuntimeException: Unable to aquire activity lease on activity 1 as the activity is currently leased by another server.
    at com.hyperion.planning.sql.actions.HspAquireActivityLeaseCustomAction.custom(Unknown Source)
    at com.hyperion.planning.sql.actions.HspAction.custom(Unknown Source)
    at com.hyperion.planning.sql.actions.HspActionSet.doActions(Unknown Source)
    at com.hyperion.planning.sql.actions.HspActionSet.doActions(Unknown Source)
    at com.hyperion.planning.HspJSImpl.aquireActivityLease(Unknown Source)
    at com.hyperion.planning.HspJSImpl.reaquireActivityLease(Unknown Source)
    at com.hyperion.planning.utils.HspTaskListAlertNotifier.reaquireTaskListActivityLease(Unknown Source)
    at com.hyperion.planning.utils.HspTaskListAlertNotifier.processTaskListAlerts(Unknown Source)
    at com.hyperion.planning.utils.HspTaskListAlertNotifier.run(Unknown Source)
    [May 6, 2009 6:25:16 PM]: Fetching roles list for user took time: Total: 42
    [May 6, 2009 6:25:16 PM]: Entering method saveUserIntoPlanning
    [May 6, 2009 6:25:16 PM]: User role is:0
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HP:0005,ou=HP,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:1,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:9,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:3,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:7,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:14,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:15,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:10,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:12,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:13,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:1,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:9,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:3,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:7,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:14,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:15,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:10,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:12,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Skipping unused HUB role: native://DN=cn=HUB:13,ou=HUB,ou=Roles,dc=css,dc=hyperion,dc=com?ROLE
    [May 6, 2009 6:25:16 PM]: Hub Roles for user is:991
    [May 6, 2009 6:25:16 PM]: Exiting method saveUserIntoPlanning
    [May 6, 2009 6:25:16 PM]: Saved the user admin to Planning
    [May 6, 2009 6:25:16 PM]: Entering method persistUserChanges()
    [May 6, 2009 6:25:16 PM]: Exiting method persistUserChanges()
    [May 6, 2009 6:25:16 PM]: Before calling getGroupsList for user from CSS
    [May 6, 2009 6:25:16 PM]: After getGroupsList call returned from CAS with groupsList [Ljava.lang.String;@705c705c
    [May 6, 2009 6:25:16 PM]: Fetching groups list for user took time: Total: 4
    [May 6, 2009 6:25:16 PM]: Entering method persistGroupChanges()
    [May 6, 2009 6:25:16 PM]: Exiting method persistGroupChanges()
    [May 6, 2009 6:25:16 PM]: User synchronization of 1 user elapsed time: 81, Users: 72, Groups: 9.
    [May 6, 2009 6:25:16 PM]: Didnt add child Forms, couldnt find parent 1
    Add/Update form under form folder - Corporate
    [May 6, 2009 6:25:21 PM]: Propegating external event[ FROM_ID: 7a7ebc1d Class: class com.hyperion.planning.sql.HspObject Object Type: -1 Primary Key: 1454699 ]
    [May 6, 2009 6:25:21 PM]: Propegating external event[ FROM_ID: 7a7ebc1d Class: class com.hyperion.planning.sql.HspPDFPrintOptions Object Type: -1 Primary Key: 1454699 ]
    [May 6, 2009 6:25:21 PM]: Propegating external event[ FROM_ID: 7a7ebc1d Class: class com.hyperion.planning.sql.HspForm Object Type: 7 Primary Key: 1454699 ]
    [May 6, 2009 6:25:21 PM]: Propegating external event[ FROM_ID: 7a7ebc1d Class: class com.hyperion.planning.sql.HspPDFPrintOptions Object Type: -1 Primary Key: 1454699 ]
    [May 6, 2009 6:25:21 PM]: Propegating external event[ FROM_ID: 7a7ebc1d Class: class com.hyperion.planning.sql.HspAnnotation Object Type: 14 Primary Key: 1454699 ]
    [May 6, 2009 6:25:21 PM]: Propegating external event[ FROM_ID: 7a7ebc1d Class: class com.hyperion.planning.sql.HspAccessControl Object Type: 15 Primary Key: 50001,1454699 ]
    [May 6, 2009 6:25:21 PM]: Propegating external event[ FROM_ID: 7a7ebc1d Class: class com.hyperion.planning.sql.HspFormDef Object Type: -1 Primary Key: 1454699 ]
    Form imported complete.
    [May 6, 2009 6:25:21 PM]: Could not get HBR connection.

    Hi,
    When I run the Formdefutil command, forms were imported successfully. But I got the following message.
    Could not get HBR connection.
    What does it mean?
    Thanks & Regards,
    Sravan Kumar.

  • Problem with odata with custom query options

    I have a datasource which uses custom query options
    http://www.odata.org/documentation/odata-version-3-0/url-conventions/#url5.2
    But those query options are not getting sent by Power Query with the $top requests.  Hopefully this is something you will correct in a subsequent release.
     - Chris

    Here's the sequence of calls that Power Query makes:
    GET /odata/catalog/test?$orderby=name&param=70442
    GET /odata/catalog/$metadata
    GET /odata/catalog/test?$orderby=name&$top=1000
    GET /odata/catalog/test?$orderby=name&param=70442
    GET /odata/catalog/$metadata
    GET /odata/catalog/test?$orderby=name
    GET /odata/catalog/test?$orderby=name&param=70442
    The problem, as you can see, is that two of the calls did not include the "param" parameter which is resulting in incorrect behaviour. Is this a bug?
    Thanks,
    Chris

  • 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

  • Export Utility USING PARAMETER FILE

    1st problem:
    I have created a parameter file USING NOTEPAD.All the export parameters specied in it.
    But when i executed it at command prompt as
    EXP73 USERNAME/PASSWORD
    PARFILE=<filename with .par extension>
    Its giving error
    LCC-00211:UNEXPECTED DELIMITER [NULL]
    I have tried using both valid delimiters 'SPACE' and ',' but still i am getting the same error.
    But in case of IMPORT utility i have used the same procedure and i am getting the required result.
    Please help as early as possible.
    null

    Hi,
    What u can do is chech out the options by keying in exp73 help=y. U will need to specify the options by urself on the command line.
    Example:
    exp73 file=c:\export1.dmp user=scott log=c:\export1.log <return>
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Gopinath Parthasarathy ([email protected]):
    While using Export utility at Command prompt:
    EXP73 LOG=<filename>
    it is just asking username and password after which there is no interaction and exports all the tables with logfile creation.
    Some body please help.<HR></BLOCKQUOTE>
    null

  • Exporting whole database (10GB) using Data Pump export utility

    Hi,
    I have a requirement that we have to export the whole database (10GB) using Data Pump export utility because it is not possible to send the 10GB dump in a CD/DVD to the system vendor of our application (to analyze few issues we have).
    Now when i checked online full export is available but not able to understand how it works, as we never used this data pump utility, we use normal export method. Also, will data pump reduce the size of the dump file so it can fit in a DVD or can we use Parallel Full DB export utility to split the files and include them in a DVD, is it possible.
    Please correct me if i am wrong and kindly help.
    Thanks for your help in advance.

    You need to create a directory object.
    sqlplus user/password
    create directory foo as '/path_here';
    grant all on directory foo to public;
    exit;
    then run you expdp command.
    Data Pump can compress the dumpfile if you are on 11.1 and have the appropriate options. The reason for saying filesize is to limit the size of the dumpfile. If you have 10G and are not compressing and the total dumpfiles are 10G, then by specifying 600MB, you will just have 10G/600MB = 17 dumpfiles that are 600MB. You will have to send them 17 cds. (probably a few more if dumpfiles don't get filled up 100% due to parallel.
    Data Pump dumpfiles are written by the server, not the client, so the dumpfiles don't get created in the directory where the job is run.
    Dean

  • How to define table specific QUERY in parameter file for Export Utility

    Hi All
    I am trying to create A SINGLE parameter file for export utility. I have 2 tables and want to use a different QUERY condition for each of these tables. However i do not want to create 2 seperate parameter files for this and run/script exp twice.
    Is there a way to do it ?
    NOTE: I am using normal export utility for Version 9 and NOT oracle data pump.
    Following is an example of what i want to achive in parameter file:
    Tables = (TabA,TabB)
    # for table - TabA
    QUERY = "where id =25"
    #for table - TabB
    QUERY = " where court_id=54 and id >1"
    Please advice on syntax of parameter file so that exp knows that it has to process 1st condition for only TabA and second condition for TabB.
    Any samples/syntax examples are greately appreciated.
    thanks in advance!
    cool tech

    No there is no such alternative. Query condition is applicable to all the tables listed in TABLES parameter.
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch01.htm#1005843

  • 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

  • Error while using the export utility

    Dear all of
    I am getting the following error while using the export utility in the Oracle database 9i
    I have run the catexp.sql and catrm.sql suggested by the experts in this forum. But it did not help me. Kindly help me in solving this issue.
    FOLLOWING ARE THE ERROR ----------------------------
    EXP-00008: ORACLE error 942 encountered
    ORA-00942: table or view does not exist
    EXP-00024: Export views not installed, please notify your DBA
    EXP-00000: Export terminated unsuccessfully
    -----------------------------------------------------------------------------------------------------------------------------------

    Can you go to this discussion please.
    Re: Getting a strange error for Exp
    -aijaz

  • Error while exporting data via Tcode CNS43 by using spreadsheet(XXL) option

    Hello All,
    User tries to download data to spreadsheet via Tcode CNS43 by using spreadsheet(XXL) option. user gets following error.
    Selected key figure STUFE not contained in XXL output structure
    Message no. M5180
    Diagnosis
    You tried to export a key figure that is not contained in the definition of the internal table 'xxl_data'. The key figure, therefore, cannot be exported.
    System response
    The system ignored the key figure column when exporting.
    Procedure
    The table definition for 'xxl_data' must be corrected by the development department responsible for the application.
    Please note that user doesnt want to use 'save to file' option.
    Any help?

    Refer SAP notes 761839, 522925
    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                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • How do I apply conditional formatting using SharePoint Designer 2013?

    I'm attempting to apply Conditional Formatting to a list view web part via SharePoint Designer 2013, and I can't seem to find the option to do so. I've a horrible feeling I'm just being daft, but here's what I've done so far: - Created a new page (I'

  • What/Where is the 32-bit version of Windows System Image Manager?

    I'm running into the problem described as follows in the WAIK documentation:  "Windows SIM fails to create a catalog for a 32-bit Windows image from a 64-bit version of Windows SIM. To workaround this issue, use the 32-bit version of Windows SIM to c

  • Migration FMFBS for FMBCS

    Dear SAP. I Need help.  We use the old version of FM (FBS) and by necessity (New Objet: Program budget) was needed to activate the BCS. It Was made all the migration but when we release bursts in the envelope in the message two (former budget and BCS

  • Can i un-install the old versions after 2014 update

    I now have 3 versions of every application installed on my desktop, CC 64bit (2014) can i un-install the old versions after 2014 update? aldo I have a 64bit platform is the new (2014) 64bit or do I have to install that version????!!??

  • Every Save prompts with Save As

    Issue:  A client of mine has accidentally updated their Adobe Reader from 9.5 to 10.1.3 incrementally.  After they have done this, every time they open a PDF and make changes (it has fillable fields) then presses save, it always prompts with "Save As