联系:手机/微信(+86 17813235971) QQ(107644445)
作者:惜分飞©版权所有[未经本人同意,不得以任何形式转载,否则有进一步追究法律责任的权利.]
装过ORACLE 12C RAC 的朋友应该感觉到12C的RAC简直就是一个怪物,需要消耗太多的内存、IO、CPU资源,在没有物理机器的情况下,使用虚拟机装ORACLE 12C RAC那可能需要比较好的主机资源(8G的内存不运行主机,仅仅够2个节点的虚拟机运行,所以8G的内存主机基本上无法ORACLE 12C 2节点RAC),而没有好的资源情况下,又需要玩12C RAC功能的朋友,我这里展示了单节点RAC(一个节点的RAC的rac),这里主要显示的是单节点RAC和多节点RAC安装不同之处,同时这里的安装也仅仅是为了玩
内存要求
准备环境
[oracle@xifenfei ~]$ more /etc/oracle-release Oracle Linux Server release 5.8 [oracle@xifenfei ~]$ free -m total used free shared buffers cached Mem: 4350 4036 313 0 4 2805 -/+ buffers/cache: 1226 3124 Swap: 2047 853 1193 [oracle@xifenfei ~]$ /sbin/ifconfig eth0 Link encap:Ethernet HWaddr 00:0C:29:02:1B:A7 inet addr:192.168.30.22 Bcast:192.168.30.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:66152 errors:0 dropped:0 overruns:0 frame:0 TX packets:83647 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:21143877 (20.1 MiB) TX bytes:44756747 (42.6 MiB) eth1 Link encap:Ethernet HWaddr 00:0C:29:02:1B:B1 inet addr:10.10.30.22 Bcast:10.10.30.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:8064 errors:0 dropped:0 overruns:0 frame:0 TX packets:366 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:645158 (630.0 KiB) TX bytes:64125 (62.6 KiB) [oracle@xifenfei ~]$ more /etc/hosts 127.0.0.1 localhost.localdomain localhost 10.10.30.22 xifenfei-priv 192.168.30.22 xifenfei 192.168.30.32 xifenfei-vip 192.168.30.42 scan-ip [root@xifenfei ~]# yum install oracle-validated [root@xifenfei rpm]# rpm -ivh cvuqdisk-1.0.9-1.rpm
安装ORACE DB软件
创建数据库
安装结果
[root@xifenfei ~]# crsctl status res -t -------------------------------------------------------------------------------- Name Target State Server State details -------------------------------------------------------------------------------- Local Resources -------------------------------------------------------------------------------- ora.ASMNET1LSNR_ASM.lsnr ONLINE ONLINE xifenfei STABLE ora.DATA.dg ONLINE ONLINE xifenfei STABLE ora.LISTENER.lsnr ONLINE ONLINE xifenfei STABLE ora.net1.network ONLINE ONLINE xifenfei STABLE ora.ons ONLINE ONLINE xifenfei STABLE ora.proxy_advm ONLINE ONLINE xifenfei STABLE -------------------------------------------------------------------------------- Cluster Resources -------------------------------------------------------------------------------- ora.LISTENER_SCAN1.lsnr 1 ONLINE ONLINE xifenfei STABLE ora.MGMTLSNR 1 ONLINE ONLINE xifenfei 169.254.243.16 10.10 .30.22,STABLE ora.asm 1 ONLINE ONLINE xifenfei STABLE 2 OFFLINE OFFLINE STABLE 3 OFFLINE OFFLINE STABLE ora.cdb.db 1 ONLINE ONLINE xifenfei Open,STABLE ora.cvu 1 ONLINE ONLINE xifenfei STABLE ora.mgmtdb 1 ONLINE ONLINE xifenfei Open,STABLE ora.oc4j 1 ONLINE ONLINE xifenfei STABLE ora.scan1.vip 1 ONLINE ONLINE xifenfei STABLE ora.xifenfei.vip 1 ONLINE ONLINE xifenfei STABLE -------------------------------------------------------------------------------- [root@xifenfei ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:0C:29:02:1B:A7 inet addr:192.168.30.22 Bcast:192.168.30.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:66419 errors:0 dropped:0 overruns:0 frame:0 TX packets:83849 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:21168865 (20.1 MiB) TX bytes:44798962 (42.7 MiB) eth0:1 Link encap:Ethernet HWaddr 00:0C:29:02:1B:A7 inet addr:192.168.30.42 Bcast:192.168.30.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth0:2 Link encap:Ethernet HWaddr 00:0C:29:02:1B:A7 inet addr:192.168.30.32 Bcast:192.168.30.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 eth1 Link encap:Ethernet HWaddr 00:0C:29:02:1B:B1 inet addr:10.10.30.22 Bcast:10.10.30.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:12244 errors:0 dropped:0 overruns:0 frame:0 TX packets:368 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:994988 (971.6 KiB) TX bytes:64536 (63.0 KiB) eth1:1 Link encap:Ethernet HWaddr 00:0C:29:02:1B:B1 inet addr:169.254.243.16 Bcast:169.254.255.255 Mask:255.255.0.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:91800 errors:0 dropped:0 overruns:0 frame:0 TX packets:91800 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:68999524 (65.8 MiB) TX bytes:68999524 (65.8 MiB)