If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > schedule export backup of oracle

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-05-09, 03:41
satyamurthy satyamurthy is offline
Registered User
 
Join Date: Mar 2009
Posts: 2
schedule export backup of oracle

I want to take an export dump by scheduling the time.

example: if want run oracle exp command at midnight 12 clock.
how do i do it. it is very urgent.

advance thanks .

satya murthy
Reply With Quote
  #2 (permalink)  
Old 03-05-09, 11:16
n_i n_i is online now
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,233
That would certainly depend on your operating system, which you chose not to share with us.
Reply With Quote
  #3 (permalink)  
Old 03-11-09, 08:14
satyamurthy satyamurthy is offline
Registered User
 
Join Date: Mar 2009
Posts: 2
Oralce Export backup schedule.

I want to take an export dump by scheduling the time. Operating System solaris 5.9

example: if want run oracle exp command at midnight 12 clock.
how do i do it. it is very urgent.

advance thanks .

satya murthy
Reply With Quote
  #4 (permalink)  
Old 03-11-09, 10:06
n_i n_i is online now
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,233
Read the manual pages for cron.
Reply With Quote
  #5 (permalink)  
Old 03-04-10, 00:59
rushtotiku rushtotiku is offline
Registered User
 
Join Date: Sep 2004
Posts: 1
Red face Oracle Back up

i want to take back up for the Oracle Back up at every 12 am midnight on windows 2003 server
Reply With Quote
  #6 (permalink)  
Old 03-04-10, 03:07
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,258
Do Win2003 have the at command?
Code:
C:\>at /?
The AT command schedules commands and programs to run on a computer at
a specified time and date. The Schedule service must be running to use
the AT command.

AT [\\computername] [ [id] [/DELETE] | /DELETE [/YES]]
AT [\\computername] time [/INTERACTIVE]
    [ /EVERY:date[,...] | /NEXT:date[,...]] "command"

\\computername     Specifies a remote computer. Commands are scheduled on the
                   local computer if this parameter is omitted.
id                 Is an identification number assigned to a scheduled
                   command.
/delete            Cancels a scheduled command. If id is omitted, all the
                   scheduled commands on the computer are canceled.
/yes               Used with cancel all jobs command when no further
                   confirmation is desired.
time               Specifies the time when command is to run.
/interactive       Allows the job to interact with the desktop of the user
                   who is logged on at the time the job runs.
/every:date[,...]  Runs the command on each specified day(s) of the week or
                   month. If date is omitted, the current day of the month
                   is assumed.
/next:date[,...]   Runs the specified command on the next occurrence of the
                   day (for example, next Thursday).  If date is omitted, the
                   current day of the month is assumed.
"command"          Is the Windows NT command, or batch program to be run.
Reply With Quote
  #7 (permalink)  
Old 03-04-10, 09:57
kitaman kitaman is offline
Registered User
 
Join Date: Sep 2009
Location: Ontario
Posts: 526
Write a script "oracle.unload.script" that will unload the database.This script must create its own environment, so make sure it has a PATH defined and any other environment variables that may be required. If any input is required, it must be redirected from a text file.
Any output should be redirected to a log file.

Add a line like the following to /usr/spool/cron/crontabs/root (assuming job will be run by root)

Code:
01 * * * oracle.unload.script

Do this by either copying the current file, adding this line to the copy, and using 'crontab' to copy the file back over the original. Or just edit the original file and then re-boot the machine.

If you make changes to the unload script, you have to restart the cron manager, for the changes to take effect.
Reply With Quote
  #8 (permalink)  
Old 03-04-10, 10:12
kitaman kitaman is offline
Registered User
 
Join Date: Sep 2009
Location: Ontario
Posts: 526
If I had waited until tomorrow, it would have been exactly one year.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On