6
Useful RMAN Commands to Resolve Backup Tickets Question 1 :- What Action DBAs can take when /oraarchive is full. Answer :- Most of Production database backup are setup to delete archivelogs from /oraarchive whenever archives backup has been completed .We are still having some exception cases where we can’t delete archivelog files which is taken in RMAN backup. We are having FBU Reporting instance CFGNAREP which is getting cloned everyday from CFGNAPRD using Shadow Imaging Replication. If we will delete archive log from original location then we may get issue with Reporting Creation. In Such cases you can delete archives from original location using below command. Example :- MFGGPXY is having archivelogs since last 4 days. We need to delete archivelogs created older than 2 days. Considering yesterday H* backup has been completed successfully.

RMAN Useful Commands

Embed Size (px)

DESCRIPTION

r

Citation preview

UsefulRMAN Commands to ResolveBackup TicketsQuestion 1 :-What Action BAs can take !hen "o#aa#chive is full$Ans!e# :-Most of Producton database backup are setup to deete archveogs from /oraarchvewhenever archves backup has been competed .We are st havng some excepton caseswhere we cant deete archveog es whch s taken n RMAN backup. We are havng FBUReportngnstanceCFGNAREPwhchsgettngconedeverydayfromCFGNAPRDusngShadow Imagng Repcaton. If we w deete archve og from orgna ocaton then wemay get ssue wth Reportng Creaton. In Such cases you can deete archves from orgnaocaton usng beow command. Exampe :- MFGGPXY s havng archveogs snce ast 4 days.We need to deete archveogs created oder than 2 days. Consderng yesterdayH*backup has been competed successfuy.After deetng archveogs usng RMAN command.% N%T &'&T& %R C%M(R&)) ARC*+,&'%-) .R%M UN+/ C%MMAN%T*&RW+)& N&/T A0 RMAN BAC1U( W+'' .A+'$QU&)T+%N2 :-What Action BAs can take !heneve# "o#a3ackup is full$Ans!e# :- We need to check /orabackup has been be fu due to RMAN backup or Fesystem backup. If there are arge og/output es are generated then we need to take proper acton by ndng that e from backup as we as orgna ocaton and try to deete that efrom orgna and backup ocaton If ssue wth RMAN backup DBAs can go to /orabackup/$SID and ook for rman_arch foder sze. If you can reease space from rman_arch then use beow command to cear the archveogs backup . We assume that ast day of H* backup has been competed and yesterdays backup has been aready moved to tape. So we can deete archve og backup of 2 days oder archveogs.Exampe :- apsgpxy s havng backup of 10 days oder archveogs. I want to deete a the archveogs backup whch are oder that 2 days. As per above screenshot we are havng archveogs backup of ast 10 days. And /orabackup s gettng fu. We can deete archveogs backup of oder than 2 days usng beow command.After archveog backup has been deeted beow ssze of rman_arch. Queston 4:-*o! do !e make su#e that !hateve# RMAN Backup has 3een completedthat is valid 3ackup to do #esto#e$Ans!e#:-ADSC_BACKUP scrpt s vadatng each H* backup after takng backup. A vadaton has been stored n oge /orabackup/$SID/rman_og/H*_$DATE_$TIME/ $SID_rmanvadate.txt. If ths oge does not show any error means our RMAN backup s vad.Question 5 :- What to do if someone has deleted o# comp#essed a#chivelo6 7les f#om uni8 command$ Ans!e#:- Beow s exampe how we can x ths ssue. APSGPXYs havng 4 archveogs.We have compressed one archve oge from unx command and we have deeted one archveog from unx.RMAN s gettng archveog detas from Data Dctonary Vews. We used unx command to compress e that means data dctonary vew st show that we need to take backup of apsgpxy_0001_0000001272_0763634467.arc andapsgpxy_0001_0000001275_0763634467.arc. When RMAN w try to nd those es n unx,Both es w not present and backup w fa. To avodths stuaton we need to cear compressed/deeted archveogs entry from data dctonary vews usng beow command.Question 9 :- What to do if someone has deleted#man 3ackupf#om uni8 command$ Ans!e#:-You need to foow the same steps ke we used n queston 4. Command w change as beow. Crosscheck command w verfy backup wth data dctonares. And " Deete expred backup" command w cear data dctonary entres for removed backups. You can see screenshots beow.