您的位置:首页 > 数据库 > Oracle

Oracle10g Physical DataGuard 详细搭建过程

2014-06-25 10:24 281 查看
primary 环境

DB version:oracle10.2.0.4

IP:192.168.1.7

hostname:vzwc

db_name:dbserver

db_unique_name:dbserver

service_name:dbserver

instance_name:ORCL

standby 环境

DB version:oracle10.2.0.4

IP:192.168.1.6

hostname:dgstb

db_name:dbserver

db_unique_name:standby

service_name:standby

instance_name:standby

*********************************************

配置primary

--开启force logging和归档,设置归档目录

SQL> startup mount

ORACLE instance started.

Total System Global Area  612368384 bytes

Fixed Size                  2085872 bytes

Variable Size             167775248 bytes

Database Buffers          436207616 bytes

Redo Buffers                6299648 bytes

Database mounted.

SQL> alter database force logging;

Database altered.

SQL> alter database archivelog;

Database altered.

SQL> alter database open;

Database altered.

SQL> alter system set log_archive_dest_1='location=/arch';

System altered.

--创建standby controlfile和pfile,并且连口令文件一起传到standby端

SQL> alter database create standby controlfile as '/u01/app/oracle/standby.ctl';

Database altered.

SQL> create pfile='/u01/app/oracle/init.ora' from spfile;

File created.

SQL> !scp /u01/app/oracle/*.ctl oracle@192.168.1.6:/u01/app/oracle

The authenticity of host '192.168.1.6 (192.168.1.6)' can't be established.

RSA key fingerprint is 9c:7e:6b:4f:ad:6a:bd:2e:b0:34:ef:5c:a5:ff:69:1f.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added '192.168.1.6' (RSA) to the list of known hosts.

oracle@192.168.1.6's password: 

standby.ctl                                                                                                                                                                                        100% 7152KB   7.0MB/s   00:00    

SQL> !scp /u01/app/oracle/*.ora oracle@192.168.1.6:/u01/app/oracle

oracle@192.168.1.6's password: 

init.ora                                                                                                                                                                                           100% 1225     1.2KB/s   00:00    

SQL> !scp $ORACLE_HOME/dbs/orapwORCL oracle@192.168.1.6:/u01/app/oracle

oracle@192.168.1.6's password: 

orapwORCL                                                                                                                                                                                          100% 2048     2.0KB/s   00:00    

                   

*********************************************  

配置standby

--rename pfile和口令文件

[oracle@dgstb ~]$ cd $ORACLE_HOME/dbs

[oracle@dgstb dbs]$ mv /u01/app/oracle/orapwORCL orapwstandby

[oracle@dgstb dbs]$ mv /u01/app/oracle/init.ora initstandby.ora

--配置standby环境变量

alias ls="ls -FA"

export ORACLE_BASE=/u01/app/oracle

export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1

export ORACLE_PATH=$ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/admin

export ORACLE_SID=standby

export PATH=.:${JAVA_HOME}/bin:${PATH}:$HOME/bin:$ORACLE_HOME/bin

export PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin

export PATH=${PATH}:$ORACLE_BASE/common/oracle/bin

export ORACLE_TERM=xterm

export TNS_ADMIN=$ORACLE_HOME/network/admin

export ORA_NLS10=$ORACLE_HOME/nls/data

export LD_LIBRARY_PATH=$ORACLE_HOME/lib

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/oracm/lib

export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/lib:/usr/lib:/usr/local/lib

export CLASSPATH=$ORACLE_HOME/JRE

export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/jlib

export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/rdbms/jlib

export CLASSPATH=${CLASSPATH}:$ORACLE_HOME/network/jlib

export THREADS_FLAG=native

export TEMP=/tmp

export TMPDIR=/tmp

alias sqlplus="rlwrap sqlplus"

alias rman="rlwrap rman"

alias base="cd $ORACLE_BASE"

alias home="cd $ORACLE_HOME"

--创建相应目录,配置standby pfile,db_name不用改要和primary一致,添加备库必要参数

[oracle@dgstb oracle]$ pwd

/u01/app/oracle

[oracle@dgstb oracle]$ mkdir -p admin/standby/{a,b,c,u}dump

[oracle@dgstb oracle]$ mkdir -p oradata/standby

[oracle@dgstb oracle]$ ls admin/standby

adump/  bdump/  cdump/  udump/

[oracle@dgstb dbs]$ cat initstandby.ora 

*.audit_file_dest='/u01/app/oracle/admin/standby/adump'

*.background_dump_dest='/u01/app/oracle/admin/standby/bdump'

*.compatible='10.2.0.3.0'

*.control_files='/u01/app/oracle/standby.ctl'

*.core_dump_dest='/u01/app/oracle/admin/standby/cdump'

*.db_block_size=8192

*.db_domain=''

*.db_file_multiblock_read_count=16

*.db_name='dbserver'

*.dispatchers='(PROTOCOL=TCP) (SERVICE=ORCLXDB)'

*.job_queue_processes=10

*.log_archive_format='ARC%S_%R.%T'

*.nls_language='SIMPLIFIED CHINESE'

*.nls_territory='CHINA'

*.open_cursors=300

*.pga_aggregate_target=203423744

*.processes=500

*.remote_login_passwordfile='EXCLUSIVE'

*.sessions=555

*.sga_target=612368384

*.undo_management='AUTO'

*.undo_tablespace='UNDOTBS1'

*.user_dump_dest='/u01/app/oracle/admin/standby/udump'

##以下是standby添加参数

*.db_unique_name='standby'

*.db_file_name_convert='/u01/app/oracle/oradata/dbserver','/u01/app/oracle/oradata/standby'

*.log_file_name_convert='/u01/app/oracle/oradata/dbserver','/u01/app/oracle/oradata/standby'

*.log_archive_config='dg_config=(dbserver,standby)'

*.log_archive_dest_1='location=/arch valid_for=(all_logfiles,all_roles) db_unique_name=standby'

*.log_archive_dest_2='service=dbserver lgwr async valid_for=(online_logfiles,primary_role) db_unique_name=dbserver'

*.log_archive_dest_state_1=enable

*.log_archive_dest_state_2=enable

*.log_archive_max_processes=10

*.fal_server=dbserver

*.fal_client=standby

*.standby_file_management=auto

--配置静态监听和服务名

[oracle@dgstb admin]$ cat listener.ora 

# listener.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora

# Generated by Oracle configuration tools.

SID_LIST_LISTENER =

  (SID_LIST =

    (SID_DESC =

      (GLOBAL_DBNAME = standby)

      (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)

      (SID_NAME = standby)

    )

  )

LISTENER =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.6)(PORT = 1521))

  )

[oracle@dgstb admin]$ cat tnsnames.ora 

# tnsnames.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora

# Generated by Oracle configuration tools.

STANDBY =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.6)(PORT = 1521))

    )

    (CONNECT_DATA =

      (SERVICE_NAME = standby)

    )

  )

DBSERVER =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.7)(PORT = 1521))

    )

    (CONNECT_DATA =

   
4000
  (SERVICE_NAME = dbserver)

    )

  )

  

  

--启动监听

[oracle@dgstb admin]$ lsnrctl start

LSNRCTL for Linux: Version 10.2.0.4.0 - Production on 13-FEB-2014 22:58:13

Copyright (c) 1991, 2007, Oracle.  All rights reserved.

Starting /u01/app/oracle/product/10.2.0/db_1/bin/tnslsnr: please wait...

TNSLSNR for Linux: Version 10.2.0.4.0 - Production

System parameter file is /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora

Log messages written to /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log

Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.6)(PORT=1521)))

Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.6)(PORT=1521)))

STATUS of the LISTENER

------------------------

Alias                     LISTENER

Version                   TNSLSNR for Linux: Version 10.2.0.4.0 - Production

Start Date                13-FEB-2014 22:58:13

Uptime                    0 days 0 hr. 0 min. 0 sec

Trace Level               off

Security                  ON: Local OS Authentication

SNMP                      OFF

Listener Parameter File   /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora

Listener Log File         /u01/app/oracle/product/10.2.0/db_1/network/log/listener.log

Listening Endpoints Summary...

  (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.1.6)(PORT=1521)))

Services Summary...

Service "standby" has 1 instance(s).

  Instance "standby", status UNKNOWN, has 1 handler(s) for this service...

The command completed successfully

[oracle@dgstb admin]$ sqlplus system@dbserver

SQL*Plus: Release 10.2.0.4.0 - Production on Thu Feb 13 22:58:28 2014

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Enter password: 

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> 

--创建standby spfile,并且实例启动到nomount

[oracle@dgstb dbs]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.4.0 - Production on Thu Feb 13 23:02:45 2014

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Connected to an idle instance.

SQL> create spfile from pfile;

File created.

SQL> startup nomount

ORACLE instance started.

Total System Global Area  612368384 bytes

Fixed Size                  2085872 bytes

Variable Size             167775248 bytes

Database Buffers          436207616 bytes

Redo Buffers                6299648 bytes

SQL> 

*********************************************

配置primary

--配置静态监听和网络服务名

[oracle@vzwc admin]$ cat listener.ora 

# listener.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/listener.ora

# Generated by Oracle configuration tools.

SID_LIST_LISTENER =

  (SID_LIST =

    (SID_DESC =

      (GLOBAL_DBNAME = dbserver)

      (ORACLE_HOME = /u01/app/oracle/product/10.2.0/db_1)

      (SID_NAME = ORCL)

    )

  )

LISTENER =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = vzwc)(PORT = 1521))

  )

[oracle@vzwc admin]$ cat tnsnames.ora 

# tnsnames.ora Network Configuration File: /u01/app/oracle/product/10.2.0/db_1/network/admin/tnsnames.ora

# Generated by Oracle configuration tools.

DBSERVER =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.7)(PORT = 1521))

    )

    (CONNECT_DATA =

      (SERVICE_NAME = dbserver)

    )

  )

STANDBY =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.6)(PORT = 1521))

    )

    (CONNECT_DATA =

      (SERVICE_NAME = standby)

    )

  )

  

  

--配置参数

[oracle@vzwc ~]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.4.0 - Production on Thu Feb 13 23:09:28 2014

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> alter system set log_archive_dest_1='location=/arch valid_for=(all_logfiles,all_roles) db_unique_name=dbserver';

System altered.

SQL> alter system set log_archive_dest_2='service=standby lgwr async valid_for=(online_logfiles,primary_role) db_unique_name=standby';

System altered.

SQL> alter system set log_archive_config='dg_config=(dbserver,standby)';

System altered.

SQL> alter system set log_archive_dest_state_1=enable;

System altered.

SQL> alter system set log_archive_dest_state_2=enable;

System altered.

SQL> alter system set log_archive_max_processes=10;

System altered.

SQL> alter system set fal_server=standby;

System altered.

SQL> alter system set fal_client=dbserver;

System altered.

SQL> alter system set standby_file_management=auto;

System altered.

SQL> alter system set db_unique_name='dbserver' scope=spfile;

System altered.

SQL> alter system set db_file_name_convert='/u01/app/oracle/oradata/standby','/u01/app/oracle/oradata/dbserver' scope=spfile;

System altered.

SQL> alter system set log_file_name_convert='/u01/app/oracle/oradata/standby','/u01/app/oracle/oradata/dbserver' scope=spfile;

System altered.

SQL> shutdown immediate

Database closed.

Database dismounted.

ORACLE instance shut down.

SQL> startup

ORACLE instance started.

Total System Global Area  612368384 bytes

Fixed Size                  2085872 bytes

Variable Size             167775248 bytes

Database Buffers          436207616 bytes

Redo Buffers                6299648 bytes

Database mounted.

Database opened.

SQL> 

--备份primary db,并且传到standby服务器/bak下

[oracle@vzwc ~]$ rman target /

Recovery Manager: Release 10.2.0.4.0 - Production on Thu Feb 13 23:18:21 2014

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

connected to target database: DBSERVER (DBID=66428446)

RMAN> run{

2> allocate channel c1 type disk;

3> backup database format '/bak/%U';

4> release channel c1;

5> }

using target database control file instead of recovery catalog

allocated channel: c1

channel c1: sid=519 devtype=DISK

Starting backup at 13-FEB-14

channel c1: starting full datafile backupset

channel c1: specifying datafile(s) in backupset

input datafile fno=00001 name=/u01/app/oracle/oradata/dbserver/system01.dbf

input datafile fno=00003 name=/u01/app/oracle/oradata/dbserver/sysaux01.dbf

input datafile fno=00006 name=/u01/app/oracle/oradata/dbserver/zwc.dbf

input datafile fno=00005 name=/u01/app/oracle/oradata/dbserver/example01.dbf

input datafile fno=00002 name=/u01/app/oracle/oradata/dbserver/undotbs01.dbf

input datafile fno=00004 name=/u01/app/oracle/oradata/dbserver/users01.dbf

channel c1: starting piece 1 at 13-FEB-14

channel c1: finished piece 1 at 13-FEB-14

piece handle=/bak/0lp0i94b_1_1 tag=TAG20140213T231939 comment=NONE

channel c1: backup set complete, elapsed time: 00:00:36

channel c1: starting full datafile backupset

channel c1: specifying datafile(s) in backupset

including current control file in backupset

including current SPFILE in backupset

channel c1: starting piece 1 at 13-FEB-14

channel c1: finished piece 1 at 13-FEB-14

piece handle=/bak/0mp0i95f_1_1 tag=TAG20140213T231939 comment=NONE

channel c1: backup set complete, elapsed time: 00:00:02

Finished backup at 13-FEB-14

released channel: c1

RMAN> 

Recovery Manager complete.

[oracle@vzwc ~]$ scp -rp /bak/* oracle@192.168.1.6:/bak

oracle@192.168.1.6's password: 

0lp0i94b_1_1                                                                                                                                                                                      100%  635MB  39.7MB/s   00:16    

0mp0i95f_1_1                                                                                                                                                                                      100% 7232KB   7.1MB/s   00:00    

[oracle@vzwc ~]$ 

--克隆duplicate standby db

[oracle@vzwc ~]$ rman target / auxiliary sys/oracle@standby

Recovery Manager: Release 10.2.0.4.0 - Production on Thu Feb 13 23:31:32 2014

Copyright (c) 1982, 2007, Oracle.  All rights reserved.

connected to target database: DBSERVER (DBID=66428446)

connected to auxiliary database: DBSERVER (not mounted)

RMAN> run{

2> allocate auxiliary channel c1 type disk;

3> duplicate target database for standby nofilenamecheck;

4> release channel c1;

5> }

using target database control file instead of recovery catalog

allocated channel: c1

channel c1: sid=540 devtype=DISK

Starting Duplicate Db at 13-FEB-14

contents of Memory Script:

{

   restore clone standby controlfile;

   sql clone 'alter database mount standby database';

}

executing Memory Script

Starting restore at 13-FEB-14

channel c1: restoring control file

channel c1: copied control file copy

input filename=/u01/app/oracle/standby.ctl

output filename=/u01/app/oracle/standby.ctl

Finished restore at 13-FEB-14

sql statement: alter database mount standby database

contents of Memory Script:

{

   set newname for tempfile  2 to 

 "/u01/app/oracle/oradata/standby/temptbs01.dbf";

   switch clone tempfile all;

   set newname for datafile  1 to 

 "/u01/app/oracle/oradata/standby/system01.dbf";

   set newname for datafile  2 to 

 "/u01/app/oracle/oradata/standby/undotbs01.dbf";

   set newname for datafile  3 to 

 "/u01/app/oracle/oradata/standby/sysaux01.dbf";

   set newname for datafile  4 to 

 "/u01/app/oracle/oradata/standby/users01.dbf";

   set newname for datafile  5 to 

 "/u01/app/oracle/oradata/standby/example01.dbf";

   set newname for datafile  6 to 

 "/u01/app/oracle/oradata/standby/zwc.dbf";

   restore

   check readonly

   clone database

   ;

}

executing Memory Script

executing command: SET NEWNAME

renamed temporary file 2 to /u01/app/oracle/oradata/standby/temptbs01.dbf 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

Starting restore at 13-FEB-14

channel c1: starting datafile backupset restore

channel c1: specifying datafile(s) to restore from backup set

restoring datafile 00001 to /u01/app/oracle/oradata/standby/system01.dbf

restoring datafile 00002 to /u01/app/oracle/oradata/standby/undotbs01.dbf

restoring datafile 00003 to /u01/app/oracle/oradata/standby/sysaux01.dbf

restoring datafile 00004 to /u01/app/oracle/oradata/standby/users01.dbf

restoring datafile 00005 to /u01/app/oracle/oradata/standby/example01.dbf

restoring datafile 00006 to /u01/app/oracle/oradata/standby/zwc.dbf

channel c1: reading from backup piece /bak/0lp0i94b_1_1

channel c1: restored backup piece 1

piece handle=/bak/0lp0i94b_1_1 tag=TAG20140213T231939

channel c1: restore complete, elapsed time: 00:00:35

Finished restore at 13-FEB-14

contents of Memory Script:

{

   switch clone datafile all;

}

executing Memory Script

datafile 1 switched to datafile copy

input datafile copy recid=32 stamp=839460770 filename=/u01/app/oracle/oradata/standby/system01.dbf

datafile 2 switched to datafile copy

input datafile copy recid=33 stamp=839460770 filename=/u01/app/oracle/oradata/standby/undotbs01.dbf

datafile 3 switched to datafile copy

input datafile copy recid=34 stamp=839460770 filename=/u01/app/oracle/oradata/standby/sysaux01.dbf

datafile 4 switched to datafile copy

input datafile copy recid=35 stamp=839460770 filename=/u01/app/oracle/oradata/standby/users01.dbf

datafile 5 switched to datafile copy

input datafile copy recid=36 stamp=839460770 filename=/u01/app/oracle/oradata/standby/example01.dbf

datafile 6 switched to datafile copy

input datafile copy recid=37 stamp=839460770 filename=/u01/app/oracle/oradata/standby/zwc.dbf

Finished Duplicate Db at 13-FEB-14

released channel: c1

RMAN> 

--查询primary online redo log

SQL> select group#,bytes from v$log;

    GROUP#      BYTES

---------- ----------

         1   52428800

         2   52428800

         3   52428800
 
 
 
 
*********************************************

配置standby

--创建standby logfile

[oracle@dgstb ~]$ sqlplus / as sysdba

SQL*Plus: Release 10.2.0.4.0 - Production on Thu Feb 13 23:37:19 2014

Copyright (c) 1982, 2007, Oracle.  All Rights Reserved.

Connected to:

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production

With the Partitioning, OLAP, Data Mining and Real Application Testing options

SQL> select status from v$instance;

STATUS

------------------------

MOUNTED

SQL> alter database add standby logfile ('/u01/app/oracle/oradata/standby/standby01.log') size 50M;

Database altered.

SQL> alter database add standby logfile ('/u01/app/orac
b9bd
le/oradata/standby/standby02.log') size 50M;

Database altered.

SQL> alter database add standby logfile ('/u01/app/oracle/oradata/standby/standby03.log') size 50M;

Database altered.

SQL> alter database add standby logfile ('/u01/app/oracle/oradata/standby/standby04.log') size 50M;

Database altered.

--打开standby apply log,这里我创建了standby redo logfile,所以可以使用using current logfile来实时应用

--可以在standby db使用alter database recover managed standby database cancel命令停止apply日志来测试DG同步效果,之后再alter database recover managed standby database using current logfile disconnect from session应用日志

SQL> alter database recover managed standby database using current logfile disconnect from session;

Database altered.

SQL> select sequence#,applied from v$archived_log;

 SEQUENCE# APP

---------- ---

        19 YES

        20 YES

        18 YES

        21 YES

        17 YES

        22 YES

        23 YES

        24 YES

8 rows selected.

SQL> select sequence#,applied from v$archived_log where applied='YES';

 SEQUENCE# APP

---------- ---

        19 YES

        20 YES

        18 YES

        21 YES

        17 YES

        22 YES

        23 YES

        24 YES

8 rows selected.

#至此物理DataGuard搭建完成

*********************************************

--primary状态

SQL> select database_role,protection_mode,switchover_status,name from v$database;

DATABASE_ROLE    PROTECTION_MODE      SWITCHOVER_STATUS    NAME

---------------- -------------------- -------------------- ---------

PRIMARY          MAXIMUM PERFORMANCE  TO STANDBY           DBSERVER

*********************************************

--standby状态

SQL> select database_role,protection_mode,switchover_status,name from v$database;

DATABASE_ROLE    PROTECTION_MODE      SWITCHOVER_STATUS    NAME

---------------- -------------------- -------------------- ---------

PHYSICAL STANDBY MAXIMUM PERFORMANCE  SESSIONS ACTIVE      DBSERVER

*********************************************

--primary alert.log

[oracle@vzwc bdump]$ tail -f alert_ORCL.log 

Thu Feb 13 23:42:25 2014

Thread 1 advanced to log sequence 24 (LGWR switch)

  Current log# 1 seq# 24 mem# 0: /u01/app/oracle/oradata/dbserver/redo01.log

Thu Feb 13 23:42:25 2014

LNS: Standby redo logfile selected for thread 1 sequence 24 for destination LOG_ARCHIVE_DEST_2

Thu Feb 13 23:46:44 2014

Thread 1 advanced to log sequence 25 (LGWR switch)

  Current log# 3 seq# 25 mem# 0: /u01/app/oracle/oradata/dbserver/redo03.log

Thu Feb 13 23:46:44 2014

LNS: Standby redo logfile selected for thread 1 sequence 25 for destination LOG_ARCHIVE_DEST_2

Thu Feb 13 23:57:59 2014

Thread 1 advanced to log sequence 26 (LGWR switch)

  Current log# 2 seq# 26 mem# 0: /u01/app/oracle/oradata/dbserver/redo02.log

Thu Feb 13 23:57:59 2014

LNS: Standby redo logfile selected for thread 1 sequence 26 for destination LOG_ARCHIVE_DEST_2

Thu Feb 13 23:58:00 2014

Thread 1 advanced to log sequence 27 (LGWR switch)

  Current log# 1 seq# 27 mem# 0: /u01/app/oracle/oradata/dbserver/redo01.log

Thu Feb 13 23:58:00 2014

LNS: Standby redo logfile selected for thread 1 sequence 27 for destination LOG_ARCHIVE_DEST_2

Thu Feb 13 23:58:00 2014

Thread 1 cannot allocate new log, sequence 28

Checkpoint not complete

  Current log# 1 seq# 27 mem# 0: /u01/app/oracle/oradata/dbserver/redo01.log

Thu Feb 13 23:58:05 2014

Thread 1 advanced to log sequence 28 (LGWR switch)

  Current log# 3 seq# 28 mem# 0: /u01/app/oracle/oradata/dbserver/redo03.log

Thu Feb 13 23:58:05 2014

LNS: Standby redo logfile selected for thread 1 sequence 28 for destination LOG_ARCHIVE_DEST_2

*********************************************

--standby alert.log

[oracle@dgstb bdump]$ tail -f alert_standby.log 

  Mem# 0: /u01/app/oracle/oradata/standby/standby01.log

Thu Feb 13 23:58:05 2014

Primary database is in MAXIMUM PERFORMANCE mode

RFS[7]: Successfully opened standby log 4: '/u01/app/oracle/oradata/standby/standby01.log'

Thu Feb 13 23:58:06 2014

Media Recovery Log /arch/ARC0000000027_0839199018.0001

Media Recovery Waiting for thread 1 sequence 28 (in transit)

Thu Feb 13 23:58:06 2014

Recovery of Online Redo Log: Thread 1 Group 4 Seq 28 Reading mem 0

  Mem# 0: /u01/app/oracle/oradata/standby/standby01.log
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: