Oracle RAC 更换存储实验

实验环境准备:
RHEL 6.5 + Oracle 11.2.0.4 RAC (2nodes)

  1. OCR和Voting Disk使用的是OCR1磁盘组,底层对应3个1G大小的共享LUN,一般冗余;
  2. DATA使用的是DATA1磁盘组,底层对应的是3个5G大小的共享LUN,外部冗余;
  3. FRA使用的是FRA1磁盘组,底层对应的是1个5G大小的共享LUN,外部冗余;
  4. 额外添加7个共享LUN(3个1G大小,4个5G大小),用来模拟新的存储映射出来的共享LUN;

我这里是使用Oracle VM VirtualBox 4.3虚拟机软件模拟这个环境,
默认初始的RAC环境已经安装完毕,且已经存有业务数据。
对于RAC环境的安装可参考:

模拟的业务数据可参考 模拟业务最小测试用例01 第1~5步进行初始化。

初始的RAC环境配置信息:

#public ip
192.168.56.150  jyrac1
192.168.56.152  jyrac2
#private ip
10.10.10.11    jyrac1-priv
10.10.10.12    jyrac2-priv
#virtual ip
192.168.56.151  jyrac1-vip
192.168.56.153  jyrac2-vip
#scan ip
192.168.56.160  jyrac-scan

本次需求:
更换RAC的共享存储,即把之前的存储设备划出的共享LUN上的所有数据全部迁移新的存储设备划分的LUN上。
具体就涉及到OCR,voting disk迁移,DATA迁移。
在我这里实验具体就是指OCR1,DATA1,FRA1磁盘组的迁移。

一、准备工作

二、更换存储

一、准备工作

1.1查看asm磁盘组

select name, TOTAL_MB, FREE_MB, state, type, COMPATIBILITY from v$asm_diskgroup;

SQL> select name, TOTAL_MB, FREE_MB, state, type, COMPATIBILITY from v$asm_diskgroup;

NAME                                                           TOTAL_MB    FREE_MB STATE                  TYPE         COMPATIBILITY

DATA1                                                             15360      13502 MOUNTED                EXTERN       11.2.0.0.0
FRA1                                                               5120       4790 MOUNTED                EXTERN       11.2.0.0.0
OCR1                                                               3072       2146 MOUNTED                NORMAL       11.2.0.0.0

1.2查看asm的磁盘信息

select GROUP_NUMBER, DISK_NUMBER, TOTAL_MB, FREE_MB, NAME, PATH from v$asm_disk order by 1,2;

SQL> set linesize 1000
SQL> r
  1* select GROUP_NUMBER, DISK_NUMBER, TOTAL_MB, FREE_MB, NAME, PATH from v$asm_disk order by 1,2

GROUP_NUMBER DISK_NUMBER   TOTAL_MB    FREE_MB NAME                                                      PATH

           1           0       1024        714 OCR1_0000                                                    /dev/asm-diskb
           1           1       1024        716 OCR1_0001                                                    /dev/asm-diskc
           1           2       1024        716 OCR1_0002                                                    /dev/asm-diskd
           2           0       5120       4552 DATA1_0000                                                   /dev/asm-diske
           2           1       5120       4549 DATA1_0001                                                   /dev/asm-diskf
           2           2       5120       4549 DATA1_0002                                                   /dev/asm-diskg
           3           0       5120       4790 FRA1_0000                                                    /dev/asm-diskh

7 rows selected.

1.3查看存储设备信息,确定新的存储

这里实验环境是使用virtualbox模拟添加7个大小和之前一样的共享存储;
即分别为 1G大小的3个(OCR2),5G大小的3个(DATA1),5G大小的1个(FRA1)。

NewStorage1
NewStorage2
NewStorage3
NewStorage4
NewStorage5
NewStorage6
NewStorage7
在系统中就是/dev/sdi j k l m n o

udev绑定(两个节点root执行)

--New Shared Disks
for i in i j k l m n o;
do
echo "KERNEL==\"sd*\", BUS==\"scsi\", PROGRAM==\"/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/\$name\", RESULT==\"`/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/sd$i`\", NAME=\"asm-disk$i\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\""      >> /etc/udev/rules.d/99-oracle-asmdevices.rules
done

udev绑定后对应就是asm-diski,j,k,l,m,n,o

start_udev (两个节点root执行)

查看某个磁盘大小:

[[email protected] ~]# fdisk -l /dev/asm-diski

Disk /dev/asm-diski: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

确定/dev/asm-diski,/dev/asm-diskj,/dev/asm-diskk对应的是新加的1G大小的3个盘
用于创建新的OCR2

二、更换存储

2.1迁移OCR1到OCR2

2.1.1 创建新的OCR2磁盘组

su – grid
sqlplus / as sysasm
CREATE DISKGROUP OCR2 NORMAL REDUNDANCY DISK ‘/dev/asm-diski‘, ‘/dev/asm-diskj‘, ‘/dev/asm-diskk‘ ATTRIBUTE ‘compatible.asm‘=‘11.2‘;

SQL> CREATE DISKGROUP OCR2 NORMAL REDUNDANCY DISK ‘/dev/asm-diski‘, ‘/dev/asm-diskj‘, ‘/dev/asm-diskk‘ ATTRIBUTE ‘compatible.asm‘=‘11.2‘;

Diskgroup created.

查看两个节点是否添加了OCR2:

--节点1:
SQL> r
  1* select name, TOTAL_MB, FREE_MB, state, type, COMPATIBILITY from v$asm_diskgroup

NAME                                                           TOTAL_MB    FREE_MB STATE                  TYPE         COMPATIBILITY
------------------------------------------------------------ ---------- ---------- ---------------------- ------------ ------------------------------------------------------------------------------------------------------------------------
DATA1                                                             15360      13502 MOUNTED                EXTERN       11.2.0.0.0
FRA1                                                               5120       4790 MOUNTED                EXTERN       11.2.0.0.0
OCR1                                                               3072       2146 MOUNTED                NORMAL       11.2.0.0.0
OCR2                                                               3072       2913 MOUNTED                NORMAL       11.2.0.0.0

--节点2:
SQL> select name, TOTAL_MB, FREE_MB, state, type, COMPATIBILITY from v$asm_diskgroup
  2  ;

NAME                                                           TOTAL_MB    FREE_MB STATE                  TYPE         COMPATIBILITY
------------------------------------------------------------ ---------- ---------- ---------------------- ------------ ------------------------------------------------------------------------------------------------------------------------
DATA1                                                             15360      13502 MOUNTED                EXTERN       11.2.0.0.0
FRA1                                                               5120       4790 MOUNTED                EXTERN       11.2.0.0.0
OCR1                                                               3072       2146 MOUNTED                NORMAL       11.2.0.0.0
OCR2                                                                  0          0 DISMOUNTED                          0.0.0.0.0

发现节点2需要手动mount新加的ASM磁盘组
sqlplus / as sysasm

SQL> alter diskgroup OCR2 mount;

Diskgroup altered.

2.1.2 添加OCR信息到OCR2

more /etc/oracle/ocr.loc
ocrconfig -add +OCR2
ocrcheck -config
more /etc/oracle/ocr.loc

[[email protected] ~]# more /etc/oracle/ocr.loc
ocrconfig_loc=+OCR1
local_only=FALSE
[[email protected] ~]# ocrconfig -add +OCR2
[[email protected] ~]#
[[email protected] ~]# ocrcheck -config
Oracle Cluster Registry configuration is :
         Device/File Name         :      +OCR1
         Device/File Name         :      +OCR2
[[email protected] ~]# more /etc/oracle/ocr.loc
#Device/file  getting replaced by device +OCR2
ocrconfig_loc=+OCR1
ocrmirrorconfig_loc=+OCR2
local_only=false
[[email protected] ~]# ocrcheck && crsctl query css votedisk
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       3116
         Available space (kbytes) :     259004
         ID                       : 1718040627
         Device/File Name         :      +OCR1
                                    Device/File integrity check succeeded
         Device/File Name         :      +OCR2
                                    Device/File integrity check succeeded

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

         Cluster registry integrity check succeeded

         Logical corruption check succeeded

##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   ab583d47c34a4f0ebfd46c8b04d7332b (/dev/asm-diskb) [OCR1]
 2. ONLINE   853e95652d994fe3bfdf21ca23e65dfc (/dev/asm-diskc) [OCR1]
 3. ONLINE   9f712a096a7b4f9bbfd811bff6462157 (/dev/asm-diskd) [OCR1]
Located 3 voting disk(s).

2.1.3迁移VOTE DISK到新创建的ASM磁盘组OCR2上

crsctl replace votedisk +OCR2 (一个节点root执行)
先查询:

SQL> select GROUP_NUMBER,NAME,STATE,type,TOTAL_MB,free_mb,VOTING_FILES,COMPATIBILITY from v$asm_diskgroup;

GROUP_NUMBER NAME                                                         STATE                  TYPE           TOTAL_MB    FREE_MB VO COMPATIBILITY
------------ ------------------------------------------------------------ ---------------------- ------------ ---------- ---------- -- ------------------------------------------------------------------------------------------------------------------------
           1 DATA1                                                        MOUNTED                EXTERN            15360      13502 N  11.2.0.0.0
           2 FRA1                                                         MOUNTED                EXTERN             5120       4790 N  11.2.0.0.0
           3 OCR1                                                         MOUNTED                NORMAL             3072       2146 Y  11.2.0.0.0
           4 OCR2                                                         MOUNTED                NORMAL             3072       2244 N  11.2.0.0.0

替换为新添加的OCR2:

[[email protected] ~]# crsctl replace votedisk +OCR2
Successful addition of voting disk 83f3dea9f4c24fccbf05eaa163c5c087.
Successful addition of voting disk ad21c1f0452e4f4abff906127ff9fcc3.
Successful addition of voting disk 2771819c65984f85bf366e74ee85781a.
Successful deletion of voting disk ab583d47c34a4f0ebfd46c8b04d7332b.
Successful deletion of voting disk 853e95652d994fe3bfdf21ca23e65dfc.
Successful deletion of voting disk 9f712a096a7b4f9bbfd811bff6462157.
Successfully replaced voting disk group with +OCR2.
CRS-4266: Voting file(s) successfully replaced

再查询:

SQL> r
  1* select GROUP_NUMBER,NAME,STATE,type,TOTAL_MB,free_mb,VOTING_FILES,COMPATIBILITY from v$asm_diskgroup

GROUP_NUMBER NAME                                                         STATE                  TYPE           TOTAL_MB    FREE_MB VO COMPATIBILITY
------------ ------------------------------------------------------------ ---------------------- ------------ ---------- ---------- -- ------------------------------------------------------------------------------------------------------------------------
           1 DATA1                                                        MOUNTED                EXTERN            15360      13502 N  11.2.0.0.0
           2 FRA1                                                         MOUNTED                EXTERN             5120       4790 N  11.2.0.0.0
           3 OCR1                                                         MOUNTED                NORMAL             3072       2242 N  11.2.0.0.0
           4 OCR2                                                         MOUNTED                NORMAL             3072       2148 Y  11.2.0.0.0

发现已经voting file已经在OCR2上,然后在两个节点root查询:
ocrcheck && crsctl query css votedisk

[[email protected] ~]# ocrcheck && crsctl query css votedisk
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       3116
         Available space (kbytes) :     259004
         ID                       : 1718040627
         Device/File Name         :      +OCR1
                                    Device/File integrity check succeeded
         Device/File Name         :      +OCR2
                                    Device/File integrity check succeeded

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

         Cluster registry integrity check succeeded

         Logical corruption check succeeded

##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   83f3dea9f4c24fccbf05eaa163c5c087 (/dev/asm-diski) [OCR2]
 2. ONLINE   ad21c1f0452e4f4abff906127ff9fcc3 (/dev/asm-diskj) [OCR2]
 3. ONLINE   2771819c65984f85bf366e74ee85781a (/dev/asm-diskk) [OCR2]
Located 3 voting disk(s).

[[email protected] ~]# ocrcheck && crsctl query css votedisk
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       3116
         Available space (kbytes) :     259004
         ID                       : 1718040627
         Device/File Name         :      +OCR1
                                    Device/File integrity check succeeded
         Device/File Name         :      +OCR2
                                    Device/File integrity check succeeded

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

         Cluster registry integrity check succeeded

         Logical corruption check succeeded

##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   83f3dea9f4c24fccbf05eaa163c5c087 (/dev/asm-diski) [OCR2]
 2. ONLINE   ad21c1f0452e4f4abff906127ff9fcc3 (/dev/asm-diskj) [OCR2]
 3. ONLINE   2771819c65984f85bf366e74ee85781a (/dev/asm-diskk) [OCR2]
Located 3 voting disk(s).

2.1.4 创建ASM实例spfile到新创建的OCR2 ASM磁盘组上

一个节点grid用户登录ASM实例执行:
create pfile=‘/tmp/asmpfile.ora‘ from spfile;
create spfile=‘+OCR2‘ from pfile=‘/tmp/asmpfile.ora‘;

SQL> show parameter pfile

NAME                                 TYPE                   VALUE
------------------------------------ ---------------------- ------------------------------
spfile                               string                 +OCR1/jyrac-scan/asmparameterf
                                                            ile/registry.253.919993739
SQL> create pfile=‘/tmp/asmpfile.ora‘ from spfile;

File created.

SQL> create spfile=‘+OCR2‘ from pfile=‘/tmp/asmpfile.ora‘;

File created.

SQL> show parameter pfile

NAME                                 TYPE                   VALUE
------------------------------------ ---------------------- ------------------------------
spfile                               string                 +OCR1/jyrac-scan/asmparameterf
                                                            ile/registry.253.919993739

2.1.5 删除OCR原位置ASM磁盘组OCR1

一个节点root执行:
[[email protected] ~]# ocrconfig -delete +OCR1

两个节点root执行:
查看OCR和VOTE新状态与位置
[[email protected] ~]# ocrcheck && crsctl query css votedisk

[[email protected] ~]# ocrconfig -delete +OCR1
[[email protected] ~]# ocrcheck && crsctl query css votedisk
Status of Oracle Cluster Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       3116
         Available space (kbytes) :     259004
         ID                       : 1718040627
         Device/File Name         :      +OCR2
                                    Device/File integrity check succeeded

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

                                    Device/File not configured

         Cluster registry integrity check succeeded

         Logical corruption check succeeded

##  STATE    File Universal Id                File Name Disk group
--  -----    -----------------                --------- ---------
 1. ONLINE   83f3dea9f4c24fccbf05eaa163c5c087 (/dev/asm-diski) [OCR2]
 2. ONLINE   ad21c1f0452e4f4abff906127ff9fcc3 (/dev/asm-diskj) [OCR2]
 3. ONLINE   2771819c65984f85bf366e74ee85781a (/dev/asm-diskk) [OCR2]
Located 3 voting disk(s).
节点2的ocrcheck输出也没问题,略。

2.1.6 重启整个集群

两个节点root执行:
crsctl stop crs && crsctl start crs

2.1.7 将旧的磁盘组drop掉

检查参数文件:

SQL> show parameter pfile

NAME                                 TYPE                   VALUE
------------------------------------ ---------------------- ------------------------------
spfile                               string                 +OCR2/jyrac-scan/asmparameterf
                                                            ile/registry.253.920008067

检查磁盘组状态:

Select GROUP_NUMBER,NAME,STATE,type,TOTAL_MB,free_mb,VOTING_FILES,COMPATIBILITY from v$asm_diskgroup;

select GROUP_NUMBER,DISK_NUMBER,STATE,REDUNDANCY,TOTAL_MB,FREE_MB,name,path,failgroup from v$asm_disk order by GROUP_NUMBER;

最后将旧的磁盘组mount并drop掉:
alter diskgroup OCR1 mount;
drop diskgroup OCR1 including contents;

SQL> alter diskgroup OCR1 mount;
Diskgroup altered.

SQL> drop diskgroup OCR1 including contents;
Diskgroup dropped.

注:旧的磁盘组只允许在一个节点mount,如果发现多个节点mount,需要在其他节点dismount,否则会删除不掉旧的磁盘组。

2.2迁移DATA1

2.2.1 数据磁盘组DATA1添加

确定/dev/asm-diskl,/dev/asm-diskm,/dev/asm-diskn对应的是新加的5G大小的3个盘
用于数据磁盘组DATA1添加
alter diskgroup DATA1 add disk ‘/dev/asm-diskl‘ rebalance power 7;
alter diskgroup DATA1 add disk ‘/dev/asm-diskm‘, ‘/dev/asm-diskn‘ rebalance power 11;

SQL> alter diskgroup DATA1 add disk ‘/dev/asm-diskl‘ rebalance power 7;

Diskgroup altered.

SQL> alter diskgroup DATA1 add disk ‘/dev/asm-diskm‘, ‘/dev/asm-diskn‘ rebalance power 11;

Diskgroup altered.

这里说明可以单个添加,也可以多个添加。

2.2.2 查询同步状态

set linesize 200
col NAME for a10
select name,allocation_unit_size,state,type,free_mb,required_mirror_free_mb req_mi_fr_mb,usable_file_mb
from v$asm_diskgroup;

2.2.3 删除原存储的LUN

所有磁盘添加进ASM磁盘组后,删除原存储的LUN。
查询LUN path与asm_disk_name的对应关系
select name,path from v$asm_disk;

SQL> select name,path from v$asm_disk

NAME       PATH
---------- ------------------------------------------------------------
           /dev/asm-diskc
           /dev/asm-diskd
           /dev/asm-disko
           /dev/asm-diskb
OCR2_0001  /dev/asm-diskj
OCR2_0000  /dev/asm-diski
DATA1_0003 /dev/asm-diskl
DATA1_0004 /dev/asm-diskm
DATA1_0005 /dev/asm-diskn
OCR2_0002  /dev/asm-diskk
FRA1_0000  /dev/asm-diskh
DATA1_0001 /dev/asm-diskf
DATA1_0002 /dev/asm-diskg
DATA1_0000 /dev/asm-diske

14 rows selected.

确定是DATA1_0000,DATA1_0001,DATA1_0002
删除磁盘组DATA1中旧存储对应的LUN:

alter diskgroup DATA1 drop disk DATA1_0000 rebalance power 7;
alter diskgroup DATA1 drop disk DATA1_0001,DATA1_0002 rebalance power 7;

2.2.4 确认存储置换完成

select disk_number,path,total_mb,free_mb from v$asm_disk;

DISK_NUMBER PATH                                                           TOTAL_MB    FREE_MB
----------- ------------------------------------------------------------ ---------- ----------
          0 /dev/asm-diskc                                                        0          0
          1 /dev/asm-diskd                                                        0          0
          2 /dev/asm-disko                                                        0          0
          3 /dev/asm-diske                                                        0          0
          4 /dev/asm-diskf                                                        0          0
          5 /dev/asm-diskg                                                        0          0
          6 /dev/asm-diskb                                                        0          0
          1 /dev/asm-diskj                                                     1024        715
          0 /dev/asm-diski                                                     1024        717
          3 /dev/asm-diskl                                                     5120       4502
          4 /dev/asm-diskm                                                     5120       4499
          5 /dev/asm-diskn                                                     5120       4501
          2 /dev/asm-diskk                                                     1024        714
          0 /dev/asm-diskh                                                     5120       4790

14 rows selected.

2.3迁移FRA1

FRA1磁盘组和DATA1磁盘组的添加一样,

alter diskgroup FRA1 add disk ‘/dev/asm-disko‘ rebalance power 7;
alter diskgroup FRA1 drop disk FRA1_0000 rebalance power 7;
select disk_number,path,total_mb,free_mb from v$asm_disk;

最后确定所有盘都置换完成:

SQL> select disk_number,path,total_mb,free_mb from v$asm_disk;

DISK_NUMBER PATH                                                           TOTAL_MB    FREE_MB
----------- ------------------------------------------------------------ ---------- ----------
          0 /dev/asm-diskc                                                        0          0
          1 /dev/asm-diskd                                                        0          0
          3 /dev/asm-diske                                                        0          0
          4 /dev/asm-diskf                                                        0          0
          5 /dev/asm-diskg                                                        0          0
          6 /dev/asm-diskb                                                        0          0
          1 /dev/asm-diskj                                                     1024        715
          0 /dev/asm-diski                                                     1024        717
          1 /dev/asm-disko                                                     5120       4943
          3 /dev/asm-diskl                                                     5120       4502
          4 /dev/asm-diskm                                                     5120       4499
          5 /dev/asm-diskn                                                     5120       4501
          2 /dev/asm-diskk                                                     1024        714
          0 /dev/asm-diskh                                                     5120       4965

14 rows selected.

SQL> r
  1* select disk_number,path,total_mb,free_mb from v$asm_disk

DISK_NUMBER PATH                                                           TOTAL_MB    FREE_MB
----------- ------------------------------------------------------------ ---------- ----------
          0 /dev/asm-diskc                                                        0          0
          1 /dev/asm-diskd                                                        0          0
          2 /dev/asm-diskh                                                        0          0
          3 /dev/asm-diske                                                        0          0
          4 /dev/asm-diskf                                                        0          0
          5 /dev/asm-diskg                                                        0          0
          6 /dev/asm-diskb                                                        0          0
          1 /dev/asm-diskj                                                     1024        715
          0 /dev/asm-diski                                                     1024        717
          1 /dev/asm-disko                                                     5120       4790
          3 /dev/asm-diskl                                                     5120       4502
          4 /dev/asm-diskm                                                     5120       4499
          5 /dev/asm-diskn                                                     5120       4501
          2 /dev/asm-diskk                                                     1024        714

14 rows selected.

最终确定要替换的LUN都没有数据了,主机侧就可以操作了。

2.4测试

查看集群各资源状态:

crsctl stat res -t

查看OCR信息:

ocrcheck && crsctl query css votedisk

查询ASM实例的spfile文件:

sqlplus / as sysasm <<EOF
show parameter pfile
EOF

查询之前的业务数据:

-- 业务查询SQL 1
select * from t1, t2 where t1.id = t2.t1_id and t1.n = 19;
-- 业务查询SQL 2
select * from t1, t2 where t1.id = t2.t1_id;

至此,整个RAC环境更换存储的实验就全部完成了。

转:http://www.cnblogs.com/jyzhao/p/5777484.html

时间: 2024-11-06 22:33:58

Oracle RAC 更换存储实验的相关文章

从ORACLE RAC角度看跨数据中心的存储双活配置注意事项

ORACLE RAC在设计的时候是没有考虑跨数据中心双活的,它的设计目的是为一个数据中心内有着共享存储的多个主机实现负载均衡和高可用性.但是由于它的架构确实有着跨数据中心实现负载均衡和高可用性的潜力,所以有几家存储设备供应商对它的使用环境做了扩展,提出了跨数据中心的解决方案.ORACLE对此采取了默认的态度,但是建议所有的解决方案在投入客户生产之前进行仔细的测试. 对于RAC而言,跨数据中心解决方案的最大瓶颈是节点之间的interconnect,因为它对时延和带宽的要求都非常高.一般而言,本地i

oracle rac存储安装

oracle rac 10.2 的在 linux 上的存储选项 博客分类: Oracle OracleLinux项目管理配置管理 Oracle 集群需要存储的软件和数据 项目 内容 最少磁盘空间 Clusterware 软件 集群软件 500M(安装完成后不变) voting disk(表决磁盘) 记录集群节点信息 20M OCR(Oracle 集群注册) 存储集群配置信息 100M Oracle 数据库软件 数据库软件 1.3G(安装完成后不变) RAC 数据库 存储所有数据库文件 1.2G(

深入理解Oracle RAC 12c

深入理解Oracle RAC 12c(顶尖专家权威指南唯一最新版数据库著作 Oracle第一社区技术大牛翻译 Amazon五星推荐) [美]Syed Jaffar Hussain(赛义德 贾法尔 侯赛因),Tariq Farooq(塔里克 法鲁克),Riyaj Shamsudeen(瑞亚吉沙姆斯丁),Kai Yu(于凯) 著   赵燚 梁涛 程飞 李真旭 译 ISBN 978-7-121-24066-9 2014年10月出版 定价:99.00元 488页 16开 编辑推荐 <深入理解 Oracl

Linux系统Oracle RAC 11gR2安装维护(前言)

在学习RAC集群技术这块时,发现网上大多数的文章以及博客写的都不是很完整,缺斤少两.在本人经过多次实验后整理出一篇完整的博客,方便自己记忆. 1.VMware虚拟机安装两台主机与共享存储配 2.为两台虚拟机安装Oracle Linux操作系统 3.安装RAC之前配置Linux系统环境相关参数 4.Linux系统中ssh通信与存储ASM磁盘配置 5.Grid Infrastructure集群组件安装与调试 6.ASM磁盘组创建与CRS磁盘组的镜像 7.Oracle RAC 11gR2集群数据库软件

Oracle RAC(Real Application Clusters)

Oracle RAC 运行于集群之上,为 Oracle 数据库提供了最高级别的可用性.可伸缩性和低成本计算能力.如果集群内的一个节点发生故障,Oracle 将可以继续在其余的节点上运行.Oracle 的主要创新是一项称为高速缓存合并的技术.高速缓存合并使得集群中的节点可以通过高速集群互联高效地同步其内存高速缓存,从而最大限度地低降低磁盘 I/O.高速缓存最重要的优势在于它能够使集群中所有节点的磁盘共享对所有数据的访问,数据无需在节点间进行分区.Oracle 是唯一提供具备这一能力的开放系统数据库

Oracle RAC OCR 的备份与恢复

Oracle Clusterware把整个集群的配置信息放在共享存储上,这些信息包括了集群节点的列表.集群数据库实例到节点的映射以及CRS应用程序资源信息.也即是存放在ocr 磁盘(或者ocfs文件)上.因此对于这个配置文件的重要性是不言而喻的.任意使得ocr配置发生变化的操作在操作之间或之后都建议立即备份ocr.本文主要基于Oracle 10g RAC环境描述OCR的备份与恢复.        OCR 相关参考:        Oracle RAC OCR 与健忘症        Oracle

HP-UX oracle RAC 双机实践 (转载)

一.软硬件配置检查 1.检查内存#/usr/contrib/bin/machinfoCPU info:  4 Intel(R) Itanium 2 9100 series processors (1.59 GHz, 18 MB)          532 MT/s bus, CPU version A1          8 logical processors (2 per socket) Memory: 32737 MB (31.97 GB) Firmware info:   Firmwar

Linux Oracle Rac 10G 搭建& Patch

Oracle Real Application Clusters 简称Oracle Rac 实施应用群集 环境接受 Virtual Machine(虚拟机):VirtualBox 4.2.18 系统平台:Oracle Enterprise Linux 5.7 X86_64 Software Packet:Oracle Database 10 R2 X86_64 for Linux Oracle 10201_clusterware_linux 虚拟机设置 Linux 内存4G 硬盘大小60G(推荐

Oracle RAC集群安装之:Grid软件安装过程蓝屏

前几天在安装一套RAC服务器的过程中,遇到了蓝屏事件,折腾了蛮久(在排查是否存在硬件问题上花费了相当多一部分时间),整个过程大概说明如下: 1.两台华为的PC SERVER,操作系统为WIN SERVER 2008 R2,装11.2.0.3的Oracle集群. 2.第一次安装到准备在第二节点进行GRID安装的步骤时,安装操作所在的节点1蓝屏自动重启了. 3.重启节点1每次都会在出现登陆界面前一刻发生蓝屏. 4.集成部门的同事查看两台服务器的面板,发现蓝屏的服务器在面板上有些指示灯不亮,怀疑是服务