Exporting Tables using expdp utility

Hi all,
Can any one tell me how to export one week data from a table having 3 months data. Like we have one table named abc having data from Jul to Sep and i want to export only september 2nd week's data. Is there any way to do that??
Note:Our table is monthly partitioned

HI,
Actually we have over 200 tables in our database and want to export certain period of data (like i mentioned one week) so this seems not feasible to create such number of tables.
Insert date is the common column in all tables so this might be the key.
When i given following command it returns error on date format.
expdp fkhalid/****** DIRECTORY=DUMPS DUMPFILE=one_week_export.dmp LOGFILE=one_week_export.log TABLES=abcschema.ABCTEMP QUERY=abcschema.ABCTEMP:'"where ins_dt between '25-SEP-2006' and '30-SEP-2006'"'
Error:
ORA-00904: "SEP": invalid identifier
any idea about date format????
Message was edited by:
Fkhalid

Similar Messages

  • Can we take backup of external table using expdp

    Can we take backup of external table using expdp, please suggest any doc.
    thanks in advance.

    @Fahd
    About the ACCESS_METHOD parameter
    -It's undocumented data pump parameter and it's should be used only when requested by Oracle Support
    -It's purpose is to specify the loading/unloading method, not filtering object types during the export or import
    -If this parameter is not specified,the Data Pump will automatically choose the best method to load or unload the data...
    so,
    the External Tables method
    -Is used by the data pump if data cannot be moved in the default method to load/unload data ,
    and that is direct path mode, or if there is a situation where parallel SQL can be used to speed up the data move even more

  • How to export selected columns in a table using expdp of oracle10g

    Hi all..
    I have a table with 10 columns and i want to export only 4 columns(selected columns) data using expdp
    Pl. tell me if we can do this and if yes what is the syntax.
    Thanks..
    Sekhar

    That's not possible, you could use QUERY to specify where clause but not columns in select clause,
    for example,
    QUERY=employees:'"WHERE department_id > 10 AND salary > 10000"'
    you could use
    create table2export as select c1,c2,c3,c4 from tableof10columns;and export the temp table.

  • Error in export using expdp utility.

    Hi All,
    I am getting below error while doing expdp , version 11.2.0.2.0
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA
    ORA-39126: Worker unexpected fatal error in KUPW$WORKER.GET_TABLE_DATA_OBJECTS []
    ORA-31642: the following SQL statement fails:
    BEGIN "SYS"."DBMS_CDC_EXPDP".SCHEMA_CALLOUT(:1,0,1,'11.02.00.02.00'); END;
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_METADATA", line 1245
    ORA-01950: no privileges on tablespace 'XXXXX'
    Tried with ORA-1950 During Full or Schema Database Export [ID 454849.1] and DataPump Export Utility Fails With Errors ORA-39125 ORA-31642 PLS-201 on Package SYS.DBMS_CDC_EXPDP [ID 825680.1]
    But still the problem persists.
    Note: recently this db has migrated from 10g.
    Thanks in Advance.

    Hi;
    1. Please post your exact db version
    2. Please see:
    Export/Import DataPump: The Minimum Requirements to Use Export DataPump and Import DataPump (System Privileges) [ID 351598.1]
    ORA-1950 During Full or Schema Database Export [ID 454849.1]
    Regard
    Helios

  • Is the syntax correct to export tables using shell script

    can you please tell me the syntax to plaxce the exp utility in shelle script.
    Appreciate your help
    Is the syntax correct for export.
    It is throwing errors
    vi test.sh
    echo migrating data...
    echo Exporting ADDRESS_COUNTRY_CODE ...
    exp userid=scott/tiger@orcl file=address_country_code log=exp_address_country_code tables=ADDRESS_COUNTRY_CODE compress=n indexes=n constraints=n grants=n triggers=n statistics=none consistent=y query='where org_grp_i in ( 66 )' > /dev/null
    echo Exporting ASSUMPTION_DETAIL_SUMMARY ...
    exp userid=scott/tiger@orcl file=assumption_detail_summary log=exp_assumption_detail_summary tables=ASSUMPTION_DETAIL_SUMMARY compress=n indexes=n constraints=n grants=n triggers=n statistics=none consistent=y query='where org_grp_i in ( 66 )' > /dev/null

    Just follow the notes and the example in the utilities guide
    http://download-uk.oracle.com/docs/cd/B10501_01/server.920/a96652/ch01.htm#1005843
    exp scott/tiger TABLES=emp QUERY=\"WHERE job=\'SALESMAN\' and sal \<1600\"

  • Error exporting SharedServices using CSSImportExportUtility utility (V.9.2)

    Hi,
    I'm trying to export users and groups from an existing HSS environment to import them on the TEST environnment. When running the CSSImportExportUtility it aborts with the following error (used xxx instead of real user name for privacy reasons):
    Aborting program...
    User not found = ldap://DN=uid=xxxxx.xxxxx
    ,ou=Employees,ou=People,o=xxx.com?USER
    The export file is created and contains several entries but is stopped aburptly and therefore wil not validate as well. I think the ldap is out of sync, but how can we sync this in version 9.2.0 (no sync utility is available in this version?)
    Thanks in advance!
    M.
    Edited by: user450712 on Feb 26, 2009 2:49 AM

    Hi,
    The updateNativeDir utility I think was released in 9.2.1, it may be backward compatible to 9.2.0 but I can't be sure.
    I do know that the 9.3.1 CSSImportExportUtility is backward compatible to 9.2.x so if you can get hold of it, it might trying it out and seeing if it ignores the errors, they have made improved with the 9.3.1 version to the 9.2.x version.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Error while Exporting dump using Expdp

    Hi Guru's
    When i started to export schema by giving the following command
    staging/********@XXXXX schemas=abcdirectory=DUMPDIR dumpfile=tnfhc_291210.dmp logfile=exp_tnfhc_291210.log schema is not exported successfully. it started to give the following error.
    ORA-31694: master table "STAGING"."SYS_EXPORT_SCHEMA_10" failed to load/unload
    ORA-19502: write error on file "/home/oracle/dumpdir/tnfhc_291210.dmp", blockno 263773 (blocksize=4096)
    ORA-27072: File I/O error
    Additional information: 4
    Additional information: 263773
    Additional information: 131072
    Job "STAGING"."SYS_EXPORT_SCH
    {code}
    Kindly help to take backup..
    Thanks & Regards
    Sami.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    ORA-19502: write error on file "/home/oracle/dumpdir/tnfhc_291210.dmp", blockno 263773 (blocksize=4096)
    ORA-27072: File I/O error
    Additional information: 4some sort of Operating System error; like volume is 100% full
    what clues exist in OS log files?

  • Scheduler for Export Table utility using PL/SQL developer Tool

    Hi,
    Is there any way by which i can schedule manually export tables from a user using PL/SQL developer tool 'Export Tables' utility.
    As i have lot many schema a for each i have to manually exporting all tables using this utility.
    Please suggest.
    Thanks,

    Hello,
    do you mean PL/SQL developer from Allroundautomation? Then this is the wrong forum.
    Do you mean the export feature from SQL Developer, that you can invoke on right click in a result pane? You cannot automate it.
    But if you tell us more about your requirements we might be able to find a good solution for you. Yet this is a question for the {forum:id=75} forum. There is a FAQ {message:id=9360007}. This combined with dbms_scheduler or a scheduled job on your computer might solve the problem.
    Regards
    Marcus

  • Scheduler for Export Table utility using PL/SQL developer

    Hi,
    Is there any way by which i can schdule manually export tables from a user using PL/SQL developer 'Export Tables' utility.
    As i have lot many schema a for each i have to manually exporting all tables using this utility.
    Please suggest.
    Thanks,

    My suggestion is you re-ask this question on the forums of the vendor of PL/SQL Developer, Allround automations, http://www.allroundautomations.com
    If you are asking about SQL Developer, it has it's own forum on OTN.
    Sybrand Bakker
    Senior Oracle DBA

  • ORA-04030: out of process memory error for expdp utility

    Hi,
    I am using expdp utility to export schema objects. It was working fine for the past one year, but now I am facing this issue.
    It is giving below error while exporting one schema objects.
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    ORA-39125: Worker unexpected fatal error in KUPW$WORKER.UNLOAD_METADATA while calling DBMS_METADATA.FETCH_XML_CLOB [TABLE:....................
    ORA-04030: out of process memory when trying to allocate 4108 bytes (Typecheck,kgghteInit)
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.KUPW$WORKER", line 6241
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    678894EC 14916 package body SYS.KUPW$WORKER
    678894EC 6300 package body SYS.KUPW$WORKER
    678894EC 2340 package body SYS.KUPW$WORKER
    678894EC 6861 package body SYS.KUPW$WORKER
    678894EC 1262 package body SYS.KUPW$WORKER
    501F624C 2 anonymous block
    Job "SYSTEM"."SYS_EXPORT_SCHEMA_37" stopped due to fatal error at 03:30:28
    DB version: Oracle 10.2.0.1
    SGA Details:
    Total System Global Area 1426063360 bytes
    Fixed Size 1251052 bytes
    Variable Size 243271956 bytes
    Database Buffers 1124073472 bytes
    Redo Buffers 57466880 bytes
    pga_agregate_target = 600M
    OS: Windows Server 2003 R2
    RAM: 3.5 GB
    I tried running expdp multiple times every time I will get out of memeory error along with different oracle errors, but the common error is out of memory ora -04030.
    In above case I got this error along with ORA-39125 and sometimes I will get with
    ORA-39014: One or more workers have prematurely exited.
    ORA-39029: worker 1 with process name "DW01" prematurely terminated
    ORA-31671
    I searched forums and found lot options but not for expdp utility.
    Can some one please help in resolving this issue.
    Thanks,
    Srikanth.K

    Hi;
    Please investigate your issue:
    Master Note for Diagnosing OS Memory Problems and ORA-4030 [ID 1088267.1]
    DataPump Export (EXPDP) Terminates With Error ORA-4030 [ID 1368462.1]
    Regard
    Helios

  • How to use EXPDP to create the dumpfile in shared network drive.

    Hi,
    I have Oracle 11g ( 11.2.0.3 ) DB server in SUSE Linux machine.
    I want to export a schema of 300 GB size using EXPDP utility. Thing is I dont have enough space to hold the EXPDP dumpfile in the same server.
    Hence I would like to know is there any way where I can create the dumpfile on to some other mapped drive from the Linux server.
    This is quite urgent, please some one help me.
    Regards
    Suresh

    Hi Suresh,
    It it's windows you want to map to linux take a look at samba to do that:
    http://www.linux-noob.com/forums/index.php?/topic/1404-how-to-mount-a-windows-share-with-smbmount/
    I've not actually exported directly to a samba mount but i assume it will work......
    the other alternative (if you have an 11.2.0.3 db on the windows server also) is to use this approach
    http://dbaharrison.blogspot.de/2013/05/expdp-creating-file-on-my-local-machine.html
    Cheers,
    Harry

  • Date-wise backup using expdp

    Dear Friends ,
    I am using Oracle database 10g . Every week I take full export backup using 'expdp' . Beetween the days of the week, I dont take any backup . Now I need backup of two days ago . In this moment , is it possible to take backup using datapump (expdp) before two days ago ?
    i.e., Is there any facility in oracle 10g datapump to take export backup using date-wise ?
    My another question ,
    Is there any incremental backup procedure available in oracle 10g datapump ?
    Waiting for kind reply ... ...

    Hi,
    Dear Friends ,
    I am using Oracle database 10g . Every week I take full export backup using 'expdp' . Beetween the days of the week, I dont take any backup . Now I need backup of two days ago . In this moment , is it possible to take backup using datapump (expdp) before two days ago ?
    i.e., Is there any facility in oracle 10g datapump to take export backup using date-wise ?
    My another question ,
    Is there any incremental backup procedure available in oracle 10g datapump ?
    Waiting for kind reply ... ...You must not use or treat Expdp or logical backup as the Backup which can be used for future purpose. Please search forums their are so many links you lan find out and so many people told many time.. even ORACLE suggest that.
    Go for Custom backups and RMAn backups.
    - Pavan Kumar N
    - Pavan Kumar N

  • Missing SET DEFINE OFF exporting tables

    Another minor bug exporting tables using the insert option is that no “SET DEFINE OFF” is created.
    If values in the exported tables contains *“&”* characters, the user is asked to edit values.
    Example:
    1. Create a table with such a value:
    SET DEFINE OFF;
    CREATE TABLE FOO (COMPANY VARCHAR2 (64));
    INSERT INTO FOO VALUES ('Meier & Co');
    2. Exporting this table creates:
    -- Datei erstellt -Freitag-April-15-2011
    -- DDL for Table FOO
    CREATE TABLE "FOO"
    (     "COMPANY" VARCHAR2(64)
    REM INSERTING into FOO
    Insert into FOO (COMPANY) values ('Meier & Co');
    3. Running in SQLPlus:
    SQL> @export.sql
    Tabelle wurde erstellt.
    Geben Sie einen Wert f³r co ein:
    Regards
    Marc
    Version:
    Java(TM)-Plattform     1.6.0_23
    Oracle-IDE     3.0.04.34
    Versionierungsunterstützung     3.0.04.34

    Thank you. As a new SQL Developer user, I didn't know what it should have been, but I found out I needed to edit the output before I could use it to load data.
    Skip

  • How to use expdp and impdp in lnux environment

    Hi .
    I want to export data using expdp in linux envirinment.pls give exaple how to get it.

    Here you are: http://www.oracle-base.com/articles/10g/OracleDataPump10g.php

  • Is it possible to export tables from diffrent schema using expdp?

    Hi,
    We can export tables from different schema using exp. Ex: exp user/pass file=sample.dmp log=sample.log tables=scott.dept,system.sales ...But
    Is it possible in expdp?
    Thanks in advance ..
    Thanks,

    Hi,
    you have to use "schemas=user1,user2 include=table:"in('table1,table2')" use parfileexpdp scott/tiger@db10g schemas=SCOTT include=TABLE:"IN ('EMP', 'DEPT')" directory=TEST_DIR dumpfile=SCOTT.dmp logfile=expdpSCOTT.log{quote}
    I am not able to perform it using parfile also.Using parfile it shows "UDE-00010: multiple job modes requested, schema and tables."
    When trying the below, i get error
    {code}
    bash-3.00$ expdp directory=EXP_DUMP dumpfile=test.dmp logfile=test.log SCHEMAS=(\'MM\',\'MMM\') include=TABLE:\"IN\(\'EA_EET_TMP\',\'WS_DT\'\)\"
    Export: Release 10.2.0.4.0 - 64bit Production on Friday, 15 October, 2010 18:34:32
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Username: / as sysdba
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    Starting "SYS"."SYS_EXPORT_SCHEMA_01": /******** AS SYSDBA directory=EXP_DUMP dumpfile=test.dmp logfile=test.log SCHEMAS=('MM','MMM') include=TABLE:"IN('EA_EET_TMP','WS_DT')"
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    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/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    . . exported "MM"."EA_EET_TMP" 0 KB 0 rows
    ORA-39165: Schema MMM was not found.
    Master table "SYS"."SYS_EXPORT_SCHEMA_01" successfully loaded/unloaded
    Dump file set for SYS.SYS_EXPORT_SCHEMA_01 is:
    /export/home/nucleus/dump/test.dmp
    Job "SYS"."SYS_EXPORT_SCHEMA_01" completed with 1 error(s) at 18:35:19
    {code}
    When checking expdp help=y shows :-
    {code}TABLES Identifies a list of tables to export - one schema only.{code}
    As per few testing,tables from different schemas are not possible to export using expdp in a single command.
    Anand

Maybe you are looking for

  • Forms Migration Document 6i to 10g?

    I have searched OTN and Metalink and cannot find a migration document. I'm installing Forms/Reports 9.0.4 on a new server and moving all my 6i forms/reports. Is there a migration document telling me what changes need to be made in forms/reports for 9

  • Mac mini won`t update and kernel panic

    Hello guys, I have a last gen mac mini running OSX 10.7.2. It`s not able to do any apple update since 1 month ago, and i have no ideia why. And since today morning it refuses to recognize my magic trackpad, when i try to use it i get a Kernel Panic.

  • Dual Monitor 8500GT

    I just installed an MSI 8500GT into an HP tower and the Dual Monitor setup doesn't seem to work. I installed the unit on an HP a1410n.  Here are the specs for the a1410n. http://reviews.cnet.com/desktops/hp-pavilion-media-center/4507-3118_7-31851077.

  • Cross docking using SLS ( Supplementery logistics services )

    Hi All, I am trying to perform cross docking by using SLS. The scenario is that Store place order to D.C where D.C is performing a collective P.O run ( Wf10). Generally before you generate D.C order the SLS indicator should be checked based on the se

  • Help with Debugger

    I am having trouble using a debugger... I used it at one time but I forgot how to use it. The debugger I am using is the jdb that came with j2sdk1.4.0. What command would I give if I wanted to dump the variable testInt? What about testInt2? import ja