- 最后登录
- 2015-7-20
- 在线时间
- 25 小时
- 威望
- 0
- 金钱
- 176
- 注册时间
- 2013-5-11
- 阅读权限
- 10
- 帖子
- 31
- 精华
- 0
- 积分
- 0
- UID
- 1090
|
1#
发表于 2013-6-9 22:43:04
|
查看: 3323 |
回复: 0
本帖最后由 liuwenqing 于 2013-8-8 15:36 编辑
操作系统平台:centos 5.7
数据库、grid软件版本:oracle 11gR2 11.2.0.1 64bit
数据库架构:rac
grid 基础组件已经按照刘sir 视频顺利安装,在看刘sir演示过程中,有进入到ASMCMD界面下查看asm的情况。我在我的 环境试了一下,如下提示:
$ asmcmd
Connected to an idle instance.
ASMCMD>
[grid@db1 ~]$ ps -ef |grep asm_
grid 14118 1 0 18:13 ? 00:00:00 asm_pmon_+ASM1(2)
grid 14120 1 0 18:13 ? 00:00:00 asm_vktm_+ASM1(2)
grid 14124 1 0 18:13 ? 00:00:00 asm_gen0_+ASM1(2)
grid 14126 1 0 18:13 ? 00:00:00 asm_diag_+ASM1(2)
grid 14128 1 0 18:13 ? 00:00:00 asm_ping_+ASM1(2)
grid 14130 1 0 18:13 ? 00:00:00 asm_psp0_+ASM1(2)
grid 14132 1 0 18:13 ? 00:00:00 asm_dia0_+ASM1(2)
grid 14134 1 0 18:13 ? 00:00:01 asm_lmon_+ASM1(2)
grid 14136 1 0 18:13 ? 00:00:00 asm_lmd0_+ASM1(2)
grid 14138 1 0 18:13 ? 00:00:00 asm_lms0_+ASM1(2)
grid 14142 1 0 18:13 ? 00:00:00 asm_lmhb_+ASM1(2)
grid 14144 1 0 18:13 ? 00:00:00 asm_mman_+ASM1(2)
grid 14146 1 0 18:13 ? 00:00:00 asm_dbw0_+ASM1(2)
grid 14148 1 0 18:13 ? 00:00:00 asm_lgwr_+ASM1(2)
grid 14150 1 0 18:13 ? 00:00:00 asm_ckpt_+ASM1(2)
grid 14152 1 0 18:13 ? 00:00:00 asm_smon_+ASM1(2)
grid 14154 1 0 18:13 ? 00:00:00 asm_rbal_+ASM1(2)
grid 14156 1 0 18:13 ? 00:00:00 asm_gmon_+ASM1(2)
grid 14158 1 0 18:13 ? 00:00:00 asm_mmon_+ASM1(2)
grid 14160 1 0 18:13 ? 00:00:00 asm_mmnl_+ASM1(2)
grid 14165 1 0 18:13 ? 00:00:00 asm_lck0_+ASM1(2)
grid 14189 1 0 18:13 ? 00:00:00 asm_asmb_+ASM1(2)
grid 20035 18611 0 21:08 pts/2 00:00:00 grep asm_
[grid@db1 ~]$ echo $ORACLE_SID
+ASM1
两个节点我都看过了(SID设置正确,node1 +ASM1,node2 +ASM2),同样的情况???这是为什么???
在部署完grid 基础套件后,配置ASM磁盘
$asmca
ASMCA detected pre 11gR2 ASM, but it does not have a local instance configured on this node. If you want to upgrade ASM to 11gR2, you need to run ASMCA on a node where pre 11gR2 ASM instance is configured.
[解决方案]
出现此问题主要是因为环境变量设置的原因引起的
原环境变量:
export PATH=$PATH:$HOME/bin
export ORACLE_SID=+ASM1
export GRID_BASE=/u01/app
export GRID_HOME=/u01/app/11.2.0/grid
export ORACLE_HOME=/u01/app/11.2.0/grid
export NLS_LANG=AMERICAN_AMERICA.ZSH16GBK
export NLS_DATE_FORMAT="YYYY-MM-DD HH24:MI:SS"
export PATH=${PATH}:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin::$HOME/bin:$GRID_HOME/bin
修改后:
export PATH=$PATH:$HOME/bin
export ORACLE_SID=+ASM1
export GRID_BASE=/u01/app
export ORACLE_HOME=/u01/app/11.2.0/grid
export PATH=$PATH:/usr/bin:/bin:/usr/bin/X11:/usr/local/bin::$HOME/bin:$ORACLE_HOME/bin
后续问题:
DBCA建库不能发现磁盘组
用的是Mr.liu 5.0的那个脚本,检查过了,两个节点都能发现asm-disk磁盘组,
asmcmd下也能发现,建立的磁盘组;
不过,脚本里权限写的是0600,生成后的块儿设备是0640,各位高手支招。多谢了。
还需要检查哪里?别告诉我这个是11.2.0.1的bug...
|
|