You are on page 1of 21

New in Oracle 12c is the Multitenant Architecture, as well as the ability to restore one table from an

RMAN backup.  This blog post explains how to do a restore of one table in a pluggable database.
Setup the test:
1.) Create a user – tables cannot be restored in the SYS schema
2.) Create a table for that user
3.) Take a backup – a backup of the table has to exist; it can’t just be in archive logs.
4.) Drop the table
5.) Restore the table
6.) Check that the table has been restored
 
1.  Create a User
This user is being created in one pluggable database.
Tables cannot be restored in the SYS schema.
Alter session set container=PDB2

create user example

identified by "example"

default tablespace users

temporary tablespace temp

profile default

account unlock

 /

grant create session, create table to example

alter user example quota 50M on users

grant execute on dbms_flashback to example

2. Create a Table
SQL>  conn example/example@pdb2

create table test_restore (col1 number)

Table created.

SQL> insert into test_restore values (1)

  2  /
1 row created.

SQL> commit

  2  /

Commit complete.
3. Take a Backup
You can’t restore a table that hasn’t been backed up, even if it exists in current archive logs.
$ rman target /

Recovery Manager: Release 12.1.0.2.0 - Production on Thu Dec 1


13:13:16 2016

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

connected to target database: CDB2 (DBID=600824249)

RMAN> backup database plus archivelog;

Starting backup at 01-DEC-16

current log archived

using target database control file instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=184 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=291 RECID=45 STAMP=929223552

input archived log thread=1 sequence=292 RECID=46 STAMP=929223641

input archived log thread=1 sequence=293 RECID=47 STAMP=929227788

input archived log thread=1 sequence=294 RECID=48 STAMP=929229145

input archived log thread=1 sequence=295 RECID=49 STAMP=929230173

input archived log thread=1 sequence=296 RECID=50 STAMP=929230253

input archived log thread=1 sequence=297 RECID=51 STAMP=929308207

input archived log thread=1 sequence=298 RECID=52 STAMP=929308547

input archived log thread=1 sequence=299 RECID=53 STAMP=929452387


input archived log thread=1 sequence=300 RECID=54 STAMP=929452388

input archived log thread=1 sequence=301 RECID=55 STAMP=929452390

input archived log thread=1 sequence=302 RECID=56 STAMP=929452390

input archived log thread=1 sequence=303 RECID=57 STAMP=929452411

channel ORA_DISK_1: starting piece 1 at 01-DEC-16

channel ORA_DISK_1: finished piece 1 at 01-DEC-16

piece handle=/oradata/CDB2/arch/backup_25rmckbs_1_1
tag=TAG20161201T131332 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03

Finished backup at 01-DEC-16

Starting backup at 01-DEC-16

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=00005 name=/oradata/CDB2/undotbs01.dbf

input datafile file number=00003 name=/oradata/CDB2/sysaux01.dbf

input datafile file number=00001 name=/oradata/CDB2/system01.dbf

input datafile file number=00006 name=/oradata/CDB2/users01.dbf

channel ORA_DISK_1: starting piece 1 at 01-DEC-16

channel ORA_DISK_1: finished piece 1 at 01-DEC-16

piece handle=/oradata/CDB2/arch/backup_26rmckbv_1_1
tag=TAG20161201T131335 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:35

channel ORA_DISK_1: starting full datafile backup set

channel ORA_DISK_1: specifying datafile(s) in backup set

input datafile file number=00007 name=/oradata/UPGR/system01.dbf

input datafile file number=00010 name=/tmp/aq01.dbf

input datafile file number=00008 name=/oradata/UPGR/sysaux01.dbf


input datafile file number=00009 name=/oradata/UPGR/users01.dbf

channel ORA_DISK_1: starting piece 1 at 01-DEC-16

channel ORA_DISK_1: finished piece 1 at 01-DEC-16

piece handle=/oradata/CDB2/arch/backup_27rmckd2_1_1
tag=TAG20161201T131335 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15

channel ORA_DISK_1: starting full datafile backup set

channel ORA_DISK_1: specifying datafile(s) in backup set

input datafile file number=00012


name=/oradata/CDB2/pdb2/sysaux01.dbf

input datafile file number=00011


name=/oradata/CDB2/pdb2/system01.dbf

input datafile file number=00013 name=/oradata/CDB2/pdb2/users01.dbf

channel ORA_DISK_1: starting piece 1 at 01-DEC-16

channel ORA_DISK_1: finished piece 1 at 01-DEC-16

piece handle=/oradata/CDB2/arch/backup_28rmckdi_1_1
tag=TAG20161201T131335 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15

channel ORA_DISK_1: starting full datafile backup set

channel ORA_DISK_1: specifying datafile(s) in backup set

input datafile file number=00004


name=/oradata/CDB2/pdbseed/sysaux01.dbf

input datafile file number=00002


name=/oradata/CDB2/pdbseed/system01.dbf

channel ORA_DISK_1: starting piece 1 at 01-DEC-16

channel ORA_DISK_1: finished piece 1 at 01-DEC-16

piece handle=/oradata/CDB2/arch/backup_29rmcke1_1_1
tag=TAG20161201T131335 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15

channel ORA_DISK_1: starting full datafile backup set

channel ORA_DISK_1: specifying datafile(s) in backup set


input datafile file number=00014
name=/oradata/CDB2/pdb3/system01.dbf

input datafile file number=00015


name=/oradata/CDB2/pdb3/sysaux01.dbf

channel ORA_DISK_1: starting piece 1 at 01-DEC-16

channel ORA_DISK_1: finished piece 1 at 01-DEC-16

piece handle=/oradata/CDB2/arch/backup_2armckeg_1_1
tag=TAG20161201T131335 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:15

Finished backup at 01-DEC-16

Starting backup at 01-DEC-16

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=304 RECID=58 STAMP=929452511

channel ORA_DISK_1: starting piece 1 at 01-DEC-16

channel ORA_DISK_1: finished piece 1 at 01-DEC-16

piece handle=/oradata/CDB2/arch/backup_2brmckev_1_1
tag=TAG20161201T131511 comment=NONE

channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01

Finished backup at 01-DEC-16

Starting Control File and SPFILE Autobackup at 01-DEC-16

piece handle=/u01/app/oracle/product/12.1.0.2/dbs/c-600824249-
20161201-00 comment=NONE

Finished Control File and SPFILE Autobackup at 01-DEC-16

RMAN> exit

Recovery Manager complete.


4. Drop the table
Make sure you are in the right environment, drop the table, take a note of the time.
SQL> alter session set container=pdb2

  2  /

Session altered.

SQL> desc example.test_restore

 Name   Null?    Type

 ------ -------- ----------------------------

 COL1            NUMBER

SQL> / 

Session altered.

SQL> select * from example.test_restore

  2  /

      COL1

----------

         1

SQL> select sysdate from dual; 

SYSDATE

-------------------

01-12-2016 17:17:21

SQL> drop table example.test_restore

  2  /

Table dropped.
5. Restore the Table
This script will do a point in time, but you can also restore to an SCN, or to a sequence number.
run {

recover table example.test_restore of pluggable database PDB2

until time "to_date('12-01-2016 17:16:00','mm/dd/yyyy hh24:mi:ss')"

auxiliary destination '/oradata/CDB2/aux'

;
}

$ rman target /

Recovery Manager: Release 12.1.0.2.0 - Production on Thu Dec 1


17:18:47 2016

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

connected to target database: CDB2 (DBID=600824249)

RMAN>

RMAN> run {

recover table example.test_restore of pluggable database PDB2

until time "to_date('12-01-2016 17:16:00','mm/dd/yyyy hh24:mi:ss')"

auxiliary destination '/oradata/CDB2/aux'

Starting recover at 01-DEC-16

using target database control file instead of recovery catalog

current log archived

allocated channel: ORA_DISK_1

channel ORA_DISK_1: SID=22 device type=DISK

RMAN-05026: WARNING: presuming following set of tablespaces applies


to specified Point-in-Time

List of tablespaces expected to have UNDO segments

Tablespace SYSTEM

Tablespace UNDOTBS1

Creating automatic instance, with SID='zuao'

initialization parameters used for automatic instance:

db_name=CDB2

db_unique_name=zuao_pitr_PDB2_CDB2

compatible=12.1.0.2.0
db_block_size=8192

db_files=200

diagnostic_dest=/oradata

_system_trig_enabled=FALSE

sga_target=1000M

processes=200

db_create_file_dest=/oradata/CDB2/aux

log_archive_dest_1='location=/oradata/CDB2/aux'

enable_pluggable_database=true

_clone_one_pdb_recovery=true

#No auxiliary parameter file used

starting up automatic instance CDB2

Oracle instance started

Total System Global Area    1048576000 bytes

Fixed Size                     2932336 bytes

Variable Size                276824464 bytes

Database Buffers             763363328 bytes

Redo Buffers                   5455872 bytes

Automatic instance created

contents of Memory Script:

# set requested point in time

set until  time "to_date('12-01-2016 17:16:00','mm/dd/yyyy


hh24:mi:ss')";

# restore the controlfile

restore clone controlfile;


# mount the controlfile

sql clone 'alter database mount clone database';

# archive current online log

sql 'alter system archive log current';

executing Memory Script

executing command: SET until clause

Starting restore at 01-DEC-16

allocated channel: ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: SID=12 device type=DISK

channel ORA_AUX_DISK_1: starting datafile backup set restore

channel ORA_AUX_DISK_1: restoring control file

channel ORA_AUX_DISK_1: reading from backup piece


/u01/app/oracle/product/12.1.0.2/dbs/c-600824249-20161201-01

channel ORA_AUX_DISK_1: piece


handle=/u01/app/oracle/product/12.1.0.2/dbs/c-600824249-20161201-01
tag=TAG20161201T171310

channel ORA_AUX_DISK_1: restored backup piece 1

channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01

output file
name=/oradata/CDB2/aux/CDB2/controlfile/o1_mf_d40pzfbo_.ctl

Finished restore at 01-DEC-16

sql statement: alter database mount clone database

sql statement: alter system archive log current

contents of Memory Script:

# set requested point in time


set until  time "to_date('12-01-2016 17:16:00','mm/dd/yyyy
hh24:mi:ss')";

# set destinations for recovery set and auxiliary set datafiles

set newname for clone datafile  1 to new;

set newname for clone datafile  5 to new;

set newname for clone datafile  3 to new;

set newname for clone datafile  11 to new;

set newname for clone datafile  12 to new;

set newname for clone tempfile  1 to new;

set newname for clone tempfile  4 to new;

# switch all tempfiles

switch clone tempfile all;

# restore the tablespaces in the recovery set and the auxiliary set

restore clone datafile  1, 5, 3, 11, 12;

switch clone datafile all;

executing Memory Script

executing command: SET until clause

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

renamed tempfile 1 to /oradata/CDB2/aux/CDB2/datafile/o1_mf_temp_


%u_.tmp in control file

renamed tempfile 4 to /oradata/CDB2/aux/CDB2/datafile/o1_mf_temp_


%u_.tmp in control file
Starting restore at 01-DEC-16

using channel ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: starting datafile backup set restore

channel ORA_AUX_DISK_1: specifying datafile(s) to restore from


backup set

channel ORA_AUX_DISK_1: restoring datafile 00001 to


/oradata/CDB2/aux/CDB2/datafile/o1_mf_system_%u_.dbf

channel ORA_AUX_DISK_1: restoring datafile 00005 to


/oradata/CDB2/aux/CDB2/datafile/o1_mf_undotbs1_%u_.dbf

channel ORA_AUX_DISK_1: restoring datafile 00003 to


/oradata/CDB2/aux/CDB2/datafile/o1_mf_sysaux_%u_.dbf

channel ORA_AUX_DISK_1: reading from backup piece


/oradata/CDB2/arch/backup_2ermd29r_1_1

channel ORA_AUX_DISK_1: piece


handle=/oradata/CDB2/arch/backup_2ermd29r_1_1 tag=TAG20161201T171123

channel ORA_AUX_DISK_1: restored backup piece 1

channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:45

channel ORA_AUX_DISK_1: starting datafile backup set restore

channel ORA_AUX_DISK_1: specifying datafile(s) to restore from


backup set

channel ORA_AUX_DISK_1: restoring datafile 00011 to


/oradata/CDB2/aux/CDB2/datafile/o1_mf_system_%u_.dbf

channel ORA_AUX_DISK_1: restoring datafile 00012 to


/oradata/CDB2/aux/CDB2/datafile/o1_mf_sysaux_%u_.dbf

channel ORA_AUX_DISK_1: reading from backup piece


/oradata/CDB2/arch/backup_2grmd2bn_1_1

channel ORA_AUX_DISK_1: piece


handle=/oradata/CDB2/arch/backup_2grmd2bn_1_1 tag=TAG20161201T171123

channel ORA_AUX_DISK_1: restored backup piece 1

channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:15

Finished restore at 01-DEC-16

datafile 1 switched to datafile copy


input datafile copy RECID=6 STAMP=929467311 file
name=/oradata/CDB2/aux/CDB2/datafile/o1_mf_system_d40pzm5q_.dbf

datafile 5 switched to datafile copy

input datafile copy RECID=7 STAMP=929467311 file


name=/oradata/CDB2/aux/CDB2/datafile/o1_mf_undotbs1_d40pzm58_.dbf

datafile 3 switched to datafile copy

input datafile copy RECID=8 STAMP=929467311 file


name=/oradata/CDB2/aux/CDB2/datafile/o1_mf_sysaux_d40pzm5l_.dbf

datafile 11 switched to datafile copy

input datafile copy RECID=9 STAMP=929467311 file


name=/oradata/CDB2/aux/CDB2/datafile/o1_mf_system_d40q108w_.dbf

datafile 12 switched to datafile copy

input datafile copy RECID=10 STAMP=929467311 file


name=/oradata/CDB2/aux/CDB2/datafile/o1_mf_sysaux_d40q108l_.dbf

contents of Memory Script:

# set requested point in time

set until  time "to_date('12-01-2016 17:16:00','mm/dd/yyyy


hh24:mi:ss')";

# online the datafiles restored or switched

sql clone "alter database datafile  1 online";

sql clone "alter database datafile  5 online";

sql clone "alter database datafile  3 online";

sql clone 'PDB2' "alter database datafile

 11 online";

sql clone 'PDB2' "alter database datafile

 12 online";

# recover and open database read only

recover clone database tablespace  "SYSTEM", "UNDOTBS1", "SYSAUX",


"PDB2":"SYSTEM", "PDB2":"SYSAUX";

sql clone 'alter database open read only';


}

executing Memory Script

executing command: SET until clause

sql statement: alter database datafile  1 online

sql statement: alter database datafile  5 online

sql statement: alter database datafile  3 online

sql statement: alter database datafile  11 online

sql statement: alter database datafile  12 online

Starting recover at 01-DEC-16

using channel ORA_AUX_DISK_1

starting media recovery

archived log for thread 1 with sequence 339 is already on disk as


file /oradata/CDB2/arch/1_339_853777209.dbf

archived log for thread 1 with sequence 340 is already on disk as


file /oradata/CDB2/arch/1_340_853777209.dbf

archived log file name=/oradata/CDB2/arch/1_339_853777209.dbf


thread=1 sequence=339

archived log file name=/oradata/CDB2/arch/1_340_853777209.dbf


thread=1 sequence=340

media recovery complete, elapsed time: 00:00:00

Finished recover at 01-DEC-16

sql statement: alter database open read only

contents of Memory Script:

sql clone 'alter pluggable database  PDB2 open read only';

executing Memory Script


sql statement: alter pluggable database  PDB2 open read only

contents of Memory Script:

   sql clone "create spfile from memory";

   shutdown clone immediate;

   startup clone nomount;

   sql clone "alter system set  control_files =

  ''/oradata/CDB2/aux/CDB2/controlfile/o1_mf_d40pzfbo_.ctl''
comment=

 ''RMAN set'' scope=spfile";

   shutdown clone immediate;

   startup clone nomount;

# mount database

sql clone 'alter database mount clone database';

executing Memory Script

sql statement: create spfile from memory

database closed

database dismounted

Oracle instance shut down

connected to auxiliary database (not started)

Oracle instance started

Total System Global Area    1048576000 bytes

Fixed Size                     2932336 bytes

Variable Size                276824464 bytes


Database Buffers             763363328 bytes

Redo Buffers                   5455872 bytes

sql statement: alter system set  control_files =  


''/oradata/CDB2/aux/CDB2/controlfile/o1_mf_d40pzfbo_.ctl'' comment=
''RMAN set'' scope=spfile

Oracle instance shut down

connected to auxiliary database (not started)

Oracle instance started

Total System Global Area    1048576000 bytes

Fixed Size                     2932336 bytes

Variable Size                276824464 bytes

Database Buffers             763363328 bytes

Redo Buffers                   5455872 bytes

sql statement: alter database mount clone database

contents of Memory Script:

# set requested point in time

set until  time "to_date('12-01-2016 17:16:00','mm/dd/yyyy


hh24:mi:ss')";

# set destinations for recovery set and auxiliary set datafiles

set newname for datafile  13 to new;

# restore the tablespaces in the recovery set and the auxiliary set

restore clone datafile  13;

switch clone datafile all;

executing Memory Script


executing command: SET until clause

executing command: SET NEWNAME

Starting restore at 01-DEC-16

allocated channel: ORA_AUX_DISK_1

channel ORA_AUX_DISK_1: SID=12 device type=DISK

channel ORA_AUX_DISK_1: starting datafile backup set restore

channel ORA_AUX_DISK_1: specifying datafile(s) to restore from


backup set

channel ORA_AUX_DISK_1: restoring datafile 00013 to


/oradata/CDB2/aux/ZUAO_PITR_PDB2_CDB2/datafile/o1_mf_users_%u_.dbf

channel ORA_AUX_DISK_1: reading from backup piece


/oradata/CDB2/arch/backup_2grmd2bn_1_1

channel ORA_AUX_DISK_1: piece


handle=/oradata/CDB2/arch/backup_2grmd2bn_1_1 tag=TAG20161201T171123

channel ORA_AUX_DISK_1: restored backup piece 1

channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01

Finished restore at 01-DEC-16

datafile 13 switched to datafile copy

input datafile copy RECID=12 STAMP=929467360 file


name=/oradata/CDB2/aux/ZUAO_PITR_PDB2_CDB2/datafile/o1_mf_users_d40q
2yz2_.dbf

contents of Memory Script:

# set requested point in time

set until  time "to_date('12-01-2016 17:16:00','mm/dd/yyyy


hh24:mi:ss')";

# online the datafiles restored or switched

sql clone 'PDB2' "alter database datafile


 13 online";

# recover and open resetlogs

recover clone database tablespace  "PDB2":"USERS", "SYSTEM",


"UNDOTBS1", "SYSAUX", "PDB2":"SYSTEM", "PDB2":"SYSAUX" delete
archivelog;

alter clone database open resetlogs;

executing Memory Script

executing command: SET until clause

sql statement: alter database datafile  13 online

Starting recover at 01-DEC-16

using channel ORA_AUX_DISK_1

starting media recovery

archived log for thread 1 with sequence 339 is already on disk as


file /oradata/CDB2/arch/1_339_853777209.dbf

archived log for thread 1 with sequence 340 is already on disk as


file /oradata/CDB2/arch/1_340_853777209.dbf

archived log file name=/oradata/CDB2/arch/1_339_853777209.dbf


thread=1 sequence=339

archived log file name=/oradata/CDB2/arch/1_340_853777209.dbf


thread=1 sequence=340

media recovery complete, elapsed time: 00:00:01

Finished recover at 01-DEC-16

database opened

contents of Memory Script:

sql clone 'alter pluggable database  PDB2 open';

}
executing Memory Script

sql statement: alter pluggable database  PDB2 open

contents of Memory Script:

# create directory for datapump import

sql 'PDB2' "create or replace directory

TSPITR_DIROBJ_DPDIR as ''

/oradata/CDB2/aux''";

# create directory for datapump export

sql clone 'PDB2' "create or replace directory

TSPITR_DIROBJ_DPDIR as ''

/oradata/CDB2/aux''";

executing Memory Script

sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as


''/oradata/CDB2/aux''

sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as


''/oradata/CDB2/aux''

Performing export of tables...

   EXPDP> Starting "SYS"."TSPITR_EXP_zuao_ymhe":

   EXPDP> Estimate in progress using BLOCKS method...

   EXPDP> Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

   EXPDP> Total estimation using BLOCKS method: 64 KB

   EXPDP> Processing object type TABLE_EXPORT/TABLE/TABLE

   EXPDP> Processing object type


TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
   EXPDP> Processing object type
TABLE_EXPORT/TABLE/STATISTICS/MARKER

   EXPDP> . . exported "EXAMPLE"."TEST_RESTORE"                   


5.101 KB       5 rows

   EXPDP> Master table "SYS"."TSPITR_EXP_zuao_ymhe" successfully


loaded/unloaded

   EXPDP>
********************************************************************
**********

   EXPDP> Dump file set for SYS.TSPITR_EXP_zuao_ymhe is:

   EXPDP>   /oradata/CDB2/aux/tspitr_zuao_32949.dmp

   EXPDP> Job "SYS"."TSPITR_EXP_zuao_ymhe" successfully completed at


Thu Dec 1 17:23:10 2016 elapsed 0 00:00:19

Export completed

contents of Memory Script:

# shutdown clone before import

shutdown clone abort

executing Memory Script

Oracle instance shut down

Performing import of tables...

   IMPDP> Master table "SYS"."TSPITR_IMP_zuao_Cqnj" successfully


loaded/unloaded

   IMPDP> Starting "SYS"."TSPITR_IMP_zuao_Cqnj":

   IMPDP> Processing object type TABLE_EXPORT/TABLE/TABLE

   IMPDP> Processing object type TABLE_EXPORT/TABLE/TABLE_DATA

   IMPDP> . . imported "EXAMPLE"."TEST_RESTORE"                   


5.101 KB       5 rows

   IMPDP> Processing object type


TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS

   IMPDP> Processing object type


TABLE_EXPORT/TABLE/STATISTICS/MARKER
   IMPDP> Job "SYS"."TSPITR_IMP_zuao_Cqnj" successfully completed at
Thu Dec 1 17:23:18 2016 elapsed 0 00:00:03

Import completed

Removing automatic instance

Automatic instance removed

auxiliary instance file


/oradata/CDB2/aux/CDB2/datafile/o1_mf_temp_d40q1llw_.tmp deleted

auxiliary instance file


/oradata/CDB2/aux/CDB2/datafile/o1_mf_temp_d40q1k5g_.tmp deleted

auxiliary instance file


/oradata/CDB2/aux/ZUAO_PITR_PDB2_CDB2/onlinelog/o1_mf_3_d40q32mo_.lo
g deleted

auxiliary instance file


/oradata/CDB2/aux/ZUAO_PITR_PDB2_CDB2/onlinelog/o1_mf_2_d40q31v7_.lo
g deleted

auxiliary instance file


/oradata/CDB2/aux/ZUAO_PITR_PDB2_CDB2/onlinelog/o1_mf_1_d40q314c_.lo
g deleted

auxiliary instance file


/oradata/CDB2/aux/ZUAO_PITR_PDB2_CDB2/datafile/o1_mf_users_d40q2yz2_
.dbf deleted

auxiliary instance file


/oradata/CDB2/aux/CDB2/datafile/o1_mf_sysaux_d40q108l_.dbf deleted

auxiliary instance file


/oradata/CDB2/aux/CDB2/datafile/o1_mf_system_d40q108w_.dbf deleted

auxiliary instance file


/oradata/CDB2/aux/CDB2/datafile/o1_mf_sysaux_d40pzm5l_.dbf deleted

auxiliary instance file


/oradata/CDB2/aux/CDB2/datafile/o1_mf_undotbs1_d40pzm58_.dbf deleted

auxiliary instance file


/oradata/CDB2/aux/CDB2/datafile/o1_mf_system_d40pzm5q_.dbf deleted

auxiliary instance file


/oradata/CDB2/aux/CDB2/controlfile/o1_mf_d40pzfbo_.ctl deleted

auxiliary instance file tspitr_zuao_32949.dmp deleted

Finished recover at 01-DEC-16

RMAN>
6. Check that the table has been restored
SQL> alter session set container=PDB2

  2  /

Session altered.

SQL> select * from example.test_restore

  2  /

      COL1

----------

         1

You might also like