[Dg] space is full cause dg standby database can not apply arch log, suggesting ora-00600 ora-10877

First, turn off the automatic opening mrp

SQL> show parameter standby
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
standby_archive_dest                 string      ?/dbs/arch
standby_file_management              string      AUTO
SQL> alter system set standby_file_management=manual scope=both;
System altered.
SQL> show parameter standby
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
standby_archive_dest                 string      ?/dbs/arch
standby_file_management              string      MANUAL
 

Second, the resynchronization primary logs to standby (see ora-00600 treated alert in the arch of which appear in the file, which are synchronized arch after it)

[oracle@localhost archivelog]$  scp [email protected]:/u01/app/oracle/flash_recovery_area/ORCL/archivelog/*.dbf ./
[email protected]'s password: 
1_60_754610767.dbf                                                                                  100%   40MB  19.8MB/s   00:02    
1_61_754610767.dbf                                                                                  100%   38MB  19.1MB/s   00:02    
1_62_754610767.dbf                                                                                  100% 9335KB   9.1MB/s   00:00    
1_63_754610767.dbf                                                                                  100%   20MB  10.1MB/s   00:02    
1_64_754610767.dbf                                                                                  100% 1684KB   1.6MB/s   00:00    
1_65_754610767.dbf                                                                                  100%  701KB 701.0KB/s   00:01    
1_66_754610767.dbf                                                                                  100%   38MB  19.2MB/s   00:02    
1_67_754610767.dbf                                                                                  100%   30MB  15.0MB/s   00:02    
1_68_754610767.dbf                                                                                  100%   39MB  19.3MB/s   00:02    
1_69_754610767.dbf                                                                                  100%   42MB  13.9MB/s   00:03    
1_70_754610767.dbf                                                                                  100%   45MB  22.6MB/s   00:02    
1_71_754610767.dbf                                                                                  100% 3927KB   3.8MB/s   00:01    
1_72_754610767.dbf                                                                                  100% 1536     1.5KB/s   00:00    
1_73_754610767.dbf                                                                                  100% 4608     4.5KB/s   00:00    
1_74_754610767.dbf                                                                                  100% 1024     1.0KB/s   00:00    
1_75_754610767.dbf                                                                                  100% 2048     2.0KB/s   00:00    
1_76_754610767.dbf                                                                                  100% 1536     1.5KB/s   00:00    
1_77_754610767.dbf                                                                                  100% 2048     2.0KB/s   00:00    
1_78_754610767.dbf                                                                                  100% 1024     1.0KB/s   00:00    
1_79_754610767.dbf                                                                                  100%  146KB 146.0KB/s   00:00    
1_80_754610767.dbf                                                                                  100% 4096     4.0KB/s   00:00    
1_81_754610767.dbf                                                                                  100% 5120     5.0KB/s   00:00    
1_82_754610767.dbf                                                                                  100% 3072     3.0KB/s   00:00    
1_83_754610767.dbf                                                                                  100%   22KB  21.5KB/s   00:00    
1_84_754610767.dbf                                                                                  100%  676KB 676.0KB/s   00:00    
1_85_754610767.dbf                                                                                  100% 1024     1.0KB/s   00:00    
1_86_754610767.dbf                                                                                  100%   45MB  15.1MB/s   00:03    
1_87_754610767.dbf                                                                                  100%   39MB  19.3MB/s   00:02    
1_88_754610767.dbf                                                                                  100%   29MB  14.7MB/s   00:02    
[oracle@localhost archivelog]$ 
 

Third, shut the

shut down:

主库
shutdown immediate;

备库
alter database recover managed standby database cancel;
shutdown immediate;

 

ON:

Library equipment:

 

Startup nomount

SQL> alter database mount standby database;

SQL> alter database recover  managed standby database disconnect from session;

Here you can see already up mrp

SQL> select process,status,pid,client_process,client_pid,group#,sequence#,block#
  2  from v$managed_standby;

PROCESS   STATUS              PID CLIENT_P CLIENT_PID GROUP#      SEQUENCE#     BLOCK#
--------- ------------ ---------- -------- ---------- ---------- ---------- ----------
ARCH      CONNECTED         13249 ARCH     13249      N/A                 0          0
ARCH      CONNECTED         13252 ARCH     13252      N/A                 0          0
ARCH      CONNECTED         13254 ARCH     13254      N/A                 0          0
ARCH      CONNECTED         13256 ARCH     13256      N/A                 0          0
MRP0      APPLYING_LOG      13280 N/A      N/A        N/A                74          1

And the arch has begun applying

When all aplly up, power on standby to readonly

SQL> alter database recover managed standby database cancel;

SQL> alter database open read only;

Main Library:

Startup 

We can see the standby rfs also up after the main library up


SQL> select process,status,pid,client_process,client_pid,group#,sequence#,block#
  2  from v$managed_standby;

PROCESS   STATUS              PID CLIENT_P CLIENT_PID GROUP#      SEQUENCE#     BLOCK#
--------- ------------ ---------- -------- ---------- ---------- ---------- ----------
ARCH      CONNECTED         13249 ARCH     13249      N/A                 0          0
ARCH      CONNECTED         13252 ARCH     13252      N/A                 0          0
ARCH      CONNECTED         13254 ARCH     13254      N/A                 0          0
ARCH      CONNECTED         13256 ARCH     13256      N/A                 0          0
MRP0      WAIT_FOR_LOG      13425 N/A      N/A        N/A                90          0
RFS       IDLE              13455 LGWR     2267       3                  90        375
RFS       IDLE              13457 N/A      2295       N/A                 0          0
RFS       IDLE              13459 UNKNOWN  2297       N/A                 0          0
RFS       IDLE              13461 UNKNOWN  2291       N/A                 0          0

9 rows selected.


Fourth, the modification is automatically turned mrp

alter system set standby_file_management=auto scope=both;

 

Guess you like

Origin blog.csdn.net/viviliving/article/details/93596227