Which task should you perform before issuing the command?

Your multitenant container database (CDB) contains a pluggable database, HR_PDB. The default
permanent tablespace in HR_PDB is USERDATA. The container database (CDB) is open and you
connect RMAN.
You want to issue the following RMAN command:

RMAN > BACKUP TABLESPACE hr_pdb:userdata;
Which task should you perform before issuing the command?

Your multitenant container database (CDB) contains a pluggable database, HR_PDB. The default
permanent tablespace in HR_PDB is USERDATA. The container database (CDB) is open and you
connect RMAN.
You want to issue the following RMAN command:

RMAN > BACKUP TABLESPACE hr_pdb:userdata;
Which task should you perform before issuing the command?

A.
Place the root container in ARHCHIVELOG mode.

B.
Take the user data tablespace offline.

C.
Place the root container in the nomount stage.

D.
Ensure that HR_PDB is open.

Explanation:
* Because tablespaces in different PDBs can have the same name, to eliminate
ambiguity you must connect directly to a PDB to back up one or more of its tablespaces.
* To back up tablespaces or data files:
Start RMAN and connect to a target database and a recovery catalog (if used).
If the database instance is not started, then either mount or open the database.
Run the BACKUP TABLESPACE command or BACKUP DATAFILE command at the RMAN
prompt.



Leave a Reply 14

Your email address will not be published. Required fields are marked *


smbd.smth

smbd.smth

Dull question!
No words about that we are in archivelog mode already.
Pluggable Database cannot be backed up in NOARCHIVELOG mode.
So me for A!

Shawn

Shawn

I agree, although the wording of [A] is a bit strange. Wouldn’t one rather put the database instead of the “root container” in ARHCHIVELOG mode?

Anyway, in ARHCHIVELOG mode one can obviously backup the tablespace if it is ONLINE or OFFLINE, regardless if the PDB is OPEN or CLOSED (mounted state).

C

C

Poor question.
The example command will fail. There is no option to qualify tablespace name with the PDB. You must connect to the PDB to backup by tablespace name.

RMAN > BACKUP TABLESPACE hr_pdb:userdata;

Shawn

Shawn

The command is valid, please test to see for yourself.

tamil

tamil

RMAN> select name,open_mode from v$pdbs;

using target database control file instead of recovery catalog
NAME OPEN_MODE
—————————— ———-
PDB$SEED READ ONLY
ORA12P1 READ WRITE
ORA12P2 MOUNTED

RMAN> backup tablespace ora12p2:users;

Starting backup at 31-MAR-14
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=137 device type=DISK
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00013 name=/appl/oradata/cdbroot/ORA12C1/F5D05369C4B23E83E0430100007F6D99/datafile/o1_mf_users_9mhr0o5l_.dbf
channel ORA_DISK_1: starting piece 1 at 31-MAR-14
channel ORA_DISK_1: finished piece 1 at 31-MAR-14
piece handle=/appl/oradata/flash_recovery/ORA12C1/F5D05369C4B23E83E0430100007F6D99/backupset/2014_03_31/o1_mf_nnndf_TAG20140331T001832_9mhzdb6w_.bkp tag=TAG20140331T001832 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 31-MAR-14

Starting Control File and SPFILE Autobackup at 31-MAR-14
piece handle=/appl/oradata/flash_recovery/ORA12C1/autobackup/2014_03_31/o1_mf_s_843610715_9mhzdcv8_.bkp comment=NONE
Finished Control File and SPFILE Autobackup at 31-MAR-14

RMAN>

The above example illustrates that if root container is open and in archivelog it can do the backup of tablespace whether the pdb is mounted or open.
so answer is A.

Michael S

Michael S

Works in archivelog mode, but not with noarchivelog mode enabled:

SQL> select name, open_mode from v$pdbs;

NAME OPEN_MODE
—————————— ———-
PDB1 MOUNTED

SQL> exit
Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 – 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
oracle@srvora01:/u00/app/oracle/product/12.1.0/db_1/dbs/ [CDB3] rman target /

Recovery Manager: Release 12.1.0.1.0 – Production on Fri Jun 20 17:33:52 2014

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

connected to target database: CDB3 (DBID=547725584)

RMAN> backup tablespace PDB1:DATA;

Starting backup at 20/06/2014 17:34:02
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=38 device type=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of backup command at 06/20/2014 17:34:03
RMAN-06817: Pluggable Database PDB1 cannot be backed up in NOARCHIVELOG mode.

So the correct answer is A

praveen

praveen

Have you tried to backup opened PDB in non-archive mode? What is the outcome.

Chris Poland

Chris Poland

It’s the same error – RMAN-06817. So the answer is A

Umaruddin Ansari

Umaruddin Ansari

A is correct.

Google

Google

Below youll come across the link to some sites that we consider you ought to visit.