Appassure backing up the Windows platform Oracle database
Environment:
Appassure core:5.4.3.106
oracle:11g Enterprise Edition Release 11.2.0.1.0-64bit
Os:windows Server R2 (Core server and OracleDB)
The backup recovery steps are as follows:
1. Check the database schema to see if the database is in archive mode
Sqlplus/as SYSDBA
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s3.51cto.com/wyfs02/m02/7d/54/wkiom1bmq5dqpqrvaaamwuinmeo411.png "title=" 1.png "alt=" Wkiom1bmq5dqpqrvaaamwuinmeo411.png "/>
SQL > Archive Log List
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7D/54/wKiom1bmQ6PBpwJzAAAozKo351s279.png "title=" 2.png " alt= "Wkiom1bmq6pbpwjzaaaozko351s279.png"/>
2. If it is not archived, modify the database archiving mode
SQL >Shutdown immediate;
SQL >startup Mount;
SQL >ALTER DATABASE Archivelog;
SQL >ALTER DATABASE open;
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/7D/53/wKioL1bmRD-R1eLNAABJjMAKi_Q324.png "title=" 3.png " alt= "Wkiol1bmrd-r1elnaabjjmaki_q324.png"/>
3. Review the archive mode to confirm that the database is in archive mode
sql> archive log list;
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s2.51cto.com/wyfs02/m01/7d/54/wkiom1bmq9kqxyvzaaaobvzyx4i709.png "title=" 4.png "alt=" Wkiom1bmq9kqxyvzaaaobvzyx4i709.png "/>
4. Check the flash recovery area size and current space occupancy
Sql> select * from V$recovery_file_dest;
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7D/54/wKiom1bmQ-yxAV9zAAAYqHySXuQ933.png "title=" 5.png " alt= "Wkiom1bmq-yxav9zaaayqhysxuq933.png"/>
5. View the current Flashback recovery area location and allocation space, the following configuration is 8G Flash recovery area Space
Sql> Show parameter db_recovery;
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7D/54/wKiom1bmRAbz6WakAAAXKr9h76A792.png "title=" 6.png " alt= "Wkiom1bmrabz6wakaaaxkr9h76a792.png"/>
6. In order to avoid the flashback recovery area because the archive log and the Rman backup set lead to full space, you can adjust the Flashback recovery area size according to the archive log and the backup set retention cycle, it is recommended to increase the
Sql>Alter system Set db_recovery_file_dest_size=20g Scope=both;650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7D/53/wKioL1bmRKbhYUhkAAAb-zRCIes700.png "title=" 7.png " alt= "Wkiol1bmrkbhyuhkaaab-zrcies700.png"/>
7. Review the Oracle database operation, check the background Oracle Instance VSS Writer service
Oracle 10g R2, 11g, and 12c support the VSS Writer service to ensure that the database is in a consistent state when the snapshot is taken and that the database Appassure backed up is consistent
650) this.width=650; "src=" http://s5.51cto.com/wyfs02/M01/7D/54/wKiom1bmREvRD71TAAXmo8NAOwo682.jpg "title=" 8.jpg " height= "371" width= "689" alt= "Wkiom1bmrevrd71taaxmo8naowo682.jpg"/>
8. Use Appassure to set up a backup policy to back up the Oracle database server
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7D/55/wKiom1bmRJPiVZ2sAAFzz_sKrEY781.png "style=" float: none; "title=" 9.png "height=" 325 "width=" 729 "alt=" Wkiom1bmrjpivz2saafzz_skrey781.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7D/53/wKioL1bmRSXyQnNxAAHhkTLCf7M192.png "style=" float: none; "title=" 10.png "height=" 329 "width=" 728 "alt=" Wkiol1bmrsxyqnnxaahhktlcf7m192.png "/>
9. Use Rman to perform archived log backups and delete archived logs that have been backed up
Enter Rman
Rman Target/
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7D/55/wKiom1bmROuRGsxoAAAgWUlPK84696.png "title=" 11.png "alt=" Wkiom1bmrourgsxoaaagwulpk84696.png "/>
Perform an archive log backup and delete the archived logs that have been backed up
rman> Bakcup archivelog all delete input;
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7D/53/wKioL1bmRYujyxcZAAA8UDFH7BM445.png "title=" 12.png "alt=" Wkiol1bmryujyxczaaa8udfh7bm445.png "/>
View the archive log directory of the Flashback recovery area to see that the archive log has been deleted
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7D/53/wKioL1bmRbGC_cKkAADxH4fT-Hk438.png "title=" 13.png "height=" 479 "width=" 641 "alt=" Wkiol1bmrbgc_ckkaadxh4ft-hk438.png "/>
View Backup Sets
650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/ Images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>650 "this.width=650;" src= "http ://s5.51cto.com/wyfs02/m02/7d/53/wkiol1bmrc2yemcwaadmar5069w442.png "title=" 14.png "alt=" Wkiol1bmrc2yemcwaadmar5069w442.png "/>
9. Use the Oracle Dbverify tool to verify the physical structure integrity of the backed up data file, such as whether the data file is corrupted or if there is a logical bad block.
Hang the backup recovery point database file in a network share, and then use the Dbverify tool to verify
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7D/55/wKiom1bmRXmSCc3ZAAEt0Qr5xqw644.png "title=" 15.png "height=" 327 "width=" 719 "alt=" Wkiom1bmrxmscc3zaaet0qr5xqw644.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7D/55/wKiom1bmRZTiqYNgAACni8fLjrk430.png "title=" 16.png "alt=" Wkiom1bmrztiqyngaacni8fljrk430.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M00/7D/55/wKiom1bmRbvAuVdgAACJTA8tGRM683.png "title=" 17.png "height=" 390 "width=" 703 "alt=" wkiom1bmrbvauvdgaacjta8tgrm683.png "/>
DBV Tools
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7D/55/wKiom1bmRduS4AsGAAArsdDpTMM723.png "title=" 18.png "alt=" Wkiom1bmrdus4asgaaarsddptmm723.png "/>
Run DBV Verify database file physical Structure integrity
DBV file=\\ shared directory \ Database file. DBF feedback=100 650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/ U261/lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7D/55/wKiom1bmRf-zKbT4AABAvLxjmE8136.png "title=" 19.png "alt=" Wkiom1bmrf-zkbt4aabavlxjme8136.png "/>
No errors after the test, the physical file structure of the Oracle database after Appassure backup is complete
Export Backup recovery point to VMware Virtual machine Verify that the database starts to run properly
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7D/55/wKiom1bmRh_g0LAvAAGzk_yAExs348.png "title=" 20.png "Height=" 309 "width=" 708 "alt=" Wkiom1bmrh_g0lavaagzk_yaexs348.png "/>
Export to oracle11g_verify_test virtual machine
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/7D/53/wKioL1bmRt_yoLDbAAEVpPrQ1a8599.png "style=" float: none; "title=" 21.png "height=" 427 "width=" 721 "alt=" Wkiol1bmrt_yoldbaaevpprq1a8599.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/7D/55/wKiom1bmRlaSPQDwAAEzSoNjNpY373.png "style=" float: none; "title=" 22.png "height=" 414 "width=" 712 "alt=" Wkiom1bmrlaspqdwaaezsonjnpy373.png "/>
Export succeeded 650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/ Zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7D/55/wKiom1bmRojwqOJgAACYczV4WS4953.png "style=" float: none; "title=" 23.png "alt=" Wkiom1bmrojwqojgaacyczv4ws4953.png "/>
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7D/53/wKioL1bmRxPzBKBXAADf3HjXVEo563.png "style=" float: none; "title=" 24.png "height=" 247 "width=" 887 "alt=" Wkiol1bmrxpzbkbxaadf3hjxveo563.png "/>
To start an exported virtual machine
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7D/53/wKioL1bmR0-i8JklAAAnchYsYUk936.png "title=" 25.png "Height=" width= "676" alt= "Wkiol1bmr0-i8jklaaanchysyuk936.png"/>
Oracle Background service is self-booting
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7D/53/wKioL1bmR3mQ9whbAADHA7WkLt0943.png "title=" 26.png "height=" 245 "width=" 674 "alt=" Wkiol1bmr3mq9whbaadha7wklt0943.png "/>
Check that the Oracle database is running in a healthy state.
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7D/55/wKiom1bmRxCyGnxZAAAr3YL4D0M965.png "title=" 27.png "alt=" Wkiom1bmrxcygnxzaaar3yl4d0m965.png "/>
11. Automate Rman backups and delete archived logs and outdated backups using scripts and Windows scheduled tasks
Change the backup set retention period
The retention period is set based on the database backup set retention policy, the archive log size, and the flashback recovery area space.
The following is specified as a 7-day Recovery window policy , and the backup set labeled expired for more than 7 days
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7D/55/wKiom1bmRy3zPW7kAAApAhXitTM186.png "title=" 28.png "alt=" Wkiom1bmry3zpw7kaaapahxittm186.png "/>
Create a Windows batch script
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7D/53/wKioL1bmR_-w-4IYAACZLxaNzGI623.png "title=" 29.png "height=" 351 "width=" 678 "alt=" Wkiol1bmr_-w-4iyaaczlxanzgi623.png "/>
Rman.bat batch processing, execute archivelog.rman rman command and log logs to Rman.log
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7D/53/wKioL1bmSCGSk9tQAAA5sfhRk9k063.png "title=" 30.png "Height=" width= "679" alt= "Wkiol1bmscgsk9tqaaa5sfhrk9k063.png"/>
Archivelog.rman used to perform archived log backups and delete backed up archive logs to view and delete expired backups (more than 7 days of expired backups)
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7D/53/wKioL1bmSFuDEtegAAAs7xXiEAM259.png "title=" 31.png "alt=" Wkiol1bmsfudetegaaas7xxieam259.png "/>
Rman.log Logging after script execution
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/7D/53/wKioL1bmSHqTWY1OAABfyd4kfyQ750.png "title=" 32.png "height=" 398 "width=" 663 "alt=" Wkiol1bmshqtwy1oaabfyd4kfyq750.png "/>
Establish Windows Scheduled tasks and execute Rman.bat scripts on a regular basis
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7D/53/wKioL1bmSKrBkifoAAChW0kB89c813.png "style=" float: none; "title=" 33.png "height=" 328 "width=" 692 "alt=" Wkiol1bmskrbkifoaachw0kb89c813.png "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7D/55/wKiom1bmSCKxSj_RAABFk6zsVa0221.png "style=" float: none; "title=" 34.png "alt=" Wkiom1bmsckxsj_raabfk6zsva0221.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/7D/55/wKiom1bmSCOi24jVAABUKKG-li0929.png "style=" float: none; "title=" 35.png "alt=" Wkiom1bmscoi24jvaabukkg-li0929.png "/>
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7D/55/wKiom1bmSCXz65mDAACRJ-aLk4Q004.png "style=" float: none; "title=" 36.png "height=" 365 "width=" 689 "alt=" Wkiom1bmscxz65mdaacrj-alk4q004.png "/>
Reference document: Protecting Oracle on Microsoft Windows with Dell appassure 5
This article is from the "Twilight Forest Blog" blog, be sure to keep this source http://nykko.blog.51cto.com/8768162/1750830
Appassure backing up the Windows platform Oracle database