Solved

Step by Step Oracle scheduled export job

Posted on 2012-04-06
6
477 Views
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
0
Comment
Question by:Steve7423
[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
  • 3
  • 3
6 Comments
 
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?
0
 

Author Comment

by:Steve7423
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.
0
 
LVL 77

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 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:
http://tech.deepumohan.com/2010/07/export-oracle-database-with-auto-file.html
0
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

Author Comment

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

Author Comment

by:Steve7423
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?
0
 
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.
0

Featured Post

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

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 …
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

707 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