DBA_OB_BACKUP_SET_FILES

2024-12-02 03:48:27  Updated

Note

This view is introduced since OceanBase Database V4.0.0.

Purpose

The DBA_OB_BACKUP_SET_FILES view displays the file status of backup sets.

Columns

Column Type Nullable? Description
BACKUP_SET_ID NUMBER(38) NO The ID of the backup set.
DEST_ID NUMBER(38) NO The ID of the backup path.
INCARNATION NUMBER(38) NO The nth incarnation of the database after the Flashback Database operation.
BACKUP_TYPE VARCHAR2(64) NO The type of the backup. Valid values:
  • D: indicates full backup.
  • I: indicates incremental backup.
  • PREV_FULL_BACKUP_SET_ID NUMBER(38) NO The backup set ID of the previous full backup on which the current backup set depends.
    PREV_INC_BACKUP_SET_ID NUMBER(38) NO The backup set ID of the previous incremental backup on which the current backup set depends.
    START_TIMESTAMP VARCHAR2(256) NO The timestamp when the secondary backup of the backup set started.
    END_TIMESTAMP VARCHAR2(256) NO The timestamp when the secondary backup of the backup set is completed.
    STATUS varchar2(64) NO The backup status.
    FILE_STATUS varchar2(64) NO The file status of the backup set. Valid values:
  • COPYING: indicates that the file is being backed up.
  • AVAILABLE: indicates that the backup is valid.
  • DELETING: indicates that the file is being deleted.
  • EXPIRED: indicates that the backup file has expired.
  • INCOMPLETE: indicates that the backup file is incomplete.
  • BROKEN: indicates that the backup file is incomplete and cannot be used.
  • DELETED: indicates that the backup file has been deleted.
  • ELAPSED_SECONDES NUMBER NO The time consumed for the backup.
    PLUS_ARCHIVELOG varchar2(4096) NO Indicates whether log synchronization is enabled.
    START_REPLAY_SCN NUMBER(38) NO The playback SCN of the backup set dependency log.
    START_REPLAY_SCN_DISPLAY TIMESTAMP(9) NO The playback timestamp of the backup set dependency log.
    MIN_RESTORE_SCN NUMBER(38) NO The latest restorable SCN of the backup set.
    MIN_RESTORE_SCN_DISPLAY VARCHAR2(4096) NO The minimum restorable timestamp of the backup set.
    INPUT_BYTES NUMBER(38) YES The number of input bytes.
    OUTPUT_BYTES NUMBER(38) YES The number of output bytes.
    OUTPUT_RATE_BYTES NUMBER NO The number of bytes that are output per second.
    EXTRA_META_BYTES NUMBER(38) YES The number of extra bytes.
    TABLET_COUNT NUMBER(38) YES The total number of tablets to back up.
    FINISH_TABLET_COUNT NUMBER(38) YES The total number of tablets backed up.
    MACRO_BLOCK_COUNT NUMBER(38) YES The total number of macroblocks to back up.
    FINISH_MACRO_BLOCK_COUNT NUMBER(38) YES The total number of macroblocks backed up.
    FILE_COUNT NUMBER(38) YES The number of backup files.
    META_TURN_ID NUMBER(38) YES The round of metadata backup.
    DATA_TURN_ID NUMBER(38) YES The round of the data backup.
    RESULT NUMBER(38) NO The returned backup error code.
    COMMENT varchar2(4096) YES The description of the backup error code.
    ENCRYPTION_MODE varchar2(64) YES The encryption mode. Valid values:
  • None: indicates that encryption is not implemented.
  • Password: indicates that only the password is used for protection.
  • Password Encryption: indicates that encryption is implemented and the password is used for protection.
  • Transparent Encryption: indicates that TDE is used for encryption.
  • Dual Mode Encryption: indicates that TDE encryption is implemented and the password is used for protection.
    Currently, only the None and Password modes are supported.
  • PASSWD varchar2(128) YES The password.
    TENANT_COMPATIBLE varchar2(4096) NO The tenant version number.
    BACKUP_COMPATIBLE NUMBER(38) NO The version number of the backup set.
    PATH varchar2(4096) YES The backup path.
    CLUSTER_VERSION varchar(4096) NO The version number of the source cluster.
    CONSISTENT_SCN NUMBER(38) NO The consistency SCN for backup.
    MINOR_TURN_ID NUMBER(38) NO The ID of the round at which the backup of minor compaction data ended.
    MAJOR_TURN_ID NUMBER(38) NO The ID of the round at which the backup of baseline data ended.

    Sample query

    Query the status of the standby cluster whose BACKUP_SET_ID is 1 in the current tenant.

    obclient [SYS]> SELECT * FROM SYS.DBA_OB_BACKUP_SET_FILES WHERE BACKUP_SET_ID = 1\G
    

    The query result is as follows:

    *************************** 1. row ***************************
               BACKUP_SET_ID: 1
                     DEST_ID: 1002
                 INCARNATION: 1
                 BACKUP_TYPE: FULL
     PREV_FULL_BACKUP_SET_ID: 0
      PREV_INC_BACKUP_SET_ID: 0
             START_TIMESTAMP: 2024-05-10 14:02:04
               END_TIMESTAMP: 2024-05-10 14:04:31
                      STATUS: SUCCESS
                 FILE_STATUS: AVAILABLE
            ELAPSED_SECONDES: 147
             PLUS_ARCHIVELOG: OFF
            START_REPLAY_SCN: 1715320601793148000
    START_REPLAY_SCN_DISPLAY: 10-MAY-24 01.56.41.793148000 PM
             MIN_RESTORE_SCN: 1715321071272283000
     MIN_RESTORE_SCN_DISPLAY: 2024-05-1014:04:31.272283000
                 INPUT_BYTES: 198413183
                OUTPUT_BYTES: 20219996
           OUTPUT_RATE_BYTES: 137125.4834937336727309530817741200907923
            EXTRA_META_BYTES: 0
                TABLET_COUNT: 657
         FINISH_TABLET_COUNT: 657
           MACRO_BLOCK_COUNT: 94
    FINISH_MACRO_BLOCK_COUNT: 94
                  FILE_COUNT: 0
                META_TURN_ID: 1
                DATA_TURN_ID: 0
                      RESULT: 0
                     COMMENT: NULL
             ENCRYPTION_MODE: NONE
                      PASSWD: NULL
           TENANT_COMPATIBLE: 4.3.1.0
           BACKUP_COMPATIBLE: 3
                        PATH: file:///home/admin/oceanbase/backupdataoracle
             CLUSTER_VERSION: 4.3.1.0
              CONSISTENT_SCN: 1715320960893795000
               MINOR_TURN_ID: 1
               MAJOR_TURN_ID: 1
    1 row in set
    

    References

    Contact Us