Well, the error clearly says, either goldengate integrated captures or dataguard is used, which still need those archives.
However, We are not using any of these. It is just a standalone database, still getting the error. Then we recalled, that the database was cloned from a production database where goldengate integrated capture is used.
So to fix this, I have removed the capture processes.
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process
[oracle@rac1 ~]$ rman target /
Recovery Manager: Release 19.0.0.0.0 - Production on Tue Jan 25 23:08:05 2022
Version 19.3.0.0.0
Copyright (c) 1982, 2019, Oracle and/or its affiliates. All rights reserved.
connected to target database: RACDB (DBID=1091256415)
RMAN> delete archivelog all;
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=512 instance=RACDB1 device type=DISK
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process
archived log file name=+OCRVOTE/RACDB/ARCHIVELOG/2022_01_24/thread_1_seq_73.328.1094839909 thread=1 sequence=73
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process
archived log file name=+OCRVOTE/RACDB/ARCHIVELOG/2022_01_24/thread_1_seq_74.329.1094839911 thread=1 sequence=74
RMAN-08137: warning: archived log not deleted, needed for standby or upstream capture process
archived log file name=+OCRVOTE/RACDB/ARCHIVELOG/2022_01_24/thread_1_seq_75.330.1094840379 thread=1 sequence=75
select CAPTURE_NAME,QUEUE_OWNER,status from dba_capture;
CAPTURE_NAME QUEUE_OWNER STATUS
------------------------------ ---------------------------------------- --------
OGG$CAP_EXTPATO C##GOLDEN ENABLED
OGG$CAP_E_CDB C##GOLDEN DISABLED
OGG$CAP_E_SCOTT C##GGADMIN DISABLED
SQL> exec DBMS_CAPTURE_ADM.DROP_CAPTURE('OGG$CAP_E_CDB');
PL/SQL procedure successfully completed.
SQL> exec DBMS_CAPTURE_ADM.DROP_CAPTURE('OGG$CAP_E_SCOTT');
PL/SQL procedure successfully completed.
RMAN> delete archivelog all;
using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=512 instance=RACDB1 device type=DISK
List of Archived Log Copies for database with db_unique_name RACDB
=====================================================================
Key Thrd Seq S Low Time
------- ---- ------- - ---------
1 1 73 A 24-JAN-22
Name: +OCRVOTE/RACDB/ARCHIVELOG/2022_01_24/thread_1_seq_73.328.1094839909
2 1 74 A 24-JAN-22
Name: +OCRVOTE/RACDB/ARCHIVELOG/2022_01_24/thread_1_seq_74.329.1094839911
3 1 75 A 24-JAN-22
Name: +OCRVOTE/RACDB/ARCHIVELOG/2022_01_24/thread_1_seq_75.330.1094840379
.
.
.
.
.
archived log file name=+OCRVOTE/RACDB/ARCHIVELOG/2022_01_25/thread_2_seq_65.399.1094937081 RECID=72 STAMP=1094937082
deleted archived log
archived log file name=+OCRVOTE/RACDB/ARCHIVELOG/2022_01_25/thread_2_seq_66.309.1094937243 RECID=73 STAMP=1094937244
deleted archived log
archived log file name=+OCRVOTE/RACDB/ARCHIVELOG/2022_01_25/thread_2_seq_67.287.1094938063 RECID=76 STAMP=1094938062
deleted archived log
archived log file name=+OCRVOTE/RACDB/ARCHIVELOG/2022_01_25/thread_2_seq_68.403.1094940499 RECID=83 STAMP=1094940500
deleted archived log
archived log file name=+OCRVOTE/RACDB/ARCHIVELOG/2022_01_25/thread_2_seq_69.406.1094940559 RECID=86 STAMP=1094940559
Deleted 86 objects
------- ---- ------- - ---------
1 1 73 A 24-JAN-22
Name: +OCRVOTE/RACDB/ARCHIVELOG/2022_01_24/thread_1_seq_73.328.1094839909
2 1 74 A 24-JAN-22
Name: +OCRVOTE/RACDB/ARCHIVELOG/2022_01_24/thread_1_seq_74.329.1094839911
3 1 75 A 24-JAN-22
Name: +OCRVOTE/RACDB/ARCHIVELOG/2022_01_24/thread_1_seq_75.330.1094840379
.
.
.
.
.
archived log file name=+OCRVOTE/RACDB/ARCHIVELOG/2022_01_25/thread_2_seq_65.399.1094937081 RECID=72 STAMP=1094937082
deleted archived log
archived log file name=+OCRVOTE/RACDB/ARCHIVELOG/2022_01_25/thread_2_seq_66.309.1094937243 RECID=73 STAMP=1094937244
deleted archived log
archived log file name=+OCRVOTE/RACDB/ARCHIVELOG/2022_01_25/thread_2_seq_67.287.1094938063 RECID=76 STAMP=1094938062
deleted archived log
archived log file name=+OCRVOTE/RACDB/ARCHIVELOG/2022_01_25/thread_2_seq_68.403.1094940499 RECID=83 STAMP=1094940500
deleted archived log
archived log file name=+OCRVOTE/RACDB/ARCHIVELOG/2022_01_25/thread_2_seq_69.406.1094940559 RECID=86 STAMP=1094940559
Deleted 86 objects
Comments
Post a Comment