Schedule Daily Export Using Datapump

Hi
I want to schedule my datapump daily full export using the oracle database features,Such as Enterprise Manager,
How can I do it?
Please tell me complete Solution,cause I have tried it so many times But...
Thank You In Advance

hi hesam
u should better go with the shell scripting and add the script as the cron job at the required time that will be better
cronjobs :
http://www.quest-pipelines.com/newsletter/cron.htm
there are some problems that the exp commands will not work in the cronjobs
try below
or whatever your ksh shell is located.
# ! / bin / ksh
# setup the environment
export ORACLE_SID=TEST
export ORAENV_ASK=NO;
. oraenv
FILE_STUB=/u02/backup/$ORACLE_SID/exp_$ORACLE_SID_full
exp system/manager file=$FILE_STUB.dmp log=$FILE_STUB.log full=y direct=y
or, alternatively, you can setup your environment in your crontab:
10 0 * * * (/bin/ksh "export ORACLE_SID=TEST; export ORAENV_ASK=NO, . $HOME/.profile; $HOME/your_export_script_goes_here.ksh")

Similar Messages

  • Error while export using DATAPUMP

    hi ,
    When i try to export the database using DataPump I am getting the following error.
    Details :
    DB version : 10.2.0.2
    OS : (HP-Unix)
    error :
    dbsrv:/u02/oradata2> 6 dumpfile=uatdb_preEOD28_jul.dmp logfile=uatdb_preEOD28jul.log directory=expdp_new <
    Export: Release 10.2.0.1.0 - 64bit Production on Sunday, 27 July, 2008 10:00:38
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    Starting "OCEANFNC"."JOB6": userid=oceanfnc/********@uatdb content=ALL full=Y job_name=job6 dumpfile=uatdb_preEOD28_jul.dmp logfile=uatdb_preEOD28jul.log directory=expdp_new
    Estimate in progress using BLOCKS method...
    Processing object type DATABASE_EXPORT/SCHEMA/TABLE/TABLE_DATA
    ORA-39125: Worker unexpected fatal error in KUPW$WORKER.GET_TABLE_DATA_OBJECTS while calling DBMS_METADATA.FETCH_XML_CLOB []
    ORA-31642: the following SQL statement fails:
    BEGIN "DMSYS"."DBMS_DM_MODEL_EXP".SCHEMA_CALLOUT(:1,0,1,'10.02.00.01.00'); END;
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_METADATA", line 907
    ORA-04067: not executed, package body "DMSYS.DBMS_DM_MODEL_EXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "DMSYS.DBMS_DM_MODEL_EXP"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPW$WORKER", line 6235
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    c0000002ae4f0a60 14916 package body SYS.KUPW$WORKER
    c0000002ae4f0a60 6300 package body SYS.KUPW$WORKER
    c0000002ae4f0a60 9120 package body SYS.KUPW$WORKER
    c0000002ae4f0a60 1880 package body SYS.KUPW$WORKER
    c0000002ae4f0a60 6861 package body SYS.KUPW$WORKER
    c0000002ae4f0a60 1262 package body SYS.KUPW$WORKER
    c000000264e48dc0 2 anonymous block
    Job "OCEANFNC"."JOB6" stopped due to fatal error at 10:00:41
    Kindly advice me reg this!
    Thanks

    hi,
    we got a metalink note for this problem and the metalink id is "Note Id: 433022.1 " . Even after running the Mentioned catalog.sql and catproc.sql, in our DB, we are facing some problems. The error description :
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.system_info_exp(0,dynconnect,10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5327
    Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/PRE_SYSTEM_ACTIONS/PROCACT_SYSTEM
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.system_info_exp(1,dynconnect,10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5327
    Processing object type DATABASE_EXPORT/SYSTEM_PROCOBJACT/POST_SYSTEM_ACTIONS/PROCACT_SYSTEM
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('SYS',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('SYSTEM',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('OUTLN',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('TSMSYS',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('ANONYMOUS',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('OLAPSYS',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('SYSMAN',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('MDDATA',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('UATFNC',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('MGMT_VIEW',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('SCOTT',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('BRNSMS',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('FLEXML',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('FLEXBO',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('BRN000',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('FLEXRPT',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('BRN800',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('BRN900',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    ORA-39127: unexpected error from call to export_string :=EXFSYS.DBMS_EXPFIL_DEPASEXP.schema_info_exp('OCEANFNC',0,1,'10.02.00.01.00',newblock)
    ORA-04067: not executed, package body "EXFSYS.DBMS_EXPFIL_DEPASEXP" does not exist
    ORA-06508: PL/SQL: could not find program unit being called: "EXFSYS.DBMS_EXPFIL_DEPASEXP"
    ORA-06512: at line 1
    ORA-06512: at "SYS.DBMS_METADATA", line 5412
    Kindly advice me regarding this !!
    Thanks a lot for ur reply !!

  • Total number of records of partition tables exported using datapump

    Hi All,
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    OS: RHEL
    I exported a table with partitions using datapump and I would like to verify the total number of all the records exported of all these partition tables.The export has a query on it with WHERE ITEMDATE< TO_DATE (1-JAN-2010). I need it to compare with the exact amount of records in the actual table if it's the same.
    Below is the log file of the exported table. It does not show the total number of rows exported but only individually via partition.
    Starting "SYS"."SYS_EXPORT_TABLE_05": '/******** AS SYSDBA' dumpfile=data_pump_dir:GSDBA_APPROVED_TL.dmp nologfile=y tables=GSDBA.APPROVED_TL query=GSDBA.APPROVED_TL:"
    WHERE ITEMDATE< TO_DATE(\'1-JAN-2010\'\)"
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 517.6 MB
    Processing object type TABLE_EXPORT/TABLE/TABLE
    Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
    Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
    Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2008_Q3" 35.02 MB 1361311 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2008_Q4" 33.23 MB 1292051 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2010_Q4" 5.875 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2011_Q1" 5.875 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2009_Q3" 30.53 MB 1186974 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2010_Q3" 5.875 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2009_Q1" 30.44 MB 1183811 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2009_Q2" 30.29 MB 1177468 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2009_Q4" 30.09 MB 1170470 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2010_Q2" 5.875 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2011_Q2" 5.875 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2010_Q1" 5.875 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2011_Q3" 5.875 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2011_Q4" 5.875 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2012_Q1" 5.875 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2006_Q3" 0 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2006_Q4" 0 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2007_Q1" 0 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2007_Q2" 0 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2007_Q3" 0 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2007_Q4" 0 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2008_Q1" 0 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2008_Q2" 0 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2012_Q2" 0 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2012_Q3" 0 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_2012_Q4" 0 KB 0 rows
    . . exported "GSDBA"."APPROVED_TL":"APPROVED_TL_MAXVALUE" 0 KB 0 rows
    Master table "SYS"."SYS_EXPORT_TABLE_05" successfully loaded/unloaded
    Dump file set for SYS.SYS_EXPORT_TABLE_05 is:
    /u01/export/GSDBA_APPROVED_TL.dmp
    Job "SYS"."SYS_EXPORT_TABLE_05" successfully completed at 12:00:36
    Edited by: 831134 on Jan 25, 2012 6:42 AM
    Edited by: 831134 on Jan 25, 2012 6:43 AM
    Edited by: 831134 on Jan 25, 2012 6:43 AM

    I assume you want this so you can run a script to check the count? If not and this is being done manually, then just add up the individual rows. I'm not very good at writing scripts, but I would think that someone here could come up with a script that would sum up the row count for the partitions of the tables from your log file. This is not something that Data Pump writes to the log file.
    Dean

  • Table export using datapump  -  estimate the time to export

    I aim to export the table ABC of size 300GB using datapump ( oracle 10g)
    I would like to know how long to take the table for export ( estimate time)

    There are so many unknown variables like the number of CPUs, speed of disks, other loads on your database that makes it very inaccurate to guess.
    Based on your old version 10g and the assumption that your server is same age and average power, you should be looking at 30-50GB an hour, i.e. 6 to 10 hours. I could be wrong though.

  • Export  "sys.aud$"  table as system user using datapump

    Friends,
    I want to export (using datapump 'expdp') the sys user's AUD$ table (sys.aud$) as the system
    user . But it shows the following error :
    bash-3.00$ expdp system/sys123@onlinete directory=test_dir TABLES=sys.AUD$ DUMPFILE=sysaud.$Date.dmp logfile=audit.$date.log
    Export: Release 10.2.0.1.0 - 64bit Production on Wednesday, 14 January, 2009 13:30:56
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    Starting "SYSTEM"."SYS_EXPORT_TABLE_01": system/********@onlinete directory=test_dir TABLES=sys.AUD$ DUMPFILE=sysaud..dmp logfile=audit..log
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    ORA-39165: Schema SYS was not found.
    ORA-39166: Object AUD$ was not found.
    ORA-31655: no data or metadata objects selected for job
    Job "SYSTEM"."SYS_EXPORT_TABLE_01" completed with 3 error(s) at 13:31:01
    It also shows error when I take it as SYS user :
    bash-3.00$ expdp sys/sys123@onlinete directory=test_dir TABLES=sys.AUD$ DUMPFILE=sysaud.$Date.dmp logfile=audit.$date.log
    Export: Release 10.2.0.1.0 - 64bit Production on Wednesday, 14 January, 2009 13:35:19
    Copyright (c) 2003, 2005, Oracle. All rights reserved.
    UDE-00008: operation generated ORACLE error 28009
    ORA-28009: connection as SYS should be as SYSDBA or SYSOPER
    Username: sys/sys123 as sysdba
    Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    Starting "SYS"."SYS_EXPORT_TABLE_01": sys/******** AS SYSDBA directory=test_dir TABLES=sys.AUD$ DUMPFILE=sysaud..dmp logfile=audit..log
    Estimate in progress using BLOCKS method...
    Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 0 KB
    ORA-39165: Schema SYS was not found.
    ORA-39166: Object AUD$ was not found.
    ORA-31655: no data or metadata objects selected for job
    Job "SYS"."SYS_EXPORT_TABLE_01" completed with 3 error(s) at 13:35:29
    I dont understand the problem why it is not working . Need advice plz ... ...

    But that's not fair..
    Imagine the situation, where I figured out that some data was edited a year ago, but I don't know by whom.. Audit was enabled at that time, I was exporting (using the regular exp) AUD$ table during the year, everything is good.. BUT.. Two months ago I upgraded my DB to 11g. Hence I cannot use imp in order to restore the table and see what was going on a year ago.. That means that I always have to have an ability to create 10g database in order to use my AUD$ export??
    Is there any other way of backing up this table? Sop far I was doing exp+truncate, but since 11g release where exp/imp are not supported I am trying to think about another way of dealing with the audit...
    does anybody have ideas about it?
    thanks,
    M

  • Daily Export

    I want to schedule a daily export using the EM on all my databases, but this seems to be impossible?
    When you define an export using the EM, you can schedule it, but there is no repeat option? Also in the job tab you can create new jobs, but there is no specific Export job.
    What I tried was scheduling an export, and then do an edit of this job. Then you can put it on repeat and safe the job in the library. But when you try to submit the job, you get en 'One or more required job paramters are missing.' error.
    Does anyone has a solution for this problem?
    Regards,
    Stevne

    I have the same problem.
    So i looked around and found this answer on Metalink by Oracle:
    "However please note that Edit is not supported for this job type, only general information about the job can be updated. Therefore you cannot schedule repeated executions for this job type. This is an enhancement request. "
    It is ridiculous that they took something out that was always in there. Because they want to push export/import back, they just kinda quit supporting it in this way.
    I'm a big fan op RMAN, which they support totally, but with database that are not running in archivelog mode, i'm much more flexibele with a dump file so i can correct little errors (like a dropped table).
    A big thanks for nothing goes out to Oracle!

  • Script for export in datapump  -- help needed !!!

    hello all,
    i am using the following script as batch file in my database for export
    script:
    =========
    exp name/password file=d:\exp\%date%.dmp full=y log=d:\exp\exp.log an this will replace the first file(monday) on next monday.
    similar way i need a script for data pump for full database export using datapump
    thanks ,
    gold

    login to database as a dba and create directory for your dumpfile path.
    create directory dpump_dir as 'd:\exp';
    and then use the below script for export.
    expdp username/password full=y directory=dpump_dir dumpfile=%date%.dmp logfile=exp.log

  • Schedule a daily job using JOB_CLOSE

    Hello,
    I want to schedule a daily job using job_open, job_submit & job_close.
    This job should run everyday at 22:00 hrs.
    What are the parameters I need to set for the FM JOB_CLOSE?
    Thanks,
    A Pothuneedi

    Look at this sample provided by SAP : <a href="http://help.sap.com/saphelp_sm32/helpdata/en/fa/096d8e543b11d1898e0000e8322d00/content.htm">Sample Program: Start-Time Window with JOB_CLOSE</a>
    Sample Program: Start-Time Window with JOB_CLOSE Locate the document in its SAP
    <b>Library structure</b>
    * Submit job: start-time window defined, with periodic repeat and
    * with target system upon which the job is to run.
    * In this case, you must provide start date settings. You can
    * have the job started immediately with a JOB_CLOSE parameter,
    * set the start date yourself, or ask the user with
    * BP_START_DATE_EDITOR.
    * Example: Provide start-date specifications yourself.
    STARTDATE = '19970101'.
    STARTTIME = '160000'.
    LASTSTARTDATE = '19970101'.
    LASTSTARTTIME = '180000'.
    CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
    JOBCOUNT = JOBNUMBER " Job identification: number
    JOBNAME = JOBNAME " and name.
    SDLSTRTDT = STARTDATE " Start of start-time...
    SDLSTRTTM = STARTTIME " window
    LASTSTRTDT = LASTSTARTDATE " Optional: end of...
    LASTSTRTTM = LASTSTARTTIME " start-time window
    PRDMONTHS = '1' " Restart at intervals of
    PRDWEEKS = '1' " the sum of the PRD*
    PRDDAYS = '1' " parameters
    PRDHOURS = '1'
    PRDMINS = '1'
    STARTDATE_RESTRICTION = BTC_DONT_PROCESS_ON_HOLIDAY
    " Restrict job start to work
    " days; don't start job if
    " scheduled on holiday.
    " Other values:
    " BTC_PROCESS_BEFORE_HOLIDAY
    " BTC_PROCESS_AFTER_HOLIDAY
    CALENDAR_ID = '01' " ID of R/3 factory calendar
    " for determining workdays
    TARGETSYSTEM = 'hs0011' " Optional: name of the host
    " system on which the job is
    " to run. Set only if
    " absolutely required.
    " Example: A required tape
    " drive is accessible only
    " from a single host system.
    IMPORTING
    JOB_WAS_RELEASED = JOB_RELEASED " If user has authorization
    " to release jobs to run, job
    " is automatically released
    " when it is scheduled. This
    " field is set to 'x' if the
    " job has been released.
    " Otherwise, the job is sche-
    " duled but must be released
    " by an administrator before
    " it can be started.
    EXCEPTIONS
    INVALID_STARTDATE = 01
    JOBNAME_MISSING = 02
    JOB_CLOSE_FAILED = 03
    JOB_NOSTEPS = 04
    JOB_NOTEX = 05
    LOCK_FAILED = 06
    OTHERS = 99.
    IF SY-SUBRC > 0.
    <Error processing>
    ENDIF.
    Regards

  • 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

  • Daily export backup (via datapump) of a 600GB production database

    Hi Guys,
    I have a 600GB DB.
    10G Database.
    Currently I have daily rman backup to tape.
    Based on your experience, should i bother to perform a daily export of production database of such size?
    Do u think it's useful?
    thanks

    Fran wrote:
    All depends, what do you want to do? Do you have enough space to save a backup and export daily?
    In my opinion with one backup is enough to save your database. I'm sorry, I can't agree with that. I've been in situations where the first, second and THIRD backup sources have been unavailable in the event of a Production restore. I had to go to Plan D and cross my fingers (and sweat a lot). That might be overkill, but you should never rely on just one backup method/source for Production data.
    Not only that, but, obviously, you can also use an export of the data and import into another database or a schema inside the database in case you need to address any logical corruption. We also use the exports to refresh test databases.
    We have many similar sizes of databases and we take exports weekly, instead of daily. An export will be an incomplete backup, obviously, though you can ensure consistency by giving it an SCN to use as a datapoint. You can also run Data Pump in parallel which does speed things up.
    If you use it as part of your backup strategy, I'd make sure I had regular backups of the parameter file and the controlfiles (both binary and trace). I'd also make sure I had regular txt files showing the necessary information for the tablespaces and the datafiles which you can use to recreate the files in case you needed to.
    Mark

  • Schedule export using cron?

    Hi
    I want to schedule the export of a table using cron job.
    create the .sh file as below
    export ORACLE_BASE=/opt/oracle
    export ORACLE_HOME=/opt/oracle/product/9.2.6/db_1
    export ORACLE_SID=orcl
    /opt/oracle/product/9.2.6/db_1/bin/exp system/manager file=/home/oracle/test.dmp log=/home/oracle/test.log tables=table_name
    $crontab -l
    43 16 * * * /home/oracle/export.sh > /home/oracle/export.log
    but when this crontab job runs export is not performed and i can't file the export dump file and logile.
    test.log file is getting created with nothing in it.
    Can any one let me know what is wrong with the shell script.
    Regards,

    Hi ,
    Can you please change the permission of your export.sh file
    $chmod 775 export.sh.
    Study the below link for more details.
    http://www.elated.com/articles/understanding-permissions/
    Best regards,
    Rafi.
    http://rafioracledba.blogspot.com/

  • How can we take the incremental export using the datapump at schema level.

    Hi,
    How can we take the incremental export using the datapump at schema level. Example, today i had taken the full export of one schema.
    After 7 days from now , how can i take the export of change data , from the data of my full export.
    using the export datapump parameter - FLASHBACK_TIME ,can we mention the date range. Example sysdate - (sysdate -7)
    Please advice
    thanks
    Naveen.

    Think of the Data Pump Export/Import tools as taking a "picture" or "snapshot."
    When you use these utilities it exports the data as it appears (by default) while it's doing the export operation. There is no way to export a delta in comparison to a previous export.
    The FLASHBACK_TIME parameter allows you to get a consistent export as of a particular point in time.
    I recommend you go to http://tahiti.oracle.com. Click on your version and go to the Utilities Guide. This is where all the information on Data Pump is located and should answer a lot of your questions.

  • EXPORT using OEM10g

    Hi All,
    I am trying to export(Instead of running a daily backup using RMAN, I want to schedule a daily export) a Oracle 11gR2 non-ASM database to ASM file system that we have on the server. Basically I want to use ASM file system as the backup directory to backup my Non-ASM database. I have created a directory in ASM file system for this particular database under +FRA but when I am trying to test if this path exists through OEM 10g, it does not recognize the path. I have created a directory from back end oracle database using the "create or replace directory command" but still OEM doesn't recognize the path. Please advise.
    Thank You!

    Hello,
    Even if it's a test Database, you should take at least a Cold Backup of it.
    For that, RMAN (which is recommended) is not needed, just shutdown cleanly the Database and copy all its files on a safe place.
    Imagine that someting happens on the server and you loose a file then, without any Backup, you may loose the Database and have to recreate it from zero.
    The export may just help you to get back the data, objects and logical structure, you cannot recreate completely the physical database structure (for instance the redolog files, control files,...) from a dump.
    Else, about your problem:
    I have created a directory from back end oracle database using the "create or replace directory command" but still OEM doesn't recognize the path. Please advise.Which error did you get ?
    Best regards,
    Jean-Valentin
    Edited by: Lubiez Jean-Valentin on Aug 3, 2010 6:25 PM

  • Daily export backup

    Hi,
    I have production & DR database of 350gb version 10.2.0.4 on aix 5.3 platform.
    In morning time after completion of daily batch, we are taking export backup (by stopping application services till application is not available for users) by using datapump utility which is taking 2 to 2.30 hrs to completes.
    After that we have starting the application services and then only application available for users.
    This export backup dump we are daily using for restoration on another development server.
    Kindly help me, is there any option to avoid export backup time so that it will not affect buisness time.
    and also i can do daily restoration on development server.
    Please help.
    Regards,

    In morning time after completion of daily batch, we are taking export backup (by stopping application services till application is not available for users) by using datapump utility which is taking 2 to 2.30 hrs to completes.
    After that we have starting the application services and then only application available for users.
    This export backup dump we are daily using for restoration on another development server.
    Kindly help me, is there any option to avoid export backup time so that it will not affect buisness time.
    and also i can do daily restoration on development server.if you want complete database refresh?
    you can use STREAMS.
    If certain schema/objects you can use MViews.

  • Error while taking dump using datapump

    getting following error -
    Export: Release 10.2.0.1.0 - Production on Friday, 15 September, 2006 10:31:41
    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 "XX"."SYS_EXPORT_SCHEMA_02": XX/********@XXX directory=dpdump dumpfile=XXX150906.dmp logfile=XXX150906.log
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    ORA-39125: Worker unexpected fatal error in KUPW$WORKER.GET_TABLE_DATA_OBJECTS while calling DBMS_METADATA.FETCH_XML_CLOB []
    ORA-31642: the following SQL statement fails:
    BEGIN "DMSYS"."DBMS_DM_MODEL_EXP".SCHEMA_CALLOUT(:1,0,0,'10.02.00.01.00'); END;
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 86
    ORA-06512: at "SYS.DBMS_METADATA", line 907
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'DMSYS.DBMS_DM_MODEL_EXP' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPW$WORKER", line 6235
    ----- PL/SQL Call Stack -----
    object line object
    handle number name
    2A68E610 14916 package body SYS.KUPW$WORKER
    2A68E610 6300 package body SYS.KUPW$WORKER
    2A68E610 9120 package body SYS.KUPW$WORKER
    2A68E610 1880 package body SYS.KUPW$WORKER
    2A68E610 6861 package body SYS.KUPW$WORKER
    2A68E610 1262 package body SYS.KUPW$WORKER
    255541A8 2 anonymous block
    Job "XX"."SYS_EXPORT_SCHEMA_02" stopped due to fatal error at 10:33:12
    Action required is contact customer support. And on metalink found a link that states it a bug in 10g release 1 that was suppose to be fixed in 10g release 1 version 4.
    some of the default schemas were purposely dropped from the database. The only default schema available now are -
    DBSNMP, DIP, OUTLN, PUBLIC, SCOTT, SYS, SYSMAN, SYSTEM, TSMSYS.
    DIP, OUTLN, TSMSYS were created again.
    Could this be a cause of problem??
    Thanks in adv.

    Hi,
    Below is the DDL taken from different database. Will this be enough ? One more thing please, what shall be the password should it be DMSYS.....since this will not be used by me but system.
    CREATE USER "DMSYS" PROFILE "DEFAULT" IDENTIFIED BY "*******" PASSWORD EXPIRE DEFAULT TABLESPACE "SYSAUX" TEMPORARY TABLESPACE "TEMP" QUOTA 204800 K ON "SYSAUX" ACCOUNT LOCK
    GRANT ALTER SESSION TO "DMSYS"
    GRANT ALTER SYSTEM TO "DMSYS"
    GRANT CREATE JOB TO "DMSYS"
    GRANT CREATE LIBRARY TO "DMSYS"
    GRANT CREATE PROCEDURE TO "DMSYS"
    GRANT CREATE PUBLIC SYNONYM TO "DMSYS"
    GRANT CREATE SEQUENCE TO "DMSYS"
    GRANT CREATE SESSION TO "DMSYS"
    GRANT CREATE SYNONYM TO "DMSYS"
    GRANT CREATE TABLE TO "DMSYS"
    GRANT CREATE TRIGGER TO "DMSYS"
    GRANT CREATE TYPE TO "DMSYS"
    GRANT CREATE VIEW TO "DMSYS"
    GRANT DROP PUBLIC SYNONYM TO "DMSYS"
    GRANT QUERY REWRITE TO "DMSYS"
    GRANT SELECT ON "SYS"."DBA_JOBS_RUNNING" TO "DMSYS"
    GRANT SELECT ON "SYS"."DBA_REGISTRY" TO "DMSYS"
    GRANT SELECT ON "SYS"."DBA_SYS_PRIVS" TO "DMSYS"
    GRANT SELECT ON "SYS"."DBA_TAB_PRIVS" TO "DMSYS"
    GRANT SELECT ON "SYS"."DBA_TEMP_FILES" TO "DMSYS"
    GRANT EXECUTE ON "SYS"."DBMS_LOCK" TO "DMSYS"
    GRANT EXECUTE ON "SYS"."DBMS_REGISTRY" TO "DMSYS"
    GRANT EXECUTE ON "SYS"."DBMS_SYSTEM" TO "DMSYS"
    GRANT EXECUTE ON "SYS"."DBMS_SYS_ERROR" TO "DMSYS"
    GRANT DELETE ON "SYS"."EXPDEPACT$" TO "DMSYS"
    GRANT INSERT ON "SYS"."EXPDEPACT$" TO "DMSYS"
    GRANT SELECT ON "SYS"."EXPDEPACT$" TO "DMSYS"
    GRANT UPDATE ON "SYS"."EXPDEPACT$" TO "DMSYS"
    GRANT SELECT ON "SYS"."V_$PARAMETER" TO "DMSYS"
    GRANT SELECT ON "SYS"."V_$SESSION" TO "DMSYS"
    The other database has the DMSYS and the status is EXPIRED & LOCKED but I'm still able to take the dump using datapump??

Maybe you are looking for

  • Iphone cannot connect to itunes!

    "Itunes could not connect to this iPhone because an unkown error occurred (0xE800000A)" Thats the exact error message i get when i try to connect my iphone to my computer! I dunno what to do i have had this problem for 5 days now!.I have called apple

  • Can 2 Mac Mini's share the same wireless keyboard

    I have just purchased a 2nd mac Mini and tried to get it setup but it would not accept my keyboard. It took a wahile but did recognoze the mac address but did not seem to accept it and kept on searching. Does it need it's own keyboard? It accepted th

  • Keynote export and issues with iMovie import

    I told my PC workers I could do a movie for my job in 1 day. They said no way. And I could easily have done that BUT my MAC is FUBAR on file import from keynote to imovie... I have Keynote 08, imovie 08 and QT 7.6.4 and did a simple slide show in Key

  • 11 Release 2 Activex viewer prompts for parameters even after I set them in the program

    My program worked in 11 base.  I upgraded to 11 Release 2 and now the viewer prompts the user for the parameters even though the program has set the parameters here's some of the code Dim aCRreport As CRAXDRT.Report Dim crystalParms As CRAXDRT.Parame

  • Backupd crashed on Time Machine backup.

    This happens every time I try to do a backup, I can't say for sure when it started but it was working fine for the first day after I set up the drive. Other notes: I am backing up to a USB attached 300GB Drive, Formatted as HFS+> Have tried to re-for