Solved

Step by Step Oracle scheduled export job

Posted on 2012-04-06
6
468 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
  • 3
  • 3
6 Comments
 
LVL 76

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 76

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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 76

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

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…
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to recover a database from a user managed backup

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now