When trying to delete Database archivelog where goldengate in running using rman i see below Warning message.
RMAN> Delete archivelog all completed before 'SYSDATE-3';
released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=2907 device type=DISK
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=+RECO/TESTDB/ARCHIVELOG/ 2017_10_07/thread_1_seq_3435. 12440.956737243 thread=1 sequence=3435
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=+RECO/TESTDB/ARCHIVELOG/ 2017_10_07/thread_1_seq_3436. 12438.956746549 thread=1 sequence=3436
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=+RECO/TESTDB/ARCHIVELOG/ 2017_10_07/thread_1_seq_3437. 12437.956746819 thread=1 sequence=3437
RMAN-08137: WARNING: archived log not deleted, needed for standby or upstream capture process
archived log file name=+RECO/TESTDB/ARCHIVELOG/ 2017_10_07/thread_1_seq_3438. 12436.956746869 thread=1 sequence=3438
SQL> select capture_name, status, captured_scn, applied_scn, capture_type,STATUS_CHANGE_ TIME from dba_capture;
CAPTURE_NAME STATUS CAPTURED_SCN APPLIED_SCN CAPTURE_TY STATUS_CHAN
------------------------------ ------------------------------ ------------------------------ ------------------------- -------- ------------
----------- ---------- -----------
OGG$CAP_ETESTDB ENABLED 3.3555E+11 3.3555E+11 LOCAL 27-JUN-2017
OGG$CAP_ETESTDBQ2 ENABLED 3.5047E+11 3.5047E+11 LOCAL 13-NOV-2017
I see one of the OLD Extract process(ETESTDB) is registered and blocking archivelog deletion using RMAN which is not used any more so I need to delete that to resolve the issue
SQL> exec DBMS_CAPTURE_ADM.STOP_CAPTURE( 'OGG$CAP_ETESTDB');
^CBEGIN DBMS_CAPTURE_ADM.STOP_CAPTURE( 'OGG$CAP_ETESTDB'); END;
*
ERROR at line 1:
ORA-01013: user requested cancel of current operation
ORA-06512: at "SYS.DBMS_LOGREP_UTIL", line 1310
ORA-06512: at "SYS.DBMS_CAPTURE_ADM", line 90
ORA-06512: at line 1
Hanging here ..............so killed
GGSCI (ORACLEDEV01) 2> dblogin useridalias gguser_dev
ERROR: Unable to connect to database using user GGUSER. Please check privileges.
Unable to initialize database connection because of error ORA-00257: Archiver error. Connect AS SYSDBA only until resolved..
GGSCI (ORACLEDEV01) 3> dblogin useridalias gguser_dev
Successfully logged into database.
GGSCI (ORACLEDEV01 as GGUSER@TESTDB) 4> unregister extract ETESTDB database
2017-11-14 11:14:21 INFO OGG-01750 Successfully unregistered EXTRACT ETESTDB from database.
GGSCI (ORACLEDEV01 as GGUSER@TESTDB) 5> exit
oracledev01:TESTDB:/home/ oracle $ sqlplus / as sysdba
SQL*Plus: Release 12.1.0.2.0 Production on Tue Nov 14 11:14:33 2017
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, Automatic Storage Management, OLAP, Advanced Analytics
and Real Application Testing options
SQL> select capture_name, status, captured_scn, applied_scn, capture_type,STATUS_CHANGE_ TIME from dba_capture;
CAPTURE_NAME
------------------------------ ------------------------------ --------------------
STATUS CAPTURED_SCN APPLIED_SCN CAPTURE_TY STATUS_CHAN
-------- ------------ ----------- ---------- -----------
OGG$CAP_ETESTDBQ2
ENABLED 3.5062E+11 3.5062E+11 LOCAL 13-NOV-2017
Refer Oracle Doc:
RMAN-08137: WARNING: Archived Log Not Deleted, Needed For Standby Or Upstream Capture Proces (Doc ID 1993799.1)
0 comments:
Post a Comment