Академический Документы
Профессиональный Документы
Культура Документы
Step 3
ADD_STS_REF
Step 1
DELETE_STS_REF
CREATE_TASK EXECUTE_TASK
UPDATE_TASK_ATTRIBUTES INTERRUPT/CANCEL_TASK
DELETE_TASK MARK_RECOMMENDATION
QUICK_TUNE UPDATE_REC_ATTRIBUTES
GET_TASK_REPORT
Task-dependent GET_TASK_SCRIPT
SQL
Access Advisor
Advisor-dependent task
Report/Scripts
SET_TASK_PARAMETER
RESET_TASK
Step 2
BEGIN 1
dbms_advisor.create_task(dbms_advisor.sqlaccess_advisor,'MYTASK');
END;
BEGIN
dbms_advisor.set_task_parameter('MYTASK','ANALYSIS_SCOPE','ALL');
2
dbms_advisor.set_task_parameter('MYTASK','MODE','COMPREHENSIVE');
END;
BEGIN 3
dbms_advisor.add_sts_ref('MYTASK','SH','MYSTS');
dbms_advisor.execute_task('MYTASK');
dbms_output.put_line(dbms_advisor.get_task_script('MYTASK'));
END;
TCP/IP
Note: The features and tasks marked with ** are discussed in more detail in this lesson.
RMAN News
Enhanced configuration of deletion policies
Archived redo logs are eligible for deletion only when not needed by required consumers such as
Data Guard, Streams, Flashback Database, and so on. When you CONFIGURE an archived log
deletion policy, the configuration applies to all archiving destinations, including the flash
recovery area. Both BACKUP ... DELETE INPUT and DELETE... ARCHIVELOG use this
configuration, as does the flash recovery area. When you back up the recovery area, RMAN can
fail over to other archived redo log destinations if the archived redo log in the flash recovery area
is inaccessible or corrupted.
Active Database Duplication
You can use the "network-aware" DUPLICATE command to create a duplicate or standby
database over the network without a need for pre-existing database backups.
Improved block media recovery performance
You can use the RECOVER command (formerly the BLOCKRECOVER command) to recover
individual data blocks. If flashback logging is enabled and contains older, uncorrupted blocks,
then RMAN can use these blocks, thereby speeding up block media recovery.
Note: The features and tasks marked with ** are discussed in more detail in this lesson.
RMAN News
Parallel backup and restore for very large files
Backups of large data files now use multiple parallel server processes to efficiently distribute the
workload for each file. This features improves the performance of backups. Look for more details
later in this section.
Fast incremental backups on physical standby database
You can enable block change tracking on a physical standby database ( use the existing ALTER
DATABASE ENABLE/DISABLE BLOCK CHANGE TRACKING SQL statement). RMAN then
will track changed blocks during standby managed recovery. This allows the off loading of block
tracking to the standby database and allows the same fast incremental backups the use the change
tracking file that have been available on the primary. This feature enables faster incremental
backups on a physical standby database than in previous releases.
Configuring backup compression
You can use the CONFIGURE command to choose between the BZIP2 and ZLIB compression
algorithms for RMAN backups.
Note: For more details about the RECOVER, VALIDATE and CONFIGURE commands, see the
Oracle Database Backup and Recovery Reference.
Other enhancements:
• Archival backups for long-term storage **
• Improved block corruption detection
Recovery catalog enhancements
• Merging catalogs **
• Restricting DBA backup catalog access to owned
databases
Integration enhancements:
• Automatic Network File System (NFS)
• RMAN Integration with VSS-enabled applications
Note: The features and tasks marked with ** are discussed in more detail in this lesson.
RMAN News
Archival backups for long-term storage
Long-term backups, created with the KEEP option, no longer require all archived logs to be
retained, when the backup is online. Instead, archive logs needed to recover the specified data
files to a consistent point in time are backed up (along with specified data files and a control file).
This functionality reduces archive log backup storage needed for online, long-term KEEP
backups, and simplifies the command by using a single format string for all the files needed to
restore and recover the backup.
Improved block corruption detection
Several database components and utilities, including RMAN, can now detect a corrupt block and
record it in the V$DATABASE_BLOCK_CORRUPTION view. The Oracle database automatically
updates this view when block corruptions are detected or repaired. The VALIDATE command is
enhanced with many new options such as VALIDATE ... BLOCK and VALIDATE
DATABASE.
Primary Standby
database Redo transport database
Oracle Net
Flash
Recovery
Area
Primary Standby
database database
Redo transport
Flash
Recovery
Area
Redundant Standby
local copy redo log files
1)
1 Configuring a deletion policy:
CONFIGURE ARCHIVELOG DELETION POLICY TO BACKED UP 2
TIMES TO DEVICE TYPE sbt;
Destination or
AUXILIARY database
TCP/IP
Active source or
TARGET database
Duplicating a Database
Prior to Oracle Database 11g, you could create a duplicate database with RMAN for testing or for
standby. It required the source database, a backup copy on the source or on tape, a copy of the
backup on the destination system, and the destination database itself.
Oracle Database 11g greatly simplifies this process. You can instruct the source database to do
online image copies and archived log copies directly to the auxiliary instance, by using Enterprise
Manager or the FROM ACTIVE DATABASE clause of the RMAN DUPLICATE command.
The database files are coming from a TARGET or source database. They are copied via an inter-
instance network connection to a destination or AUXILIARY instance. RMAN then uses a
“memory script” (one that is contained only in memory) to complete recovery and open the
database.
See
next screenshot
Multi-Section backups:
• Created by RMAN
• With your specified size value
• Processed independently (serial or in parallel)
• Producing multi-piece backup sets
1)
1 Archiving a database backup:
CONNECT TARGET /
CONNECT CATALOG rman/rman@catdb
CHANGE BACKUP TAG 'consistent_db_bkup'
KEEP FOREVER;
2 3
1)
1 Connecting to destination recovery catalog:
CONNECT CATALOG cat111/oracle@destdb;
3)
3 Importing metadata for two registered databases:
IMPORT CATALOG cat92/oracle@catdb DBID=1423241, 1423242;
Note: Insert practice number (#) in the slide title following the word Practice.
Original
data in
buffer cache
Backup Optimization
Prior to Oracle Database 11g, RMAN has two ways of eliminating blocks from the backup piece,
which only applies to full backups:
• Null block compression: Never used blocks are not backed up.
• Unused block compression: Currently not used blocks are not backed up.