Solved

schedule export

Posted on 2014-04-01
5
330 Views
Last Modified: 2014-04-06
How can we schedule export in linux ?
0
Comment
Question by:tonydba
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
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.

695 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