12c RAC RMAN Backup Restoration to standalone database archivelog log recovery
##########################################################################
SQL*Plus: Release 12.1.0.2.0 Production on Wed Jan 29 14:21:16 2020
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup nomount;
ORACLE instance started.
Total System Global Area 3942645760 bytes
Fixed Size 2931616 bytes
Variable Size 939525216 bytes
Database Buffers 2986344448 bytes
Redo Buffers 13844480 bytes
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
oracle@sgdcpl08:~> rman target /
Recovery Manager: Release 12.1.0.2.0 - Production on Wed Jan 29 14:23:35 2020
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: SMRRAC (not mounted)
RMAN> restore controlfile from '/u02/rman_smrrac/control_SMRRAC_20200129.bak';
Starting restore at 29-JAN-2020 14:23:50
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=527 device type=DISK
channel ORA_DISK_1: copied control file copy
output file name=/u01/app/oracle/oradata/smrrac/control01.ctl
output file name=/u01/app/oracle/fast_recovery_area/smrrac/control02.ctl
Finished restore at 29-JAN-2020 14:23:52
RMAN> alter database mount;
Statement processed
released channel: ORA_DISK_1
RMAN> catalog start with '/u02/rman_smrrac/';
Starting implicit crosscheck backup at 29-JAN-2020 14:24:45
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=357 device type=DISK
Crosschecked 255 objects
Finished implicit crosscheck backup at 29-JAN-2020 14:24:47
Starting implicit crosscheck copy at 29-JAN-2020 14:24:47
using channel ORA_DISK_1
Crosschecked 32 objects
Finished implicit crosscheck copy at 29-JAN-2020 14:24:47
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_27/o1_mf_1_15_h2x2qfh7_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_27/o1_mf_1_16_h2x34psh_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_27/o1_mf_1_17_h2xv84yz_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_27/o1_mf_1_18_h2ymtxvt_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_27/o1_mf_1_19_h2ymvdw9_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_27/o1_mf_1_20_h2ymw7wl_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_28/o1_mf_1_21_h2zctr18_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_28/o1_mf_1_22_h30m5d1k_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_28/o1_mf_1_23_h3186wg5_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/o1_mf_1_24_h32cdtx0_.arc
searching for all files that match the pattern /u02/rman_smrrac/
List of Files Unknown to the Database
=====================================
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lkun6eo2_1716_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_llun6esu_1717_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lhun6eo1_1713_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_ljun6eo2_1715_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_liun6eo1_1714_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_loun6etd_1720_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lqun6etg_1722_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lrun6eti_1723_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lnun6etd_1719_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lpun6etd_1721_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lmun6etd_1718_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lsun6f1a_1724_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_ltun6f1a_1725_1_20200129
File Name: /u02/rman_smrrac/control_SMRRAC_20200129.bak
File Name: /u02/rman_smrrac/standbycontrol_SMRRAC_lvun6f1d_1_1.ctl
Do you really want to catalog the above files (enter YES or NO)? yes
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lkun6eo2_1716_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_llun6esu_1717_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lhun6eo1_1713_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_ljun6eo2_1715_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_liun6eo1_1714_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_loun6etd_1720_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lqun6etg_1722_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lrun6eti_1723_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lnun6etd_1719_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lpun6etd_1721_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lmun6etd_1718_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lsun6f1a_1724_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_ltun6f1a_1725_1_20200129
File Name: /u02/rman_smrrac/control_SMRRAC_20200129.bak
File Name: /u02/rman_smrrac/standbycontrol_SMRRAC_lvun6f1d_1_1.ctl
RMAN> run
{
set newname for datafile 1 to "/u01/app/oracle/oradata/smrrac/system01.dbf";
set newname for datafile 2 to "/u02/oradata/smrrac/idata01.dbf";
set newname for datafile 3 to "/u01/app/oracle/oradata/smrrac/sysaux01.dbf";
set newname for datafile 4 to "/u01/app/oracle/oradata/smrrac/undotbs01.dbf";
set newname for datafile 5 to "/u01/app/oracle/oradata/smrrac/undotbs02.dbf";
set newname for datafile 6 to "/u02/oradata/smrrac/users01.dbf";
set newname for datafile 7 to "/u02/oradata/smrrac/ilog01.dbf";
2> 3> 4> set newname for datafile 8 to "/u02/oradata/smrrac/indx01.dbf";
5> 6> 7> 8> 9> 10> 11> set newname for tempfile 1 to "/u01/app/oracle/oradata/smrrac/temp01.dbf";
RESTORE DATABASE;
SWITCH DATAFILE ALL;
SWITCH TEMPFILE ALL;12> 13> 14>
15> }
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 29-JAN-2020 14:25:28
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/smrrac/undotbs01.dbf
channel ORA_DISK_1: restoring datafile 00005 to /u01/app/oracle/oradata/smrrac/undotbs02.dbf
channel ORA_DISK_1: reading from backup piece /u02/rman_smrrac/Backup_SMRRAC_DB_loun6etd_1720_1_20200129
channel ORA_DISK_1: piece handle=/u02/rman_smrrac/Backup_SMRRAC_DB_loun6etd_1720_1_20200129 tag=TAG20200129T102133
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to /u01/app/oracle/oradata/smrrac/system01.dbf
channel ORA_DISK_1: restoring datafile 00008 to /u02/oradata/smrrac/indx01.dbf
channel ORA_DISK_1: reading from backup piece /u02/rman_smrrac/Backup_SMRRAC_DB_lnun6etd_1719_1_20200129
channel ORA_DISK_1: piece handle=/u02/rman_smrrac/Backup_SMRRAC_DB_lnun6etd_1719_1_20200129 tag=TAG20200129T102133
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/smrrac/sysaux01.dbf
channel ORA_DISK_1: restoring datafile 00007 to /u02/oradata/smrrac/ilog01.dbf
channel ORA_DISK_1: reading from backup piece /u02/rman_smrrac/Backup_SMRRAC_DB_lpun6etd_1721_1_20200129
channel ORA_DISK_1: piece handle=/u02/rman_smrrac/Backup_SMRRAC_DB_lpun6etd_1721_1_20200129 tag=TAG20200129T102133
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:55
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00002 to /u02/oradata/smrrac/idata01.dbf
channel ORA_DISK_1: restoring datafile 00006 to /u02/oradata/smrrac/users01.dbf
channel ORA_DISK_1: reading from backup piece /u02/rman_smrrac/Backup_SMRRAC_DB_lmun6etd_1718_1_20200129
channel ORA_DISK_1: piece handle=/u02/rman_smrrac/Backup_SMRRAC_DB_lmun6etd_1718_1_20200129 tag=TAG20200129T102133
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:02:45
Finished restore at 29-JAN-2020 14:29:58
datafile 1 switched to datafile copy
input datafile copy RECID=122 STAMP=1030976998 file name=/u01/app/oracle/oradata/smrrac/system01.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=123 STAMP=1030976998 file name=/u02/oradata/smrrac/idata01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=124 STAMP=1030976998 file name=/u01/app/oracle/oradata/smrrac/sysaux01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=125 STAMP=1030976998 file name=/u01/app/oracle/oradata/smrrac/undotbs01.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=126 STAMP=1030976998 file name=/u01/app/oracle/oradata/smrrac/undotbs02.dbf
datafile 6 switched to datafile copy
input datafile copy RECID=127 STAMP=1030976998 file name=/u02/oradata/smrrac/users01.dbf
datafile 7 switched to datafile copy
input datafile copy RECID=128 STAMP=1030976998 file name=/u02/oradata/smrrac/ilog01.dbf
datafile 8 switched to datafile copy
input datafile copy RECID=129 STAMP=1030976998 file name=/u02/oradata/smrrac/indx01.dbf
renamed tempfile 1 to /u01/app/oracle/oradata/smrrac/temp01.dbf in control file
RMAN> exit
Recovery Manager complete.
oracle@sgdcpl08:~> sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Wed Jan 29 14:48:34 2020
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> @d
NAME INSTANCE_NAME DB_UNIQUE_NAME OPEN_MODE DATABASE_ROLE CURRENT_SCN FAILOVER_SCN
--------- ---------------- ------------------------------ -------------------- ---------------- ------------------ ----------------------------------------
SMRRAC smrrac smrrac MOUNTED PRIMARY YES 0
SQL> recover database until cancel;
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
################################################################################
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
oracle@sgdcpl08:~> sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Wed Jan 29 14:50:54 2020
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
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
oracle@sgdcpl08:~> rman target /
Recovery Manager: Release 12.1.0.2.0 - Production on Wed Jan 29 14:50:58 2020
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: SMRRAC (DBID=4255065810, not open)
RMAN> SQL "ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_1.267.1020692667'' to ''/u01/app/oracle/oradata/smrrac/redo01.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_1.260.1020692669'' to ''/u01/app/oracle/oradata/smrrac/redo02.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_2.266.1020692669'' to ''/u01/app/oracle/oradata/smrrac/redo03.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_2.259.1020692671'' to ''/u01/app/oracle/oradata/smrrac/redo04.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_3.263.1020692675'' to ''/u01/app/oracle/oradata/smrrac/redo05.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_3.258.1020692677'' to ''/u01/app/oracle/oradata/smrrac/redo06.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_4.262.1020692677'' to ''/u01/app/oracle/oradata/smrrac/redo07.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_4.257.1020692679'' to ''/u01/app/oracle/oradata/smrrac/redo08.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_5.271.1030949473'' to ''/u01/app/oracle/oradata/smrrac/redo09.log'' ";
using target database control file instead of recovery catalog
sql statement: ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_1.267.1020692667'' to ''/u01/app/oracle/oradata/smrrac/redo01.log''
SQL "ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_5.284.1030949475'' to ''/u01/app/oracle/oradata/smrrac/redo10.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_6.274.1030949487'' to ''/u01/app/oracle/oradata/smrrac/redo11.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_6.285.1030949487'' to ''/u01/app/oracle/oradata/smrrac/redo12.log'' ";
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_1.260.1020692669'' to ''/u01/app/oracle/oradata/smrrac/redo02.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_2.266.1020692669'' to ''/u01/app/oracle/oradata/smrrac/redo03.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_2.259.1020692671'' to ''/u01/app/oracle/oradata/smrrac/redo04.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_3.263.1020692675'' to ''/u01/app/oracle/oradata/smrrac/redo05.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_3.258.1020692677'' to ''/u01/app/oracle/oradata/smrrac/redo06.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_4.262.1020692677'' to ''/u01/app/oracle/oradata/smrrac/redo07.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_4.257.1020692679'' to ''/u01/app/oracle/oradata/smrrac/redo08.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_5.271.1030949473'' to ''/u01/app/oracle/oradata/smrrac/redo09.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_5.284.1030949475'' to ''/u01/app/oracle/oradata/smrrac/redo10.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_6.274.1030949487'' to ''/u01/app/oracle/oradata/smrrac/redo11.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_6.285.1030949487'' to ''/u01/app/oracle/oradata/smrrac/redo12.log''
RMAN>
RMAN> recover database until cancel;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "cancel": expecting one of: "scn, sequence, time"
RMAN-01007: at line 1 column 24 file: standard input
RMAN> recover database;
Starting recover at 29-JAN-2020 14:51:50
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=527 device type=DISK
starting media recovery
channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=821
channel ORA_DISK_1: reading from backup piece /u02/rman_smrrac/Backup_SMRRAC_DB_lsun6f1a_1724_1_20200129
channel ORA_DISK_1: piece handle=/u02/rman_smrrac/Backup_SMRRAC_DB_lsun6f1a_1724_1_20200129 tag=TAG20200129T102338
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/o1_mf_1_821_h333hq6p_.arc thread=1 sequence=821
channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archived log
archived log thread=2 sequence=593
channel ORA_DISK_1: reading from backup piece /u02/rman_smrrac/Backup_SMRRAC_DB_ltun6f1a_1725_1_20200129
channel ORA_DISK_1: piece handle=/u02/rman_smrrac/Backup_SMRRAC_DB_ltun6f1a_1725_1_20200129 tag=TAG20200129T102338
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/o1_mf_2_593_h333hrcb_.arc thread=2 sequence=593
channel default: deleting archived log(s)
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/o1_mf_1_821_h333hq6p_.arc RECID=1367 STAMP=1030978311
unable to find archived log
archived log thread=1 sequence=822
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/29/2020 14:51:54
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 822 and starting SCN of 64756182
RMAN>
login as: oracle
Keyboard-interactive authentication prompts from server:
| Password:
End of keyboard-interactive prompts from server
Last login: Thu Jan 30 07:46:09 2020 from 172.29.42.175
oracle@sgdcpl08:~> pwd
/home/oracle
oracle@sgdcpl08:~> . oraenv
ORACLE_SID = [SMRPATCH7] ? smrrac
The Oracle base remains unchanged with value /u01/app/oracle
oracle@sgdcpl08:~> rman target /
Recovery Manager: Release 12.1.0.2.0 - Production on Thu Jan 30 07:47:40 2020
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: SMRRAC (DBID=4255065810, not open)
RMAN> recover database;
Starting recover at 30-JAN-2020 07:52:00
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=176 device type=DISK
starting media recovery
archived log for thread 1 with sequence 822 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_822_1020157972.arc
archived log for thread 1 with sequence 823 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_823_1020157972.arc
archived log for thread 1 with sequence 824 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_824_1020157972.arc
archived log for thread 1 with sequence 825 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_825_1020157972.arc
archived log for thread 2 with sequence 593 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/o1_mf_2_593_h333hrcb_.arc
archived log for thread 2 with sequence 594 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_594_1020157972.arc
archived log for thread 2 with sequence 595 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_595_1020157972.arc
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_822_1020157972.arc thread=1 sequence=822
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/o1_mf_2_593_h333hrcb_.arc thread=2 sequence=593
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_594_1020157972.arc thread=2 sequence=594
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_595_1020157972.arc thread=2 sequence=595
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_823_1020157972.arc thread=1 sequence=823
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_824_1020157972.arc thread=1 sequence=824
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_825_1020157972.arc thread=1 sequence=825
unable to find archived log
archived log thread=2 sequence=596
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/30/2020 07:52:59
RMAN-06054: media recovery requesting unknown archived log for thread 2 with sequence 596 and starting SCN of 65089014
RMAN> recover database;
Starting recover at 30-JAN-2020 08:30:07
using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 825 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_825_1020157972.arc
unable to find archived log
archived log thread=2 sequence=596
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/30/2020 08:30:07
RMAN-06054: media recovery requesting unknown archived log for thread 2 with sequence 596 and starting SCN of 65089014
RMAN> recover database;
Starting recover at 30-JAN-2020 08:30:28
using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 825 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_825_1020157972.arc
unable to find archived log
archived log thread=2 sequence=596
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/30/2020 08:30:28
RMAN-06054: media recovery requesting unknown archived log for thread 2 with sequence 596 and starting SCN of 65089014
RMAN> recover database;
Starting recover at 30-JAN-2020 08:30:47
using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 825 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_825_1020157972.arc
unable to find archived log
archived log thread=2 sequence=596
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/30/2020 08:30:48
RMAN-06054: media recovery requesting unknown archived log for thread 2 with sequence 596 and starting SCN of 65089014
RMAN> exit
Recovery Manager complete.
oracle@sgdcpl08:~> rman target /
Recovery Manager: Release 12.1.0.2.0 - Production on Thu Jan 30 08:31:21 2020
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: SMRRAC (DBID=4255065810, not open)
RMAN> recover database;
Starting recover at 30-JAN-2020 08:31:28
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=176 device type=DISK
starting media recovery
archived log for thread 1 with sequence 825 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_825_1020157972.arc
archived log for thread 1 with sequence 826 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_826_1020157972.arc
archived log for thread 1 with sequence 827 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_827_1020157972.arc
archived log for thread 1 with sequence 828 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_828_1020157972.arc
archived log for thread 1 with sequence 829 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_829_1020157972.arc
archived log for thread 1 with sequence 830 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_830_1020157972.arc
archived log for thread 1 with sequence 831 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_831_1020157972.arc
archived log for thread 2 with sequence 596 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_596_1020157972.arc
archived log for thread 2 with sequence 597 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_597_1020157972.arc
archived log for thread 2 with sequence 598 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_598_1020157972.arc
archived log for thread 2 with sequence 599 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_599_1020157972.arc
archived log for thread 2 with sequence 600 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_600_1020157972.arc
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_596_1020157972.arc thread=2 sequence=596
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_825_1020157972.arc thread=1 sequence=825
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_826_1020157972.arc thread=1 sequence=826
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_827_1020157972.arc thread=1 sequence=827
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_828_1020157972.arc thread=1 sequence=828
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_597_1020157972.arc thread=2 sequence=597
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_598_1020157972.arc thread=2 sequence=598
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_829_1020157972.arc thread=1 sequence=829
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_830_1020157972.arc thread=1 sequence=830
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_599_1020157972.arc thread=2 sequence=599
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_600_1020157972.arc thread=2 sequence=600
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_831_1020157972.arc thread=1 sequence=831
unable to find archived log
archived log thread=1 sequence=832
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/30/2020 08:32:30
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 832 and starting SCN of 65557026
RMAN>
SQL> /
GROUP# STATUS TYPE MEMBER IS_ CON_ID
---------- ------- ------- -------------------------------------------------- --- ----------
1 ONLINE /u01/app/oracle/oradata/smrrac/redo01.log NO 0
1 ONLINE /u01/app/oracle/oradata/smrrac/redo02.log NO 0
2 ONLINE /u01/app/oracle/oradata/smrrac/redo03.log NO 0
2 ONLINE /u01/app/oracle/oradata/smrrac/redo04.log NO 0
3 ONLINE /u01/app/oracle/oradata/smrrac/redo05.log NO 0
3 ONLINE /u01/app/oracle/oradata/smrrac/redo06.log NO 0
4 ONLINE /u01/app/oracle/oradata/smrrac/redo07.log NO 0
4 ONLINE /u01/app/oracle/oradata/smrrac/redo08.log NO 0
5 ONLINE /u01/app/oracle/oradata/smrrac/redo09.log NO 0
5 ONLINE /u01/app/oracle/oradata/smrrac/redo10.log NO 0
6 ONLINE /u01/app/oracle/oradata/smrrac/redo11.log NO 0
GROUP# STATUS TYPE MEMBER IS_ CON_ID
---------- ------- ------- -------------------------------------------------- --- ----------
6 ONLINE /u01/app/oracle/oradata/smrrac/redo12.log NO 0
12 rows selected.
SQL> select name from v$controlfile;
NAME
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/u01/app/oracle/oradata/smrrac/control01.ctl
/u01/app/oracle/fast_recovery_area/smrrac/control02.ctl
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/u01/app/oracle/oradata/smrrac/system01.dbf
/u02/oradata/smrrac/idata01.dbf
/u01/app/oracle/oradata/smrrac/sysaux01.dbf
/u01/app/oracle/oradata/smrrac/undotbs01.dbf
/u01/app/oracle/oradata/smrrac/undotbs02.dbf
/u02/oradata/smrrac/users01.dbf
/u02/oradata/smrrac/ilog01.dbf
/u02/oradata/smrrac/indx01.dbf
8 rows selected.
SQL> @d
SP2-0310: unable to open file "d.sql"
SQL> @/home/oracle/d
NAME INSTANCE_NAME DB_UNIQUE_NAME OPEN_MODE DATABASE_ROLE CURRENT_SCN FAILOVER_SCN
--------- ---------------- ------------------------------ -------------------- ---------------- ------------------ ----------------------------------------
SMRRAC smrrac smrrac MOUNTED PRIMARY YES 0
SQL> alter database open resetlogs;
Database altered.
SQL> select total_size,awr_flush_emergency_count from v$ash_info;
TOTAL_SIZE AWR_FLUSH_EMERGENCY_COUNT
---------- -------------------------
8388608 1
SQL> @/home/oracle/d
NAME INSTANCE_NAME DB_UNIQUE_NAME OPEN_MODE DATABASE_ROLE CURRENT_SCN FAILOVER_SCN
--------- ---------------- ------------------------------ -------------------- ---------------- ------------------ ----------------------------------------
SMRRAC smrrac smrrac READ WRITE PRIMARY YES 0
SQL> select member from v$logfile;
MEMBER
--------------------------------------------------
/u01/app/oracle/oradata/smrrac/redo01.log
/u01/app/oracle/oradata/smrrac/redo02.log
/u01/app/oracle/oradata/smrrac/redo03.log
/u01/app/oracle/oradata/smrrac/redo04.log
/u01/app/oracle/oradata/smrrac/redo05.log
/u01/app/oracle/oradata/smrrac/redo06.log
/u01/app/oracle/oradata/smrrac/redo07.log
/u01/app/oracle/oradata/smrrac/redo08.log
/u01/app/oracle/oradata/smrrac/redo09.log
/u01/app/oracle/oradata/smrrac/redo10.log
/u01/app/oracle/oradata/smrrac/redo11.log
MEMBER
--------------------------------------------------
/u01/app/oracle/oradata/smrrac/redo12.log
12 rows selected.
SQL> select THREAD#, STATUS, ENABLED from v$thread;
THREAD# STATUS ENABLED
---------- ------ --------
1 OPEN PUBLIC
2 CLOSED PUBLIC
SQL> select group# from v$log where THREAD#=2;
GROUP#
----------
3
4
6
SQL> alter database disable thread 2;
Database altered.
SQL> alter database clear unarchived logfile group 3
2 ;
Database altered.
SQL> alter database clear unarchived logfile group 4;
Database altered.
SQL> alter database clear unarchived logfile group 6;
Database altered.
SQL> select THREAD#, STATUS, ENABLED from v$thread;
THREAD# STATUS ENABLED
---------- ------ --------
1 OPEN PUBLIC
2 CLOSED DISABLED
SQL> sho parameter undo;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
temp_undo_enabled boolean FALSE
undo_management string AUTO
undo_retention integer 900
undo_tablespace string UNDOTBS1
SQL> select tablespace_name from dba_tablespaces where contents='UNDO';
TABLESPACE_NAME
------------------------------
UNDOTBS1
UNDOTBS2
SQL> drop tablespace UNDOTBS2 including contents and datafiles;
Tablespace dropped.
SQL> select name from v$tempfile;
NAME
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/u01/app/oracle/oradata/smrrac/temp01.dbf
SQL> select tablespace_name from dba_tablespaces where contents='TEMPORARY';
TABLESPACE_NAME
------------------------------
TEMP
SQL> create temporary tablespace TEMP1 tempfile '/u01/app/oracle/oradata/smrrac/temp001.dbf' size 50m;
Tablespace created.
SQL> alter database default temporary tablespace TEMP1;
Database altered.
SQL> drop tablespace TEMP including contents and datafiles;
Tablespace dropped.
SQL> select tablespace_name from dba_tablespaces where contents='TEMPORARY';
TABLESPACE_NAME
------------------------------
TEMP1
SQL> @/home/oracle/d
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\
NOTE : --- increase pga_target , sga , temp file , undo file if required, match with production requirement.
- RAC full rman backup
- Restore controlfile from rman backup
- Database mount
- Catalog start with
- Set new name fro datafile
- Restore and revover database
- Change redo logfile location
- recover database
- Copy archivelog from RAC db to standalone database.
- recover database.
- open database in reset logs
- Check the status and group# of redolog thread #2
- Disable Thread#2
- Clear un archived log of thread#2
- Check and drop undo tablespace of thread#2
- Create new tempfile and drop old tempfile, Mark new tempfile as default.
##########################################################################
SQL*Plus: Release 12.1.0.2.0 Production on Wed Jan 29 14:21:16 2020
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to an idle instance.
SQL> startup nomount;
ORACLE instance started.
Total System Global Area 3942645760 bytes
Fixed Size 2931616 bytes
Variable Size 939525216 bytes
Database Buffers 2986344448 bytes
Redo Buffers 13844480 bytes
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
oracle@sgdcpl08:~> rman target /
Recovery Manager: Release 12.1.0.2.0 - Production on Wed Jan 29 14:23:35 2020
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: SMRRAC (not mounted)
RMAN> restore controlfile from '/u02/rman_smrrac/control_SMRRAC_20200129.bak';
Starting restore at 29-JAN-2020 14:23:50
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=527 device type=DISK
channel ORA_DISK_1: copied control file copy
output file name=/u01/app/oracle/oradata/smrrac/control01.ctl
output file name=/u01/app/oracle/fast_recovery_area/smrrac/control02.ctl
Finished restore at 29-JAN-2020 14:23:52
RMAN> alter database mount;
Statement processed
released channel: ORA_DISK_1
RMAN> catalog start with '/u02/rman_smrrac/';
Starting implicit crosscheck backup at 29-JAN-2020 14:24:45
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=357 device type=DISK
Crosschecked 255 objects
Finished implicit crosscheck backup at 29-JAN-2020 14:24:47
Starting implicit crosscheck copy at 29-JAN-2020 14:24:47
using channel ORA_DISK_1
Crosschecked 32 objects
Finished implicit crosscheck copy at 29-JAN-2020 14:24:47
searching for all files in the recovery area
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_27/o1_mf_1_15_h2x2qfh7_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_27/o1_mf_1_16_h2x34psh_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_27/o1_mf_1_17_h2xv84yz_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_27/o1_mf_1_18_h2ymtxvt_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_27/o1_mf_1_19_h2ymvdw9_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_27/o1_mf_1_20_h2ymw7wl_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_28/o1_mf_1_21_h2zctr18_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_28/o1_mf_1_22_h30m5d1k_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_28/o1_mf_1_23_h3186wg5_.arc
File Name: /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/o1_mf_1_24_h32cdtx0_.arc
searching for all files that match the pattern /u02/rman_smrrac/
List of Files Unknown to the Database
=====================================
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lkun6eo2_1716_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_llun6esu_1717_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lhun6eo1_1713_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_ljun6eo2_1715_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_liun6eo1_1714_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_loun6etd_1720_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lqun6etg_1722_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lrun6eti_1723_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lnun6etd_1719_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lpun6etd_1721_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lmun6etd_1718_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lsun6f1a_1724_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_ltun6f1a_1725_1_20200129
File Name: /u02/rman_smrrac/control_SMRRAC_20200129.bak
File Name: /u02/rman_smrrac/standbycontrol_SMRRAC_lvun6f1d_1_1.ctl
Do you really want to catalog the above files (enter YES or NO)? yes
cataloging files...
cataloging done
List of Cataloged Files
=======================
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lkun6eo2_1716_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_llun6esu_1717_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lhun6eo1_1713_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_ljun6eo2_1715_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_liun6eo1_1714_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_loun6etd_1720_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lqun6etg_1722_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lrun6eti_1723_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lnun6etd_1719_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lpun6etd_1721_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lmun6etd_1718_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_lsun6f1a_1724_1_20200129
File Name: /u02/rman_smrrac/Backup_SMRRAC_DB_ltun6f1a_1725_1_20200129
File Name: /u02/rman_smrrac/control_SMRRAC_20200129.bak
File Name: /u02/rman_smrrac/standbycontrol_SMRRAC_lvun6f1d_1_1.ctl
RMAN> run
{
set newname for datafile 1 to "/u01/app/oracle/oradata/smrrac/system01.dbf";
set newname for datafile 2 to "/u02/oradata/smrrac/idata01.dbf";
set newname for datafile 3 to "/u01/app/oracle/oradata/smrrac/sysaux01.dbf";
set newname for datafile 4 to "/u01/app/oracle/oradata/smrrac/undotbs01.dbf";
set newname for datafile 5 to "/u01/app/oracle/oradata/smrrac/undotbs02.dbf";
set newname for datafile 6 to "/u02/oradata/smrrac/users01.dbf";
set newname for datafile 7 to "/u02/oradata/smrrac/ilog01.dbf";
2> 3> 4> set newname for datafile 8 to "/u02/oradata/smrrac/indx01.dbf";
5> 6> 7> 8> 9> 10> 11> set newname for tempfile 1 to "/u01/app/oracle/oradata/smrrac/temp01.dbf";
RESTORE DATABASE;
SWITCH DATAFILE ALL;
SWITCH TEMPFILE ALL;12> 13> 14>
15> }
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 29-JAN-2020 14:25:28
using channel ORA_DISK_1
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00004 to /u01/app/oracle/oradata/smrrac/undotbs01.dbf
channel ORA_DISK_1: restoring datafile 00005 to /u01/app/oracle/oradata/smrrac/undotbs02.dbf
channel ORA_DISK_1: reading from backup piece /u02/rman_smrrac/Backup_SMRRAC_DB_loun6etd_1720_1_20200129
channel ORA_DISK_1: piece handle=/u02/rman_smrrac/Backup_SMRRAC_DB_loun6etd_1720_1_20200129 tag=TAG20200129T102133
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:15
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00001 to /u01/app/oracle/oradata/smrrac/system01.dbf
channel ORA_DISK_1: restoring datafile 00008 to /u02/oradata/smrrac/indx01.dbf
channel ORA_DISK_1: reading from backup piece /u02/rman_smrrac/Backup_SMRRAC_DB_lnun6etd_1719_1_20200129
channel ORA_DISK_1: piece handle=/u02/rman_smrrac/Backup_SMRRAC_DB_lnun6etd_1719_1_20200129 tag=TAG20200129T102133
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:35
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00003 to /u01/app/oracle/oradata/smrrac/sysaux01.dbf
channel ORA_DISK_1: restoring datafile 00007 to /u02/oradata/smrrac/ilog01.dbf
channel ORA_DISK_1: reading from backup piece /u02/rman_smrrac/Backup_SMRRAC_DB_lpun6etd_1721_1_20200129
channel ORA_DISK_1: piece handle=/u02/rman_smrrac/Backup_SMRRAC_DB_lpun6etd_1721_1_20200129 tag=TAG20200129T102133
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:55
channel ORA_DISK_1: starting datafile backup set restore
channel ORA_DISK_1: specifying datafile(s) to restore from backup set
channel ORA_DISK_1: restoring datafile 00002 to /u02/oradata/smrrac/idata01.dbf
channel ORA_DISK_1: restoring datafile 00006 to /u02/oradata/smrrac/users01.dbf
channel ORA_DISK_1: reading from backup piece /u02/rman_smrrac/Backup_SMRRAC_DB_lmun6etd_1718_1_20200129
channel ORA_DISK_1: piece handle=/u02/rman_smrrac/Backup_SMRRAC_DB_lmun6etd_1718_1_20200129 tag=TAG20200129T102133
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:02:45
Finished restore at 29-JAN-2020 14:29:58
datafile 1 switched to datafile copy
input datafile copy RECID=122 STAMP=1030976998 file name=/u01/app/oracle/oradata/smrrac/system01.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=123 STAMP=1030976998 file name=/u02/oradata/smrrac/idata01.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=124 STAMP=1030976998 file name=/u01/app/oracle/oradata/smrrac/sysaux01.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=125 STAMP=1030976998 file name=/u01/app/oracle/oradata/smrrac/undotbs01.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=126 STAMP=1030976998 file name=/u01/app/oracle/oradata/smrrac/undotbs02.dbf
datafile 6 switched to datafile copy
input datafile copy RECID=127 STAMP=1030976998 file name=/u02/oradata/smrrac/users01.dbf
datafile 7 switched to datafile copy
input datafile copy RECID=128 STAMP=1030976998 file name=/u02/oradata/smrrac/ilog01.dbf
datafile 8 switched to datafile copy
input datafile copy RECID=129 STAMP=1030976998 file name=/u02/oradata/smrrac/indx01.dbf
renamed tempfile 1 to /u01/app/oracle/oradata/smrrac/temp01.dbf in control file
RMAN> exit
Recovery Manager complete.
oracle@sgdcpl08:~> sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Wed Jan 29 14:48:34 2020
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
SQL> @d
NAME INSTANCE_NAME DB_UNIQUE_NAME OPEN_MODE DATABASE_ROLE CURRENT_SCN FAILOVER_SCN
--------- ---------------- ------------------------------ -------------------- ---------------- ------------------ ----------------------------------------
SMRRAC smrrac smrrac MOUNTED PRIMARY YES 0
SQL> recover database until cancel;
ORA-00283: recovery session canceled due to errors
ORA-01610: recovery using the BACKUP CONTROLFILE option must be done
################################################################################
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
oracle@sgdcpl08:~> sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Wed Jan 29 14:50:54 2020
Copyright (c) 1982, 2014, Oracle. All rights reserved.
Connected to:
Oracle Database 12c Enterprise Edition Release 12.1.0.2.0 - 64bit Production
With the Partitioning, OLAP, Advanced Analytics and Real Application Testing options
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
oracle@sgdcpl08:~> rman target /
Recovery Manager: Release 12.1.0.2.0 - Production on Wed Jan 29 14:50:58 2020
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: SMRRAC (DBID=4255065810, not open)
RMAN> SQL "ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_1.267.1020692667'' to ''/u01/app/oracle/oradata/smrrac/redo01.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_1.260.1020692669'' to ''/u01/app/oracle/oradata/smrrac/redo02.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_2.266.1020692669'' to ''/u01/app/oracle/oradata/smrrac/redo03.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_2.259.1020692671'' to ''/u01/app/oracle/oradata/smrrac/redo04.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_3.263.1020692675'' to ''/u01/app/oracle/oradata/smrrac/redo05.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_3.258.1020692677'' to ''/u01/app/oracle/oradata/smrrac/redo06.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_4.262.1020692677'' to ''/u01/app/oracle/oradata/smrrac/redo07.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_4.257.1020692679'' to ''/u01/app/oracle/oradata/smrrac/redo08.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_5.271.1030949473'' to ''/u01/app/oracle/oradata/smrrac/redo09.log'' ";
using target database control file instead of recovery catalog
sql statement: ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_1.267.1020692667'' to ''/u01/app/oracle/oradata/smrrac/redo01.log''
SQL "ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_5.284.1030949475'' to ''/u01/app/oracle/oradata/smrrac/redo10.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_6.274.1030949487'' to ''/u01/app/oracle/oradata/smrrac/redo11.log'' ";
SQL "ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_6.285.1030949487'' to ''/u01/app/oracle/oradata/smrrac/redo12.log'' ";
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_1.260.1020692669'' to ''/u01/app/oracle/oradata/smrrac/redo02.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_2.266.1020692669'' to ''/u01/app/oracle/oradata/smrrac/redo03.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_2.259.1020692671'' to ''/u01/app/oracle/oradata/smrrac/redo04.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_3.263.1020692675'' to ''/u01/app/oracle/oradata/smrrac/redo05.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_3.258.1020692677'' to ''/u01/app/oracle/oradata/smrrac/redo06.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_4.262.1020692677'' to ''/u01/app/oracle/oradata/smrrac/redo07.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_4.257.1020692679'' to ''/u01/app/oracle/oradata/smrrac/redo08.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_5.271.1030949473'' to ''/u01/app/oracle/oradata/smrrac/redo09.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_5.284.1030949475'' to ''/u01/app/oracle/oradata/smrrac/redo10.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+DATA/SMRRAC/ONLINELOG/group_6.274.1030949487'' to ''/u01/app/oracle/oradata/smrrac/redo11.log''
RMAN>
sql statement: ALTER DATABASE RENAME FILE ''+FRA1/SMRRAC/ONLINELOG/group_6.285.1030949487'' to ''/u01/app/oracle/oradata/smrrac/redo12.log''
RMAN>
RMAN> recover database until cancel;
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-00558: error encountered while parsing input commands
RMAN-01009: syntax error: found "cancel": expecting one of: "scn, sequence, time"
RMAN-01007: at line 1 column 24 file: standard input
RMAN> recover database;
Starting recover at 29-JAN-2020 14:51:50
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=527 device type=DISK
starting media recovery
channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archived log
archived log thread=1 sequence=821
channel ORA_DISK_1: reading from backup piece /u02/rman_smrrac/Backup_SMRRAC_DB_lsun6f1a_1724_1_20200129
channel ORA_DISK_1: piece handle=/u02/rman_smrrac/Backup_SMRRAC_DB_lsun6f1a_1724_1_20200129 tag=TAG20200129T102338
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/o1_mf_1_821_h333hq6p_.arc thread=1 sequence=821
channel ORA_DISK_1: starting archived log restore to default destination
channel ORA_DISK_1: restoring archived log
archived log thread=2 sequence=593
channel ORA_DISK_1: reading from backup piece /u02/rman_smrrac/Backup_SMRRAC_DB_ltun6f1a_1725_1_20200129
channel ORA_DISK_1: piece handle=/u02/rman_smrrac/Backup_SMRRAC_DB_ltun6f1a_1725_1_20200129 tag=TAG20200129T102338
channel ORA_DISK_1: restored backup piece 1
channel ORA_DISK_1: restore complete, elapsed time: 00:00:01
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/o1_mf_2_593_h333hrcb_.arc thread=2 sequence=593
channel default: deleting archived log(s)
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/o1_mf_1_821_h333hq6p_.arc RECID=1367 STAMP=1030978311
unable to find archived log
archived log thread=1 sequence=822
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/29/2020 14:51:54
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 822 and starting SCN of 64756182
RMAN>
login as: oracle
Keyboard-interactive authentication prompts from server:
| Password:
End of keyboard-interactive prompts from server
Last login: Thu Jan 30 07:46:09 2020 from 172.29.42.175
oracle@sgdcpl08:~> pwd
/home/oracle
oracle@sgdcpl08:~> . oraenv
ORACLE_SID = [SMRPATCH7] ? smrrac
The Oracle base remains unchanged with value /u01/app/oracle
oracle@sgdcpl08:~> rman target /
Recovery Manager: Release 12.1.0.2.0 - Production on Thu Jan 30 07:47:40 2020
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: SMRRAC (DBID=4255065810, not open)
RMAN> recover database;
Starting recover at 30-JAN-2020 07:52:00
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=176 device type=DISK
starting media recovery
archived log for thread 1 with sequence 822 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_822_1020157972.arc
archived log for thread 1 with sequence 823 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_823_1020157972.arc
archived log for thread 1 with sequence 824 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_824_1020157972.arc
archived log for thread 1 with sequence 825 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_825_1020157972.arc
archived log for thread 2 with sequence 593 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/o1_mf_2_593_h333hrcb_.arc
archived log for thread 2 with sequence 594 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_594_1020157972.arc
archived log for thread 2 with sequence 595 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_595_1020157972.arc
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_822_1020157972.arc thread=1 sequence=822
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/o1_mf_2_593_h333hrcb_.arc thread=2 sequence=593
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_594_1020157972.arc thread=2 sequence=594
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_595_1020157972.arc thread=2 sequence=595
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_823_1020157972.arc thread=1 sequence=823
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_824_1020157972.arc thread=1 sequence=824
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_825_1020157972.arc thread=1 sequence=825
unable to find archived log
archived log thread=2 sequence=596
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/30/2020 07:52:59
RMAN-06054: media recovery requesting unknown archived log for thread 2 with sequence 596 and starting SCN of 65089014
RMAN> recover database;
Starting recover at 30-JAN-2020 08:30:07
using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 825 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_825_1020157972.arc
unable to find archived log
archived log thread=2 sequence=596
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/30/2020 08:30:07
RMAN-06054: media recovery requesting unknown archived log for thread 2 with sequence 596 and starting SCN of 65089014
RMAN> recover database;
Starting recover at 30-JAN-2020 08:30:28
using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 825 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_825_1020157972.arc
unable to find archived log
archived log thread=2 sequence=596
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/30/2020 08:30:28
RMAN-06054: media recovery requesting unknown archived log for thread 2 with sequence 596 and starting SCN of 65089014
RMAN> recover database;
Starting recover at 30-JAN-2020 08:30:47
using channel ORA_DISK_1
starting media recovery
archived log for thread 1 with sequence 825 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_825_1020157972.arc
unable to find archived log
archived log thread=2 sequence=596
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/30/2020 08:30:48
RMAN-06054: media recovery requesting unknown archived log for thread 2 with sequence 596 and starting SCN of 65089014
RMAN> exit
Recovery Manager complete.
oracle@sgdcpl08:~> rman target /
Recovery Manager: Release 12.1.0.2.0 - Production on Thu Jan 30 08:31:21 2020
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: SMRRAC (DBID=4255065810, not open)
RMAN> recover database;
Starting recover at 30-JAN-2020 08:31:28
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=176 device type=DISK
starting media recovery
archived log for thread 1 with sequence 825 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_825_1020157972.arc
archived log for thread 1 with sequence 826 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_826_1020157972.arc
archived log for thread 1 with sequence 827 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_827_1020157972.arc
archived log for thread 1 with sequence 828 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_828_1020157972.arc
archived log for thread 1 with sequence 829 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_829_1020157972.arc
archived log for thread 1 with sequence 830 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_830_1020157972.arc
archived log for thread 1 with sequence 831 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_831_1020157972.arc
archived log for thread 2 with sequence 596 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_596_1020157972.arc
archived log for thread 2 with sequence 597 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_597_1020157972.arc
archived log for thread 2 with sequence 598 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_598_1020157972.arc
archived log for thread 2 with sequence 599 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_599_1020157972.arc
archived log for thread 2 with sequence 600 is already on disk as file /u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_600_1020157972.arc
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_596_1020157972.arc thread=2 sequence=596
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_825_1020157972.arc thread=1 sequence=825
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_826_1020157972.arc thread=1 sequence=826
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_827_1020157972.arc thread=1 sequence=827
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_828_1020157972.arc thread=1 sequence=828
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_597_1020157972.arc thread=2 sequence=597
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_598_1020157972.arc thread=2 sequence=598
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_829_1020157972.arc thread=1 sequence=829
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_830_1020157972.arc thread=1 sequence=830
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_599_1020157972.arc thread=2 sequence=599
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_2_600_1020157972.arc thread=2 sequence=600
archived log file name=/u01/app/oracle/fast_recovery_area/SMRRAC/archivelog/2020_01_29/arch_1_831_1020157972.arc thread=1 sequence=831
unable to find archived log
archived log thread=1 sequence=832
RMAN-00571: ===========================================================
RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
RMAN-00571: ===========================================================
RMAN-03002: failure of recover command at 01/30/2020 08:32:30
RMAN-06054: media recovery requesting unknown archived log for thread 1 with sequence 832 and starting SCN of 65557026
RMAN>
SQL> /
GROUP# STATUS TYPE MEMBER IS_ CON_ID
---------- ------- ------- -------------------------------------------------- --- ----------
1 ONLINE /u01/app/oracle/oradata/smrrac/redo01.log NO 0
1 ONLINE /u01/app/oracle/oradata/smrrac/redo02.log NO 0
2 ONLINE /u01/app/oracle/oradata/smrrac/redo03.log NO 0
2 ONLINE /u01/app/oracle/oradata/smrrac/redo04.log NO 0
3 ONLINE /u01/app/oracle/oradata/smrrac/redo05.log NO 0
3 ONLINE /u01/app/oracle/oradata/smrrac/redo06.log NO 0
4 ONLINE /u01/app/oracle/oradata/smrrac/redo07.log NO 0
4 ONLINE /u01/app/oracle/oradata/smrrac/redo08.log NO 0
5 ONLINE /u01/app/oracle/oradata/smrrac/redo09.log NO 0
5 ONLINE /u01/app/oracle/oradata/smrrac/redo10.log NO 0
6 ONLINE /u01/app/oracle/oradata/smrrac/redo11.log NO 0
GROUP# STATUS TYPE MEMBER IS_ CON_ID
---------- ------- ------- -------------------------------------------------- --- ----------
6 ONLINE /u01/app/oracle/oradata/smrrac/redo12.log NO 0
12 rows selected.
SQL> select name from v$controlfile;
NAME
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/u01/app/oracle/oradata/smrrac/control01.ctl
/u01/app/oracle/fast_recovery_area/smrrac/control02.ctl
SQL> select name from v$datafile;
NAME
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/u01/app/oracle/oradata/smrrac/system01.dbf
/u02/oradata/smrrac/idata01.dbf
/u01/app/oracle/oradata/smrrac/sysaux01.dbf
/u01/app/oracle/oradata/smrrac/undotbs01.dbf
/u01/app/oracle/oradata/smrrac/undotbs02.dbf
/u02/oradata/smrrac/users01.dbf
/u02/oradata/smrrac/ilog01.dbf
/u02/oradata/smrrac/indx01.dbf
8 rows selected.
SQL> @d
SP2-0310: unable to open file "d.sql"
SQL> @/home/oracle/d
NAME INSTANCE_NAME DB_UNIQUE_NAME OPEN_MODE DATABASE_ROLE CURRENT_SCN FAILOVER_SCN
--------- ---------------- ------------------------------ -------------------- ---------------- ------------------ ----------------------------------------
SMRRAC smrrac smrrac MOUNTED PRIMARY YES 0
SQL> alter database open resetlogs;
Database altered.
SQL> select total_size,awr_flush_emergency_count from v$ash_info;
TOTAL_SIZE AWR_FLUSH_EMERGENCY_COUNT
---------- -------------------------
8388608 1
SQL> @/home/oracle/d
NAME INSTANCE_NAME DB_UNIQUE_NAME OPEN_MODE DATABASE_ROLE CURRENT_SCN FAILOVER_SCN
--------- ---------------- ------------------------------ -------------------- ---------------- ------------------ ----------------------------------------
SMRRAC smrrac smrrac READ WRITE PRIMARY YES 0
SQL> select member from v$logfile;
MEMBER
--------------------------------------------------
/u01/app/oracle/oradata/smrrac/redo01.log
/u01/app/oracle/oradata/smrrac/redo02.log
/u01/app/oracle/oradata/smrrac/redo03.log
/u01/app/oracle/oradata/smrrac/redo04.log
/u01/app/oracle/oradata/smrrac/redo05.log
/u01/app/oracle/oradata/smrrac/redo06.log
/u01/app/oracle/oradata/smrrac/redo07.log
/u01/app/oracle/oradata/smrrac/redo08.log
/u01/app/oracle/oradata/smrrac/redo09.log
/u01/app/oracle/oradata/smrrac/redo10.log
/u01/app/oracle/oradata/smrrac/redo11.log
MEMBER
--------------------------------------------------
/u01/app/oracle/oradata/smrrac/redo12.log
12 rows selected.
SQL> select THREAD#, STATUS, ENABLED from v$thread;
THREAD# STATUS ENABLED
---------- ------ --------
1 OPEN PUBLIC
2 CLOSED PUBLIC
SQL> select group# from v$log where THREAD#=2;
GROUP#
----------
3
4
6
SQL> alter database disable thread 2;
Database altered.
SQL> alter database clear unarchived logfile group 3
2 ;
Database altered.
SQL> alter database clear unarchived logfile group 4;
Database altered.
SQL> alter database clear unarchived logfile group 6;
Database altered.
SQL> select THREAD#, STATUS, ENABLED from v$thread;
THREAD# STATUS ENABLED
---------- ------ --------
1 OPEN PUBLIC
2 CLOSED DISABLED
SQL> sho parameter undo;
NAME TYPE VALUE
------------------------------------ ----------- ------------------------------
temp_undo_enabled boolean FALSE
undo_management string AUTO
undo_retention integer 900
undo_tablespace string UNDOTBS1
SQL> select tablespace_name from dba_tablespaces where contents='UNDO';
TABLESPACE_NAME
------------------------------
UNDOTBS1
UNDOTBS2
SQL> drop tablespace UNDOTBS2 including contents and datafiles;
Tablespace dropped.
SQL> select name from v$tempfile;
NAME
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
/u01/app/oracle/oradata/smrrac/temp01.dbf
SQL> select tablespace_name from dba_tablespaces where contents='TEMPORARY';
TABLESPACE_NAME
------------------------------
TEMP
SQL> create temporary tablespace TEMP1 tempfile '/u01/app/oracle/oradata/smrrac/temp001.dbf' size 50m;
Tablespace created.
SQL> alter database default temporary tablespace TEMP1;
Database altered.
SQL> drop tablespace TEMP including contents and datafiles;
Tablespace dropped.
SQL> select tablespace_name from dba_tablespaces where contents='TEMPORARY';
TABLESPACE_NAME
------------------------------
TEMP1
SQL> @/home/oracle/d
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\
NOTE : --- increase pga_target , sga , temp file , undo file if required, match with production requirement.
No comments:
Post a Comment