msimons4
asked on
schedule expdp
Will this work?
BEGIN
SYS.DBMS_SCHEDULER.DROP_JO
(job_name => 'export_backup');
END;
/
BEGIN
SYS.DBMS_SCHEDULER.CREATE_
(
job_name => 'export_backup'
,start_date => TO_TIMESTAMP_TZ('2011/11/0
,repeat_interval => 'FREQ=DAILY;'
,end_date => NULL
,job_class => 'DEFAULT_JOB_CLASS'
,job_type => 'PLSQL_BLOCK'
,job_action => 'begin expdp system/password@database full=y directory=directory_name schemas=amcs_owner dumpfile=dumpfile_name.dmp
,enabled => TRUE
,comments => 'datapump export'
);
End;
/
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
BEGIN
SYS.DBMS_SCHEDULER.DROP_JO
(job_name => 'export_backup');
END;
/
BEGIN
SYS.DBMS_SCHEDULER.CREATE_
(
job_name => 'export_backup'
,start_date => TO_TIMESTAMP_TZ('2011/11/0
,repeat_interval => 'FREQ=DAILY;'
,end_date => NULL
,job_class => 'DEFAULT_JOB_CLASS'
,job_type => 'PLSQL_BLOCK'
,job_action => 'begin expdp system/password@database full=y directory=directory_name dumpfile=dumpfile_name.dmp
,enabled => TRUE
,comments => 'datapump export'
);
End;
/