Step by Step Oracle scheduled export job

Posted on 2012-04-06
Medium Priority
Last Modified: 2012-10-11
I'm a novice with Oracle, I just just started as a result of being thown in a position of supporting Oracle databases with no knowledge.  I need to learn how to create a scheduled job that takes a nightly export of a database and saves it to a specified location.

I need to take daily exports for the days of the week.

sorry but I would really appreciate step by step instructions considering my lack of knowledge.  

also if you know of good loinks where I could find additional information to assist.

Please provide step by step instructions for:
   Creating the oracle job
   Scheduling the job to export
Question by:Steve7423
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
  • 3
  • 3
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 37816598
What Oracle version?
Were you directed to use classic exp/imp or the new datapump (expdp/impdp)?
What OS?
Were you told to use a certain type of scripting/job?

You are also aware that export/imp really isn't considered a backup strategy.

>>I need to take daily exports for the days of the week.

Does this mean a weeks worth of data?

Author Comment

ID: 37833011
Version 10g

I was directed to use classic export (exp)

the oerating system is windows 2003

the situation is, there's an existing fellow who normally does this but isn't around much and no one knows what he does, including me.  I have to create a scheduled job that exports the database on a daily basis.  yes I understand about the backup strategy, we also have archiving in place as well.

I wasn't told to use any scripting type.  

The database will be exported to a folder with subfolders for each day of the week; Monday tuesday ....so on.

I understand I could create a job through Enterprise Manager but I don't know how to install that and get it set up either.

I would like to learn from a step by step script that creates a scheduled job which then exports the database to a specified folder based on the particular day.  Eg: if today is monday the job should export the database to the Monday folder, then on tuesday it exports the database to the Tuesday folder...and so on.  the job needs to run at a time like 12 am or something, the time is irrelevent.

If my logic is incorrect i welcome advice.  I'm trying to learn how to do this, a script with comments explaining what's going on is how I learn best.  

If I can do this through EM please explain how I can get EM working.
LVL 77

Accepted Solution

slightwv (䄆 Netminder) earned 1500 total points
ID: 37833161
I then suggest you use BAT scripting.  

There are many exmaples out there on using date pieces with file names for Oracle exports.

I would start with one of those then tweak it to your specific requirements.

Unfortunately, writing complete code based on specific requirements is a little outside the scope of a Q&A site like this.  Some Experts might be willing to write the code for you but ou would need to ask the question in the appropriate zone for the scripting language you choose to use.

Here is script found with a quick Google that adds dates/times to export files:
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!


Author Comment

ID: 37949873
Sorry i have to research this a little further.

Author Comment

ID: 38084447
I'm a real newbie to Oracle and I require detailed step by step assistance with this.  If anyone could offer step by step instructions it would be appreciated.

Any Ideas?
LVL 77

Expert Comment

by:slightwv (䄆 Netminder)
ID: 38084516
What part of the script in the link I provided does not work for you?

I'm not sure what else I could add to it.

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
Suggested Courses

770 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