Job Seekers   Employers
dbapool: Authors | Submissions | Contact Us
   Forgot password? | Sign up
  Home   Discussion Forum   Articles   Interview Questions   FAQs   Scripts   Rewards   Analyzer   White Papers   Blog   Certification   Downloads   Tools
 

Topic: Database Administration >> crone jobs

Disclaimer: The purpose of all dbapool forums including OCP and Other Oracle Certification forums is to help each other with specific issues but not to share dump and copyrighted exam content, materials or intellectual property. You may review the entire Oracle Certification Program Candidate Agreement online Here.



  


 Title: crone jobs
 shikhu  Posted: Jul 23, 2007 07:58:28 AM

 Total Post: 67
 Joined: Jul, 2006






 Hi All,

I want to write the scripts on Unix platform to take the backup of my database everynight at 9:00 p.m. automatically.

plz. help me out.

- shikha

 DreamzZ
Posted: Jul 23, 2007 03:01:34 PM  

 Total Post: 23
 Joined: Jul, 2007






 
CREATE FILE yourscript.sh
rman target system/manager catalog rman/rman@rcat log $EVNT_ORABACKUP/mlog.f << rman_exit
run { execute script evnt_backup_whole; }>>>>>its a script name all ready saved in recovery catalog
exit
rman_exit


create script evnt_backup_whole
{
allocate channel ch1 type disk format '$EVNT_ORABACKUP/%U.bck';
allocate channel ch2 type disk format '$EVNT_ORABACKUP/%U.bck';
allocate channel ch3 type disk format '$EVNT_ORABACKUP/%U.bck';
allocate channel ch4 type disk format '$EVNT_ORABACKUP/%U.bck';
allocate channel ch5 type disk format '$EVNT_ORABACKUP/%U.bck';
set limit channel ch1 kbytes 2024800;
set limit channel ch2 kbytes 2024800;
set limit channel ch3 kbytes 2024800;
set limit channel ch4 kbytes 2024800;
set limit channel ch5 kbytes 2024800;
backup database;
sql 'ALTER SYSTEM ARCHIVE LOG CURRENT';
backup archivelog all format '$EVNT_ORABACKUP/al_%U.bck';
backup current controlfile
tag = cf1
format '$EVNT_ORABACKUP/cf_%U.bck';
}


now make entry for your this file in cron job.

 Mohammed Taj
Posted: Jul 29, 2007 10:16:37 AM  

 Total Post: 746
 Joined: Jul, 2007






 
Hi,

Hotbackup
http://dbataj.blogspot.com/2007/03/hotbackuplinuxusermanagedbackup.html

Coldbackup
http://dbataj.blogspot.com/2007/03/coldbackuplinuxscript.html

Logical Backup
http://dbataj.blogspot.com/2006/12/export-backup.html


Regards
Taj
http://dbataj.blogspot.com

 Time Zone: EDT

  




Forum Rules & Description


Who Can Read The Forum? Any registered user or guest
Who Can Post New Topics? Any registered user
Who Can Post Replies? Any registered user




 








Get FREE Magazines

Top 10 Forum User

  Murtuja Khokhar816
  Mohammed Taj746
  Jayanta Sur479
  positive fanatic418
  Vigyan Kaushik386
  Gitesh Trivedi322
  Gopu Gopi250
  Ramesh Jois245
  neeraj sharma243
  Bishal Khetan207






oracle Mag



  About Us Advertise Terms of Use Privacy Newsletters Contact Us    

Home   Discussion Forum   FAQs  Articles  Jobs   Newsletters  Directory  Downloads 

Our Premium Sponsor
Confio Software