0% found this document useful (0 votes)
62 views4 pages

Lab-07-Tuning RMAN Backup Performance

Uploaded by

Arif Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views4 pages

Lab-07-Tuning RMAN Backup Performance

Uploaded by

Arif Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Oracle Internal & Oracle Academy Use Only

Practices for Lesson 7:


Tuning RMAN Backup
Performance
Practices for Lesson 7: Overview

Overview
In these practices, you will monitor an RMAN backup job.

Oracle Internal & Oracle Academy Use Only

Copyright © 2022, Oracle and/or its affiliates.

86 Practices for Lesson 7: Tuning RMAN Backup Performance


Practice 7-1: Monitoring an RMAN Backup Job

Overview
In this practice, you will monitor an RMAN backup job by using the V$SESSION_LONGOPS view.

Time Estimate
It should take approximately 10 minutes to complete this practice.

Tasks
1. Open a terminal window and log in to SQL*Plus. See Course Practice Environment:
Security Credentials for password information.
$ sqlplus system/<password>

Oracle Internal & Oracle Academy Use Only



SQL>
2. Open a new terminal window. Start Recovery Manager and connect to the CDB root (target
database) as the SYS user.
$ rman target /

connected to target database: ORCLCDB (DBID=2778750799)

RMAN>
3. Create a whole database backup. Proceed to step 4 while the backup operation is in
progress.
RMAN> BACKUP DATABASE;

Starting backup at 2019-06-21:18:52:23
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=277 device type=DISK
channel ORA_DISK_1: starting full datafile backup set

Finished backup at 2019-06-21:18:53:01

Starting Control File and SPFILE Autobackup at 2019-06-


21:18:53:01
piece
handle=/u01/app/oracle/fast_recovery_area/ORCLCDB/autobackup/201
9_06_21/o1_mf_s_1011552781_gjt9wg1h_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 2019-06-
21:18:53:02

Copyright © 2022, Oracle and/or its affiliates.

Practices for Lesson 7: Tuning RMAN Backup Performance 87


RMAN>
4. Return to your first terminal session and execute the
$HOME/labs/DBMod_Backup/DBMod_Backup_MonitorBackup.sql script
approximately every 20 seconds to monitor the progress of the backup job.
SQL> @$HOME/labs/DBMod_Backup/DBMod_Backup_MonitorBackup

SID SERIAL# CONTEXT SOFAR TOTALWORK %_COMPLETE


--------- ---------- ---------- ---------- ---------- ----------
267 40731 5 0 638720 0

SQL> /

Oracle Internal & Oracle Academy Use Only


SID SERIAL# CONTEXT SOFAR TOTALWORK %_COMPLETE
--------- ---------- ---------- ---------- ---------- ----------
267 40731 5 269440 638720 42.18

SQL> /

no rows selected

SQL>
Question: How can you use this query to determine if there is something wrong with the
backup job?
Answer: If you execute the query at intervals of 2 minutes or more and the %_COMPLETE
column does not increase, then it is likely that RMAN is encountering a problem.
5. Return to your RMAN session. After the backup completes, log out of RMAN.
RMAN> exit

$
6. Return to your SQL*Plus session. Log out of SQL*Plus.
SQL> exit

$
7. Close all terminal windows.

Copyright © 2022, Oracle and/or its affiliates.

88 Practices for Lesson 7: Tuning RMAN Backup Performance

You might also like