Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


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:
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.


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

Technology Partners: 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…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

609 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