Presentation is loading. Please wait.

Presentation is loading. Please wait.

Oracle ASM on Azure: Backup Scenarios

Similar presentations


Presentation on theme: "Oracle ASM on Azure: Backup Scenarios"— Presentation transcript:

1 Oracle ASM on Azure: Backup Scenarios
11/22/2018 3:06 AM Oracle ASM on Azure: Backup Scenarios Ravi Alwani Cameron Gardiner 4 June 2018 © Microsoft Corporation. All rights reserved.

2 Oracle (ASM) DB Backup scenarios:
11/22/2018 3:06 AM Oracle (ASM) DB Backup scenarios: BR*Tools RMAN CommVault Single instance DB server Disk Configuration Size :512 GB Host Caching: None Storage type: Premium Disk group 1 - DATA Disk group 2 - RECO Disk group 3 - ARCH © Microsoft Corporation. All rights reserved.

3 Oracle (ASM) DB Backup with BR*Tools
11/22/2018 3:06 AM Oracle (ASM) DB Backup with BR*Tools Reference : © Microsoft Corporation. All rights reserved.

4 Oracle (ASM) DB Backup with BR*Tools(1)
11/22/2018 3:06 AM Oracle (ASM) DB Backup with BR*Tools(1) Prerequisites: Oracle software installation under OS user ‘oracle’ ‘oracle’ OS user replaces ‘ora<dbname>’ user BR*Tools version 7.20 patch level 18 or higher Reference : © Microsoft Corporation. All rights reserved.

5 Oracle (ASM) DB Backup with BR*Tools(2)
11/22/2018 3:06 AM Oracle (ASM) DB Backup with BR*Tools(2) Configuration of BR*Tools in Oracle 12c ASM environment File permissions of BR*Tools executables File permissions of BR*Tools directories New BR*Tools profile directory New run-time environment of BR*Tools New init<DBSID>.sap parameters File permissions of BR*Tools executables in sap-exe directory -rwsrwsr-- 1 oracle oinstall May 31 16:30 brarchive* -rwsrwsr-- 1 oracle oinstall May 31 16:30 brbackup* -rwsrwsr-- 1 oracle oinstall May 31 16:30 brconnect* -rwsrwsr-- 1 oracle oinstall May 31 16:31 brrecover* -rwsrwsr-- 1 oracle oinstall May 31 16:31 brrestore* -rwsrwsr-- 1 oracle oinstall May 31 16:31 brspace* -rwsrwsr-- 1 oracle oinstall May 31 16:31 brtools* © Microsoft Corporation. All rights reserved.

6 Oracle (ASM) DB Backup with BR*Tools(3)
11/22/2018 3:06 AM Oracle (ASM) DB Backup with BR*Tools(3) Configuration of BR*Tools in Oracle 12c ASM environment File permissions of BR*Tools log directories in /oracle/<DBNAME> lrwxrwxrwx 7 oracle oinstall 4096 May 31 14: > 11202 drwxr-xr-x 7 oracle oinstall 4096 May 31 14: drwxrwxr-x 2 oracle oinstall 4096 May 31 17:07 saparch drwxrwxr-x 2 oracle oinstall 4096 May 31 17:14 sapbackup drwxrwxr-x 2 oracle oinstall 4096 May 31 17:07 sapcheck drwxrwxr-x 2 oracle oinstall 4096 May 31 17:12 sapprof drwxrwxr-x 2 oracle oinstall 4096 May 31 17:12 sapreorg drwxrwxr-x 2 oracle oinstall 4096 May 31 17:12 saptrace New BR*Tools profile directory ‘sapprof’ in /oracle/<DBNAME> -rw-rw-r-- 1 oracle oinstall 1274 May 31 17:30 init<DBSID>.ora -rw-rw-r-- 1 oracle oinstall May 31 17:30 init<DBSID>.sap -rw-r oracle asmadmin 3584 May 31 18:30 spfile<DBSID>.ora Contents of Oracle pfile in $ORACLE_HOME/dbs for ASM spfile='+DATA/<DBNAME>/spfile<DBNAME>.ora‘ © Microsoft Corporation. All rights reserved.

7 Oracle (ASM) DB Backup with BR*Tools(4)
11/22/2018 3:06 AM Oracle (ASM) DB Backup with BR*Tools(4) ASM database data files can be back up only by RMAN! backup_dev_type = rman_util | rman_disk | rman_stage backup_dev_type = disk disk_copy_cmd = rman_set | rman backup_dev_type = tape | pipe tape_copy_cmd = rman Following parameters were adjusted in init<DBSID>.sap profile (adjust the entries): asm_root_dir = ASM backup_dev_type = disk disk_copy_cmd = rman rman_channels = 12 rman_filesperset = 5 _rem_sql_call = yes _remote_exec = ssh _remote_copy = scp asm_ora_sid = +ASM © Microsoft Corporation. All rights reserved.

8 Oracle (ASM) DB Backup with RMAN
11/22/2018 3:06 AM Oracle (ASM) DB Backup with RMAN © Microsoft Corporation. All rights reserved.

9 Oracle (ASM) DB Backup with RMAN(1)
11/22/2018 3:06 AM Oracle (ASM) DB Backup with RMAN(1) RMAN is a oracle utility to backup, restore & recovery of database. Connect to Target database(the database on which Backup to be performed) as sysdba. $ sqlplus "/ as sysdba“ Check if the database has been configured with ARCHIVELOG SQL> select log_mode from v$database; If the database has been not been configured with ARCHIVELOG mode then Shutdown and Startup the database in mount state SQL> shutdown immediate; SQL> startup mount; Configure database in ARCHIVELOG mode. SQL> alter database archivelog; Check ARCHIVELOG destination, and if required it can be changed SQL> archive log list SQL> alter system set log_archive_dest_1='location=/home/oracle/arch' scope=both; © Microsoft Corporation. All rights reserved.

10 Oracle (ASM) DB Backup with RMAN(2)
11/22/2018 3:06 AM Oracle (ASM) DB Backup with RMAN(2) Check flash/fast recovery area location SQL> alter system set log_archive_dest_1='location=/home/oracle/arch' scope=both; Connect to RMAN prompt with target database $ rman target / Configure RMAN with controlfile auto-backup feature that will be auto-backup controlfile in case of major changes done in database RMAN> configure controlfile autobackup on; To enable backup optimization run the following command. [By default backup optimization has been configured OFF.] RMAN> configure backup optimization on; Configure retention policy for backup RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 10 DAYS; Start database backup RMAN> backup database; © Microsoft Corporation. All rights reserved.

11 Oracle (ASM) DB Backup with CommVault (See attached Word Docx)
11/22/2018 3:06 AM Oracle (ASM) DB Backup with CommVault (See attached Word Docx) © Microsoft Corporation. All rights reserved.

12 References https://launchpad.support.sap.com/#/notes/1598594
11/22/2018 3:06 AM References © Microsoft Corporation. All rights reserved.

13 11/22/2018 3:06 AM © Microsoft Corporation. All rights reserved.


Download ppt "Oracle ASM on Azure: Backup Scenarios"

Similar presentations


Ads by Google