您好,登录后才能下订单哦!
Oracle 11gR2构建RAC之(5)--安装Oracle并建库
系统环境:
操作系统:RedHat EL5
Cluster: Oracle GI(Grid Infrastructure)
Oracle: Oracle 11.2.0.1.0
如图所示:RAC 系统架构
五、安装Oracle并建库
以oracle用户登录系统并安装Oracle软件和建立数据库
只安装软件,然后再建库
安装在RAC环境
安装软件
按照提示运行脚本(all nodes)
[root@node1 ~]# /u01/app/oracle/product/11.2.0/db_1/root.sh
Running Oracle 11g root.sh script... The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/oracle/product/11.2.0/db_1 Enter the full pathname of the local bin directory: [/usr/local/bin]: 脚本运行成功后,即可完成Oracle的安装!
以grid运行asmca工具建立磁盘组:
建立dg1磁盘组用于存储database
建立dg1 磁盘组成功
创建rcy1 diskgroup用于存储recovery area
@至此,ASM磁盘组创建成功!
以oracle用户通过dbca建库:
建立RAC下的database
注意建立在所有node上
选择ASM存储,并通过OMF方式管理datafile
开始建库
建库完成后,即完成了Oracle 11g RAC的架构
验证:
[root@node1 ~]# crs_stat -t Name Type Target State Host ------------------------------------------------------------ ora.DG1.dg ora....up.type ONLINE ONLINE node1 ora.DG2.dg ora....up.type ONLINE ONLINE node1 ora....ER.lsnr ora....er.type ONLINE ONLINE node1 ora....N1.lsnr ora....er.type ONLINE ONLINE node1 ora....VOTE.dg ora....up.type ONLINE ONLINE node1 ora.RCY1.dg ora....up.type ONLINE ONLINE node1 ora.asm ora.asm.type ONLINE ONLINE node1 ora.eons ora.eons.type ONLINE ONLINE node1 ora.gsd ora.gsd.type OFFLINE OFFLINE ora....network ora....rk.type ONLINE ONLINE node1 ora....SM1.asm application ONLINE ONLINE node1 ora....E1.lsnr application ONLINE ONLINE node1 ora.node1.gsd application OFFLINE OFFLINE ora.node1.ons application ONLINE ONLINE node1 ora.node1.vip ora....t1.type ONLINE ONLINE node1 ora....SM2.asm application ONLINE ONLINE node2 ora....E2.lsnr application ONLINE ONLINE node2 ora.node2.gsd application OFFLINE OFFLINE ora.node2.ons application ONLINE ONLINE node2 ora.node2.vip ora....t1.type ONLINE ONLINE node2 ora.oc4j ora.oc4j.type OFFLINE OFFLINE ora.ons ora.ons.type ONLINE ONLINE node1 ora.prod.db ora....se.type ONLINE ONLINE node1 ora....taf.svc ora....ce.type ONLINE ONLINE node1 ora....ry.acfs ora....fs.type ONLINE ONLINE node1 ora.scan1.vip ora....ip.type ONLINE ONLINE node1 rac_web application ONLINE ONLINE node1 web_vip application ONLINE ONLINE node1 17:06:17 SYS@ prod1>select name from v$database; NAME --------- PROD Elapsed: 00:00:00.38 17:06:30 SYS@ prod1>select instance_number,instance_name,status from gv$instance; INSTANCE_NUMBER INSTANCE_NAME STATUS --------------- ---------------- ------------ 1 prod1 OPEN 2 prod2 OPEN
@至此,整个Oracle 11g RAC的部署和架构全部完成!
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。