ADG搭建dupliate详解

主库日志

在这里插入图片描述

Duplicate日志

Recovery Manager: Release 11.2.0.4.0 - Production on Wed Nov 24 23:19:30 2021

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

connected to target database: BPXTEST (DBID=333435123)
connected to auxiliary database: BPXTEST (not mounted)

RMAN> 2> 3> 4> 5> 6> 7> 8> 9> 
using target database control file instead of recovery catalog
allocated channel: c1
channel c1: SID=386 device type=DISK

allocated channel: c2
channel c2: SID=577 device type=DISK

allocated channel: c3
channel c3: SID=768 device type=DISK

allocated channel: c4
channel c4: SID=3763 instance=bpxtest2 device type=DISK

allocated channel: c5
channel c5: SID=11280 instance=bpxtest2 device type=DISK

allocated channel: c6
channel c6: SID=13158 instance=bpxtest2 device type=DISK

Starting Duplicate Db at 2021-11-24 23:19:33

contents of Memory Script:
{
   backup as copy reuse
   passwordfile auxiliary format  '/opt/oracle/products/dbs/orapwbpxtest2'   ;
}
executing Memory Script

Starting backup at 2021-11-24 23:19:36
Finished backup at 2021-11-24 23:19:37

contents of Memory Script:
{
   backup as copy current controlfile for standby auxiliary format  '/data/control01.ctl';
}
executing Memory Script

Starting backup at 2021-11-24 23:19:37
channel c4: starting datafile copy
copying standby control file
output file name=/data/control01.ctl tag=TAG20211124T231937
channel c4: datafile copy complete, elapsed time: 00:00:01
Finished backup at 2021-11-24 23:19:39

contents of Memory Script:
{
   sql clone 'alter database mount standby database';
}
executing Memory Script

sql statement: alter database mount standby database

contents of Memory Script:
{
   set newname for clone tempfile  1 to new;
   switch clone tempfile all;
   set newname for clone datafile  1 to new;
   set newname for clone datafile  2 to new;
   set newname for clone datafile  3 to new;
   set newname for clone datafile  4 to new;
   set newname for clone datafile  5 to new;
   set newname for clone datafile  6 to new;
   set newname for clone datafile  7 to new;
   set newname for clone datafile  8 to new;
   backup as copy reuse
   datafile  1 auxiliary format new
   datafile  2 auxiliary format new
   datafile  3 auxiliary format new
   datafile  4 auxiliary format new
   datafile  5 auxiliary format new
   datafile  6 auxiliary format new
   datafile  7 auxiliary format new
   datafile  8 auxiliary format new
   ;
   sql 'alter system archive log current';
}
executing Memory Script

executing command: SET NEWNAME

renamed tempfile 1 to /data/BACKUP/datafile/o1_mf_temp_%u_.tmp in control file

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 backup at 2021-11-24 23:19:44
channel c4: starting datafile copy
input datafile file number=00008 name=+DATADG/bpxtest/datafile/soe.1989.1089198771
channel c5: starting datafile copy
input datafile file number=00002 name=+DATADG/bpxtest/datafile/sysaux.1093.1087663141
channel c6: starting datafile copy
input datafile file number=00001 name=+DATADG/bpxtest/datafile/system.1095.1087663141
output file name=/data/BACKUP/datafile/o1_mf_system_0l0f0ucg_.dbf tag=TAG20211124T231944
channel c6: datafile copy complete, elapsed time: 00:00:25
channel c6: starting datafile copy
input datafile file number=00003 name=+DATADG/bpxtest/datafile/undotbs1.1091.1087663141
output file name=/data/BACKUP/datafile/o1_mf_undotbs1_0m0f0ud9_.dbf tag=TAG20211124T231944
channel c6: datafile copy complete, elapsed time: 00:00:25
channel c6: starting datafile copy
input datafile file number=00006 name=+DATADG/bpxtest/datafile/bpxtest.1183.1087726203
output file name=/data/BACKUP/datafile/o1_mf_sysaux_0k0f0ucg_.dbf tag=TAG20211124T231944
channel c5: datafile copy complete, elapsed time: 00:00:51
channel c5: starting datafile copy
input datafile file number=00007 name=/home/oracle/bpxtest.dbf
output file name=/data/BACKUP/datafile/o1_mf_bpxtest_0n0f0ue2_.dbf tag=TAG20211124T231944
channel c6: datafile copy complete, elapsed time: 00:00:02
channel c6: starting datafile copy
input datafile file number=00005 name=+DATADG/bpxtest/datafile/undotbs2.1047.1087663247
output file name=/data/BACKUP/datafile/o1_mf_bpxtest_0o0f0ue3_.dbf tag=TAG20211124T231944
channel c5: datafile copy complete, elapsed time: 00:00:04
channel c5: starting datafile copy
input datafile file number=00004 name=+DATADG/bpxtest/datafile/users.1089.1087663141
output file name=/data/BACKUP/datafile/o1_mf_undotbs2_0p0f0ue4_.dbf tag=TAG20211124T231944
channel c6: datafile copy complete, elapsed time: 00:00:04
output file name=/data/BACKUP/datafile/o1_mf_users_0q0f0ue8_.dbf tag=TAG20211124T231944
channel c5: datafile copy complete, elapsed time: 00:00:01
output file name=/data/BACKUP/datafile/o1_mf_soe_0j0f0ucg_.dbf tag=TAG20211124T231944
channel c4: datafile copy complete, elapsed time: 00:01:03
Finished backup at 2021-11-24 23:20:47

sql statement: alter system archive log current

contents of Memory Script:
{
   backup as copy reuse
   archivelog like  "+DATADG/bpxtest/archivelog/2021_11_24/thread_1_seq_245.1416.1089501647" auxiliary format 
 "/archive/1_245_1087663221.dbf"   archivelog like 
 "+DATADG/bpxtest/archivelog/2021_11_24/thread_2_seq_228.1413.1089500259" auxiliary format 
 "/archive/2_228_1087663221.dbf"   archivelog like 
 "+DATADG/bpxtest/archivelog/2021_11_24/thread_2_seq_229.1414.1089501051" auxiliary format 
 "/archive/2_229_1087663221.dbf"   archivelog like 
 "+DATADG/bpxtest/archivelog/2021_11_24/thread_2_seq_230.1415.1089501647" auxiliary format 
 "/archive/2_230_1087663221.dbf"   ;
   catalog clone archivelog  "/archive/1_245_1087663221.dbf";
   catalog clone archivelog  "/archive/2_228_1087663221.dbf";
   catalog clone archivelog  "/archive/2_229_1087663221.dbf";
   catalog clone archivelog  "/archive/2_230_1087663221.dbf";
   switch clone datafile all;
}
executing Memory Script

Starting backup at 2021-11-24 23:20:54
channel c4: starting archived log copy
input archived log thread=1 sequence=245 RECID=829 STAMP=1089501648
channel c5: starting archived log copy
input archived log thread=2 sequence=228 RECID=826 STAMP=1089500259
channel c6: starting archived log copy
input archived log thread=2 sequence=229 RECID=827 STAMP=1089501050
output file name=/archive/1_245_1087663221.dbf RECID=0 STAMP=0
channel c4: archived log copy complete, elapsed time: 00:00:00
channel c4: starting archived log copy
input archived log thread=2 sequence=230 RECID=828 STAMP=1089501647
output file name=/archive/2_228_1087663221.dbf RECID=0 STAMP=0
channel c5: archived log copy complete, elapsed time: 00:00:00
output file name=/archive/2_229_1087663221.dbf RECID=0 STAMP=0
channel c6: archived log copy complete, elapsed time: 00:00:00
output file name=/archive/2_230_1087663221.dbf RECID=0 STAMP=0
channel c4: archived log copy complete, elapsed time: 00:00:01
Finished backup at 2021-11-24 23:20:56

cataloged archived log
archived log file name=/archive/1_245_1087663221.dbf RECID=1 STAMP=1089501564

cataloged archived log
archived log file name=/archive/2_228_1087663221.dbf RECID=2 STAMP=1089501564

cataloged archived log
archived log file name=/archive/2_229_1087663221.dbf RECID=3 STAMP=1089501564

cataloged archived log
archived log file name=/archive/2_230_1087663221.dbf RECID=4 STAMP=1089501564

datafile 1 switched to datafile copy
input datafile copy RECID=1 STAMP=1089501564 file name=/data/BACKUP/datafile/o1_mf_system_0l0f0ucg_.dbf
datafile 2 switched to datafile copy
input datafile copy RECID=2 STAMP=1089501564 file name=/data/BACKUP/datafile/o1_mf_sysaux_0k0f0ucg_.dbf
datafile 3 switched to datafile copy
input datafile copy RECID=3 STAMP=1089501564 file name=/data/BACKUP/datafile/o1_mf_undotbs1_0m0f0ud9_.dbf
datafile 4 switched to datafile copy
input datafile copy RECID=4 STAMP=1089501564 file name=/data/BACKUP/datafile/o1_mf_users_0q0f0ue8_.dbf
datafile 5 switched to datafile copy
input datafile copy RECID=5 STAMP=1089501564 file name=/data/BACKUP/datafile/o1_mf_undotbs2_0p0f0ue4_.dbf
datafile 6 switched to datafile copy
input datafile copy RECID=6 STAMP=1089501564 file name=/data/BACKUP/datafile/o1_mf_bpxtest_0n0f0ue2_.dbf
datafile 7 switched to datafile copy
input datafile copy RECID=7 STAMP=1089501564 file name=/data/BACKUP/datafile/o1_mf_bpxtest_0o0f0ue3_.dbf
datafile 8 switched to datafile copy
input datafile copy RECID=8 STAMP=1089501564 file name=/data/BACKUP/datafile/o1_mf_soe_0j0f0ucg_.dbf

contents of Memory Script:
{
   set until scn  6610955;
   recover
   standby
   clone database
    delete archivelog
   ;
}
executing Memory Script

executing command: SET until clause

Starting recover at 2021-11-24 23:20:57

starting media recovery

archived log for thread 1 with sequence 245 is already on disk as file /archive/1_245_1087663221.dbf
archived log for thread 2 with sequence 230 is already on disk as file /archive/2_230_1087663221.dbf
archived log file name=/archive/1_245_1087663221.dbf thread=1 sequence=245
archived log file name=/archive/2_230_1087663221.dbf thread=2 sequence=230
media recovery complete, elapsed time: 00:00:00
Finished recover at 2021-11-24 23:20:58
Finished Duplicate Db at 2021-11-24 23:21:19
released channel: c1
released channel: c2
released channel: c3
released channel: c4
released channel: c5
released channel: c6

RMAN> 

Recovery Manager complete.

备库日志

启动备库(nomount)

Wed Nov 24 11:58:55 2021
Starting ORACLE instance (normal)
************************ Large Pages Information *******************
Per process system memlock (soft) limit = UNLIMITED
 
Total Shared Global Region in Large Pages = 0 KB (0%)
 
Large Pages used by this instance: 0 (0 KB)
Large Pages unused system wide = 0 (0 KB)
Large Pages configured system wide = 0 (0 KB)
Large Page size = 2048 KB
 
RECOMMENDATION:
  Total System Global Area size is 8194 MB. For optimal performance,
  prior to the next instance restart:
  1. Increase the number of unused large pages by 
 at least 4097 (page size 2048 KB, total size 8194 MB) system wide to
  get 100% of the System Global Area allocated with large pages
********************************************************************
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
Initial number of CPU is 8
Number of processor cores in the system is 8
Number of processor sockets in the system is 8
Shared memory segment for instance monitoring created
Picked latch-free SCN scheme 3
Autotune of undo retention is turned on. 
IMODE=BR
ILAT =168
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options.
ORACLE_HOME = /opt/oracle/products
System name:	Linux
Node name:	10-10-180-29
Release:	3.10.0-693.el7.x86_64
Version:	#1 SMP Thu Jul 6 19:56:57 EDT 2017
Machine:	x86_64
Using parameter settings in server-side pfile /opt/oracle/products/dbs/initbpxtest2.ora
System parameters with non-default values:
  processes                = 1000
  _high_priority_processes = "LMS*|VKTM|DBW*|LGWR"
  filesystemio_options     = "setall"
  _disk_sector_size_override= TRUE
  sga_target               = 8G
  memory_target            = 0
  control_files            = "/data/control01.ctl"
  db_block_size            = 8192
  db_2k_cache_size         = 32M
  db_4k_cache_size         = 32M
  db_16k_cache_size        = 32M
  db_32k_cache_size        = 32M
  db_writer_processes      = 8
  compatible               = "11.2.0.4.0"
  log_archive_dest_1       = "location=/archive"
  log_archive_dest_2       = "service=primary_db db_unique_name=bpxtest reopen=30 compression=enable valid_for=(all_logfiles, primary_role)"
  fal_client               = "slave_db"
  fal_server               = "primary_db"
  log_archive_config       = ""
  db_files                 = 2000
  cluster_database         = FALSE
  db_create_file_dest      = "/data"
  db_create_online_log_dest_1= "/redo"
  standby_file_management  = "AUTO"
  sec_case_sensitive_logon = TRUE
  audit_sys_operations     = FALSE
  service_names            = "bpxtest"
  local_listener           = ""
  remote_listener          = ""
  parallel_execution_message_size= 65536
  audit_file_dest          = "/opt/oracle/admin"
  db_name                  = "BPXTEST"
  db_unique_name           = "backup"
  open_cursors             = 2000
Wed Nov 24 11:58:57 2021
PMON started with pid=2, OS id=1950 
Wed Nov 24 11:58:57 2021
PSP0 started with pid=3, OS id=1952 
Wed Nov 24 11:58:58 2021
VKTM started with pid=4, OS id=1955 
VKTM running at (100ms) precision 
Wed Nov 24 11:58:58 2021
GEN0 started with pid=5, OS id=1959 
Wed Nov 24 11:58:58 2021
DIAG started with pid=6, OS id=1961 
Wed Nov 24 11:58:58 2021
DBRM started with pid=7, OS id=1963 
Wed Nov 24 11:58:58 2021
DIA0 started with pid=8, OS id=1965 
Wed Nov 24 11:58:58 2021
MMAN started with pid=9, OS id=1967 
Wed Nov 24 11:58:58 2021
DBW0 started with pid=10, OS id=1969 
Wed Nov 24 11:58:58 2021
DBW1 started with pid=11, OS id=1973 
Wed Nov 24 11:58:58 2021
DBW2 started with pid=12, OS id=1977 
Wed Nov 24 11:58:58 2021
DBW3 started with pid=13, OS id=1981 
Wed Nov 24 11:58:58 2021
DBW4 started with pid=14, OS id=1985 
Wed Nov 24 11:58:58 2021
DBW5 started with pid=15, OS id=1989 
Wed Nov 24 11:58:58 2021
DBW6 started with pid=16, OS id=1993 
Wed Nov 24 11:58:58 2021
DBW7 started with pid=17, OS id=1997 
Wed Nov 24 11:58:58 2021
LGWR started with pid=18, OS id=2001 
Wed Nov 24 11:58:58 2021
CKPT started with pid=19, OS id=2005 
Wed Nov 24 11:58:58 2021
SMON started with pid=20, OS id=2007 
Wed Nov 24 11:58:58 2021
RECO started with pid=21, OS id=2009 
Wed Nov 24 11:58:58 2021
MMON started with pid=22, OS id=2011 
Wed Nov 24 11:58:58 2021
MMNL started with pid=23, OS id=2013 
ORACLE_BASE from environment = /opt/oracle
Wed Nov 24 23:01:18 2021
Using STANDBY_ARCHIVE_DEST parameter default value as /archive
destination database instance is 'started' not 'mounted'
Wed Nov 24 23:02:18 2021
destination database instance is 'started' not 'mounted'
Wed Nov 24 23:03:19 2021
destination database instance is 'started' not 'mounted'

启动备库(mount)

RFS connections have been disallowed
alter database mount standby database
Set as converted control file due to db_unique_name mismatch
Changing di2dbun from bpxtest to backup
ARCH: STARTING ARCH PROCESSES
Wed Nov 24 23:18:11 2021
ARC0 started with pid=29, OS id=14212 
ARC0: Archival started
ARCH: STARTING ARCH PROCESSES COMPLETE
ARC0: STARTING ARCH PROCESSES
Wed Nov 24 23:18:11 2021
Successful mount of redo thread 2, with mount id 335267759
Physical Standby Database mounted.
Lost write protection disabled
Wed Nov 24 23:18:11 2021
ARC1 started with pid=30, OS id=14214 
Wed Nov 24 23:18:11 2021
ARC2 started with pid=31, OS id=14216 
Wed Nov 24 23:18:11 2021
ARC3 started with pid=32, OS id=14218 
ARC1: Archival started
ARC2: Archival started
ARC1: Becoming the 'no FAL' ARCH
ARC2: Becoming the heartbeat ARCH
ARC2: Becoming the active heartbeat ARCH
Create Relation IPS_PACKAGE_UNPACK_HISTORY
ARC3: Archival started
ARC0: STARTING ARCH PROCESSES COMPLETE
Completed: alter database mount standby database
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_lgwr_2001.trc:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: '+DATADG/bpxtest/onlinelog/group_1.1059.1087663221'
ORA-17503: ksfdopn:2 Failed to open file +DATADG/bpxtest/onlinelog/group_1.1059.1087663221
ORA-15001: diskgroup "DATADG" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
ORA-29701: unable to connect to Cluster Synchronization Service
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_lgwr_2001.trc:
ORA-00313: open failed for members of log group 1 of thread 1
ORA-00312: online log 1 thread 1: '+DATADG/bpxtest/onlinelog/group_1.1059.1087663221'
ORA-17503: ksfdopn:2 Failed to open file +DATADG/bpxtest/onlinelog/group_1.1059.1087663221
ORA-15001: diskgroup "DATADG" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
ORA-29701: unable to connect to Cluster Synchronization Service
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_lgwr_2001.trc:
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00312: online log 2 thread 1: '+DATADG/bpxtest/onlinelog/group_2.1055.1087663223'
ORA-17503: ksfdopn:2 Failed to open file +DATADG/bpxtest/onlinelog/group_2.1055.1087663223
ORA-15001: diskgroup "DATADG" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
ORA-29701: unable to connect to Cluster Synchronization Service
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_lgwr_2001.trc:
ORA-00313: open failed for members of log group 2 of thread 1
ORA-00312: online log 2 thread 1: '+DATADG/bpxtest/onlinelog/group_2.1055.1087663223'
ORA-17503: ksfdopn:2 Failed to open file +DATADG/bpxtest/onlinelog/group_2.1055.1087663223
ORA-15001: diskgroup "DATADG" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
ORA-29701: unable to connect to Cluster Synchronization Service
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_lgwr_2001.trc:
ORA-00313: open failed for members of log group 3 of thread 2
ORA-00312: online log 3 thread 2: '+DATADG/bpxtest/onlinelog/group_3.1045.1087663301'
ORA-17503: ksfdopn:2 Failed to open file +DATADG/bpxtest/onlinelog/group_3.1045.1087663301
ORA-15001: diskgroup "DATADG" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
ORA-29701: unable to connect to Cluster Synchronization Service
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_lgwr_2001.trc:
ORA-00313: open failed for members of log group 3 of thread 2
ORA-00312: online log 3 thread 2: '+DATADG/bpxtest/onlinelog/group_3.1045.1087663301'
ORA-17503: ksfdopn:2 Failed to open file +DATADG/bpxtest/onlinelog/group_3.1045.1087663301
ORA-15001: diskgroup "DATADG" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
ORA-29701: unable to connect to Cluster Synchronization Service
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_lgwr_2001.trc:
ORA-00313: open failed for members of log group 4 of thread 2
ORA-00312: online log 4 thread 2: '+DATADG/bpxtest/onlinelog/group_4.1043.1087663303'
ORA-17503: ksfdopn:2 Failed to open file +DATADG/bpxtest/onlinelog/group_4.1043.1087663303
ORA-15001: diskgroup "DATADG" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
ORA-29701: unable to connect to Cluster Synchronization Service
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_lgwr_2001.trc:
ORA-00313: open failed for members of log group 4 of thread 2
ORA-00312: online log 4 thread 2: '+DATADG/bpxtest/onlinelog/group_4.1043.1087663303'
ORA-17503: ksfdopn:2 Failed to open file +DATADG/bpxtest/onlinelog/group_4.1043.1087663303
ORA-15001: diskgroup "DATADG" does not exist or is not mounted
ORA-15077: could not locate ASM instance serving a required diskgroup
ORA-29701: unable to connect to Cluster Synchronization Service
Wed Nov 24 23:19:24 2021
Switch of datafile 1 complete to datafile copy 
  checkpoint is 6610801
Switch of datafile 2 complete to datafile copy 
  checkpoint is 6610795
Switch of datafile 3 complete to datafile copy 
  checkpoint is 6610831
Switch of datafile 4 complete to datafile copy 
  checkpoint is 6610873
Switch of datafile 5 complete to datafile copy 
  checkpoint is 6610868
Switch of datafile 6 complete to datafile copy 
  checkpoint is 6610862
Switch of datafile 7 complete to datafile copy 
  checkpoint is 6610865
Switch of datafile 8 complete to datafile copy 
  checkpoint is 6610793
alter database recover datafile list clear
Completed: alter database recover datafile list clear
alter database recover datafile list
 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8
Completed: alter database recover datafile list
 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8
alter database recover if needed
 standby start until change 6610955
Media Recovery Start
 started logmerger process
Wed Nov 24 23:19:25 2021
Managed Standby Recovery not using Real Time Apply
Parallel Media Recovery started with 8 slaves
ORA-279 signalled during: alter database recover if needed
 standby start until change 6610955
...
alter database recover logfile '/archive/1_245_1087663221.dbf'
Media Recovery Log /archive/1_245_1087663221.dbf
ORA-279 signalled during: alter database recover logfile '/archive/1_245_1087663221.dbf'...
alter database recover logfile '/archive/2_230_1087663221.dbf'
Media Recovery Log /archive/2_230_1087663221.dbf
Incomplete Recovery applied until change 6610955 time 11/24/2021 23:20:47
Media Recovery Complete (bpxtest2)
Completed: alter database recover logfile '/archive/2_230_1087663221.dbf'
alter database clear logfile group 1
Clearing online log 1 of thread 1 sequence number 245
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_ora_14185.trc:
ORA-00313: open failed for members of log group 1 of thread 1
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_ora_14185.trc:
ORA-00313: open failed for members of log group 1 of thread 1
Completed: alter database clear logfile group 1
alter database clear logfile group 2
Clearing online log 2 of thread 1 sequence number 244
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_ora_14185.trc:
ORA-00313: open failed for members of log group 2 of thread 1
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_ora_14185.trc:
ORA-00313: open failed for members of log group 2 of thread 1
Wed Nov 24 23:19:36 2021
Completed: alter database clear logfile group 2
alter database clear logfile group 3
Clearing online log 3 of thread 2 sequence number 229
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_ora_14185.trc:
ORA-00313: open failed for members of log group 3 of thread 2
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_ora_14185.trc:
ORA-00313: open failed for members of log group 3 of thread 2
Completed: alter database clear logfile group 3
alter database clear logfile group 4
Clearing online log 4 of thread 2 sequence number 230
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_ora_14185.trc:
ORA-00313: open failed for members of log group 4 of thread 2
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_ora_14185.trc:
ORA-00313: open failed for members of log group 4 of thread 2
Wed Nov 24 23:19:47 2021
Completed: alter database clear logfile group 4
RFS connections are allowed
Wed Nov 24 23:20:20 2021
Primary database is in MAXIMUM PERFORMANCE mode
RFS[1]: Assigned to RFS process 14417
RFS[1]: No standby redo logfiles created
RFS[1]: Opened log for thread 2 sequence 232 dbid 333435123 branch 1087663221
Wed Nov 24 23:20:20 2021
RFS[2]: Assigned to RFS process 14419
RFS[2]: Opened log for thread 2 sequence 231 dbid 333435123 branch 1087663221
Archived Log entry 5 added for thread 2 sequence 231 rlc 1087663221 ID 0x13e04af0 dest 10:
Wed Nov 24 23:22:35 2021
Archived Log entry 6 added for thread 2 sequence 232 rlc 1087663221 ID 0x13e04af0 dest 10:
Wed Nov 24 23:22:38 2021
RFS[3]: Assigned to RFS process 14551
RFS[3]: Opened log for thread 2 sequence 233 dbid 333435123 branch 1087663221
Archived Log entry 7 added for thread 2 sequence 233 rlc 1087663221 ID 0x13e04af0 dest 11:
Wed Nov 24 23:22:38 2021
Primary database is in MAXIMUM PERFORMANCE mode
RFS[4]: Assigned to RFS process 14553
RFS[4]: No standby redo logfiles created
RFS[4]: Opened log for thread 2 sequence 234 dbid 333435123 branch 1087663221
Wed Nov 24 23:24:50 2021

启动备库(read only)

alter database open
Wed Nov 24 23:24:50 2021
SMON: enabling cache recovery
Dictionary check beginning
Wed Nov 24 23:24:50 2021
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_dbw0_1969.trc:
ORA-01186: file 2001 failed verification tests
ORA-01157: cannot identify/lock data file 2001 - see DBWR trace file
ORA-01110: data file 2001: ‘/data/BACKUP/datafile/o1_mf_temp_%u_.tmp’
File 2001 not verified due to error ORA-01157
Dictionary check complete
Re-creating tempfile /data/BACKUP/datafile/o1_mf_temp_%u_.tmp as /data/BACKUP/datafile/o1_mf_temp_jswpb2mt_.tmp
Database Characterset is AL32UTF8
No Resource Manager plan active
replication_dependency_tracking turned off (no async multimaster replication found)
Physical standby database opened for read only access.
Completed: alter database open
Wed Nov 24 23:24:51 2021
alter database add standby logfile GROUP 6 size 500M
Completed: alter database add standby logfile GROUP 6 size 500M
alter database add standby logfile GROUP 7 size 500M
Wed Nov 24 23:25:01 2021
Completed: alter database add standby logfile GROUP 7 size 500M
alter database add standby logfile GROUP 8 size 500M
Completed: alter database add standby logfile GROUP 8 size 500M
alter database add standby logfile GROUP 9 size 500M

Completed: alter database add standby logfile GROUP 9 size 500M
alter database add standby logfile GROUP 10 size 500M
Completed: alter database add standby logfile GROUP 10 size 500M
alter database add standby logfile GROUP 11 size 500M
Wed Nov 24 23:25:23 2021
Completed: alter database add standby logfile GROUP 11 size 500M
alter database add standby logfile GROUP 12 size 500M
Completed: alter database add standby logfile GROUP 12 size 500M
alter database recover managed standby database parallel 8 using current logfile disconnect
Attempt to start background Managed Standby Recovery process (bpxtest2)
Wed Nov 24 23:25:29 2021
MRP0 started with pid=40, OS id=14792 
MRP0: Background Managed Standby Recovery process started (bpxtest2)
 started logmerger process
Wed Nov 24 23:25:34 2021
Managed Standby Recovery starting Real Time Apply
Parallel Media Recovery started with 8 slaves
Waiting for all non-current ORLs to be archived...
All non-current ORLs have been archived.
Media Recovery Log /archive/2_231_1087663221.dbf
Media Recovery Log /archive/1_245_1087663221.dbf
Media Recovery Waiting for thread 1 sequence 246
Wed Nov 24 23:25:35 2021
Completed: alter database recover managed standby database parallel 8 using current logfile disconnect
Wed Nov 24 23:25:35 2021
alter database recover managed standby database cancel
MRP0: Background Media Recovery cancelled with status 16037
Errors in file /opt/oracle/diag/rdbms/backup/bpxtest2/trace/bpxtest2_pr00_14798.trc:
ORA-16037: user requested cancel of managed recovery operation
Managed Standby Recovery not using Real Time Apply
Recovery interrupted!
MRP0: Background Media Recovery process shutdown (bpxtest2)
Managed Standby Recovery Canceled (bpxtest2)
Completed: alter database recover managed standby database cancel
ALTER SYSTEM SET standby_file_management='MANUAL' SCOPE=MEMORY;
ALTER SYSTEM SET standby_file_management='AUTO' SCOPE=MEMORY;
Wed Nov 24 23:25:36 2021
alter database recover managed standby database parallel 8 using current logfile disconnect
Attempt to start background Managed Standby Recovery process (bpxtest2)
Wed Nov 24 23:25:36 2021
MRP0 started with pid=41, OS id=14833 
MRP0: Background Managed Standby Recovery process started (bpxtest2)
 started logmerger process
Wed Nov 24 23:25:41 2021
Managed Standby Recovery starting Real Time Apply
Parallel Media Recovery started with 8 slaves
Waiting for all non-current ORLs to be archived...
All non-current ORLs have been archived.
Media Recovery Waiting for thread 1 sequence 246
Completed: alter database recover managed standby database parallel 8 using current logfile disconnect

猜你喜欢

转载自blog.csdn.net/hezuijiudexiaobai/article/details/121527773