This appendix describes the following procedures: Cisco ANA Registry Backup and Restore Oracle Database Backup and Restore



Similar documents
If you have not multiplexed your online redo logs, then you are only left with incomplete recovery. Your steps are as follows:

RMAN What is Rman Why use Rman Understanding The Rman Architecture Taking Backup in Non archive Backup Mode Taking Backup in archive Mode

HOW TO. RMAN Restore for Standby 10gR2

Database Disaster Recovery using only RMAN Backups

Oracle 12c Recovering a lost /corrupted table from RMAN Backup after user error or application issue

BrightStor ARCserve Backup

HP LeftHand SAN Solutions

Use RMAN to relocate a 10TB RAC database with minimum downtime. Tao Zuo tao_zuo@npd.com NPD Inc. 9/2011

Using RMAN to restore a database to another server in an ASM environment

Oracle 11gR2 : Recover dropped tablespace using RMAN tablespace point in time recovery

RMAN BACKUP & RECOVERY. Recovery Manager. Veeratteshwaran Sridhar

Database Recovery For Newbies

Oracle 10g Feature: RMAN Incrementally Updated Backups

ASM and for 3rd Party Snapshot Solutions - for Offhost. Duane Smith Nitin Vengurlekar RACPACK

Restoring To A Different Location With EBU And RMAN An AppsDBA Consulting White Paper

TECHNICAL REPORT. Nimble Storage Oracle Backup and Recovery Guide

Agenda. Overview Configuring the database for basic Backup and Recovery Backing up your database Restore and Recovery Operations Managing your backups

11. Oracle Recovery Manager Overview and Configuration.

Strategies for Oracle Database Backup and Recovery: Case Studies. Mingguang Xu

Backing Up Oracle Databases with Handy Backup

12. User-managed and RMAN-based backups.

Performing Database and File System Backups and Restores Using Oracle Secure Backup

How To Restore An Org Server With Anor Backup For Windows (Oracle)

Restore and Recovery Tasks. Copyright 2009, Oracle. All rights reserved.

Getting all the pieces: Reliable Backup/Recovery

Oracle Backup and Recover 101. Osborne Press ISBN

Configuring Backup Settings. Copyright 2009, Oracle. All rights reserved.

Backup/Restore Oracle 8i/9i/10g

11. Configuring the Database Archiving Mode.

DOCUMENTATION ORACLE BACKUP & RESTORE OPERATIONS

Automatic Backup in Oracle Database

Managing User Security: Roles and Scopes

RMAN Recipes for Oracle Database 11g : A Problem-Solution Approach by Darl Kuhn, Sam Alapati and Arup Nanda Apress. (c) Copying Prohibited.

Demos - Workshop. -- Configure the RMAN

Backing up the Embedded Oracle database of a Red Hat Network Satellite

Oracle Backup and Recovery Best Practices Dell Compellent Storage Center. Dell Compellent Technical Best Practices

Recover Oracle Database upon losing all Control Files

Zen Internet. Online Data Backup. Zen Vault Professional Plug-ins. Issue:

Microsoft Exchange 2003 Disaster Recovery Operations Guide

Oracle Recovery Manager 10g. An Oracle White Paper November 2003

STATISTICA VERSION 9 STATISTICA ENTERPRISE INSTALLATION INSTRUCTIONS FOR USE WITH TERMINAL SERVER

Oracle Database 11g: Administration Workshop II DBA Release 2

Backup Types. Backup and Recovery. Categories of Failures. Issues. Logical. Cold. Hot. Physical With. Statement failure

Configuring Backup Settings Configuring and Managing Persistent Settings for RMAN Configuring Autobackup of Control File Backup optimization

Installation Instruction STATISTICA Enterprise Small Business

Oracle Database Backups and Disaster Autodesk

Oracle 11g DBA Training Course Content

ORACLE CORE DBA ONLINE TRAINING

CA ARCserve Backup for Linux

Avaya Operational Analyst Release 6.1 Maintenance and Troubleshooting

D78850GC10. Oracle Database 12c Backup and Recovery Workshop. Summary. Introduction. Prerequisites

IBM Sterling Control Center

Avaya Operational Analyst Release 7.0 Maintenance and Troubleshooting

CA ARCserve Backup for Windows

Support Document: Microsoft SQL Server - LiveVault 7.6X

Performing Administrative Tasks

MapGuide Open Source Repository Management Back up, restore, and recover your resource repository.

Using Recovery Manager with Oracle Data Guard in Oracle Database 10g. An Oracle White Paper April 2009

WHITE PAPER. Oracle RMAN Design Best Practices with Data Domain. Storage. Deduplication

CWMS System Backup / Oracle Backup and Recovery

Administration Guide - Documentum idataagent (DB2)

Oracle. Brief Course Content This course can be done in modular form as per the detail below. ORA-1 Oracle Database 10g: SQL 4 Weeks 4000/-

Oracle Database 11g: Administration Workshop II DBA Release 2

SQL Server Setup for Assistant/Pro applications Compliance Information Systems

Using Secure4Audit in an IRIX 6.5 Environment

The safer, easier way to help you pass any IT exams. Exam : 1Z Upgrade Oracle9i/10g/11g OCA to Oracle Database 12c OCP.

TSM for Windows Installation Instructions: Download the latest TSM Client Using the following link:

Upgrading to advanced editions of Acronis Backup & Recovery 10. Technical white paper

Reflection DBR USER GUIDE. Reflection DBR User Guide. 995 Old Eagle School Road Suite 315 Wayne, PA USA

Video Administration Backup and Restore Procedures

Oracle 11g Database Administration

Security Correlation Server Quick Installation Guide

Oracle Database 11g: Administration Workshop II Release 2

STATISTICA VERSION 12 STATISTICA ENTERPRISE SMALL BUSINESS INSTALLATION INSTRUCTIONS

HP Device Manager 4.6

1 Backup/Restore Oracle 8i/9i

STATISTICA VERSION 10 STATISTICA ENTERPRISE SERVER INSTALLATION INSTRUCTIONS

Oracle9i Database: Advanced Backup and Recovery Using RMAN

Operating System Installation Guide

Using Symantec NetBackup with Symantec Security Information Manager 4.5

MaxSea TZ: Microsoft SQL Server problems End User

Configuring High Availability for VMware vcenter in RMS Distributed Setup

Oracle Data Guard for High Availability and Disaster Recovery

Reboot the ExtraHop System and Test Hardware with the Rescue USB Flash Drive

Installation Instruction STATISTICA Enterprise Server

Security Correlation Server Quick Installation Guide

Restoring Microsoft SQL Server 7 Master Databases

How To Backup An Org Database On An Org Server On A Pc Oracle Server On Anorora (Orora) With A Backup And Restore Option On A Windows (Ororora).Org (Orroboron

HYPERION SYSTEM 9 N-TIER INSTALLATION GUIDE MASTER DATA MANAGEMENT RELEASE 9.2

SQL Server 2008 R2 Express Edition Installation Guide

GO!NotifyLink. Database Maintenance. GO!NotifyLink Database Maintenance 1

Installation & Maintenance Guide

Instructions for update installation of ElsaWin 5.00

CA /BrightStor ARCserve9 Backup Software

IMF Tune v7.0 Backup, Restore, Replication

Radica Systems Limited RI Backup/Restore Guide Page: 1

Transcription:

APPENDIXA This appendix describes the following procedures: Cisco ANA Registry Oracle Database Cisco ANA Registry This section describes the Cisco ANA Registry backup and restore procedure. Overview Provides an overview of the backup procedure. Backed-Up Content Describes the data that is backed up. Backup Procedure Describes how to activate the backup procedure. Changing Periodic Backup Time Describes how to change the backup time. Restore Procedure Describes the restore procedure. Any new AVM that is added will not be deleted after the restore. So if a backup is made, and then another AVM is added, and the last backup is restored, the newly added AVM will still be available after the restore. SSH daemon must be enabled in order for the backup and restore to work. Overview The backup procedure is used to perform data backup once a week. It operates through the UNIX cron mechanism. The factory settings entry in the cron table (crontab) runs the backup procedure every Sunday at 1:00 AM. To activate the backup procedure, the user needs to remove the comment for the relevant line in the cron table. The restoration is done manually by executing the restore.csh script. A-1

Cisco ANA Registry Appendix A Backed-Up Content The data that has been backed-up is: Cisco ANA registry (Golden Source) cron table (crontab) Backup Procedure The backup script is a scheduled task. It operates through cron. The backup files are stored in the following directory, ~[ana install directory]/db/db_backup/[date+time]. The filler [date+time] is a directory name composed of a date and time of the backup. For example, ~[ana install directory]/db/db_backup/200604130404/ is created on 13 April 2006 at 4:04 AM. By default the cron table executes the backup procedure every Sunday at 1:00AM. Important: Reinstalling the server from scratch (install.pl) deletes the sheer user, and the content under it. The default backup directory is located under sheer, and it can be changed (see configuring the registry below) to another location, which must be accessible to writing for the sheer user, for example, the default directory permissions are: ( drwx------ 2 sheer sheer 512 Sep 24 02:54 ) It is also recommended that you do not locate the backup directory under /tmp, since this directory is deleted whenever the server is rebooted, and the backup content will be lost. To maximize data safety, it is recommended that you copy the backed-up directory to another external storage location, for example, a DVD or another server s disk. The location is configurable through the registry. For more information, refer to registry path, avm11/agents/integrity/backup. Figure A-1 displays the backup registry entries. A-2

Appendix A Cisco ANA Registry Figure A-1 Backup Registry Entries The backup is disabled by default. To enable the backup: Telnet to the Cisco ANA gateway as sheer user. Edit the cron table as follows: crontab -e Add the following line to the file, and save the change: 0 1 * * 0 cd Main;./mc.csh localhost 8011 integrity.executetest backup > /dev/null 2>&1 Refer to crontab(1) in the Solaris documentation for a detailed explanation about the cron table format. The user can activate the backup procedure immediately. To activate the backup procedure immediately: Telnet to the Cisco ANA gateway as sheer user. Change the directory to sheer/main by executing the following command: cd ~/Main At the prompt, run the following command line:./mc.csh localhost 8011 integrity.executetest backup A-3

Cisco ANA Registry Appendix A If null appears after running./mc.csh localhost 8011 integrity.executetest backup this is normal. Troubleshooting The following message may be displayed when using the backup procedure: 1. sheer@sh-nv210-1v5 [~/Main]% The authenticity of host 127.0.0.1 (127.0.0.1) can t be established. DSA key fingerprint is 4e:cb:81:1c:bf:38:5c:ec:6e:b8:a8:d3:3b:d4:fe:b9. Are you sure you want to continue connecting (yes/no)? Solution From sheer user do the following: ssh 127.0.0.1 Changing Periodic Backup Time A crontab file consists of lines of six fields each. The fields are separated by spaces or tabs. The first five are integer patterns that specify the following: minute (0-59) hour (0-23) day of the month (1-31) month of the year (1-12) day of the week (0-6 with 0=Sunday) To specify days using only one field, the other field should be set to *. For example, 0 0 * * 1 would run a command only on Mondays. Another example cleans up core files every weekday morning at 3:15 am: 15 3 * * 1-5 find $HOME -name core 2>/dev/null xargs rm -f The sequence 0 0 1,15 * 1 runs a command on the first and fifteenth of each month as well as every Monday. Restore Procedure Install the Cisco ANA gateway. For more information, refer to the Cisco Active Network Abstraction Installation Guide. that you will need to login as root. To restore from a backup: Change the directory /export/home/[ana install directory]/main/scripts by executing the following command: cd ~[ana install directory]/main/scripts A-4

Appendix A Oracle Database Execute the restoration script: chmod 700 restore.csh restore.csh [backup-files-location] [sheer-home-location] By default the [backup-files-location] is ~[ana install directory]/db/db_backup/[date+time] (this is configurable through the registry). The filler [date+time] is a directory name composed of a date and time backup time. For example, ~[ana install directory]/db/db_backup/200604130404/ is created on 13 April 2006 at 4:04 AM. Once the restoration is successful, initialize the Cisco ANA gateway by running the following command: su - sheer cd Main./mvm.csh The default password for the user sheer is sheer. When the registry is restored from the last backup, if new AVMs were added after this last registry backup, all the new AVMs that were added after this backup are still present. Oracle Database This section describes the Oracle database backup and restore procedures. Overview Provides an overview of the backup and restore Recovery Manager (RMAN) tool. Create RMAN Catalog Database Describes how to create a RMAN catalog database. Create RMAN User Describes how to create a RMAN user. Create RMAN Catalog Describes how to create a RMAN catalog. Register the ANA Database with the RMAN Catalog Describes how to register the database with the RMAN catalog. Modify ANA Database Initial Parameter File Describes how to modify the MCDB database initial parameter file. Backup Database Describes how to backup the database. Recover Database Describes how to recover the database. This section is provided as an example only of the Oracle database backup and restore procedure. For more information see the: Oracle Database Recovery Manager Quick Start Guide A-5

Oracle Database Appendix A Overview Oracle databases have a backup and restore Recovery Manager (RMAN) tool. To use this tool for online backup, the Oracle database must be in ARCHIVELOG mode, (see Create RMAN Catalog Database). RMAN maintains the bookkeeping intelligence of backup and recovery files and backs up data at the block level. Therefore, RMAN can significantly speed up backups and reduce the server load by using incremental backups. Figure A-2 displays the Oracle Database Backup diagram. Figure A-2 Oracle Database Backup RMAN RMAN db sheer.db Data file backup Archive log Archive log backup 187199 For more information about RMAN for Oracle 10g see the: Oracle Database Recovery Manager Quick Start Guide RMAN is convenient to use. However, it only provides a command line interface, and it still demands database analyst knowledge when recovery is needed. Be sure that the backup data and RMAN catalog are located on a different disk from where the Oracle database (data files, redo logs, and control files) are located. Both can however reside on the same ANA database server. The Oracle Enterprise manager (GUI) can be used to set up RMAN. Alternatively, the RMAN configuration is explained in the following sections, and should be implemented sequentially: Create RMAN Catalog Database. Create RMAN User. Create RMAN Catalog. A-6

Appendix A Oracle Database Step 4 Step 5 Step 6 Step 7 Register the ANA Database with the RMAN Catalog. Modify ANA Database Initial Parameter File. Backup Database. Recover Database. These steps are provided as an example only of the Oracle database backup and restore procedure. For more information see the: Oracle Database Recovery Manager Quick Start Guide Create RMAN Catalog Database The catalog database holds the recovery catalogs. This database typically is set up on a different server from any database being registered in it. It also works if this database is set up on the same database server as the ANA database. Use the Oracle utility dbassist to create a catalog database. (This is the same as MCDB database creation, except you should name the RMAN global name rcat, and you should name the SID rcat.) Create RMAN User Creating an RMAN user is the same as creating an ANA user on an rcat database. Name the RMAN user ID rmanuser and name the password rmanpassword. Make sure rmanuser has proper privileges. For example: SQL> grant connect, resource, recovery_catalog_owner to rmanuser; Create RMAN Catalog Create a catalog from the RMAN command prompt: RMAN> connect catalog rmanuser/rmanpassword@rcat RMAN> create catalog; Register the ANA Database with the RMAN Catalog Set the ORACLE_SID environment variable = MCDB. %rman RMAN > connect catalog rmanuser/rmanpassword@rcat RMAN > connect target sys/change_on_install RMAN > register database RMAN> configure controlfile autobackup on; The default password for an Oracle sys account after Oracle installation is change_on_install. Replace this sys account password with the correct sys account password for the ANA database. A-7

Oracle Database Appendix A Modify ANA Database Initial Parameter File To modify the MCDB database initial parameter file, do the following: To ensure the database is in archive log mode, enter the following: SQL> alter system set log_archive_dest_1 = location=</var/tmp/oradata/arch> SCOPE=BOTH; SQL> alter system archive log start; where </var/tmp/oradata/arch> is the location of the archive destination. Restart the ANA database server with the ARCHIVELOG mode turned on, as follows: startup mount alter database archivelog; alter database open Check the archive log mode, as follows: SQL> archive log list; Backup Database To backup the database, do the following: Create a file called full_backup.rcv. Inside the file, enter the following text. run { allocate channel d1 type disk; backup incremental level = 0 cumulative database format /var/tmp/backup/db_%d_%s_%p_%t include current controlfile for standby tag = ANA_WEEKLY_FULL ; sql alter system archive log current ; backup archivelog all delete input format /var/tmp/backup/ar_%d_%s_%p_%t ; release channel d1; } Make sure the directory such as /var/tmp/backup has enough space to hold the backup and also the Oracle user has write permissions. Run the rman command: rman target / catalog rmanuser/rmanpassword@rcat @full_backup.rcv A-8

Appendix A Oracle Database Recover Database To recover a database, do the following: Setup the environment variable for Oracle as follows: export NLS_LANG=american export NLS_DATE_FORMAT= Mon DD YYYY HH24:MI:SS export ORACLE_SID=MCDB Create a file time_based_recovery.rcv, and insert the content as follows: # Restore and Recover Database using RMAN shutdown abort; startup mount; run { SET UNTIL TIME = Mar 18 2008 10:00:00 ; #Point in time recovery allocate channel d1 type disk; restore database; recover database; } alter database open resetlogs ; Run the rman command: rman target / catalog rmanuser/rmanpassword@rcat @ time_based_recovery.rcv Please put a desirable restore time in the SET UNTIL TIME clause. After a time based recovery, it is important to immediately do another database backup, since at this time, the database can only be recovered after last recovery time, and all the previous backups used for the last recovery are no longer recoverable. A-9

Oracle Database Appendix A A-10