Atikh's DBA blog
  • Home
  • Oracle
  • MySQL
  • MongoDB
  • PostgreSQL
  • Snowflake
  • About Me
  • Contact Us

RMAN Backup of Single Datafile and List Backup

 Atikh Shaikh     oracle, RMAN     2 comments   

This post will discuss about taking backup of single datafile, provided database is in archive log mode.

Check if ARCHIVELOG mode is on

SQL> archive log list
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            /u01/ASGARD/arch
Oldest online log sequence     404
Next log sequence to archive   406
Current log sequence           406

Take backup of datafile system_01.dbf


$ rman target / nocatalog
Recovery Manager: Release 11.2.0.4.0 - Production on Tue Nov 20 02:35:57 2018

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: ASGARD (DBID=2227813556)

using target database control file instead of recovery catalog

RMAN> run
{
allocate channel ch1 type disk format '/u01/rman_backup/rman_datafile_backup_%U';
backup datafile '/u01/ASGARD/data/system_01.dbf';
release channel ch1;
}2> 3> 4> 5> 6>

allocated channel: ch1
channel ch1: SID=133 device type=DISK

Starting backup at 20-NOV-18
channel ch1: starting full datafile backup set
channel ch1: specifying datafile(s) in backup set
input datafile file number=00001 name=/u01/ASGARD/data/system_01.dbf
channel ch1: starting piece 1 at 20-NOV-18
channel ch1: finished piece 1 at 20-NOV-18
piece handle=/u01/rman_backup/rman_datafile_backup_vdtilht7_1_1 tag=TAG20181120T024247 comment=NONE
channel ch1: backup set complete, elapsed time: 00:00:07
channel ch1: starting full datafile backup set
channel ch1: specifying datafile(s) in backup set
including current control file in backup set
including current SPFILE in backup set
channel ch1: starting piece 1 at 20-NOV-18
channel ch1: finished piece 1 at 20-NOV-18
piece handle=/u01/rman_backup/rman_datafile_backup_vetilhte_1_1 tag=TAG20181120T024247 comment=NONE
channel ch1: backup set complete, elapsed time: 00:00:01
Finished backup at 20-NOV-18
released channel: ch1

RMAN>

List/Report backup of above datafile


RMAN> list backup of datafile '/u01/ASGARD/data/system_01.dbf';
 List of Backup Sets
===================
  List of Datafiles in backup set 19110
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 14718266653698 20-NOV-18 /u01/ASGARD/data/system_01.dbf
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
19112   Full    405.02M    DISK        00:00:05     20-NOV-18
        BP Key: 19112   Status: AVAILABLE  Compressed: NO  Tag: TAG20181120T024247
        Piece Name: /u01/rman_backup/rman_datafile_backup_vdtilht7_1_1
  List of Datafiles in backup set 19112
  File LV Type Ckp SCN    Ckp Time  Name
  ---- -- ---- ---------- --------- ----
  1       Full 14718266653802 20-NOV-18 /u01/ASGARD/data/system_01.dbf


you may also want to check this rman-disk-backup-and-list-or-report
  • Share This:  
  •  Facebook
  •  Twitter
  •  Instagram
  •  Pin
  •  linkedin
  •  reddit
Email ThisBlogThis!Share to XShare to Facebook
Newer Post Older Post Home

2 comments:

  1. PandaGeneral16 November 2021 at 11:38

    online backup statistics
    Online Daily Backup software helps you to create copies of files, database, and hard drive that prevents your data loss.

    Click here for more information about Online Cloud Backup Reseller Program.

    ReplyDelete
    Replies
      Reply
  2. PandaGeneral11 April 2022 at 10:55

    online backup statistics
    Online Daily Backup software helps you to create copies of files, database, and hard drive that prevents your data loss. Click here for more information about Online Cloud Backup Reseller Program.

    ReplyDelete
    Replies
      Reply
Add comment
Load more...

Author

Atikh Shaikh
View my complete profile

Categories

  • MongoDB (18)
  • Oracle 12c (30)
  • Oracle12cR2 New Feature (3)
  • PostgreSQL (20)
  • RMAN (10)
  • Snowflake (8)
  • mysql (23)
  • oracle (74)

Blog Archive

  • ▼  2018 (38)
    • ▼  November (25)
      • Introduction On MySQL
      • SQL Modes in MySQL
      • MySQL Version explained
      • MySQL Storage Engines (Part 1)
      • MySQL Storage Engines (Part 2)
      • Login to MySQL Database on Linux
      • Error Code: 1419. You do not have the SUPER privil...
      • Create MySQL database on Linux
      • Create New User in MySQL Database
      • MySQL Default database | MySQL System Database
      • Oracle ASM Basic Commands
      • Oracle Database Schema Refresh
      • Create User in Oracle Database Pre-12c and 12c
      • RMAN Disk backup and List or Report RMAN Backup
      • RMAN Backup of Single Datafile and List Backup
      • Difference Between User, Service account and Schem...
      • Create MySQL Database Backup | mysqldump mysqlbackup
      • Switching between ARCHIVELOG Mode and NOARCHIVELOG...
      • Introduction to MongoDB
      • Introduction to PostgreSQL
      • Installation of PostgreSQL 9.6 on Windows
      • Installation of MongoDB on Windows
      • Oracle DBA Scripts
      • Databases, Collections and Documents in MongoDB
      • CRUD (Create, Read, Update, Delete) Operations in ...
    • ►  December (13)
  • ►  2019 (33)
    • ►  January (15)
    • ►  February (6)
    • ►  March (2)
    • ►  April (5)
    • ►  May (5)
  • ►  2020 (5)
    • ►  April (1)
    • ►  May (2)
    • ►  July (2)
  • ►  2021 (8)
    • ►  June (3)
    • ►  July (3)
    • ►  August (1)
    • ►  December (1)
  • ►  2022 (33)
    • ►  May (3)
    • ►  June (10)
    • ►  July (3)
    • ►  August (4)
    • ►  September (8)
    • ►  October (3)
    • ►  November (2)
  • ►  2023 (14)
    • ►  February (1)
    • ►  April (5)
    • ►  May (2)
    • ►  June (1)
    • ►  September (1)
    • ►  October (1)
    • ►  December (3)
  • ►  2024 (5)
    • ►  January (2)
    • ►  March (3)
  • ►  2025 (6)
    • ►  March (1)
    • ►  April (3)
    • ►  May (2)

Popular Posts

  • ORA-29283: invalid file operation: unexpected "LFI" error (1509)[29437]
    I was trying to export the schema in my windows PC, it got stuck with below error    C:\Users\shaik\Videos\technodba exp>expdp userid...
  • Oracle 23ai : Use of NOVALIDATE Constraints in IMPDP
    While performing impdp operations in the Oracle database, Oracle performs validation checks for every constraint on the imported table, that...
  • PostgreSQL : How to get data directory location for PostgreSQL instance
    Sometimes, you start working on a PostgreSQL instance but forget about the data directory, here we will discuss different methods to know th...
  • ERROR 1221 (HY000): Incorrect usage of DB GRANT and GLOBAL PRIVILEGES
    In previous articles, we have learned about user creation and grants  in MySQL in detail, but there are a few privileges called global priv...
  • Oracle Dataguard Broker Configuration (DGMGRL)
    Data Guard Broker is a command-line interface that makes managing primary and standby databases easy. DBA can use a single command to switch...

Labels

oracle Oracle 12c mysql PostgreSQL MongoDB oracle 19c Oracle23c oracle19c Orale PDB-CDB oracle12c python AWS Oracle ASM Virtualbox pluggable database storage engine

Pages

  • Disclaimer
  • Privacy Policy

Follow TechnoDBA

Copyright © Atikh's DBA blog | Powered by Blogger