Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a...

70
Discover Best of Show 2016 2. - 3. März 2016, Düsseldorf

Transcript of Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a...

Page 1: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

DiscoverBest of Show 20162. - 3. März 2016, Düsseldorf

Page 2: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Agenda

2Confidential - provided to HPE employees and Partners for internal training purposes only

Page 3: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Agenda

– StoreOnce and Preparation

– SQL Backup– Prerequistes– Backup and Optimization

– Oracle Backup– Prerequistes– Backup and Optimization

– Copy to Tape– Optimization / Recommendation

– SA Enablement Workshop

– Important Links

3Confidential - provided to HPE employees and Partners for internal training purposes only

Page 4: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Transformto a hybrid

infrastructure

Enableworkplace

productivity

Protectyour digitalenterprise

Empowerthe data-drivenorganization

Page 5: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Transformto a hybrid

infrastructure

Enableworkplace

productivity

Empowerthe data-drivenorganization

Protect yourdigital enterpriseProtect your most prized digital assets whether they are on premise, in the cloud or in between.

Page 6: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

SQL/Oracle Backup to StoreOnce

6Confidential - provided to HPE employees and Partners for internal training purposes only

Page 7: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Preparation – before you begin

– Create devices to be used for the backup

– Verify communication using filesystem backup to StoreOnce

– Separate data types and create several data stores (e.g. Store_SQL, Store_ORA, Store_ESE,…)

– StoreOnce 6500– Federated Stores will be created using StoreOnce UI

– Single-Node– Create stores using Data Protector

– B2D device – „Tape Library“

– Gateway – „Tape Drive“

– Physical Storage – „Library Slots“

Confidential - provided to HPE employees and Partners for internal training purposes only 7

B2D device

Gateway 1(MA host 1)

Gateway 2(MA host 2)

Gateway 3(MA host 3)

Physical Storage

Page 8: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

SQL Backup

8Confidential - provided to HPE employees and Partners for internal training purposes only

Page 9: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

SQL Server integration architecture

– SM - Data Protector Session Manager: Backup Session Manager during backup and Restore Session Manager during restore.

– Backup API or VDI - SQL Server VDI, the backup interface introduced with SQL Server.

– MA - Data Protector General Media Agent.

9Confidential - provided to HPE employees and Partners for internal training purposes only

Page 10: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Different ways to back up the MSSQL instances

– Zero Downtime Backup / Instant Recovery– VDI– VSS Transportable backup

– VSS writer / VDI (virtual device interface)

– Single Instance

– Cluster

– Always On

10Not a complete list

Confidential - provided to HPE employees and Partners for internal training purposes only

Page 11: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Prerequisites – SQL integration

– License to use the SQL Server integration

– SQL Server correctly installed and configured, SQL Server is available

– For supported versions, platforms, devices see latest support matrices at https://softwaresupport.hp.com/group/softwaresupport/support-matrices.

– MS SQL Integration component installed on every SQL Server

– Availability Group - every availability group replica must have the MS SQL Integration component installed

– Cluster - all nodes as Data Protector cluster-aware clients, Data Protector Inet service on all nodes run under a Windows domain user account (with cluster administrator rights)– Configure the Data Protector Inet service user impersonation for all cluster nodes– Security Policy privileges for this user: Impersonate a client after authentication and Replace a process level token

11Confidential - provided to HPE employees and Partners for internal training purposes only

Page 12: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Prerequisites – SQL integration (continued)

– The user account to be used must have appropriate SQL Server permissions for running backups and restores

– SQL Server must be online during configuration

– Make sure that the SQL Server Browser service is running.

– Configuration must be performed for every SQL Server instance separately

– For availability group configurations you must first import the availability group listener as a virtual client by selecting Virtual Host in the Clients context.

– More information can be found in the integration guide (HPE Data Protector 9.05 Integration Guide)

12Confidential - provided to HPE employees and Partners for internal training purposes only

Page 13: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

– In the Context List, click Backup.

– In the Scoping Pane, expand Backup Specifications, right-click MS SQL Server, and click Add Backup.

Creating the SQL backup specificationAdding new Backup

13Confidential - provided to HPE employees and Partners for internal training purposes only

Page 14: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

– In the Context List, click Backup.

– In the Scoping Pane, expand Backup Specifications, right-click MS SQL Server, and click Add Backup.

– In the Create New Backup dialog box, select the Blank Microsoft SQL Server Backup template.

– Click OK.

Creating the SQL backup specificationSelecting the Template

14Confidential - provided to HPE employees and Partners for internal training purposes only

Page 15: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the SQL backup specificationSelecting the Client and Database

– In Client, select the SQL Server system.

– In Application database, select or specify the name of the SQL Server instance.

– Click Next.

15Confidential - provided to HPE employees and Partners for internal training purposes only

Page 16: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

– W2K8: account specified in the Client selection page

– Other: account under which the Inet service (SQL Server) is running

– Windows domain user account (preferred option)

– SQL Server user account

Creating the SQL backup specificationSpecifying the user account

16Confidential - provided to HPE employees and Partners for internal training purposes only

Page 17: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

– For an availability group configuration, you can also provide a port number used by the availability group listener. The default is 1433.

Creating the SQL backup specificationSettings for an Availability Group

17Confidential - provided to HPE employees and Partners for internal training purposes only

Page 18: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the SQL backup specificationSelecting the Client and Database

– Select the databases, file groups, or data files you want to back up.

– For an availability group backup specification, you can expand the availability group listener to display availability group replica clients and the databases belonging to the selected availability group.

18Confidential - provided to HPE employees and Partners for internal training purposes only

Page 19: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the SQL backup specificationSelecting the Devices and Media Pools

– Select the devices. Click Properties to set the media pool and preallocation policy. The device concurrency is set to 1 and cannot be changed.

– To create additional backup copies (mirrors), specify the desired number by clicking Add mirror/Remove mirror. Select separate devices for each mirror.

– Click Next.

19Confidential - provided to HPE employees and Partners for internal training purposes only

Page 20: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the SQL backup specificationBackup Options

– Select backup options.

– Click Next.

20Confidential - provided to HPE employees and Partners for internal training purposes only

Page 21: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

– Define Pre-exec or Post-exec scripts, set session ownership

– Modify Protection depending on your needs

– Set SQL Server specific options

Creating the SQL backup specificationBackup Options

21Confidential - provided to HPE employees and Partners for internal training purposes only

Page 22: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the SQL backup specificationBackup Options (continued)Backup type Description

Concurrent streams Specify the number of concurrent data streams for backup The maximum (default) value is the number of selected backup devices, for SQL Server supports only one data stream per device.

Fast direct mode Select this option for critical production SQL Servers that require fast backup with minimum impact on their performance. This option can only be used with locally connected devices and the same block size.

Check database integrity Select this option to verify the SQL Server data integrity before backup. If the check fails, backup completes with warnings.

SQL backup compression Specify how Data Protector should handle the Microsoft SQL Server backup compression.

Exclude from backup Specify this option to exclude specific databases from backupPre-exec, Post-exec Specify a command with arguments or a script (filename) that will be

executed on the SQL Server system after backup.

22Confidential - provided to HPE employees and Partners for internal training purposes only

Page 23: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the SQL backup specificationScheduling the Backup

– Schedule the backup.

– For Backup types see table on next slide.

23Confidential - provided to HPE employees and Partners for internal training purposes only

Page 24: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the SQL backup specificationSQL Server online backup types

Backup type Description

Full database backup Includes all data regardless of the changes made after the last backup.

Transaction log backup Uses fewer resources than database backups, so can be created more frequently. By applying transaction log backups, you can recover the database to a specific point in time.

Differential database backup Records only changes made to the database since the last full database backup.

Copy-only database backup A copy-only full backup is an independent full backup, which never truncates the transaction logs and does not affect an SQL Server restore chain.

24Confidential - provided to HPE employees and Partners for internal training purposes only

Page 25: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the SQL backup specificationSaving the Backup

– Save the backup specification, specifying a name and backup specification group.

– Use „speaking“ names for thebackup specifications.

25Confidential - provided to HPE employees and Partners for internal training purposes only

Page 26: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Running the backup

26Confidential - provided to HPE employees and Partners for internal training purposes only

Page 27: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

SQL Backup – Summary

– The backup was done using the default settings

– Default setting for the „Load Balancing and Min/Max“ option - „1/5“

– Concurrent streams defaults to 1 1 stream used to back up the data to StoreOnce

– Overall speed might be too slow for larger databases

– Device Locking: Depending on DP version and used device - five devices might be locked, even if onlyone stream was used for the backup (see omnidbutil -show_locked_devs)

27Confidential - provided to HPE employees and Partners for internal training purposes only

Page 28: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Optimization

– Omnirc – recommended settings:– OB2IPCKEEPALIVE = 1

– OB2IPCKEEPALIVETIME = 900

– OB2IPCKEEPALIVEINTERVAL = 60

– Omnirc – optional settings (may increase overall performance)– OB2SQLBLOCKSIZE

– OB2SQLMAXTRANSFERSIZE

28Confidential - provided to HPE employees and Partners for internal training purposes only

Page 29: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Optimization

– Streams / Compression– Increase streams to back up with higher performance– Disable compression to achieve better dedupe ratio

– Devices– Increase the Max value – equal to streams– Select one gateway only– Server Side Deduplication– Source Side Decuplication– Target Side Deduplication

29Confidential - provided to HPE employees and Partners for internal training purposes only

Page 30: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

OptimizationCompare the performance

Backup Job – default settings– 1 stream

Backup Job – optimized settings– 20 streams

Confidential - provided to HPE employees and Partners for internal training purposes only 30

Page 31: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Oracle Backup

31Confidential - provided to HPE employees and Partners for internal training purposes only

Page 32: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Oracle Server integration architecture

– SM - Data Protector Session Manager: Backup Session Manager during backup and Restore Session Manager during restore.

– RMAN - The Oracle Recovery Manager.

– Data Protector MML - The Data Protector Oracle integration Media Management Library, which is a set of routines that enables data transfer between the Oracle Server and Data Protector.

– Backup API - The Oracle-defined application programming interface.

– IDB - The Data Protector Internal Database where all the information about Data Protector sessions, including session messages, objects, data, and used devices and media, is written.

– MA - Data Protector General Media Agent.

32Confidential - provided to HPE employees and Partners for internal training purposes only

Page 33: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Different ways to back up the Oracle databases

– Zero Downtime Backup / Instant Recovery– BackupSet– Proxy– Transportable VSS using oravss writer

– Normal Oracle RMAN– Single Instance– Cluster– RAC– Data Guard

33Not a complete list of all backup types

Confidential - provided to HPE employees and Partners for internal training purposes only

Page 34: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Prerequisites – Oracle integration

– License to use the Data Protector Oracle integration

– Oracle Server correctly installed and configured

– For supported versions, platforms, devices, see the latest support matrices at https://softwaresupport.hp.com/group/softwaresupport/support-matrices.

– Oracle Server software installed, and Oracle target database open or mounted.

– If the Oracle recovery catalog database is used, ensure that it is properly configured and open.

– Oracle net services properly configured and running for the Oracle target database and the recovery catalog, if you use it.

– Oracle Real Application Clusters (RAC): Each node must have a dedicated disk for storing archive logs. Such disks must be NFS mounted on all other RAC nodes.

34Confidential - provided to HPE employees and Partners for internal training purposes only

Page 35: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Prerequisites – Oracle integration

– Identify the Oracle database user that will be used by Data Protector for backup. This user must have the SYSDBA privilege granted. You need to provide these user accounts when you configure the Oracle database.

– In cluster environments, ensure to add he following users to the Data Protector admin or operator user group: OSDBA user for all physical nodes, and OSDBA user for the virtual server (applicable for HPE Serviceguard clusters)

– Collect the information to configure the integration:– Oracle Server home directory – Login information to the target database – Optionally, login information to the recovery catalog database – Optionally, login information to the standby database

– More information can be found in the integration guide (HPE Data Protector 9.05 Integration Guide)

35Confidential - provided to HPE employees and Partners for internal training purposes only

Page 36: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Oracle integrationBackup types– Online backup of a whole database or parts (tablespaces)– Online incremental backup (Oracle differential incremental backup 1 to 4)– Offline backup of a whole database– Backup of Archived Redo Logs only– Backup of the Oracle database recovery catalog– Backup of the Oracle control files– Backup of recovery files residing in the flash recovery area:

– full and incremental backup sets– control file autobackup (SPFILE included if used)– archived redo logs– datafile copies, control file copies– Flashback logs, the current control file, and online redo logs are not backed up.

– In Oracle Data Guard environment, backup of standby database

Confidential - provided to HPE employees and Partners for internal training purposes only 36

Page 37: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

– In the Context List, click Backup.

– In the Scoping Pane, expand Backup Specifications, right-click Oracle Server, and click Add Backup.

Creating the Oracle backup specificationAdding new Backup

37Confidential - provided to HPE employees and Partners for internal training purposes only

Page 38: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

– In the Context List, click Backup.

– In the Scoping Pane, expand Backup Specifications, right-click Oracle Server, and click Add Backup.

– In the Create New Backup dialog box, select the Blank Oracle Backup to create a backup without predefined options, or use a different template with predefined options.

– Click OK.

Creating the Oracle backup specificationSelecting the Template

38Confidential - provided to HPE employees and Partners for internal training purposes only

Page 39: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the Oracle backup specificationTemplates types

39

Template DescriptionArchive Backs up archived redo logs.Archive_Delete Backs up archived redo logs, deletes them after the backup.Database_Archive Backs up database and archived redo logs.Database_Switch_Archive Backs up DB, switches online redo logs + backs up archived redo logs.Database_Switch_Archive_Del Backs up database, switches online redo logs, backs up archived redo

logs and then deletes archived redo logs.Direct_Database Backs up database and controlfile.SMB_BackupSet_Database Backs up DB and control file in ZDB mode using proxy-copy method.SMB_Proxy_Database Backs up DB and control file in ZDB mode using backup set method. Whole_Online Backs up database and archived redo logs.Whole_Online_Delete Backs up DB and archived redo logs, and deletes archived redo logs.

Confidential - provided to HPE employees and Partners for internal training purposes only

Page 40: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the Oracle backup specificationSelecting the Client and Database

– In Client, select the Oracle Server system. In a cluster environment, select the virtual server.

– In Application database, select or specify the name of the Oracle database.

– Specify the User andgroup/domain options (Unix, Linux, Windows 2008). Ensure that this user has been added to the Data Protector admin or operator user group and has the Oracle database backup rights.

– Click Next.

40Confidential - provided to HPE employees and Partners for internal training purposes only

Page 41: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

– Specify the login information to the primary database(SYSDBA privileges)

– Services = net service name for the primary database

Creating the Oracle backup specificationConfiguring Oracle databases

– The pathname of the Oracle Server home directory(example Windows: C:\oracle\product\11.2.0\db_1)

41Confidential - provided to HPE employees and Partners for internal training purposes only

Page 42: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

– Select Use target database control file… OR Userecovery catalaog

Creating the Oracle backup specificationConfiguring Oracle databases

42

– Oracle Data Guard and if you intend to use standbydatabase specify the login information

Confidential - provided to HPE employees and Partners for internal training purposes only

Page 43: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the Oracle backup specificationSelecting the Oracle database objects

– Select the databases objects to be backed up.

– For example, a single tablespace can be separately selected for backup, but for a complete online backup of the database, the ARCHIVELOGS must also be selected.

– The archived logs can reside in the flash recovery area. In this case, if you select the FLASH RECOVERY AREA to be backed up, you do not need to select also ARCHIVELOGS.

43Confidential - provided to HPE employees and Partners for internal training purposes only

Page 44: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the Oracle backup specificationSelecting the Devices and Media Pools

– Select the devices. Click Properties to set the device concurrency, media pool and preallocation policy.

– To create additional backup copies (mirrors), specify the desired number by clicking Add mirror/Remove mirror. Select separate devices for each mirror.

– Click Next.

44Confidential - provided to HPE employees and Partners for internal training purposes only

Page 45: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the Oracle backup specificationBackup Options

– Select backup options.

– Click Next.

45Confidential - provided to HPE employees and Partners for internal training purposes only

Page 46: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

– Define Pre-exec or Post-exec scripts, set session ownership

– Modify Protection depending on your needs

– Set Oracle-specific options

Creating the Oracle backup specificationBackup Options

46Confidential - provided to HPE employees and Partners for internal training purposes only

Page 47: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the Oracle backup specificationBackup Options (continued)Backup type Description

Disable recovery catalog auto backup

By default, Data Protector backs up the recovery catalog in every backup session.

Disable Data Protector managed control file backup

By default, Data Protector backs up the Data Protector managed control file in every backup session.

Back up standby database Oracle Data Guard: This option is applicable if the database is configured with the standby connection. By default, RMAN backs up the database files and archived redo logs on the primary system. Select to enable backup of database files and archive logs on standby system.

RMAN Script You can edit the Oracle RMAN script section of the Data Protector Oracle backup specification.

Pre-exec, Post-exec Specify a command or RMAN script that will be started by ob2rman.pl on the Oracle Server system before the backup (pre-exec) or after it (post-exec). RMAN scripts must have the .rman extension.

47Confidential - provided to HPE employees and Partners for internal training purposes only

Page 48: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the Oracle backup specificationScheduling the Backup

– Schedule the backup.

48Confidential - provided to HPE employees and Partners for internal training purposes only

Page 49: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the Oracle backup specificationScheduling the Backup

– With Oracle full and incremental level 0 backups all data blocks per datafile are backed up. With Oracle incremental backup (level 1 or higher), only the data blocks that have changed since a previous backup are backed up.

– The difference between a full backup and an incremental level 0 backup is that the incremental 0 is a base for subsequent incremental backups.

– Oracle incremental backups can be differential or cumulative. By default, Data Protector performs Oracle differential incremental backups.

49Confidential - provided to HPE employees and Partners for internal training purposes only

Page 50: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Creating the Oracle backup specificationSaving the Backup

– Save the backup specification, specifying a name and backup specification group.

– Use „speaking“ names for thebackup specifications.

50Confidential - provided to HPE employees and Partners for internal training purposes only

Page 51: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Running the backup

51Confidential - provided to HPE employees and Partners for internal training purposes only

Page 52: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Oracle Backup – Summary

– The backup was done using the default settings.

– Because of the default settings the „Load Balancing and Min/Max“ option „1/5“ was used. As a result 5 streams were used to backup the database.

– The overall speed for the backup might be too slow for larger databases.

– The backup specification is not optimized to back up the data to StoreOnce

52Confidential - provided to HPE employees and Partners for internal training purposes only

Page 53: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Optimization

– Omnirc – recommended settings:– OB2IPCKEEPALIVE = 1

– OB2IPCKEEPALIVETIME = 900

– OB2IPCKEEPALIVEINTERVAL = 60

– Omnirc – optional settings (may change the behavior during backup)– OB2_DPMCTL_SHRLOC

– ORA_ASM_HOME

– ORA_ASM_LCL_INSTANCE

– OB2CATPATH

– OB2_ORACLE_RC_USER

– OB2_ORACLE_ASM_OSUSER

– Zero Downtime Backup: ZDB_ORA_INCLUDE_CF_OLF, ZDB_ORA_INCLUDE_SPF, ZDB_ORA_NO_CHECKCONF_IR, ZDB_PRESERVE_MOUNTPOINTS, ZDB_MOUNT_PATH, ...

53Confidential - provided to HPE employees and Partners for internal training purposes only

Page 54: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Optimization

– Compression / Encryption– Disable Oracle compression / encryption / optimization to achieve better dedupe ratio

– RMAN> CONFIGURE BACKUP OPTIMIZATION OFF;– RMAN> CONFIGURE ENCRYPTION FOR DATABASE OFF;

– Concurrency / Streams / Channels– Increase devices / streams / channels to back up with higher performance

– Better deduplication (next slide):– filesperset 1– maxopenfiles 1

54Confidential - provided to HPE employees and Partners for internal training purposes only

Page 55: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Example Oracle Script – backup database

55Confidential - provided to HPE employees and Partners for internal training purposes only

Page 56: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Example Oracle Script – backup archive (1)

– Post-exec– POSTEXEC "Archive2_ORACLEDB_DB1.cmd" -on_host "cell.server"

56Confidential - provided to HPE employees and Partners for internal training purposes only

0

Page 57: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Example Oracle Script – backup archive (2)

57Confidential - provided to HPE employees and Partners for internal training purposes only

Page 58: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

OptimizationCompare the performance

Backup Job – default settings– 5 stream

Backup Job – optimized settings– 15 streams

Confidential - provided to HPE employees and Partners for internal training purposes only 58

Page 59: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Other Recommendations

– Incremental Backups: when planning for incrmental backups and to reduce backup time for large databases consider to enable Oracle „Change Block Tracking“.

– Use the Oracle recovery catalog as central repository for your databases.

– Other usefull commands – can help to reclaim space on StoreOnce (Houesekeeping):– To clean obsolete backups run the commands (RMAN script):

– list backup summary;

– DELETE NOPROMPT OBSOLETE;– DELETE NOPROMPT EXPIRED BACKUP;– DELETE NOPROMPT EXPIRED COPY;

– To synchronize recovery catalog and StoreOnce media (RMAN script):– CROSSCHECK BACKUPSET;– CROSSCHECK COPY;

– „Archive Save“ + „Archive Second Copy and Delete“

59Confidential - provided to HPE employees and Partners for internal training purposes only

Page 60: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Best Practice for Oracle Backup and Recovery

– Database in ARCHIVELOG mode for online backup and point in time recovery

– RMAN parameter FILESPERSET 1 will improve deduplication ratio

– Use Block Change Tracking for incrementals backups (configure in Oracle)

– Backup policy:– Weekly full and daily incremental to reduce compute, bandwidth and storage usage– Daily backups of the control file (key component)– Daily backups of parameter file, tnsnames.ora, and listener.ora– Archived redo logs are backed up as necessary

– ALLOCATE CHANNEL to multiplex backup streams improve backup thoughput

– No Oracle encryption / compression / optimization

Confidential - provided to HPE employees and Partners for internal training purposes only 60

Page 61: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Copy to Tape

61Confidential - provided to HPE employees and Partners for internal training purposes only

Page 62: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Copy to TapeKeep in mind

– Do not copy to tape using Data Protector „Post Backup“ copy– Best Practise to separate backup, replication, copy to tape and housekeeping for StoreOnce

– Limitation for SQL/DP regarding streams and devices (see QCCR2A61217 and QCCR2A58718)– When combining several SQL backup into one copy job

Confidential - provided to HPE employees and Partners for internal training purposes only 62

BackupReplicationHousekeepingStart of Replication WindowSpare Time for future growth or Physical Tape OffloadHousekeeping Window

Page 63: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Copy to Tape – Settings

– Copy only protected objects to prevent re-copying alreadprocessed objects

– Copy only objects not copied so far or with number ofcopies less than X– When using replication to copy from first StoreOnce to second

StoreOnce you would select 1– When copying objects to tape after replication has been

finished you would select 2

– Select timeframe or no time limit

Confidential - provided to HPE employees and Partners for internal training purposes only 63

Page 64: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Copy to Tape – Settings

– Select library filter to prevent copying from tape to tape(depending on settings in object filter)

– Try to avoid several libraries into one copy job

Confidential - provided to HPE employees and Partners for internal training purposes only 64

Page 65: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Copy to Tape – Settings

– Reset or change retention after successfull copy on StoreOnce

– Keep or change retention after successfull copy on Tape Library

Confidential - provided to HPE employees and Partners for internal training purposes only 65

Page 66: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Questions and Answers

Confidential - provided to HPE employees and Partners for internal training purposes only 66

Page 67: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

References

Confidential - provided to HPE employees and Partners for internal training purposes only 67

Page 68: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

HPE StoreOnce Links

– StoreOnce www.hpe.com/storage/StoreOnce

– StoreOnce VSA webpage www.hpe.com/storage/StoreOnceVSA

– Free 1TB VSA: www.hpe.com/storage/freebackup

– Oracle RMAN Plug-in download www.hpe.com/storage/StoreOnce/OracleRMAN

– SAP Plug-in download www.hpe.com/storage/StoreOnce/SAP

– SEM Plug-in download www.hpe.com/storage/StoreOnce/SEM

– SQL Plug-in download www.hpe.com/storage/StoreOnce/SQLServer

– StoreOnce demo www.hpe.com/storage/StoreOnceDemo

– StoreOnce Sizer tool www.hpe.com/storage/StoreOnceSizer

– BURA compatibility matrix www.hpe.com/storage/BURAcompatibility

– RMC webpage www.hpe.com/storage/RMC

– RMC download www.hpe.com/storage/RMCdownload

– RMC documents www.hpe.com/storage/RMCdocs

– Get Protected Guarantee webpage www.hpe.com/storage/getprotected

Confidential - provided to HPE employees and Partners for internal training purposes only 68

Page 69: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

HPE StoreEver Links

– HPE Tape Storage Systems home page www.hpe.com/storage/storeever

– HPE StoreOpen and LTFS www.hpe.com/storage/StoreOpen

– HPE Tape Storage Compatibility www.hpe.com/storage/BURAcompatibility

– HPE TapeAssure www.hpe.com/storage/TapeAssure

– HPE ESL G3 Library www.hpe.com/storage/eslg3

– LTO technology home page www.ultrium.com

– HPE StoreEver Tape Presentations, Sales Tools www.thetapehub.com

– HPE StoreEver Tape News www.tape-news.com/

Confidential - provided to HPE employees and Partners for internal training purposes only 69

Page 70: Discover Best of Show 2016 - Hewlett Packard Enterprise · Specify a command with arguments or a script (filename) that will be executed on the SQL Server system after backup. ...

Thank youDaniel Braun - [email protected] +49 172 4635 222

70