Customise Consent Preferences

We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.

The cookies that are categorised as "Necessary" are stored on your browser as they are essential for enabling the basic functionalities of the site. ... 

Always Active

Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

No cookies to display.

Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

No cookies to display.

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics such as the number of visitors, bounce rate, traffic source, etc.

No cookies to display.

Performance cookies are used to understand and analyse the key performance indexes of the website which helps in delivering a better user experience for the visitors.

No cookies to display.

Advertisement cookies are used to provide visitors with customised advertisements based on the pages you visited previously and to analyse the effectiveness of the ad campaigns.

No cookies to display.

RMAN Backup In Multitenant Database Oracle 12c

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 23 Nov, 2023
  • 0 Comments
  • 3 Mins Read

RMAN Backup In Multitenant Database Oracle 12c

As multi-tenant feature introduced in oracle 12c, New commands are there for taking rman backup of pluggable database and root container database.
Backup of complete container( ROOT + ALL PDBS ) :
1
2
3
4
5
6
7
8
9
10
SQL> show pdbs
 
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 PRIM READ WRITE NO
5 PROD_MN READ WRITE NO
SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
Now Connect to root container
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
[oracle@localhost ~]$ rman target sys/oracle@cdb1
 
Recovery Manager: Release 12.1.0.2.0 - Production on Thu Nov 23 22:46:04 2023
 
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
 
connected to target database: CDB1 (DBID=828012650)
RMAN> backup database plus archivelog
2> ;
 
 
Starting backup at 23-NOV-23
current log archived
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=30 device type=DISK
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=165 RECID=1 STAMP=886318673
input archived log thread=1 sequence=166 RECID=2 STAMP=886319099
input archived log thread=1 sequence=167 RECID=3 STAMP=886320315
input archived log thread=1 sequence=168 RECID=4 STAMP=886321194
 
channel ORA_DISK_1: finished piece 1 at 23-NOV-23
piece handle=/home/oracle/app/oracle/fast_recovery_area/CDB1/backupset/2023_08_28/o1_mf_annnn_TAG20230828T224727_by2kxold_.bkp tag=TAG20230828T224727 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:56
Finished backup at 23-NOV-23
 
Starting backup at 23-NOV-23
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00031 name=/home/oracle/app/oracle/oradata/cdb1/testencry.dbf
input datafile file number=00003 name=/home/oracle/app/oracle/oradata/cdb1/sysaux01.dbf
input datafile file number=00001 name=/home/oracle/app/oracle/oradata/cdb1/system01.dbf
input datafile file number=00004 name=/home/oracle/app/oracle/oradata/cdb1/undotbs01.dbf
input datafile file number=00034 name=/home/oracle/app/oracle/oradata/cdb1/dataconversion.dbf
input datafile file number=00037 name=/home/oracle/app/oracle/oradata/cdb1/testin1.dbf
input datafile file number=00006 name=/home/oracle/app/oracle/oradata/cdb1/users01.dbf
channel ORA_DISK_1: starting piece 1 at 23-NOV-23
Starting backup at 23-NOV-23
current log archived
using channel ORA_DISK_1
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=1 sequence=268 RECID=104 STAMP=888965884
channel ORA_DISK_1: starting piece 1 at 23-NOV-23
channel ORA_DISK_1: finished piece 1 at 23-NOV-23
piece handle=/home/oracle/app/oracle/fast_recovery_area/CDB1/backupset/2023_08_28/o1_mf_annnn_TAG20230828T225804_by2lhdwl_.bkp tag=TAG20230828T225804 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 23-NOV-23
 
Starting Control File and SPFILE Autobackup at 23-NOV-23
piece handle=/home/oracle/app/oracle/fast_recovery_area/CDB1/autobackup/2023_08_28/o1_mf_s_888965886_by2lhhc8_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 23-NOV-23
Taking backup of particular pluggable database:(backup pluggable database PRIM;)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
[oracle@node1 admin]$ rman target=sys@PRIM
 
Recovery Manager: Release 12.1.0.2.0 - Production on Sat Aug 29 01:12:28 2023
 
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
 
target database Password:
connected to target database: CDB1 (DBID=828012650)
 
 
RMAN> backup tablespace USERS;
 
Starting backup at 23-NOV-23
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00010 name=/home/oracle/app/oracle/oradata/cdb1/PRIM/SAMPLE_SCHEMA_users01.dbf
channel ORA_DISK_1: starting piece 1 at 23-NOV-23
channel ORA_DISK_1: finished piece 1 at 23-NOV-23
piece handle=/home/oracle/app/oracle/fast_recovery_area/CDB1/FF72AA85A0370D5BE045000000000001/backupset/2023_08_29/o1_mf_nnndf_TAG20230829T011323_by2tf3vl_.bkp tag=TAG20230829T011323 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:07
Finished backup at 23-NOV-23
 
 
Starting Control File and SPFILE Autobackup at 23-NOV-23
piece handle=/home/oracle/app/oracle/fast_recovery_area/CDB1/autobackup/2023_08_29/o1_mf_s_888974011_by2tfcd3_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 23-NOV-23
Hope it Helps !