White Women

Www 1stlivenude St A A 1 Girls Szh 2012 02 Gratuity And Writing St Live Nude 10g单一实例数据库转化为RAC | 张刚的博客

Www 1stlivenude St A A 1 Girls Szh 2012 02 Gratuity And Writing St Live Nude

  • 旅行人生
  • 友情链接
  • 关于我
  • 10g单一实例数据库转化为RAC

    Posted on by

    接上次的步骤继续往下

    由于ASM也在使用CRS服务,与RAC环境下的CRS会有冲突(瞎猜的),如果不删除ASM就安装clusterware的时候,会检测出下列错误
    Checking local Cluster Synchronization Services (CSS) status …

    Actual Result: One or more of the selected nodes in the cluster has local CSS configured on it.
    Check complete. The overall result of this check is: Failed <<<<

    Problem: One or more of the selected nodes in the cluster has local CSS configured on it.

    Recommendation: Cluster Synchronization Services (CSS) provide services for single-instance Automatic Storage Management (ASM) in addition to being part of the Oracle Clusterware stack. When configured stand-alone outside of the Oracle Clusterware, it is sometimes referred to as “local” CSS.

    Because you are installing Oracle Clusterware on a set of nodes that already have local CSS configured, you must shut down any ASM instances and any databases using ASM and deconfigure local CSS on those nodes before proceeding with the Oracle Clusterware installation. You can deconfigure local CSS by running ‘localconfig delete’ as the root user from OH/bin. After the Oracle Clusterware installation and configuration is complete, CSS will be started and configured to run from the Oracle Clusterware Home. You may then restart any ASM instances and any databases that use ASM.

    1.

    在安装之前需要删除之前装ASM中的CRS服务,提示步骤为:
    Shut down the database instance, the ASM instance, and the listener.
    Remove the CSS auto-start line from the /etc/inittab file to enable you to shut down and uninstall CSS.

    [root@asm1 ~]# vi /etc/inittab
    注释最后一行后,重启机器
    h1:35:respawn:/etc/init.d/init.cssd run >/dev/null 2>&1 </dev/null

    2.

    检查安装环境,由于前面都已经安装ASM并且建库了,各方面还是满足的,但下一步有几个环境验证可以再次检查一下。

    3.

    If any cluster member node has had previous versions of Oracle clusterware (Cluster Ready Services or Oracle Clusterware) installed, then ensure that you remove the file ocr.loc on any node that has been labeled previously as a cluster node. The file ocr.loc is in/etc/oracle on Linux.

    [root@asm1 oracle]# mv ocr.loc ocr.bak

    按照提示删除ASM的实例,当然,数据是不会丢失的。

    4.

    log in as the oracle user, and run DBCA in silent mode to deconfigure ASM. To run DBCA in silent mode, navigate to the directory $ORACLE_HOME/bin and use the following command syntax on the local node:

    [oracle@asm1 ~]$ dbca -silent -deleteASM
    Look at the log file "/home/oracle/product/10.2.0/db_1/cfgtoollogs/dbca/silent.log" for further details.

    其实应该是该目录下的trace.log文件,可以看见ASM实例已经删除。
    官方介绍数据不会丢失:You can de-install the single-instance ASM without losing data.

    5.

    Install Oracle Clusterware on all nodes you intend to have as cluster members
    开始安装clusterware之前,做一个环境验证,否则在后续安装CRS的时候,还是会提示报错,欲速则不达
    [oracle@asm1 cluvfy]$ ./runcluvfy.sh stage -pre crsinst -n asm1
    验证过程中可能会出现常见的几个错误,比如ssh未信任(User equivalence check failed),缺失软件包(compat-xxx)等

    5.1

    10g版本中,CRS使用的vote和ocr盘,还没有合并到ASM里面,需要放在额外的2个裸设备里面。建议使用分区而不是整个盘,区别在于crs安装错误,需要用dd清空磁盘,如对整盘操作可能把全盘所有扇区都清空了。

    在RHEL5上配置裸设备过程

    [root@asm1 ~]# cat /etc/udev/rules.d/60-raw.rules
    ...
    #ocr
    ACTION=="add", KERNEL=="/dev/sdi1", RUN+="/bin/raw /dev/raw/raw1 %N"
    ACTION=="add", ENV{}=="8", ENV{}=="129", RUN+="/bin/raw /dev/raw/raw1 %M %m"
    #vote
    ACTION=="add", KERNEL=="/dev/sdj1", RUN+="/bin/raw /dev/raw/raw2 %N"
    ACTION=="add", ENV{}=="8", ENV{}=="145", RUN+="/bin/raw /dev/raw/raw2 %M %m"
    
    KERNEL=="raw1",OWNER="oracle",GROUP="oinstall",MODE="640"
    KERNEL=="raw2",OWNER="oracle",GROUP="oinstall",MODE="640"

    每次开机启动后,裸设备都初始化完成了

    5.2

    安装过程中,需要执行/home/oracle/product/10.2.0/crs_1/root.sh脚步,遇到一个常见的错误,应该是bug:
    Running vipca(silent) for configuring nodeapps
    /home/oracle/product/10.2.0/crs_1/jdk/jre//bin/java: error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file or directory
    参考附文二中的处理办法:
    在/home/oracle/product/10.2.0/crs_1/bin/vipca和srvctl中分别增加一行unset LD_ASSUME_KERNEL,手工设定网卡的配置

    [root@asm1 bin]# ./oifcfg iflist
    eth0 192.168.56.0
    eth1 192.168.0.0
    [root@asm1 bin]# ./oifcfg setif -global eth1/192.168.0.0:public
    [root@asm1 bin]# ./oifcfg setif -global eth0/192.168.56.0:cluster_interconnect
    [root@asm1 bin]# ./oifcfg getif
    eth1 192.168.0.0 global public
    eth0 192.168.56.0 global cluster_interconnect
    bWww 1stlivenude St A A 1 Girls Szh 2012 02 Gratuity And Writing St Live Nude 10g单一实例数据库转化为RAC | 张刚的博客u Passion Youtube eWww 1stlivenude St A A 1 Girls Szh 2012 02 Gratuity And Writing St Live Nude 10g单一实例数据库转化为RAC | 张刚的博客v St Live Nude Dating St Live Nude