rman backup script
#! /bin/bash
su - oracle <<!
rman target /<<EOF
backup AS COMPRESSED BACKUPSET database
include current controlfile format'/orabak/db_%d_%T_%s'
plus archivelog format'/orabak/arch_%d_%T_%s' Delete allinput;
delete noprompt obsolete;
exit;
EOF
The third backup save platform automatically cleans up expired backup files
#! /bin/bash
for file in `ls /orabak`
do
if [[ ${file:0:2} == " Db" ]];then
fdate=${file:10:8}
mydate=`date +%Y%m%d -d "-7 day"`
if [[ $fdate < $mydate ]];then
rm -rf $file;
else
echo $file;
fi
else
fdate=${file:12:8}
mydate=`date +%Y%m%d -d "-7 day" ;`
if [[ $fdate < $mydate ]];then
rm -rf $file;
else
echo $file;
fi
fi
done
zh-CN"],null,[0.81432366],zh-CN"]]]
My computer has two hard drives, one solid state drive (sda) installed win7, another ordinary hard d
For all organizations and companies, data is the most important to them, and even for e-com
Environment: REDHAT 51. Check if VNC is installed: rpm -qa vnc-server vnc-server-4.1.2-9.el5
Problem Description Review Linux file system management today, mount a new hard disk on a L
Linux/CentOS to open the firewall
Semaphore synchronization for Linux threads
Linux installation php and memcache process record
How to view the diskspace hard disk application under linux
One experience to solve grub boot error
Linux installation JDK for Linux system
Computer technology: linux remote desktop connection
Linux network based router remote configuration and update
How to turn off the WIN10 language bar /set to dock at the far left of the system tray
MSN can't start or report error under Windows 7
How to set up Win10 automatic login?
Perfect solution to Windows Vista can not ping problem
Microsoft "lazy", suspend Email to push Win7 and other security bulletins
Security Audit Policy for Windows 7 File Access
Let Windows XP system cleverly "return to life"
How to modify the Boot.ini file of Win7 system
Solve the problem that Win7 will drop when it is sleeping
Windows 8.1 installation to U disk or mobile hard disk [Graphic tutorial]