SQL> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 PDB READ WRITE NO
4 ABCD MOUNTED
6 ABCD1 MOUNTED
SQL> drop pluggable database abcd including datafiles;
Pluggable database dropped.
SQL> /abcd/abcd1
SP2-0734: unknown command beginning "/abcd/abcd..." - rest of line ignored.
SQL> drop pluggable database abcd1 including datafiles;
Pluggable database dropped.
SQL> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 PDB READ WRITE NO
SQL> backup database plus archivelog tag 'full db backup';
SP2-0734: unknown command beginning "backup dat..." - rest of line ignored.
SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.20.0.0.0
[oracle@rac1 trace]$ rman target /
Recovery Manager: Release 19.0.0.0.0 - Production on Wed Jun 12 23:11:22 2024
Version 19.20.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
connected to target database: CDB (DBID=2265125454)
RMAN> backup database plus archivelog tag 'full db backup';
Starting backup at 12-JUN-24
current log archived
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=99 instance=cdb1 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=14 RECID=45 STAMP=1170607182
input archived log thread=3 sequence=4 RECID=41 STAMP=1170607180
input archived log thread=2 sequence=5 RECID=42 STAMP=1170607180
input archived log thread=2 sequence=6 RECID=43 STAMP=1170607181
input archived log thread=3 sequence=5 RECID=44 STAMP=1170607181
input archived log thread=1 sequence=15 RECID=46 STAMP=1170626557
input archived log thread=1 sequence=16 RECID=49 STAMP=1170583873
input archived log thread=2 sequence=7 RECID=47 STAMP=1170583873
input archived log thread=3 sequence=6 RECID=48 STAMP=1170583873
input archived log thread=3 sequence=7 RECID=50 STAMP=1170583874
input archived log thread=2 sequence=8 RECID=51 STAMP=1170583874
input archived log thread=1 sequence=17 RECID=52 STAMP=1170760649
input archived log thread=1 sequence=18 RECID=53 STAMP=1170774033
input archived log thread=1 sequence=19 RECID=54 STAMP=1170802819
input archived log thread=1 sequence=20 RECID=55 STAMP=1170835223
input archived log thread=1 sequence=21 RECID=56 STAMP=1170883488
input archived log thread=1 sequence=22 RECID=57 STAMP=1170925557
input archived log thread=1 sequence=23 RECID=58 STAMP=1171091307
input archived log thread=1 sequence=24 RECID=59 STAMP=1171238771
input archived log thread=1 sequence=25 RECID=60 STAMP=1171263651
input archived log thread=1 sequence=26 RECID=61 STAMP=1171446866
input archived log thread=1 sequence=27 RECID=62 STAMP=1171494684
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.747.1171451485 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
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=4 RECID=14 STAMP=1170601420
input archived log thread=2 sequence=4 RECID=17 STAMP=1170601420
input archived log thread=1 sequence=5 RECID=15 STAMP=1170601420
input archived log thread=1 sequence=6 RECID=16 STAMP=1170601420
input archived log thread=2 sequence=5 RECID=19 STAMP=1170601420
input archived log thread=3 sequence=4 RECID=18 STAMP=1170601420
input archived log thread=1 sequence=7 RECID=20 STAMP=1170601420
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.748.1171451487 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
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=3 RECID=11 STAMP=1170601419
input archived log thread=2 sequence=2 RECID=9 STAMP=1170601419
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.745.1171451487 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
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=1 RECID=7 STAMP=1170601419
input archived log thread=2 sequence=1 RECID=6 STAMP=1170601419
input archived log thread=3 sequence=1 RECID=4 STAMP=1170601419
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.378.1171451489 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=3 sequence=2 RECID=10 STAMP=1170601419
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.726.1171451489 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
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=2 RECID=8 STAMP=1170601419
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.322.1171451491 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
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=9 RECID=22 STAMP=1170601420
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.340.1171451491 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
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=8 RECID=21 STAMP=1170601420
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.334.1171451493 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
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=1 RECID=23 STAMP=1170561004
input archived log thread=2 sequence=1 RECID=1 STAMP=1170599686
input archived log thread=3 sequence=1 RECID=2 STAMP=1170599686
input archived log thread=1 sequence=2 RECID=24 STAMP=1170561004
input archived log thread=2 sequence=2 RECID=27 STAMP=1170561005
input archived log thread=1 sequence=3 RECID=25 STAMP=1170561005
input archived log thread=1 sequence=4 RECID=26 STAMP=1170561005
input archived log thread=2 sequence=3 RECID=29 STAMP=1170561154
input archived log thread=1 sequence=5 RECID=32 STAMP=1170561155
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.325.1171451493 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=3 sequence=3 RECID=30 STAMP=1170561155
input archived log thread=2 sequence=4 RECID=31 STAMP=1170561155
input archived log thread=1 sequence=6 RECID=33 STAMP=1170561295
input archived log thread=1 sequence=7 RECID=34 STAMP=1170561577
input archived log thread=1 sequence=8 RECID=35 STAMP=1170604869
input archived log thread=1 sequence=9 RECID=36 STAMP=1170561860
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.344.1171451495 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
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=11 RECID=38 STAMP=1170563246
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.349.1171451495 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
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=10 RECID=37 STAMP=1170562165
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.733.1171451497 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
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=12 RECID=39 STAMP=1170563598
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.731.1171451497 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
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=13 RECID=40 STAMP=1170606821
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.743.1171451499 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=3 sequence=2 RECID=28 STAMP=1170561154
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.742.1171451501 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=2 sequence=90 RECID=3 STAMP=1170601418
input archived log thread=3 sequence=68 RECID=5 STAMP=1170601419
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.740.1171451501 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
channel ORA_DISK_1: starting archived log backup set
channel ORA_DISK_1: specifying archived log(s) in backup set
input archived log thread=3 sequence=3 RECID=13 STAMP=1170601420
input archived log thread=2 sequence=3 RECID=12 STAMP=1170601420
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.737.1171451503 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 12-JUN-24
Starting backup at 12-JUN-24
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=00001 name=+DATA/CDB/DATAFILE/system.291.1170495997
input datafile file number=00003 name=+DATA/CDB/DATAFILE/sysaux.344.1170495997
input datafile file number=00004 name=+DATA/CDB/DATAFILE/undotbs1.277.1170495997
input datafile file number=00009 name=+DATA/CDB/DATAFILE/undotbs2.360.1170495997
input datafile file number=00010 name=+DATA/CDB/DATAFILE/undotbs3.302.1170495997
input datafile file number=00007 name=+DATA/CDB/DATAFILE/users.366.1170495997
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/nnndf0_tag20240612t231143_0.736.1171451503 tag=TAG20240612T231143 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:07
channel ORA_DISK_1: starting full datafile backup set
channel ORA_DISK_1: specifying datafile(s) in backup set
input datafile file number=00011 name=+DATA/CDB/06344F62B8C65A17E0636401A8C0F073/DATAFILE/system.337.1170496003
input datafile file number=00012 name=+DATA/CDB/06344F62B8C65A17E0636401A8C0F073/DATAFILE/sysaux.359.1170496003
input datafile file number=00013 name=+DATA/CDB/06344F62B8C65A17E0636401A8C0F073/DATAFILE/undotbs1.279.1170496003
input datafile file number=00014 name=+DATA/CDB/06344F62B8C65A17E0636401A8C0F073/DATAFILE/undo_3.272.1170496003
input datafile file number=00015 name=+DATA/CDB/06344F62B8C65A17E0636401A8C0F073/DATAFILE/undo_4.309.1170496003
input datafile file number=00016 name=+DATA/CDB/06344F62B8C65A17E0636401A8C0F073/DATAFILE/users.293.1170496003
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/06344F62B8C65A17E0636401A8C0F073/BACKUPSET/2024_06_12/nnndf0_tag20240612t231143_0.734.1171451511 tag=TAG20240612T231143 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
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=+DATA/CDB/0633F844101D69CBE0636401A8C09D55/DATAFILE/system.292.1170496007
input datafile file number=00006 name=+DATA/CDB/0633F844101D69CBE0636401A8C09D55/DATAFILE/sysaux.288.1170496007
input datafile file number=00008 name=+DATA/CDB/0633F844101D69CBE0636401A8C09D55/DATAFILE/undotbs1.350.1170496007
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/0633F844101D69CBE0636401A8C09D55/BACKUPSET/2024_06_12/nnndf0_tag20240612t231143_0.411.1171451513 tag=TAG20240612T231143 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:03
Finished backup at 12-JUN-24
Starting backup at 12-JUN-24
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=28 RECID=63 STAMP=1171451516
channel ORA_DISK_1: starting piece 1 at 12-JUN-24
channel ORA_DISK_1: finished piece 1 at 12-JUN-24
piece handle=+DATA1/CDB/BACKUPSET/2024_06_12/annnf0_full db backup_0.744.1171451517 tag=FULL DB BACKUP comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:01
Finished backup at 12-JUN-24
Starting Control File and SPFILE Autobackup at 12-JUN-24
piece handle=+DATA1/CDB/AUTOBACKUP/2024_06_12/s_1171494717.259.1171451517 comment=NONE
Finished Control File and SPFILE Autobackup at 12-JUN-24
RMAN> exit
Recovery Manager complete.
[oracle@rac1 trace]$ s
SQL*Plus: Release 19.0.0.0.0 - Production on Wed Jun 12 23:12:19 2024
Version 19.20.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.20.0.0.0
SQL> drop pluggable database pdb;
drop pluggable database pdb
*
ERROR at line 1:
ORA-65025: Pluggable database PDB is not closed on all instances.
SQL> alter pluggable database pdb close;
Pluggable database altered.
SQL> drop pluggable database pdb including datafiles;
Pluggable database dropped.
SQL> restore pluggable database pdb;
SP2-0734: unknown command beginning "restore pl..." - rest of line ignored.
SQL> exit
Disconnected from Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.20.0.0.0
[oracle@rac1 trace]$ rman target /
Recovery Manager: Release 19.0.0.0.0 - Production on Wed Jun 12 23:13:08 2024
Version 19.20.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
connected to target database: CDB (DBID=2265125454)
RMAN> restore pluggable database pdb;
Starting restore at 12-JUN-24
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=52 instance=cdb1 device type=DISK
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of restore command at 06/12/2024 23:13:13
RMAN-06813: could not translate pluggable database PDB
RMAN> recover pluggable database pdb;
Starting recover at 12-JUN-24
using channel ORA_DISK_1
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 06/12/2024 23:14:51
RMAN-06813: could not translate pluggable database PDB
RMAN> recover pluggable database pdb until time "to_date('12-JUN-2024 23:12:00','DD-MON-YYYY HH24:MI:SS')" auxiliary destination '+data1';
Starting recover at 12-JUN-24
current log archived
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 06/12/2024 23:17:01
RMAN-06617: UNTIL TIME (12-JUN-24) is ahead of last NEXT TIME in archived logs (12-JUN-24)
RMAN> recover pluggable database pdb until time "to_date('12-JUN-2024 23:11:00','DD-MON-YYYY HH24:MI:SS')" auxiliary destination '+data1';
Starting recover at 12-JUN-24
current log archived
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 06/12/2024 23:17:19
RMAN-06617: UNTIL TIME (12-JUN-24) is ahead of last NEXT TIME in archived logs (12-JUN-24)
RMAN> recover pluggable database pdb until time "to_date('12-JUN-2024 20:11:00','DD-MON-YYYY HH24:MI:SS')" auxiliary destination '+data1';
Starting recover at 12-JUN-24
current log archived
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 06/12/2024 23:17:49
RMAN-06617: UNTIL TIME (12-JUN-24) is ahead of last NEXT TIME in archived logs (12-JUN-24)
RMAN> recover pluggable database pdb until time "to_date('11-JUN-2024 20:11:00','DD-MON-YYYY HH24:MI:SS')" auxiliary destination '+data1';
Starting recover at 12-JUN-24
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 UNDOTBS1
Tablespace UNDOTBS2
Tablespace UNDOTBS3
Creating automatic instance, with SID='dcar'
initialization parameters used for automatic instance:
db_name=CDB
db_unique_name=dcar_pitr_pdb_CDB
compatible=19.0.0
db_block_size=8192
db_files=200
diagnostic_dest=/u01/app/oracle
_pdb_name_case_sensitive=false
_system_trig_enabled=FALSE
db_domain=cj.com
sga_target=2272M
processes=200
db_create_file_dest=+data1
log_archive_dest_1='location=+data1'
enable_pluggable_database=true
_clone_one_pdb_recovery=true
#No auxiliary parameter file used
starting up automatic instance CDB
Oracle instance started
Total System Global Area 2382363816 bytes
Fixed Size 9165992 bytes
Variable Size 520093696 bytes
Database Buffers 1845493760 bytes
Redo Buffers 7610368 bytes
Automatic instance created
contents of Memory Script:
{
# set requested point in time
set until time "to_date('11-JUN-2024 20:11:00','DD-MON-YYYY HH24:MI:SS')";
# restore the controlfile
restore clone controlfile;
# mount the controlfile
sql clone 'alter database mount clone database';
}
executing Memory Script
executing command: SET until clause
Starting restore at 12-JUN-24
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=185 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 +DATA1/CDB/AUTOBACKUP/2024_06_02/s_1170604877.496.1170561677
channel ORA_AUX_DISK_1: piece handle=+DATA1/CDB/AUTOBACKUP/2024_06_02/s_1170604877.496.1170561677 tag=TAG20240602T160117
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:04
output file name=+DATA1/CDB/CONTROLFILE/current.718.1171451907
Finished restore at 12-JUN-24
sql statement: alter database mount clone database
contents of Memory Script:
{
# set requested point in time
set until time "to_date('11-JUN-2024 20:11:00','DD-MON-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 4 to new;
set newname for clone datafile 9 to new;
set newname for clone datafile 10 to new;
set newname for clone datafile 3 to new;
set newname for clone datafile 7 to new;
set newname for datafile 11 to new;
set newname for datafile 12 to new;
set newname for datafile 13 to new;
set newname for datafile 14 to new;
set newname for datafile 15 to new;
set newname for datafile 16 to new;
# restore the tablespaces in the recovery set and the auxiliary set
restore clone datafile 1, 4, 9, 10, 3, 7, 11, 12, 13, 14, 15, 16;
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
executing command: SET NEWNAME
executing command: SET NEWNAME
Starting restore at 12-JUN-24
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 +data1
channel ORA_AUX_DISK_1: restoring datafile 00004 to +data1
channel ORA_AUX_DISK_1: restoring datafile 00009 to +data1
channel ORA_AUX_DISK_1: restoring datafile 00010 to +data1
channel ORA_AUX_DISK_1: restoring datafile 00003 to +data1
channel ORA_AUX_DISK_1: restoring datafile 00007 to +data1
channel ORA_AUX_DISK_1: reading from backup piece +DATA1/CDB/BACKUPSET/2024_06_02/nnndf0_tag20240602t160059_0.320.1170561659
channel ORA_AUX_DISK_1: piece handle=+DATA1/CDB/BACKUPSET/2024_06_02/nnndf0_tag20240602t160059_0.320.1170561659 tag=TAG20240602T160059
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:07
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 +data1
channel ORA_AUX_DISK_1: restoring datafile 00012 to +data1
channel ORA_AUX_DISK_1: restoring datafile 00013 to +data1
channel ORA_AUX_DISK_1: restoring datafile 00014 to +data1
channel ORA_AUX_DISK_1: restoring datafile 00015 to +data1
channel ORA_AUX_DISK_1: restoring datafile 00016 to +data1
channel ORA_AUX_DISK_1: reading from backup piece +DATA1/CDB/06344F62B8C65A17E0636401A8C0F073/BACKUPSET/2024_06_02/nnndf0_tag20240602t160059_0.314.1170561663
channel ORA_AUX_DISK_1: piece handle=+DATA1/CDB/06344F62B8C65A17E0636401A8C0F073/BACKUPSET/2024_06_02/nnndf0_tag20240602t160059_0.314.1170561663 tag=TAG20240602T160059
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:03
Finished restore at 12-JUN-24
datafile 11 switched to datafile copy
input datafile copy RECID=13 STAMP=1171495122 file name=+DATA1/CDB/06344F62B8C65A17E0636401A8C0F073/DATAFILE/system.728.1171451919
datafile 12 switched to datafile copy
input datafile copy RECID=14 STAMP=1171495122 file name=+DATA1/CDB/06344F62B8C65A17E0636401A8C0F073/DATAFILE/sysaux.268.1171451919
datafile 13 switched to datafile copy
input datafile copy RECID=15 STAMP=1171495122 file name=+DATA1/CDB/06344F62B8C65A17E0636401A8C0F073/DATAFILE/undotbs1.454.1171451919
datafile 14 switched to datafile copy
input datafile copy RECID=16 STAMP=1171495122 file name=+DATA1/CDB/06344F62B8C65A17E0636401A8C0F073/DATAFILE/undo_3.724.1171451919
datafile 15 switched to datafile copy
input datafile copy RECID=17 STAMP=1171495122 file name=+DATA1/CDB/06344F62B8C65A17E0636401A8C0F073/DATAFILE/undo_4.443.1171451919
datafile 16 switched to datafile copy
input datafile copy RECID=18 STAMP=1171495123 file name=+DATA1/CDB/06344F62B8C65A17E0636401A8C0F073/DATAFILE/users.715.1171451919
datafile 1 switched to datafile copy
input datafile copy RECID=19 STAMP=1171495123 file name=+DATA1/CDB/DATAFILE/system.662.1171451913
datafile 4 switched to datafile copy
input datafile copy RECID=20 STAMP=1171495123 file name=+DATA1/CDB/DATAFILE/undotbs1.420.1171451913
datafile 9 switched to datafile copy
input datafile copy RECID=21 STAMP=1171495123 file name=+DATA1/CDB/DATAFILE/undotbs2.732.1171451913
datafile 10 switched to datafile copy
input datafile copy RECID=22 STAMP=1171495123 file name=+DATA1/CDB/DATAFILE/undotbs3.388.1171451913
datafile 3 switched to datafile copy
input datafile copy RECID=23 STAMP=1171495123 file name=+DATA1/CDB/DATAFILE/sysaux.735.1171451913
datafile 7 switched to datafile copy
input datafile copy RECID=24 STAMP=1171495123 file name=+DATA1/CDB/DATAFILE/users.730.1171451913
contents of Memory Script:
{
# set requested point in time
set until time "to_date('11-JUN-2024 20:11:00','DD-MON-YYYY HH24:MI:SS')";
# online the datafiles restored or switched
sql clone "alter database datafile 1 online";
sql clone "alter database datafile 4 online";
sql clone "alter database datafile 9 online";
sql clone "alter database datafile 10 online";
sql clone "alter database datafile 3 online";
sql clone "alter database datafile 7 online";
sql clone 'PDB' "alter database datafile
11 online";
sql clone 'PDB' "alter database datafile
12 online";
sql clone 'PDB' "alter database datafile
13 online";
sql clone 'PDB' "alter database datafile
14 online";
sql clone 'PDB' "alter database datafile
15 online";
sql clone 'PDB' "alter database datafile
16 online";
#recover pdb
recover clone database tablespace "SYSTEM", "UNDOTBS1", "UNDOTBS2", "UNDOTBS3", "SYSAUX", "USERS" pluggable database
'PDB' delete archivelog;
#open in read write mode
sql clone 'alter database open resetlogs';
#unplug dropped pdb into temp file
sql clone "alter pluggable database PDB unplug into ''
/u01/app/oracle/product/19.0.0/db_1/dbs/_rm_pdb_pitr_1_dcar.xml''";
#create pdb using temp file of recovered pdb
sql "create pluggable database PDB using ''
/u01/app/oracle/product/19.0.0/db_1/dbs/_rm_pdb_pitr_1_dcar.xml'' nocopy tempfile reuse";
alter pluggable database PDB open;
}
executing Memory Script
executing command: SET until clause
sql statement: alter database datafile 1 online
sql statement: alter database datafile 4 online
sql statement: alter database datafile 9 online
sql statement: alter database datafile 10 online
sql statement: alter database datafile 3 online
sql statement: alter database datafile 7 online
sql statement: alter database datafile 11 online
sql statement: alter database datafile 12 online
sql statement: alter database datafile 13 online
sql statement: alter database datafile 14 online
sql statement: alter database datafile 15 online
sql statement: alter database datafile 16 online
Starting recover at 12-JUN-24
using channel ORA_AUX_DISK_1
Executing: alter database datafile 5, 6, 8 offline
starting media recovery
archived log for thread 1 with sequence 8 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_8.315.1170561669
archived log for thread 1 with sequence 9 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_9.462.1170561861
archived log for thread 1 with sequence 10 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_10.457.1170562165
archived log for thread 1 with sequence 11 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_11.456.1170563247
archived log for thread 1 with sequence 12 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_12.449.1170563599
archived log for thread 1 with sequence 13 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_13.446.1170563621
archived log for thread 1 with sequence 14 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_14.539.1170563983
archived log for thread 1 with sequence 15 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_15.437.1170583357
archived log for thread 1 with sequence 16 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_16.275.1170583873
archived log for thread 1 with sequence 17 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_04/thread_1_seq_17.721.1170760649
archived log for thread 1 with sequence 18 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_04/thread_1_seq_18.400.1170774033
archived log for thread 1 with sequence 19 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_04/thread_1_seq_19.395.1170802819
archived log for thread 1 with sequence 20 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_05/thread_1_seq_20.384.1170835223
archived log for thread 1 with sequence 21 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_05/thread_1_seq_21.383.1170883489
archived log for thread 1 with sequence 22 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_06/thread_1_seq_22.364.1170925557
archived log for thread 1 with sequence 23 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_08/thread_1_seq_23.361.1171091307
archived log for thread 1 with sequence 24 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_10/thread_1_seq_24.354.1171238771
archived log for thread 1 with sequence 25 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_10/thread_1_seq_25.353.1171263651
archived log for thread 1 with sequence 26 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_12/thread_1_seq_26.352.1171446867
archived log for thread 2 with sequence 5 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_2_seq_5.497.1170563981
archived log for thread 2 with sequence 6 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_2_seq_6.439.1170563981
archived log for thread 2 with sequence 7 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_2_seq_7.429.1170583873
archived log for thread 2 with sequence 8 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_2_seq_8.492.1170583875
archived log for thread 3 with sequence 4 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_3_seq_4.391.1170563981
archived log for thread 3 with sequence 5 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_3_seq_5.367.1170563981
archived log for thread 3 with sequence 6 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_3_seq_6.410.1170583873
archived log for thread 3 with sequence 7 is already on disk as file +DATA1/CDB/ARCHIVELOG/2024_06_02/thread_3_seq_7.753.1170583875
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_8.315.1170561669 thread=1 sequence=8
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_9.462.1170561861 thread=1 sequence=9
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_10.457.1170562165 thread=1 sequence=10
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_11.456.1170563247 thread=1 sequence=11
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_12.449.1170563599 thread=1 sequence=12
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_13.446.1170563621 thread=1 sequence=13
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_14.539.1170563983 thread=1 sequence=14
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_3_seq_4.391.1170563981 thread=3 sequence=4
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_2_seq_5.497.1170563981 thread=2 sequence=5
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_2_seq_6.439.1170563981 thread=2 sequence=6
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_3_seq_5.367.1170563981 thread=3 sequence=5
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_15.437.1170583357 thread=1 sequence=15
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_1_seq_16.275.1170583873 thread=1 sequence=16
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_2_seq_7.429.1170583873 thread=2 sequence=7
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_3_seq_6.410.1170583873 thread=3 sequence=6
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_3_seq_7.753.1170583875 thread=3 sequence=7
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_02/thread_2_seq_8.492.1170583875 thread=2 sequence=8
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_04/thread_1_seq_17.721.1170760649 thread=1 sequence=17
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_04/thread_1_seq_18.400.1170774033 thread=1 sequence=18
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_04/thread_1_seq_19.395.1170802819 thread=1 sequence=19
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_05/thread_1_seq_20.384.1170835223 thread=1 sequence=20
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_05/thread_1_seq_21.383.1170883489 thread=1 sequence=21
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_06/thread_1_seq_22.364.1170925557 thread=1 sequence=22
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_08/thread_1_seq_23.361.1171091307 thread=1 sequence=23
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_10/thread_1_seq_24.354.1171238771 thread=1 sequence=24
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_10/thread_1_seq_25.353.1171263651 thread=1 sequence=25
archived log file name=+DATA1/CDB/ARCHIVELOG/2024_06_12/thread_1_seq_26.352.1171446867 thread=1 sequence=26
media recovery complete, elapsed time: 00:00:11
Finished recover at 12-JUN-24
sql statement: alter database open resetlogs
sql statement: alter pluggable database PDB unplug into ''/u01/app/oracle/product/19.0.0/db_1/dbs/_rm_pdb_pitr_1_dcar.xml''
sql statement: create pluggable database PDB using ''/u01/app/oracle/product/19.0.0/db_1/dbs/_rm_pdb_pitr_1_dcar.xml'' nocopy tempfile reuse
Removing automatic instance
shutting down automatic instance
Oracle instance shut down
Automatic instance removed
auxiliary instance file /u01/app/oracle/product/19.0.0/db_1/dbs/_rm_pdb_pitr_1_dcar.xml deleted
auxiliary instance file +DATA1/CDB/DATAFILE/sysaux.735.1171451913 deleted
auxiliary instance file +DATA1/CDB/CONTROLFILE/current.718.1171451907 deleted
auxiliary instance file +DATA1/CDB/DATAFILE/users.730.1171451913 deleted
auxiliary instance file +DATA1/CDB/DATAFILE/undotbs3.388.1171451913 deleted
auxiliary instance file +DATA1/CDB/DATAFILE/undotbs2.732.1171451913 deleted
auxiliary instance file +DATA1/CDB/DATAFILE/undotbs1.420.1171451913 deleted
auxiliary instance file +DATA1/CDB/DATAFILE/system.662.1171451913 deleted
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 06/12/2024 23:19:13
RMAN-03015: error occurred in stored script Memory Script
RMAN-03009: failure of sql command on default channel at 06/12/2024 23:19:05
RMAN-11003: failure during parse/execution of SQL statement: create pluggable database PDB using '/u01/app/oracle/product/19.0.0/db_1/dbs/_rm_pdb_pitr_1_dcar.xml' nocopy tempfile reuse
ORA-25153: Temporary Tablespace is Empty
RMAN> exit
Recovery Manager complete.
[oracle@rac1 trace]$ s
SQL*Plus: Release 19.0.0.0.0 - Production on Wed Jun 12 23:19:18 2024
Version 19.20.0.0.0
Copyright (c) 1982, 2022, Oracle. All rights reserved.
Connected to:
Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 - Production
Version 19.20.0.0.0
SQL> show pbs;
SP2-0158: unknown SHOW option "pbs"
SQL> show pdbs;
CON_ID CON_NAME OPEN MODE RESTRICTED
---------- ------------------------------ ---------- ----------
2 PDB$SEED READ ONLY NO
3 PDB MOUNTED
SQL>
----------------------------新的不行,太久又没有!!!!!!!!
[oracle@rac1 trace]$ rman target /
Recovery Manager: Release 19.0.0.0.0 - Production on Wed Jun 12 23:22:33 2024
Version 19.20.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
connected to target database: CDB (DBID=2265125454)
RMAN> recover pluggable database abcd until time "to_date('12-JUN-2024 23:12:00','DD-MON-YYYY HH24:MI:SS')" auxiliary destination '+data1';
Starting recover at 12-JUN-24
using target database control file instead of recovery catalog
current log archived
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 06/12/2024 23:22:36
RMAN-06617: UNTIL TIME (12-JUN-24) is ahead of last NEXT TIME in archived logs (12-JUN-24)
RMAN> recover pluggable database abcd until time "to_date('11-JUN-2024 23:12:00','DD-MON-YYYY HH24:MI:SS')" auxiliary destination '+data1';
Starting recover at 12-JUN-24
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=99 instance=cdb1 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
Tablespace UNDOTBS2
Tablespace UNDOTBS3
Creating automatic instance, with SID='wEdF'
initialization parameters used for automatic instance:
db_name=CDB
db_unique_name=wEdF_pitr_abcd_CDB
compatible=19.0.0
db_block_size=8192
db_files=200
diagnostic_dest=/u01/app/oracle
_pdb_name_case_sensitive=false
_system_trig_enabled=FALSE
db_domain=cj.com
sga_target=2272M
processes=200
db_create_file_dest=+data1
log_archive_dest_1='location=+data1'
enable_pluggable_database=true
_clone_one_pdb_recovery=true
#No auxiliary parameter file used
starting up automatic instance CDB
Oracle instance started
Total System Global Area 2382363816 bytes
Fixed Size 9165992 bytes
Variable Size 520093696 bytes
Database Buffers 1845493760 bytes
Redo Buffers 7610368 bytes
Automatic instance created
contents of Memory Script:
{
# set requested point in time
set until time "to_date('11-JUN-2024 23:12:00','DD-MON-YYYY HH24:MI:SS')";
# restore the controlfile
restore clone controlfile;
# mount the controlfile
sql clone 'alter database mount clone database';
}
executing Memory Script
executing command: SET until clause
Starting restore at 12-JUN-24
allocated channel: ORA_AUX_DISK_1
channel ORA_AUX_DISK_1: SID=186 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 +DATA1/CDB/AUTOBACKUP/2024_06_02/s_1170604877.496.1170561677
channel ORA_AUX_DISK_1: piece handle=+DATA1/CDB/AUTOBACKUP/2024_06_02/s_1170604877.496.1170561677 tag=TAG20240602T160117
channel ORA_AUX_DISK_1: restored backup piece 1
channel ORA_AUX_DISK_1: restore complete, elapsed time: 00:00:04
output file name=+DATA1/CDB/CONTROLFILE/current.732.1171452179
Finished restore at 12-JUN-24
sql statement: alter database mount clone database
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 06/12/2024 23:23:05
RMAN-06813: could not translate pluggable database ABCD
RMAN>