【正文】
Commands BACKUP Block . Inc. Update LIST REPORT DELETE 65 Copyright 169。 RMAN REPORT NEED BACKUP incremental 3。 RMAN LIST BACKUP OF DATABASE。 4 REUSE。 53 Copyright 169。 5 FORMAT 39。 RMAN CONFIGURE DEVICE TYPE 2 DISK PARALLELISM 2 3 BACKUP TYPE TO 4 COMPRESSED BACKUPSET。 2023, Oracle. All rights reserved. RMAN Commands: Overview Target database REPORT LIST Catalog database Enterprise Manager RESTORE RECOVER FLASHBACK SPFILE BACKUP Control file Archived log files RMAN Catalog maintenance CROSSCHECK DELETE…EXPIRED CHANGE Stored scripts 41 Copyright 169。 2023, Oracle. All rights reserved. Issuing Recovery Manager Commands ? Interactive client – Enter mands at RMAN prompt. – Use when performing analysis, or when running reports or stored scripts. ? Batch mode – Use with automated jobs. – Specify a mand file when starting RMAN. – Specify the log file name to capture session log. ? Pipe interface – Specify the PIPE mandline argument. – Use to municate data between sessions or between RMAN and an external application. 37 Copyright 169。 4 } 33 Copyright 169。 RMAN CONFIGURE MAXSETSIZE CLEAR。 2023, Oracle. All rights reserved. Configuring RMAN Settings by Using EM 26 Copyright 169。 18 Copyright 169。/u01/oracle/fra39。 2023 Oracle. All rights reserved. 2 Copyright 169。 2023, Oracle. All rights reserved. Backup Destinations Backups can be written to: ? Disk directory ? Media Management Library (tape device) – Typically used for disaster recovery, when disk backups are lost ? Flash recovery area – This is a disk area set aside for backup and recovery and flashback database purposes. – You define the location and the size. – Files are automatically named by using Oracle Managed Files. – Files are automatically retained and deleted as necessary. 9 Copyright 169。 FILE_TYPE USED RECLAIMABLE FILES 16 Copyright 169。 2023, Oracle. All rights reserved. Starting RMAN ? Starting RMAN locally ? Starting RMAN remotely UNIX: $ ORACLE_SID=DB01。 RMAN SHOW EXCLUDE。 RMAN RUN { 2 ALLOCATE CHANNEL c1 DEVICE TYPE disk。 4 BACKUP DATABASE PLUS ARCHIVELOG。 6 SQL 39。 2023, Oracle. All rights reserved. Backup Constraints ? The database must be mounted or open. ? You cannot back up online redo logs. ? Only “clean” backups are usable in NOARCHIVELOG mode. ? Only “current” data file backups are usable in ARCHIVELOG mode. 43 Copyright 169。/BACKUP/39。 2023, Oracle. All rights reserved. Backing Up Archived Redo Logs ? Online redo log file switch is automatic. ? Archived log failover is performed. ? You can specify a range of archived redo logs to back up. ? Backup sets of archived redo log files cannot contain any other type of file. RMAN BACKUP 2 FORMAT 39。 2023, Oracle. All rights reserved. Block Change Tracking The backup process can be streamlined by enabling block change tracking, which: ? Records changed blocks in a change tracking file ? Is used automatically by RMAN, if enabled ? Optimizes incremental backups by avoiding full data file scans during backup List of changed blocks Redo generation Redo log 1011001010110 0001110100101 1010101110011 Change tracking file SGA CTWR Commands BACKUP Block . Inc. Update LIST REPORT DELETE 58 Copyright 169。incr_upd_df139。 2023, Oracle. All rights reserved. REPORT Command ? Produces a detailed analysis of the repository ? Produces reports to answer: – What are the data files in the database? – Which files need a backup? – Which backups can be deleted? – Which files are unrecoverable? Commands BACKUP Block . Inc. Update LIST REPORT DELETE 62 Copyr