设为首页 加入收藏

TOP

10gR2rac如何重跑root.sh?(二)
2015-07-24 10:44:41 来源: 作者: 【 】 浏览:8
Tags:10gR2rac 如何 root.sh
3 Linux /dev/sda2 7 515 4088542+ 83 Linux /dev/sda3 516 776 2096482+ 82 Linux swap / Solaris /dev/sda4 777 2610 14731605 5 Extended /dev/sda5 777 2610 14731573+ 83 Linux Disk /dev/sdb: 524 MB, 524288000 bytes 64 heads, 32 sectors/track, 500 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Disk /dev/sdb doesn't contain a valid partition table Disk /dev/sdc: 4294 MB, 4294967296 bytes 255 heads, 63 sectors/track, 522 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk /dev/sdc doesn't contain a valid partition table Disk /dev/sdd: 4294 MB, 4294967296 bytes 255 heads, 63 sectors/track, 522 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk /dev/sdd doesn't contain a valid partition table Disk /dev/sde: 4294 MB, 4294967296 bytes 255 heads, 63 sectors/track, 522 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk /dev/sde doesn't contain a valid partition table Disk /dev/sdf: 2147 MB, 2147483648 bytes 255 heads, 63 sectors/track, 261 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdf1 * 1 1 0 0 Empty Partition 1 has different physical/logical beginnings (non-Linux?): phys=(0, 0, 0) logical=(0, 0, 1) Partition 1 has different physical/logical endings: phys=(0, 0, 0) logical=(267349, 89, 4) Partition 1 does not end on cylinder boundary.

因此,最后gpart写回去也一样没用,因为数据都没了。 由于我这里也没有ocr的备份,因此只能重建了。

在10gR2 版本中,我们可以不必要重新安装,只跑root.sh脚本即可,那么怎么搞呢 ?

如果你直接运行root.sh,那么会遇到类似如下的问题:
[root@rac1 crs]# ./root.sh
WARNING: directory ‘/home/oracle/app/oracle/product/10.2.0′ is not owned by root
WARNING: directory ‘/home/oracle/app/oracle/product’ is not owned by root
WARNING: directory ‘/home/oracle/app/oracle’ is not owned by root
WARNING: directory ‘/home/oracle/app’ is not owned by root
WARNING: directory ‘/home/oracle’ is not owned by root
No value set for the CRS parameter CRS_OCR_LOCATIONS. Using Values in paramfile.crs
Checking to see if Oracle CRS stack is already configured
Oracle CRS stack is already configured and will be running under init(1M)
[root@rac1 crs]#

##### 清理部分文件,准备执行root.sh

?
1 2 3 4 5 6 7 8 9 10 11 12 13 1. 删除/etc/oracle/ocr.loc [root@rac1 crs]# mv /etc/oracle/ocr.loc /etc/oracle/ocr.loc.bak mv: overwrite `/etc/oracle/ocr.loc.bak'? y 2. 删除cssfatal文件 [root@rac1 crs]# cd /etc/oracle/ [root@rac1 oracle]# pwd /etc/oracle/scls_scr/rac1/oracle [root@rac1 oracle]# rm cssfatal rm: remove regular file `cssfatal'? n [root@rac1 oracle]# mv cssfatal cssfatal.bak 3. 删除/etc/inittab中的信息

最后我分开执行root.sh脚本即可,如下是过程:

节点1:

?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 [root@rac1 rac1]# /home/oracle/app/oracle/product/10.2.0/crs/root.sh WARNING: directory '/home/oracle/app/oracle/product/10.2.0' is not owned by root WARNING: directory '/home/oracle/app/oracle/product' is not owned by root WARNING: directory '/home/oracle/app/oracle' is not owned by root WARNING: directory '/home/oracle/app' is not owned by root WARNING: directory '/home/oracle' is not owned by root No value set for the CRS parameter CRS_OCR_LOCATIONS. Using Values in paramfile.crs Checking to see if Oracle CRS stack is already configured Setting the permissions on OCR backup directory Setting up NS directories Oracle Cluster Registry configuration upgraded successfully WARNING: directory '/home/oracle/app/oracle/product/10.2.0' is not owned by root WARNING: directory '/home/oracle/app/oracle/product' is not owned by root WA
首页 上一页 1 2 3 4 5 6 7 下一页 尾页 2/7/7
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇用户登录失败,该用户与可信SQLSe.. 下一篇SCN系统变更号以及它和恢复的关系

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·C++ Lambda表达式保 (2025-12-26 05:49:45)
·C++ Lambda表达式的 (2025-12-26 05:49:42)
·深入浅出 C++ Lambda (2025-12-26 05:49:40)
·C语言指针从入门到基 (2025-12-26 05:21:36)
·【C语言指针初阶】C (2025-12-26 05:21:33)