AIX RAC配置Flashback Recovery Area

AIX RAC配置Flashback Recovery Area

环境:

操作系统: AIX 5300-09

集群软件: CRS 10.2.0.1

数据库:   Oracle 10.2.0.1

本案例是用于基于VG Concurrent 的共享存储,通过HACMP 实现卷组的并发

    由于共享存储采用了并发卷组,在上面不能建立文件系统;并且Flashback Recover Area亦不能建立在raw上,所以在本地卷组上建立文件系统,通过NFS共享方式来建立Flashback Recover Area。


1、在node1上建立文件系统

[[email protected] /]#lsvg rootvg

VOLUME GROUP:       rootvg                   VG IDENTIFIER:  00040f8a00004c0000000140c6da55a7
VG STATE:           active                   PP SIZE:        128 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      546 (69888 megabytes)
MAX LVs:            256                      FREE PPs:       190 (24320 megabytes)
LVs:                17                       USED PPs:       356 (45568 megabytes)
OPEN LVs:           16                       QUORUM:         2 (Enabled)
TOTAL PVs:          1                        VG DESCRIPTORS: 2
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         1                        AUTO ON:        yes
MAX PPs per VG:     32512                                     
MAX PPs per PV:     1016                     MAX PVs:        32
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable

[[email protected] /]#smit crfs

[[email protected] /]#df -m

Filesystem    MB blocks      Free %Used    Iused %Iused Mounted on
/dev/hd4        6144.00   2070.94   67%     8211     1% /
/dev/hd2        3072.00    911.26   71%    51509     7% /usr
/dev/hd9var     2048.00   1809.38   12%     5557     2% /var
/dev/hd3        2048.00   1827.30   11%      381     1% /tmp
/dev/hd1        2048.00   1293.68   37%      223     1% /home
/proc                 -         -    -         -     -  /proc
/dev/hd10opt    1024.00    702.17   32%     5604     3% /opt
/dev/lv00      15360.00   2490.89   84%    33598     1% /u01
/dev/lv01        128.00    123.94    4%       18     1% /var/adm/csd
/dev/lv02       4096.00   3967.39    4%       16     1% /arch
/dev/lv03       2048.00   1983.67    4%       17     1% /dsk1
/dev/lv04       2048.00   1983.67    4%       17     1% /dsk2
/dev/lv05        128.00    123.94    4%       17     1% /flash_rcy

[[email protected] /]#chown -R oracle:dba /flash_rcy


2、配置Flashback Directory共享

[[email protected] /]#cat /etc/exports

/soft2 -sec=sys:krb5p:krb5i:krb5:dh,rw,access=aix212:aix199

/flash_rcy -sec=sys:krb5p:krb5i:krb5:dh,rw,root=aix212

3、在node2上配置共享访问Flashback Directory

[[email protected]@ /]#cat /etc/filesystems

/flash_rcy:
        dev             = "/flash_rcy"
        vfs             = nfs
        nodename        = 192.168.8.211
        mount           = true
        options         = rw,bg,hard,intr,proto=tcp,vers=3,rsize=65536,wsize=65536,timeo=60
0
        account         = false

[[email protected]@ /]$mkdir /flash_rcy

[[email protected]@ /]#ls -ld /flash_rcy

drwxr-sr-x    4 oracle   dba             512 Aug  7 15:44 /flash_rcy

[[email protected]@ /]#mount /flash_rcy

[[email protected]@ ~]$mount

node       mounted        mounted over    vfs       date        options

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

192.168.8.211 /flash_rcy       /flash_rcy       nfs3   Aug 07 15:53 rw,bg,hard,intr,proto=tcp,vers=3,rsize=65536,wsize=65536,timeo=60

4、配置Flashback Recovery Area

SQL> show parameter recovery
NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
db_recovery_file_dest                string      /flash_rcy
db_recovery_file_dest_size           big integer 2G

5、测试Flashback Recovery Area

[[email protected]@ ~]$rman target /
Recovery Manager: Release 10.2.0.1.0 - Production on Thu Aug 7 15:53:31 2014
Copyright (c) 1982, 2005, Oracle.  All rights reserved.
connected to target database: PROD (DBID=266564886, not open)
RMAN> backup current controlfile;
Starting backup at 07-AUG-14
using channel ORA_DISK_1
channel ORA_DISK_1: starting full datafile backupset
channel ORA_DISK_1: specifying datafile(s) in backupset
including current control file in backupset
channel ORA_DISK_1: starting piece 1 at 07-AUG-14
channel ORA_DISK_1: finished piece 1 at 07-AUG-14
piece handle=/flash_rcy/PROD/backupset/2014_08_07/o1_mf_ncnnf_TAG20140807T155423_9y68o0ff_.bkp tag=TAG20140807T155423 comment=NONE
channel ORA_DISK_1: backup set complete, elapsed time: 00:00:04
Finished backup at 07-AUG-14
RMAN> list backup ;  
List of Backup Sets
===================
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
1       Full    10.86M     DISK        00:00:04     07-AUG-14      
        BP Key: 1   Status: AVAILABLE  Compressed: NO  Tag: TAG20140807T155338
        Piece Name: /flash_rcy/PROD/backupset/2014_08_07/o1_mf_ncsnf_TAG20140807T155338_9y68mp2s_.bkp
  Control File Included: Ckp SCN: 909245       Ckp time: 07-AUG-14
  SPFILE Included: Modification time: 07-AUG-14
BS Key  Type LV Size       Device Type Elapsed Time Completion Time
------- ---- -- ---------- ----------- ------------ ---------------
2       Full    10.83M     DISK        00:00:02     07-AUG-14      
        BP Key: 2   Status: AVAILABLE  Compressed: NO  Tag: TAG20140807T155423
        Piece Name: /flash_rcy/PROD/backupset/2014_08_07/o1_mf_ncnnf_TAG20140807T155423_9y68o0ff_.bkp
  Control File Included: Ckp SCN: 909245       Ckp time: 07-AUG-14

@默认,RMAN备份存储到Flashback Recovery Area,至此Flashbackup Recovery Area配置完成!

错误案例:访问Flashback Recovery Area失败

[[email protected]@ ~]$rman target /

Recovery Manager: Release 10.2.0.1.0 - Production on Thu Aug 7 15:48:33 2014

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

connected to target database: PROD (DBID=266564886, not open)

RMAN> backup database;

Starting backup at 07-AUG-14

using target database control file instead of recovery catalog

allocated channel: ORA_DISK_1

channel ORA_DISK_1: sid=151 instance=prod2 devtype=DISK

channel ORA_DISK_1: starting full datafile backupset

channel ORA_DISK_1: specifying datafile(s) in backupset

RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/07/2014 15:48:44

ORA-19602: cannot backup or copy active file in NOARCHIVELOG mode

continuing other job steps, job failed will not be re-run

channel ORA_DISK_1: starting full datafile backupset

channel ORA_DISK_1: specifying datafile(s) in backupset

including current control file in backupset

including current SPFILE in backupset

channel ORA_DISK_1: starting piece 1 at 07-AUG-14

RMAN-00571: ===========================================================

RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============

RMAN-00571: ===========================================================

RMAN-03009: failure of backup command on ORA_DISK_1 channel at 08/07/2014 15:48:47

ORA-19504: failed to create file "/flash_rcy/PROD/backupset/2014_08_07/o1_mf_ncsnf_TAG20140807T154843_%u_.bkp"

ORA-27054: NFS file system where the file is created or resides is not mounted with correct options

Additional information: 6


解决方法:


/etc/filesystems配置mount参数:

[[email protected]@ /]#cat /etc/filesystems

/flash_rcy:
        dev             = "/flash_rcy"
        vfs             = nfs
        nodename        = 192.168.8.211
        mount           = true
        options         = rw,bg,hard,intr,proto=tcp,vers=3,rsize=65536,wsize=65536,timeo=60
0
        account         = false

@重新mount后,问题解决 !


AIX RAC配置Flashback Recovery Area

时间: 2024-10-18 19:19:33

AIX RAC配置Flashback Recovery Area的相关文章

Flashback Recovery Area的设置与取消

在Oracle 10g中, Flash back家族分为以下成员: Flashback Database, Flashback Drop,Flashback Query(分Flashback Query,Flashback Version Query, Flashback Transaction Query 三种) 和Flashback Table. Flash recovery area 包含内容:控制文件,归档文件,flashback logs, 控制文件,自动备份的控制文件,数据文件,数据

Oracle中,如何查看FRA(Flashback Recovery Area)的利用率

例子: SQL> set linesize 300SQL> select * from V$RECOVERY_AREA_USAGE; FILE_TYPE PERCENT_SPACE_USED PERCENT_SPACE_RECLAIMABLE NUMBER_OF_FILES CON_ID--------------------------------------------------------------------- ------------------ ----------------

AIX RAC构建错误之--未配置Default Gateway

AIX RAC构建错误之--未配置Default Gateway 环境: 操作系统: AIX 5300-09 集群软件: CRS 10.2.0.1 数据库:   Oracle 10.2.0.1 故障现象:  在构建AIX RAC时,运行root.sh脚本时,出现以下错误: [[email protected] /u01/crs_1/install]$ ./rootdelete.sh Shutting down Oracle Cluster Ready Services (CRS): Stoppi

Oracle GoldenGate学习之--AIX rac系统安装配置(1)

Oracle GoldenGate学习之--AIX rac系统安装配置(1) 系统环境 操作系统:AIX5.3-09 DB Soft:  Oracle 10gR2 Cluster:   CRS 10.2.0.1 如下图所示: 本案例是用于基于VG Concurrent 的共享存储: 系统环境实在AIX系统上构建的Oracle RAC 下载OGG: http://www.oracle.com/technetwork/cn/middleware/goldengate/downloads/index.

Flash Recovery Area

1. 设置闪回恢复区 闪回恢复区主要通过3个初始化参数来设置和管理 db_recovery_file_dest:指定闪回恢复区的位置db_recovery_file_dest_size:指定闪回恢复区的可用空间大小 db_flashback_retention_target:指定数据库可以回退的时间,单位为分钟,默认1440分钟,也就是一天.当然,实际上可回退的时间还决定于闪回恢复区的大小,因为里面保存了回退所需要的flash log.所以这个参数要和db_recovery_file_dest_

oracle之Flash Recovery Area全面介绍 (转载)

1. 设置闪回恢复区闪回恢复区主要通过3个初始化参数来设置和管理 db_recovery_file_dest:指定闪回恢复区的位置db_recovery_file_dest_size:指定闪回恢复区的可用空间大小 db_flashback_retention_target:指定数据库可以回退的时间,单位为分钟,默认1440分钟,也就是一天.当然,实际上可回退的时间还决定于闪回恢复区的大小,因为里面保存了回退所需要的flash log.所以这个参数要和db_recovery_file_dest_s

RAC配置、安装

RAC  配置及安装 2012年12月30日 星期日 21:49 ******************************************************************************* 一.RAC  (real  application  cluster  真正的可应用的集群工具)    安装规划 1)前期规划 确认集群节点数量,每个节点的主机名; 区分Public.Private NIC;确认第个主机的3个IP地址; 数据库存储技术选型(ASM/OCFS

Flash Recovery Area 的备份

Flash Recovery Area 的备份 备份命令是Flash recovery Area,该命令是Oracle 10g以后才有的.10g引进了flash recovery area,同时在rman备份中支持对该区域的备份. 在9i中oracle引入flashback查询,依赖于undo表空间存储的信息来闪回查询以前的版本,当然这个受限于undo表空间的大小,以及保留策略. 在10g中oracle又引入了新的flashback功能,使用了flash recovery area来存储flas

改变 Flash Recovery Area (FRA)到一个新路径的方法

改变 Flash Recovery Area (FRA)到一个新路径的方法. 来源于: How to change Flash Recovery Area to a new location ? (文档 ID 305651.1) 目标: 本文描述了改变FRA目的地的方法和从老的FRA中move file到新FRA的方法 解决方案: 如果你需要改变你的FRA到新的路径,需要从sqlplus里边改变DB_RECOVERY_FILE_DEST初始化参数: SQL> ALTER SYSTEM SET D