Oracle Study Notes: Definitions and usage of format in RMAN

Source: Internet
Author: User

Format is used to define the path and naming rules of backup files.

    • Path: If it is definedDb_recovery_file_dest, The backup file is generated in this directory! If not defined, % ORACLE_HOME % \ database [DBS] will be generated in the default system location
    • Format: the default format is include% UOMF string
    • Recommended format definition :{% D | % I}-{dB | TB | DF | ar | CF | SP}-% T-% s-% P-% C-% T. bkp-- Database name-Basic Object Type-year, month, and day-Backup set serial number-Backup part copy count-timestamp. bkp

 

You can specify the format in many places and runtime environments. The system always defines the override with a higher priority.

    1. Bakupspec
    2. Backup
    3. Allocate Channel
    4. Configure

 

Filesystem characters allowed by any OSYes, but it should passReplace variableImplemented file nameUniqueness!

 

FormatReplace variable, Case sensitive!

    1. % d -- db_name of the database
    2. % N -- db_name of the database with 8-bit length. Fill the remaining part with "X".
    3. % N -- Name of the database tablespace
    4. % I -- dbid of the database
    5. % t -- yyyymmdd = % Y % m % d
    6. % t -- timestamp with 9 Characters
    7. % s -- backup set number
    8. % P -- backup part number
    9. % C -- the serial number of multiple copies of the backup slice
    10. % E -- the serial number of archived redo file. it can only be used on archived redo.
    11. % f -- datafile filenmuber, it can only be used to back up datafile and tablespace; otherwise it does not make sense
    12. % f -- composite format = C-IIIIIIIIII-YYYYMMDD-QQ, where iiiiiiiiii is dbid, yyyymmdd is year month day, QQ is the serial number (00-ff) of multiple copies of the hex backup slice ). TMD, Oracle prompts error!
    13. % u -- 8 is a unique letter string
    14. % u -- composite format ==
  • Backupset: % u _ % P _ % C
  • Copy of datafile: Data-D-% d_id-% I _ts-% n_fno-% F _ % u
  • Copy of archived log: arch-D _ % d-ID-% I _s-% e_t-% h_a-% A _ % u
  • Copy of controlfile: CF-D _ % d-ID-% I _ % u

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.