12C新特性:使用RMAN恢复表或表分区

实验目的:模拟误删除表t_whs,然后使用12C新特性,rman恢复表到t_whs1。该情景比较贴合真实情况下的需求。

1、备份数据库

[oracle@cat1 ~]$ rman target /

Recovery Manager: Release 19.0.0.0.0 - Production on Thu Dec 3 11:57:11 2020
Version 19.3.0.0.0

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

connected to target database: WHS1 (DBID=2406852607)

RMAN> backup as compressed backupset  incremental level=0  database format '/rmanbackup/rman0_%d_%s_%T' tag='level0' plus archivelog;

Starting backup at 03-DEC-20
current log archived
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=285 instance=whs11 device type=DISK
channel ORA_DISK_1: starting compressed archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
。。。。。。。
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 03-DEC-20

Starting Control File and SPFILE Autobackup at 03-DEC-20
piece handle=/u01/app/oracle/product/19.3.0/db_1/dbs/c-2406852607-20201203-01 comment=NONE
Finished Control File and SPFILE Autobackup at 03-DEC-20

2、创建表

[oracle@cat1 ~]$ sqlplus test/test@PDB1_WHS

SQL*Plus: Release 19.0.0.0.0 - Production on Thu Dec 3 15:24:02 2020
Version 19.3.0.0.0

Copyright (c) 1982, 2019, Oracle.  All rights reserved.

Last Successful login time: Thu Dec 03 2020 10:54:34 +08:00

Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.3.0.0.0

SQL> CREATE TABLE t_whs (ID number, WNAME varchar2(10));

Table created.

SQL> begin                             
  2  for i in 0 .. 49 loop             
  3  insert into t_whs values(i,'whs');
  4  end loop ;                        
  5  commit;                           
  6  end;                              
  7  /                                 

PL/SQL procedure successfully completed.

SQL> 

SQL> alter session set nls_date_format='yyyy-mm-dd hh24:mi:ss';

Session altered.

SQL>  select sysdate from dual;

SYSDATE
-------------------
2020-12-03 15:28:04     《===时间点

SQL> drop table t_whs;

Table dropped.

SQL> 

3、恢复表到t_whs1

以下的内容比较多,其实就一条命令

RMAN> run{
2> RECOVER TABLE "TEST"."T_WHS" of pluggable database PDB1_WHS
3> until time "to_date('2020-12-03 15:28:04','yyyy-mm-dd hh24:mi:ss')"
4> auxiliary destination '/tmp/auxi'
5> datapump destination '/tmp/dump'
6> REMAP TABLE "TEST"."T_WHS":"T_WHS1";
7> }

Starting recover at 03-DEC-20
using channel ORA_DISK_1
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 PDB1_WHS:SYSTEM
Tablespace UNDOTBS1
Tablespace PDB1_WHS:UNDOTBS1
Tablespace UNDOTBS2
Tablespace PDB1_WHS:UNDO_2

Creating automatic instance, with SID='BlFk'

initialization parameters used for automatic instance:
db_name=WHS1
db_unique_name=BlFk_pitr_PDB1_WHS_WHS1
compatible=19.0.0
db_block_size=8192
db_files=200
diagnostic_dest=/u01/app/oracle
_system_trig_enabled=FALSE
sga_target=2688M
processes=200
db_create_file_dest=/tmp/auxi
log_archive_dest_1='location=/tmp/auxi'
enable_pluggable_database=true
_clone_one_pdb_recovery=true
#No auxiliary parameter file used

starting up automatic instance WHS1

Oracle instance started

Total System Global Area    2818568608 bytes

Fixed Size                     9138592 bytes
Variable Size                587202560 bytes
Database Buffers            2214592512 bytes
Redo Buffers                   7634944 bytes
Automatic instance created

contents of Memory Script:
{
# set requested point in time
set until  time "to_date('2020-12-03 15:28:04','yyyy-mm-dd 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 03-DEC-20
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=175 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/19.3.0/db_1/dbs/c-2406852607-20201203-01
channel ORA_AUX_DISK_1: piece handle=/u01/app/oracle/product/19.3.0/db_1/dbs/c-2406852607-20201203-01 tag=TAG20201203T115949
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:01
output file name=/tmp/auxi/WHS1/controlfile/o1_mf_hwk87ln2_.ctl
Finished restore at 03-DEC-20

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('2020-12-03 15:28:04','yyyy-mm-dd 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  10 to new;
set newname for clone datafile  4 to new;
set newname for clone datafile  12 to new;
set newname for clone datafile  9 to new;
set newname for clone datafile  13 to new;
set newname for clone datafile  3 to new;
set newname for clone datafile  11 to new;
set newname for clone tempfile  2 to new;
set newname for clone tempfile  3 to new;
# switch all tempfiles
switch clone tempfile all;
# restore the tablespaces in the recovery set and the auxiliary set
restore clone datafile  1, 10, 4, 12, 9, 13, 3, 11;

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

executing command: SET NEWNAME

executing command: SET NEWNAME

executing command: SET NEWNAME

renamed tempfile 2 to /tmp/auxi/WHS1/datafile/o1_mf_temp_%u_.tmp in control file
renamed tempfile 3 to /tmp/auxi/WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_temp_%u_.tmp in control file

Starting restore at 03-DEC-20
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 /tmp/auxi/WHS1/datafile/o1_mf_system_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00004 to /tmp/auxi/WHS1/datafile/o1_mf_undotbs1_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00009 to /tmp/auxi/WHS1/datafile/o1_mf_undotbs2_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00003 to /tmp/auxi/WHS1/datafile/o1_mf_sysaux_%u_.dbf
channel ORA_AUX_DISK_1: reading from backup piece /rmanbackup/rman0_WHS1_21_20201203
channel ORA_AUX_DISK_1: piece handle=/rmanbackup/rman0_WHS1_21_20201203 tag=LEVEL0
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 00010 to /tmp/auxi/WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_system_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00012 to /tmp/auxi/WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_undotbs1_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00013 to /tmp/auxi/WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_undo_2_%u_.dbf
channel ORA_AUX_DISK_1: restoring datafile 00011 to /tmp/auxi/WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_sysaux_%u_.dbf
channel ORA_AUX_DISK_1: reading from backup piece /rmanbackup/rman0_WHS1_22_20201203
channel ORA_AUX_DISK_1: piece handle=/rmanbackup/rman0_WHS1_22_20201203 tag=LEVEL0
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:15
Finished restore at 03-DEC-20

datafile 1 switched to datafile copy
input datafile copy RECID=9 STAMP=1058199988 file name=/tmp/auxi/WHS1/datafile/o1_mf_system_hwk87rp5_.dbf
datafile 10 switched to datafile copy
input datafile copy RECID=10 STAMP=1058199988 file name=/tmp/auxi/WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_system_hwk895qq_.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=11 STAMP=1058199988 file name=/tmp/auxi/WHS1/datafile/o1_mf_undotbs1_hwk87rpv_.dbf
datafile 12 switched to datafile copy
input datafile copy RECID=12 STAMP=1058199988 file name=/tmp/auxi/WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_undotbs1_hwk895r1_.dbf
datafile 9 switched to datafile copy
input datafile copy RECID=13 STAMP=1058199988 file name=/tmp/auxi/WHS1/datafile/o1_mf_undotbs2_hwk87rpw_.dbf
datafile 13 switched to datafile copy
input datafile copy RECID=14 STAMP=1058199988 file name=/tmp/auxi/WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_undo_2_hwk895r2_.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=15 STAMP=1058199988 file name=/tmp/auxi/WHS1/datafile/o1_mf_sysaux_hwk87rp6_.dbf
datafile 11 switched to datafile copy
input datafile copy RECID=16 STAMP=1058199988 file name=/tmp/auxi/WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_sysaux_hwk895qo_.dbf

contents of Memory Script:
{
# set requested point in time
set until  time "to_date('2020-12-03 15:28:04','yyyy-mm-dd hh24:mi:ss')";
# online the datafiles restored or switched
sql clone "alter database datafile  1 online";
sql clone 'PDB1_WHS' "alter database datafile 
 10 online";
sql clone "alter database datafile  4 online";
sql clone 'PDB1_WHS' "alter database datafile 
 12 online";
sql clone "alter database datafile  9 online";
sql clone 'PDB1_WHS' "alter database datafile 
 13 online";
sql clone "alter database datafile  3 online";
sql clone 'PDB1_WHS' "alter database datafile 
 11 online";
# recover and open database read only
recover clone database tablespace  "SYSTEM", "PDB1_WHS":"SYSTEM", "UNDOTBS1", "PDB1_WHS":"UNDOTBS1", "UNDOTBS2", "PDB1_WHS":"UNDO_2", "SYSAUX", "PDB1_WHS":"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  10 online

sql statement: alter database datafile  4 online

sql statement: alter database datafile  12 online

sql statement: alter database datafile  9 online

sql statement: alter database datafile  13 online

sql statement: alter database datafile  3 online

sql statement: alter database datafile  11 online

Starting recover at 03-DEC-20
using channel ORA_AUX_DISK_1

starting media recovery

archived log for thread 1 with sequence 11 is already on disk as file +DATA1/WHS1/ARCHIVELOG/2020_12_03/thread_1_seq_11.311.1058183989
archived log for thread 1 with sequence 12 is already on disk as file +DATA1/WHS1/ARCHIVELOG/2020_12_03/thread_1_seq_12.312.1058199535
archived log file name=+DATA1/WHS1/ARCHIVELOG/2020_12_03/thread_1_seq_11.311.1058183989 thread=1 sequence=11
archived log file name=+DATA1/WHS1/ARCHIVELOG/2020_12_03/thread_1_seq_12.312.1058199535 thread=1 sequence=12
media recovery complete, elapsed time: 00:00:02
Finished recover at 03-DEC-20

sql statement: alter database open read only

contents of Memory Script:
{
sql clone 'alter pluggable database  PDB1_WHS open read only';
}
executing Memory Script

sql statement: alter pluggable database  PDB1_WHS 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 = 
  ''/tmp/auxi/WHS1/controlfile/o1_mf_hwk87ln2_.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    2818568608 bytes

Fixed Size                     9138592 bytes
Variable Size                587202560 bytes
Database Buffers            2214592512 bytes
Redo Buffers                   7634944 bytes

sql statement: alter system set  control_files =   ''/tmp/auxi/WHS1/controlfile/o1_mf_hwk87ln2_.ctl'' comment= ''RMAN set'' scope=spfile

Oracle instance shut down

connected to auxiliary database (not started)
Oracle instance started

Total System Global Area    2818568608 bytes

Fixed Size                     9138592 bytes
Variable Size                587202560 bytes
Database Buffers            2214592512 bytes
Redo Buffers                   7634944 bytes

sql statement: alter database mount clone database

contents of Memory Script:
{
# set requested point in time
set until  time "to_date('2020-12-03 15:28:04','yyyy-mm-dd hh24:mi:ss')";
# set destinations for recovery set and auxiliary set datafiles
set newname for datafile  14 to new;
# restore the tablespaces in the recovery set and the auxiliary set
restore clone datafile  14;

switch clone datafile all;
}
executing Memory Script

executing command: SET until clause

executing command: SET NEWNAME

Starting restore at 03-DEC-20
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=14 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 00014 to /tmp/auxi/BLFK_PITR_PDB1_WHS_WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_users_%u_.dbf
channel ORA_AUX_DISK_1: reading from backup piece /rmanbackup/rman0_WHS1_22_20201203
channel ORA_AUX_DISK_1: piece handle=/rmanbackup/rman0_WHS1_22_20201203 tag=LEVEL0
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03
Finished restore at 03-DEC-20

datafile 14 switched to datafile copy
input datafile copy RECID=18 STAMP=1058200082 file name=/tmp/auxi/BLFK_PITR_PDB1_WHS_WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_users_hwk8dhhq_.dbf

contents of Memory Script:
{
# set requested point in time
set until  time "to_date('2020-12-03 15:28:04','yyyy-mm-dd hh24:mi:ss')";
# online the datafiles restored or switched
sql clone 'PDB1_WHS' "alter database datafile 
 14 online";
# recover and open resetlogs
recover clone database tablespace  "PDB1_WHS":"USERS", "SYSTEM", "PDB1_WHS":"SYSTEM", "UNDOTBS1", "PDB1_WHS":"UNDOTBS1", "UNDOTBS2", "PDB1_WHS":"UNDO_2", "SYSAUX", "PDB1_WHS":"SYSAUX" delete archivelog;
alter clone database open resetlogs;
}
executing Memory Script

executing command: SET until clause

sql statement: alter database datafile  14 online

Starting recover at 03-DEC-20
using channel ORA_AUX_DISK_1

starting media recovery

archived log for thread 1 with sequence 11 is already on disk as file +DATA1/WHS1/ARCHIVELOG/2020_12_03/thread_1_seq_11.311.1058183989
archived log for thread 1 with sequence 12 is already on disk as file +DATA1/WHS1/ARCHIVELOG/2020_12_03/thread_1_seq_12.312.1058199535
archived log file name=+DATA1/WHS1/ARCHIVELOG/2020_12_03/thread_1_seq_11.311.1058183989 thread=1 sequence=11
archived log file name=+DATA1/WHS1/ARCHIVELOG/2020_12_03/thread_1_seq_12.312.1058199535 thread=1 sequence=12
media recovery complete, elapsed time: 00:00:00
Finished recover at 03-DEC-20

database opened

contents of Memory Script:
{
sql clone 'alter pluggable database  PDB1_WHS open';
}
executing Memory Script

sql statement: alter pluggable database  PDB1_WHS open

contents of Memory Script:
{
# create directory for datapump import
sql 'PDB1_WHS' "create or replace directory 
TSPITR_DIROBJ_DPDIR as ''
/tmp/dump''";
# create directory for datapump export
sql clone 'PDB1_WHS' "create or replace directory 
TSPITR_DIROBJ_DPDIR as ''
/tmp/dump''";
}
executing Memory Script

sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/tmp/dump''

sql statement: create or replace directory TSPITR_DIROBJ_DPDIR as ''/tmp/dump''

Performing export of tables...
   EXPDP> Starting "SYS"."TSPITR_EXP_BlFk_yDEv":  
   EXPDP> Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
   EXPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
   EXPDP> Processing object type TABLE_EXPORT/TABLE/TABLE
   EXPDP> . . exported "TEST"."T_WHS"                                  6 KB      50 rows
   EXPDP> Master table "SYS"."TSPITR_EXP_BlFk_yDEv" successfully loaded/unloaded
   EXPDP> ******************************************************************************
   EXPDP> Dump file set for SYS.TSPITR_EXP_BlFk_yDEv is:
   EXPDP>   /tmp/dump/tspitr_BlFk_21865.dmp
   EXPDP> Job "SYS"."TSPITR_EXP_BlFk_yDEv" successfully completed at Thu Dec 3 16:28:26 2020 elapsed 0 00:00:12
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_BlFk_umfm" successfully loaded/unloaded
   IMPDP> Starting "SYS"."TSPITR_IMP_BlFk_umfm":  
   IMPDP> Processing object type TABLE_EXPORT/TABLE/TABLE
   IMPDP> Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
   IMPDP> . . imported "TEST"."T_WHS1"                                 6 KB      50 rows
   IMPDP> Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
   IMPDP> Job "SYS"."TSPITR_IMP_BlFk_umfm" successfully completed at Thu Dec 3 16:28:35 2020 elapsed 0 00:00:03
Import completed

Removing automatic instance
Automatic instance removed
auxiliary instance file /tmp/auxi/WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_temp_hwk89yo6_.tmp deleted
auxiliary instance file /tmp/auxi/WHS1/datafile/o1_mf_temp_hwk89xfx_.tmp deleted
auxiliary instance file /tmp/auxi/BLFK_PITR_PDB1_WHS_WHS1/onlinelog/o1_mf_2_hwk8dnrt_.log deleted
auxiliary instance file /tmp/auxi/BLFK_PITR_PDB1_WHS_WHS1/onlinelog/o1_mf_1_hwk8dnrg_.log deleted
auxiliary instance file /tmp/auxi/BLFK_PITR_PDB1_WHS_WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_users_hwk8dhhq_.dbf deleted
auxiliary instance file /tmp/auxi/WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_sysaux_hwk895qo_.dbf deleted
auxiliary instance file /tmp/auxi/WHS1/datafile/o1_mf_sysaux_hwk87rp6_.dbf deleted
auxiliary instance file /tmp/auxi/WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_undo_2_hwk895r2_.dbf deleted
auxiliary instance file /tmp/auxi/WHS1/datafile/o1_mf_undotbs2_hwk87rpw_.dbf deleted
auxiliary instance file /tmp/auxi/WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_undotbs1_hwk895r1_.dbf deleted
auxiliary instance file /tmp/auxi/WHS1/datafile/o1_mf_undotbs1_hwk87rpv_.dbf deleted
auxiliary instance file /tmp/auxi/WHS1/B4D31742116320ECE0532900A8C025DC/datafile/o1_mf_system_hwk895qq_.dbf deleted
auxiliary instance file /tmp/auxi/WHS1/datafile/o1_mf_system_hwk87rp5_.dbf deleted
auxiliary instance file /tmp/auxi/WHS1/controlfile/o1_mf_hwk87ln2_.ctl deleted
auxiliary instance file tspitr_BlFk_21865.dmp deleted
Finished recover at 03-DEC-20

RMAN> 

4、验证数据

SQL> select count(*) from test.T_WHS;
select count(*) from test.T_WHS
                          *
ERROR at line 1:
ORA-00942: table or view does not exist

SQL> select count(*) from test.T_WHS1;

  COUNT(*)
----------
        50

5、可能遇到的问题

5.1 RMAN-01009: syntax error: found "test"

如下报错内容。原因是用户名与表名都需要大写并加上""双引号,不然就会报错找不到TEST这个schema

RMAN>  recover table TEST.T_WHS of pluggable database PDB1_WHS until time '2020-12-03 15:28:04'  AUXILIARY DESTINATION '/tmp'  REMAP TABLE TEST.T_WHS:TEST.T_WHS1;

RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "test": expecting one of: "double-quoted-string, identifier, single-quoted-string"
RMAN-01007: at line 1 column 16 file: standard input

5.2报错 RMAN-06136 ORA-01861

是时间格式的问题,修改为until time "to_date('2020-12-03 15:28:04','yyyy-mm-dd hh24:mi:ss')"即可

RMAN> run{
alter session set nls_date_format="yyyy-mm-dd hh24:mi:ss";
2> 3> RECOVER TABLE "TEST"."T_WHS" of pluggable database PDB1_WHS
until time '2020-12-03 15:28:04'
auxiliary destination '/tmp/auxi'
datapump destination '/tmp/dump'
REMAP TABLE "TEST"."T_WHS":"T_WHS1";
}
4> 5> 6> 7> 8> 
Statement processed

Starting recover at 03-DEC-20
using channel ORA_DISK_1
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 PDB1_WHS:SYSTEM
Tablespace UNDOTBS1
Tablespace PDB1_WHS:UNDOTBS1
Tablespace UNDOTBS2
Tablespace PDB1_WHS:UNDO_2

Creating automatic instance, with SID='Cuyu'

initialization parameters used for automatic instance:
db_name=WHS1
db_unique_name=Cuyu_pitr_PDB1_WHS_WHS1
compatible=19.0.0
db_block_size=8192
db_files=200
diagnostic_dest=/u01/app/oracle
_system_trig_enabled=FALSE
sga_target=2688M
processes=200
db_create_file_dest=/tmp/auxi
log_archive_dest_1='location=/tmp/auxi'
enable_pluggable_database=true
_clone_one_pdb_recovery=true
#No auxiliary parameter file used

starting up automatic instance WHS1

Oracle instance started

Total System Global Area    2818568608 bytes

Fixed Size                     9138592 bytes
Variable Size                587202560 bytes
Database Buffers            2214592512 bytes
Redo Buffers                   7634944 bytes
Automatic instance created

Removing automatic instance
shutting down automatic instance 
Oracle instance shut down
Automatic instance removed
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 12/03/2020 16:23:10
RMAN-06136: Oracle error from auxiliary database: ORA-01861: literal does not match format string

Related Posts