rac四个节点 如果把归档放在本地目录,是否其他节点能否访问到归档

原创 2013年12月02日 09:04:57

归档位置的设计也有两种方案:

1)各节点生成的归档放到共享存储上,这样自然可以确保每个节点都能够访问到,比如将归档存放到ORACLE的ASM,或者是第三方提供的集群文件系统中。 对于这种方法,一些集群的配置比较麻烦,而且也增加了ASM的维护,出现问题也不好处理。

2)各节点除在本地生成归档文件外,另外向其它节点或者说执行备份的节点发送归档日志,以确保执行备份的那台节点能够访问到所有的归档文件。在这种方法中,因为ORACLE 的重做日志发送机制非常灵活,在10g版本中可以同时向10个目标地写入归档(11g增加到了30个),所以利用这种特性,将各节点生成的归档发送到执行备份的节点中,来实现该节点能够访问所需的归档文件。

 

 

 

1 .查看节点4归档

 

SQL> archive log list
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            /u01/app/oracle/product/RAC11g/dbs/arch
Oldest online log sequence     5
Next log sequence to archive   7
Current log sequence           7
SQL>

 

2.  查看节点3归档

 

Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
Data Mining and Real Application Testing options

SQL> archive log list
Database log mode              Archive Mode
Automatic archival             Enabled
Archive destination            /u01/app/oracle/product/RAC11g/dbs/arch
Oldest online log sequence     5
Next log sequence to archive   7
Current log sequence           7
SQL>

 

 

3 在节点3使用rman命令查看归档

 

[oracle ~]$ rman target /

Recovery Manager: Release 11.2.0.3.0 - Production on Mon Dec 2 08:56:39 2013

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

connected to target database: BSQQNS (DBID=4291392101)

RMAN> crosscheck  archivelog all;

using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=1710 instance=bsqqns3 device type=DISK
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch1/1_30_828441637.dbf RECID=41 STAMP=832111230
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch2/1_31_828441637.dbf RECID=43 STAMP=832196175
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch2/1_32_828441637.dbf RECID=44 STAMP=832196176
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch1/1_33_828441637.dbf RECID=46 STAMP=832378465
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch2/1_34_828441637.dbf RECID=48 STAMP=832503828
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch1/1_35_828441637.dbf RECID=49 STAMP=832503832
validation succeeded for archived log
archived log file name=/u01/app/oracle/product/RAC11g/dbs/arch1_36_828441637.dbf RECID=52 STAMP=832590189
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch2/1_37_828441637.dbf RECID=59 STAMP=832591234
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch1/1_38_828441637.dbf RECID=60 STAMP=832601328
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch1/1_39_828441637.dbf RECID=64 STAMP=832605107
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch1/1_40_828441637.dbf RECID=65 STAMP=832605355
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch1/1_41_828441637.dbf RECID=66 STAMP=832707028
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch1/1_42_828441637.dbf RECID=70 STAMP=832707183
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch1/1_43_828441637.dbf RECID=71 STAMP=832760776
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch1/1_44_828441637.dbf RECID=74 STAMP=832983828
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch1/1_45_828441637.dbf RECID=77 STAMP=833094028
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch2/2_20_828441637.dbf RECID=42 STAMP=832196175
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch2/2_21_828441637.dbf RECID=45 STAMP=832196517
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch2/2_22_828441637.dbf RECID=47 STAMP=832503780
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch2/2_23_828441637.dbf RECID=53 STAMP=832590189
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch2/2_24_828441637.dbf RECID=54 STAMP=832590380
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch2/2_25_828441637.dbf RECID=62 STAMP=832605099
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch2/2_26_828441637.dbf RECID=68 STAMP=832707167
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch2/2_27_828441637.dbf RECID=73 STAMP=832814800
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch2/2_28_828441637.dbf RECID=75 STAMP=833088605
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch1/3_1_828441637.dbf RECID=50 STAMP=832505138
validation succeeded for archived log
archived log file name=/u01/app/oracle/product/RAC11g/dbs/arch3_2_828441637.dbf RECID=56 STAMP=832590759
validation succeeded for archived log
archived log file name=/u01/app/oracle/product/RAC11g/dbs/arch3_3_828441637.dbf RECID=57 STAMP=832591189
validation succeeded for archived log
archived log file name=/u01/app/oracle/product/RAC11g/dbs/arch3_4_828441637.dbf RECID=61 STAMP=832605098
validation succeeded for archived log
archived log file name=/u01/app/oracle/product/RAC11g/dbs/arch3_5_828441637.dbf RECID=69 STAMP=832707171
validation succeeded for archived log
archived log file name=/u01/app/oracle/product/RAC11g/dbs/arch3_6_828441637.dbf RECID=72 STAMP=832777111
validation succeeded for archived log
archived log file name=+BSQQNS/bsqqns/arch2/4_1_828441637.dbf RECID=51 STAMP=832505278
validation failed for archived log
archived log file name=/u01/app/oracle/product/RAC11g/dbs/arch4_2_828441637.dbf RECID=55 STAMP=832590440
validation failed for archived log
archived log file name=/u01/app/oracle/product/RAC11g/dbs/arch4_3_828441637.dbf RECID=58 STAMP=832591190
validation failed for archived log
archived log file name=/u01/app/oracle/product/RAC11g/dbs/arch4_4_828441637.dbf RECID=63 STAMP=832605100
validation failed for archived log
archived log file name=/u01/app/oracle/product/RAC11g/dbs/arch4_5_828441637.dbf RECID=67 STAMP=832707166
validation failed for archived log
archived log file name=/u01/app/oracle/product/RAC11g/dbs/arch4_6_828441637.dbf RECID=76 STAMP=833094015
Crosschecked 37 objects

 

注:在节点3能否查看各节点的归档

 

4 在节点3删除各节点归档

 

[oracle@qnsdb4 dbs]$ rman target /

Recovery Manager: Release 11.2.0.3.0 - Production on Mon Dec 2 09:08:54 2013

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

connected to target database: BSQQNS (DBID=4291392101)

RMAN> delete archivelog all;

using target database control file instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: SID=1710 instance=bsqqns4 device type=DISK
List of Archived Log Copies for database with db_unique_name BSQQNS
=====================================================================

Key     Thrd Seq     S Low Time
------- ---- ------- - ---------
80      1    46      A 02-DEC-13
        Name: +BSQQNS/bsqqns/arch1/1_46_828441637.dbf

78      2    29      A 02-DEC-13
        Name: +BSQQNS/bsqqns/arch2/2_29_828441637.dbf

81      3    7       A 29-NOV-13
        Name: /u01/app/oracle/product/RAC11g/dbs/arch3_7_828441637.dbf

79      4    7       A 02-DEC-13
        Name: /u01/app/oracle/product/RAC11g/dbs/arch4_7_828441637.dbf


Do you really want to delete the above objects (enter YES or NO)? YES
deleted archived log
archived log file name=+BSQQNS/bsqqns/arch1/1_46_828441637.dbf RECID=80 STAMP=833101499
deleted archived log
archived log file name=+BSQQNS/bsqqns/arch2/2_29_828441637.dbf RECID=78 STAMP=833101494
deleted archived log
archived log file name=/u01/app/oracle/product/RAC11g/dbs/arch4_7_828441637.dbf RECID=79 STAMP=833101496
Deleted 3 objects

RMAN-06207: WARNING: 1 objects could not be deleted for DISK channel(s) due
RMAN-06208:          to mismatched status.  Use CROSSCHECK command to fix status
RMAN-06210: List of Mismatched objects
RMAN-06211: ==========================
RMAN-06212:   Object Type   Filename/Handle
RMAN-06213: --------------- ---------------------------------------------------
RMAN-06214: Archivelog      /u01/app/oracle/product/RAC11g/dbs/arch3_7_828441637.dbf


RMAN>

 

注:最好把归档设置在共享目录上,在一个节点就能删除归档日志,否则的话,不能删除其他非共享的归档日志

 

 

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

Oracle 10G RAC - 某个节点上缺失某些归档日志后删除报错问题

备份日志及删除步骤如下(在节点vmrac1上操作): a.RMAN> backup database plus archivelog;(完成成功的全备) Starting backup at 04...

DB2 4节点DPF环境搭建;循环日志修改为归档日志方式 .

环境:AIX5.1  DB2 V8.2 是个测试环境,有机会安装,做个记录 ------------- DB2 介质已经安装完成,只需要创建实例,建库 ------------- ******...

RAC环境下开启归档

  • 2014-10-08 11:28
  • 9.30MB
  • 下载

Oracle11gR2 RAC环境归档模式的配置

在10gR2中和11g,不再需要将cluster_database设置为false,将非归档的RAC数据库改成归档的RAC数据库,方法与单实例设置归档模式是一样

Oracle10g RAC 归档模式

  • 2011-12-20 15:22
  • 118KB
  • 下载

10G RAC 切换到归档模式

[oracle@node1 pfile]$ export ORACLE_SID=MRAC1[oracle@node1 pfile]$ sqlplus / as sysdba SQL*Plus: Rel...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)