- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- sheduling a DB Backup
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2008 12:40 AM
03-18-2008 12:40 AM
I want to take the incremental backup of our oracle database in every four hours.Before creating the new backup, the existing one should be copied to another file.At present we are taking the backup of DB (full) every day.Current script is given below.
#!/usr/local/bin/bash
#su - oracle
export ORACLE_HOME=/u01/app/oracle/product/10.0.0
flnm=bkp`date +%a_%H%M`.dat
echo "Exporting Backup to : $flnm on `date +%d/%m/%Y-%H:%M:%S`" >> /home/orabkup/backup.log
if [ $UID == 200 ]; then
$ORACLE_HOME/bin/exp system/mastermind@ppms file=(/u02/orabkp/1_$flnm,/u02/orabkp/2_$flnm,/u02/orabkp/3_$flnm) filesize=4G owner=(iwall,tico_dev) trigge
rs=y compress=y rows=y statistics=none log=/home/orabkup/logbkp.log1
#exp system/mastermind file=/u02/orabkp/$flnm full=Y log=/home/orabkup/logbkp.log1
#>/dev/null 2>/dev/null
else
echo "You must logged in as ORACLE user"
fi
echo "====== Backup Completed on `date +%d/%m/%Y-%H:%M:%S` =====" >> /home/orabkup/backup.log
echo "====== Backup transfer start `date +%d/%m/%Y-%H:%M:%S` =====" >> /home/orabkup/backup.log
scp /u02/orabkp/*_$flnm oracle@202.25.10.245:/u02/pms_bkp/.
echo "====== Backup transfer end `date +%d/%m/%Y-%H:%M:%S` =====" >> /home/orabkup/backup.log
orabkp: END
We use rx 7620 server with hpux 11.23 os
kindly give me a solution.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2008 12:53 AM
03-18-2008 12:53 AM
SolutionYou should start thinking in terms of Oracle RMAN backup.
EXP only gives you a snapshot of your data as at a specific point in time. You will not be able to recover your database at *any* desired point in time in cases of failure. There will always be data lost!!!
How critical is your system?
What you really need a system that allows you to backup your database online and at the same time allows you to recover the database in case of any failures till the latest transaction committed.
Is this a Linux machine?
if you need any further assistance on how to implement RMAN, please do let us know.
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2008 01:00 AM
03-18-2008 01:00 AM
Re: sheduling a DB Backup
Please note that RMAN allows you to perform Incremental Merge backup and also takes advantage of the changed_blocks_tracking feature.
Scheduling of your backup scripts can be done using the CRONTAB.
Below a simple template that we commonly use:
#*******************************************************************************
# min|hour |day |month|day | |script
# | |of mo| |of wk| |
#----|-----|-----|-----|-----|-------|-----------------------------------
#*******************************************************************************
00 04,08,12,16,20,00 * * * echo "/home/yogeeraj/admin/scripts/oracle/rman/rman_fullbackup.sh;exit"|su - oracle 1>/home/yogeeraj/admin/scripts/logfiles/oracle/output-rman_fullbackup.crn 2>/home/yogeeraj/admin/scripts/logfiles/oracle/error-rman_fullbackup.crn
#
#*******************************************************************************
# END OF TABLE day0->Sunday day6->Saturday
#*******************************************************************************
hope this helps!
kind regards
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2008 02:49 AM
03-19-2008 02:49 AM
Re: sheduling a DB Backup
Here we use hp unix OS. Like "logrotate" in Linux, is there any utility in hp-ux.If I've my last full backup and latest two or three incremental backups,which has been taken every four hours,I hope that we can do better recovery.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2008 12:16 AM
03-29-2008 12:16 AM