HP LeftHand SAN Solutions



Similar documents
Using HP StoreOnce Backup systems for Oracle database backups

HP LeftHand SAN Solutions

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

Database Recovery For Newbies

BrightStor ARCserve Backup

11. Configuring the Database Archiving Mode.

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

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

11. Oracle Recovery Manager Overview and Configuration.

Using HP StoreOnce Backup Systems for NDMP backups with Symantec NetBackup

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

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

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

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

Using HP StoreOnce D2D systems for Microsoft SQL Server backups

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

Zero Downtime Backup solution for Oracle10g

CA ARCserve Backup for Windows

HOW TO. RMAN Restore for Standby 10gR2

Implementing an Enterprise Class Database Backup and Recovery Plan

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

HP LeftHand SAN Solutions

Oracle Recovery Manager

Protecting enterprise servers with StoreOnce and CommVault Simpana

Oracle 10g Feature: RMAN Incrementally Updated Backups

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

Protect Microsoft Exchange databases, achieve long-term data retention

Table of contents. Matching server virtualization with advanced storage virtualization

TECHNICAL REPORT. Nimble Storage Oracle Backup and Recovery Guide

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

RMAN BACKUP & RECOVERY. Recovery Manager. Veeratteshwaran Sridhar

HP StorageWorks Data Protection Strategy brief

DB2 9 for LUW Advanced Database Recovery CL492; 4 days, Instructor-led

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

Database Disaster Recovery using only RMAN Backups

HP PolyServe Software upgrade guide

HP Data Protector software Zero Downtime Backup and Instant Recovery

How To Backup And Restore A Database With A Powervault Backup And Powervaults Backup Software On A Poweredge Powervalt Backup On A Netvault 2.5 (Powervault) Powervast Backup On An Uniden Power

Oracle Database 10g: Backup and Recovery 1-2

HP OpenView Storage Data Protector Integration Guide

Oracle Data Guard for High Availability and Disaster Recovery

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

SQL-BackTrack the Smart DBA s Power Tool for Backup and Recovery

Oracle Database Backups and Disaster Autodesk

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

HP Data Protector software Zero Downtime Backup and Instant Recovery. Data sheet

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

HP and Mimosa Systems A system for archiving, recovery, and storage optimization white paper

DOCUMENTATION ORACLE BACKUP & RESTORE OPERATIONS

Backing up and restoring HP Systems Insight Manager 6.0 or greater data files in a Windows environment

HP LeftHand SAN Solutions

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

ORACLE CORE DBA ONLINE TRAINING

D12CBR Oracle Database 12c: Backup and Recovery Workshop NEW

HP Device Manager 4.7

P4000 SAN/iQ software upgrade user guide

! " # #$ " " %" & "'( " "' ( ) " * ""! ). " / ( * ( "# 0! " ). '

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

EMC Data Domain Boost for Oracle Recovery Manager (RMAN)

Backup and Recovery for SAP Environments using EMC Avamar 7

UNIVERSITY AUTHORISED EDUCATION PARTNER (WDP)

MySQL Enterprise Backup

CA ARCserve Backup for Linux

High Availability Databases based on Oracle 10g RAC on Linux

HP LeftHand SAN Solutions

A SURVEY OF POPULAR CLUSTERING TECHNOLOGIES

HP One-Button Disaster Recovery (OBDR) Solution for ProLiant Servers

Reference Architecture for HP Data Protector and Oracle 11gR2 RAC on Linux

HP Device Manager 4.6

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

HP iscsi storage for small and midsize businesses

HP Data Replication Solution Service for 3PAR Virtual Copy

Case Studies Using EMC Legato NetWorker for OpenVMS Backups

An Oracle White Paper March Backup and Recovery Strategies for the Oracle Database Appliance

Redefining Oracle Database Management

Backup Strategies for Integrity Virtual Machines

Oracle 11g DBA Training Course Content

Integrating Network Appliance Snapshot and SnapRestore with VERITAS NetBackup in an Oracle Backup Environment

Advanced Solutions of Microsoft SharePoint Server 2013 (20332) H6C76S

SAP database backup and restore solutions for HP StorageWorks Enterprise Virtual Array using HP Data Protector 6.1 software

IBM Tivoli Storage Manager

12. User-managed and RMAN-based backups.

Getting all the pieces: Reliable Backup/Recovery

D12C-AIU Oracle Database 12c: Admin, Install and Upgrade Accelerated NEW

HP VMware ESXi 5.0 and Updates Getting Started Guide

HP Service Manager Architecture and Security HP Software-as-a-Service

Oracle Database 12c Recovery Manager New Features

Oracle Backup and Recover 101. Osborne Press ISBN

Oracle9i Database: Advanced Backup and Recovery Using RMAN

NEC Storage NV Series

HP Business Service Management

HP LeftHand SAN Solutions

Oracle Database Disaster Recovery Using Dell Storage Replication Solutions

Achieving High Availability & Rapid Disaster Recovery in a Microsoft Exchange IP SAN April 2006

Why cloud backup? Top 10 reasons

Why Not Oracle Standard Edition? A Dbvisit White Paper By Anton Els

Using Symantec NetBackup with Symantec Security Information Manager 4.5

HP ProLiant Storage Server family. Radically simple storage

Transcription:

HP LeftHand SAN Solutions Support Document Application Notes Oracle Backup Recovery Setup on LeftHand Networks IP SAN

Legal Notices Warranty The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein. The information contained herein is subject to change without notice. Restricted Rights Legend Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license. Copyright Notices Copyright 2009 Hewlett-Packard Development Company, L.P. 2

Oracle Backup & Recovery Setup on Lefthand Networks IP SAN Overview The ability to preserve database data for long periods of time and then retrieve it quickly is more crucial today than ever. Timely access to critical data is often the difference between the success and failure of the business. Traditional backup and recovery methods are simply not the answer to the growing quest for online (24x7) data. Clearly, acceptable downtime is being pushed to zero hours, and demand for speedy recovery and cost effective backup systems has become eminent. LeftHand Networks has capitalized on recent advancements in Ethernet networks, and introduced the LeftHand SAN, an IP-based Storage Area Network (SAN) that brings the robust capabilities of the most advanced storage technologies to an affordable and scalable backup solution. Oracle RDBMS architecture provides a high level of flexibility and scalability. However, the transaction logging is still sequential and, under archive mode, requires incremental archiving of transaction logs to archive log files. These archive logs are crucial to any type of recovery. Oracle has dedicated a separate process, ARCH, to prepare these archive log files. Typically, the archive log files are stored on the local system for a short period of time, and then pushed off to some tape-drive storage system. Later, these tape cartridges are labeled and stored onsite or sent to remote storage along with other database file backups. Murphy s Law is that, when trying to recover from a catastrophic database failure, the administrator is not able to find the right tape-cartridge or has problems with the tape-storage system. Such situations can result in hours or days worth of downtime, thereby impairing a company s productivity and profitability. This paper combines the LeftHand Networks LeftHand SAN with Oracle RDBMS to develop cost-effective and time-efficient Oracle backup and recovery solutions. 3

LeftHand SAN The low cost and pervasiveness of Ethernet technology provides the opportunity for a superior new solution: an IP-based storage area network. The basic idea is to build a storage subnet just like Fiber Channel (FC) SAN, but instead of using the high-cost, hard-to-manage FC technology, build the subnet on the pervasive and inexpensive Ethernet technology. (See Figure 1) Figure 1IP SAN on Ethernet An IP SAN can provide all the benefits of a higher-cost Fiber Channel SAN: High-performance of block level operations. Infinite scalability of storage for a server or group of servers. Capacity consolidation across storage devices on the subnet. Aggregation of storage, allowing higher utilization. Offloading of storage traffic from the main LAN. Furthermore, IP SAN can achieve all these benefits without requiring customers to deal with the cost, administration, and distance limitations of a Fiber Channel network. Finally, after the partial solutions provided by DAS and SAN, there is a complete solution that addresses all of customers pain points. There is no need to integrate hardware and software separately from different vendors. LeftHand Networks supplies everything a customer needs to create an end-to-end solution. 4

LeftHand Networks and Oracle Solutions Preliminary Set-up Oracle8i Backup Architecture Oracle databases are widely implemented in two operational modes; 1) No-archivelog mode and 2) Archivelog mode. Under the first mode, Oracle does not archive filled groups of online of the database. In the second mode, Oracle Archiver process archives the groups of online redo log files, hence providing for complete recovery from a disk failure to the instant that the failure occurred (or, to the desired noncurrent time). Overall, Oracle data files is made up of three types: a datafile, a control file and an online redo log. In archive log mode, redo logs are archived to archive log files. Therefore, it is imperative to back-up each of these file types to guarantee complete data protection and disaster recovery of the enterprise data. Setting Up the Volume LeftHand Networks recommends a minimum of three NSMs to fully utilize the SAN/iQ Software (the LeftHand SAN core management software) performance and availability of the data. For this solution, a management group called Oracle is established with a single storage cluster called Backup. To map the Oracle data-file types explained in the last paragraph, three volumes are created; 1) data, 2) control and 3) redo-log. Each volume should be appropriately sized and given a replication level that meets your capacity planning and recovery strategy. 5

Figure 2Centralized Management Console (CMC) View of SAN/iQ Volumes The next two Oracle solutions will use the configuration depicted in SAN/iQ setup Figure 2 to exhibit the archive log files backup and a complete backup implementation. Solution 1: Oracle8i Online Archived Logs on LeftHand SAN In a high volume online transaction processing system, archiving Oracle online redo logs becomes an important operation. In case of system failure, recovery depends on how quickly these log files can be retrieved and applied to restore the state of the system. As mentioned earlier, the traditional backing up of archived redo logs on a tape-storage system is time consuming and prone to human error. This section illustrates how these archive logs can be stored directly to either an on-site or an off-site LeftHand SAN solution. The step-by-step instructions are for a Linux platform. 1 Prepare the SAN/iQ volume for your desired storage planning. 6

2 On the database server side, install the LeftHand Networks AEBS Client Driver (refer to the product installation and configuration guide), and configure the aebs.conf file to incorporate the volume. Later, at the operating system level, bind these volumes to the file system as shown below: (Note: Unlike Oracle data files, archive log files cannot be stored on a raw partition). # <install AEBS Client driver> AEBS Driver Installation # mke2fs /dev/aebs/disk2 b 4096 Create FS on NSM Volume # mkdir /data/u08/oradata/sid/archlog Create mount point # mount /dev/aebs/disk0 /data/u08/oradata/sid/archlog Mount FS 3 Let s assume the database is: not created in archive mode mounted, not open Apply the following commands at the svrmgrl or sqlplus prompt as user sys: svrmgrl> alter system set svrmgrl> log_archive_dest = /data/u08/oradata/sid/archlog; svrmgrl> alter database archivelog; svrmgrl> archive log start; 4 To view if the log mode is enabled and automatic archival is set: svrmgrl> archive log list; 5 Edit the init<sid>.ora file set above configurations permanently: log_archive_start = true log_archive_dest = /data/u08/oradata/sid/archlog log_archive_format = log_%s.arc 6 Optional: to mirror or multiplex the archive logs for added security and safety, edit the init.ora file and set following parameters to your desired path: log_archive_duplex_dest = log_archive_min_succeed_dest = 2 7

Solution 2: Oracle8i Complete Backup & Recovery Setup on LeftHand SAN Next is outlined a complete Oracle8i backup and recovery setup procedure on a LeftHand SAN, using Oracle s preferred integrated Backup & Recovery tool, Recovery Manager (RMAN). The following illustration assumes the reader is familiar with: Oracle backup terminology RMAN architecture And that a the RMAN recovery catalog and repository has been established. (Refer to The Oracle8i Server Backup and Recovery Guide for more details.) For ease of illustration, the RMAN command line interface (CLI) is used. Following are the configurations for this example: the target database is called targdb, is in archivelog mode, and has the same TNS alias. targdba has been granted SYSDBA privileges. the recovery catalog database is called rcat and has the same TNS alias. the schema containing the recovery catalog is rman (same password). 1) Mounting SAN/iQ Volumes on RMAN host Install and configure the LeftHand Networks AEBS Client Driver on the RMAN host. Bind NSM volumes to operating system files as shown below: # <install AEBS Client driver> AEBS Driver Installation # mke2fs /dev/aebs/disk0 b 4096 Create FS for Data Files # mke2fs /dev/aebs/disk1 b 4096 Create FS for Control # mke2fs /dev/aebs/disk2 b 4096 Create FS for Redo Logs # cd /oracle/backups/<sid> # mkdir data control redolog Create mount points # mount /dev/aebs/disk0 /oracle/backups/<sid>/data Mount FS # mount /dev/aebs/disk1 /oracle/backups/<sid>/control Mount FS # mount /dev/aebs/disk2 /oracle/backups/<sid>/redolog Mount FS 2) Starting RMAN and registering target database Before invoking RMAN, set the NLS_DATE_FORMAT and NSL_LANG environment variables. Much of the RMAN LIST output is date/time related. Example NLS settings: NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1 8

NLS_DATE_FORMAT=DD-MON-YYYY HH24:MI:SS For RMAN to connect to the recovery catalog and the target database, the recovery catalog database must be open, while the target instance must be at least STARTED and OPEN in case of archivelog mode. Set ORACLE_SID to be the target database, and issue the following: # rman rcvcat rman/rman@rcat RMAN> connect target Or if the target database uses a password file: #rman rcvcat rman/rman@rcat target targdba/<password>@targdb Now register the target database and view the schema to reconfirm the registration: RMAN> register database; RMAN> report schema; 3) Complete the database backup on the NSM Database Status: Recovery catalog database is OPEN, target database is mounted or OPEN. Use the following: RMAN> run { 2> # backup the complete database to disk 3> allocate channel dev1 type disk; 4> backup 5> full 6> tag full_db_sunday_night 7> format /oracle/backups/<sid>/data/db_t%t_s%s_p%p 8> (database); 9> release channel dev1; 10> } To view this backup in the catalog, use the following command: RMAN> list backupset of database; To do a single tablespace backup: RMAN> run { 2> # backup users tablespace to disk 3> allocate channel dev1 type disk; 4> backup 9

5> tag tbs_users 6> format /oracle/backups/<sid>/data/tbs_users_t%t_s%s 7> (tablespace users); 8> release channel dev1; 9> } To view this tablespace backup in the catalog, use the following command: RMAN> list backupset of tablespace users; 4) Control file backup Database Status: Recovery catalog database is OPEN, target database is mounted or OPEN. Use the following: RMAN> run { 2> # backup control file to disk 3> allocate channel dev1 type disk; 4> backup 5> tag cf_monday_night 6> format /oracle/backups/<sid>/control/cf_t%t_s%s_p%p 7> (current controlfile); 8> release channel dev1; 9> } NOTE: Full database backup will automatically backup the control file. 5) Backing up Archive logs: Database Status: Recovery catalog database is OPEN, target database is mounted or OPEN. Use the following: RMAN> run { 2> # backup Archive logs to disk 3> allocate channel dev1 type disk; 4> backup 5> format /oracle/backups/<sid>/redolog/archlog_t%t_s%s_p%p 6> (archivelog all); 7> release channel dev1; 8> } To view the archive logs in the catalog, use the following command: 10

RMAN> list backupset of archivelog all; 6) Backing up Online Redo logs: Online logs cannot be backed up using RMAN; they must be archived first. To archive on-line logs, issue SQL commands from RMAN e.g.: RMAN> run { 2> allocate channel dev1 type disk; 3> sql alter system archive log current ; 4> backup 5> format /oracle/backups/<sid>/redolog/archlog_t%t_s%s_p%p 6> (archivelog from time sysdate-1 all delete input); 7> release channel dev1; 8> } The above script archives the logs, backs them up and deletes them after backing them up. If the backup fails, logs will NOT be deleted. The script can be executed after a full database open backup. The script would ensures all the redo logs to recover the database to a consistent state would be backed up. Oracle8i Server Recovery Scenarios: The Oracle8i server recovery process is best explained with a few examples. Once again, RMAN is used to illustrate following recovery scenarios. The great advantage here is that SAN/iQ which makes the backups available online all time. Unlike with tape-storage systems, DBAs will not have to search or track down the appropriate cartridge to perform restore or recovery procedures. Furthermore, using RMAN makes the recovery process very simple and time-efficient. Just like backups, RMAN can restore whole or partial database with just a few commands. Scenario 1: Database open and datafile deleted In this example, a datafile has been accidentally deleted from a running database. There are two methods of open database recovery: restore the datafile recover: o the datafile o the tablespace. The following RMAN session illustrates restoring and recovering datafile: 11

RMAN> run { 2> allocate channel dev1 type disk; 3> sql alter tablespace users offline immediate ; 4> restore datafile 4; 5> recover datafile 4; 6> sql alter tablespace users online ; 7> release channel dev1; 8> } Scenario 2: Complete Database recovery This example exhibits a situation where online redo logs are lost, and the database needs to be completely restored and rolled forward. The process is started by closing the database and determining the point in the log sequence where the recovery needs to be performed. The following RMAN command illustrates the sequence of recovery: RMAN> run { 2> allocate channel dev1 type disk; 3> set until logseq=105 thread=1; 4> restore controlfile to /oracle/dbs/ctrltargdb.ctl ; 5> replicate controlfile from /oracle/dbs/ctrltargdb.ctl ; 6> restore database; 7> sql alter database mount ; 8> recover database; 9> sql alter database open resetlogs ; 10> release channel dev1; 11> } 12

SUMMARY Oracle database backup on the LeftHand Networks SAN provides a cost-effective and timeefficient solution. All the of the procedures and scenarios presented in this white paper have been validated at the LeftHand Networks test labs, and all were successful in backing up and recovering the Oracle8i database without any loss of data or logs. Many other Oracle backup solutions can be created from the above examples deployed on LeftHand Networks products where storage is unlimited and highly scalable and manageable. Furthermore, SAN/iQ technology can be integrated as an Oracle Standby configuration or a High Availability (HA) solution. 13