Solved

schedule export

Posted on 2014-04-01
5
325 Views
Last Modified: 2014-04-06
How can we schedule export in linux ?
0
Comment
Question by:tonydba
5 Comments
 
LVL 35

Expert Comment

by:johnsone
ID: 39969316
What I would do is to write a small script that does the export.  Then schedule that through cron.

Here is the documentation for the cron file (aka crontab) -> http://www.manpagez.com/man/5/crontab/

If your version of crontab supports it, you should run the "crontab -e".  That should bring up the current version of the file and allow you to edit it.  Once you save it, it will be loaded for you.

Be sure that whatever script you write sets up the Oracle environment.  Command run through cron do not execute your login scripts, so absolutely no environment variables will be set up before the script is run.
0
 
LVL 13

Expert Comment

by:Alexander Eßer [Alex140181]
ID: 39969344
0
 
LVL 23

Expert Comment

by:David
ID: 39969477
Hi Tony, just as background, can you provide:

-- the database version;
-- whether or not you mean export, or its replacement, datapump (expdp);
--  whether or not the database instance is running in ARCHIEVELOG mode (changes captured as REDO, written, saved as archive logs)

Where I'm going with this, is to educate you on having a recoverable backup.  Export is good for having copies of stuff, but awkward to restore from.
0
 
LVL 15

Accepted Solution

by:
Devinder Singh Virdi earned 500 total points
ID: 39970889
Example

Step 1: open crontab using below command
crontab -e

Step2: use below to schedule your script with frequency

0 10 * * * your_exp_script parameter1 parameter2 > log_fileLocation_output.log 2>&1

#* * * * * command to be executed
#- - - - -
#| | | | |
#| | | | ----- day of week (0 - 6) (Sunday=0)  
#| | | ------- month (1 - 12)    
#| | --------- day of month (1 - 31)
#| ----------- hour (0 - 23)
#------------- min (0 - 59)

Using above, backup will start at 10:00 am
0
 

Author Closing Comment

by:tonydba
ID: 39981681
fine thanks..
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Can't Access My Database 57 88
Oracle DBLINKS From 11g to 8i 3 67
Sybase and replication server 13 61
return value based on substr 10 53
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Cursors in Oracle: A cursor is used to process individual rows returned by database system for a query. In oracle every SQL statement executed by the oracle server has a private area. This area contains information about the SQL statement and the…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

697 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question