vip offline的解决 CRS_1006 CRS_0215
察看crs/bin/racgvip文件 [root@inth-rac02 oracle]# /opt/crs/product/10.2.0.1/crs_1/bin/racgvip There is no VIP name [root@inth-rac02 oracle]# /opt/crs/product/10.2.0.1/crs_1/bin/oifcfg getif -global eth0 192.168.8.0 global public eth1 192.168.1.0 global cluster_interconnect [root@inth-rac02 oracle]# /opt/crs/product/10.2.0.1/crs_1/bin/cluvfy stage -post crsinst -n inth-rac02 [root@inth-rac02 oracle]# /opt/crs/product/10.2.0.1/crs_1/bin/crsctl check crs CSS appears healthy
第二个节点rootaddnode出现错误
[root@inthrac01 ~]# /u01/app/oracle/product/10.2.0/crs_1/install/rootaddnode.sh clscfg: EXISTING configuration version 3 detected. clscfg: version 3 is 10G Release 2. Attempting to add 1 new nodes to the configuration Using ports: CSS=49895 CRS=49896 EVMC=49898 and EVMR=49897. node <nodenumber>: <nodename> <private interconnect name> <hostname> node 2: inthrac02 inthrac-pri02 inthrac02 Creating OCR keys for user 'root', privgrp 'root'.. Operation successful. /
CentOS5.4上安装RAC
一直都是在RHEL4上装RAC的,最多的用的就是4.7这个版本,这几天看到几个客户用的CentOS5的版本。 所以也试试搞个CentOS5的版本来玩玩。在centos网站上下的CentOS5.4 64位的版本。 Centos是Linux As的克隆版,所以以前搞RHEL AS4的时候,也玩过CentOS4.7, 不过RHEL4还一直没有搞过5的版本,所以这个CentOS 64位是第一次尝试叻。 本以为安装没有什么特别的地方的,不过还是遇到一些问题,特记录一下 运行clusterware/cluvfy/runcluvfy.sh stage -pre crsinst -n inthrac01,inthrac02 除了vip不通过,其他都pass 但是运行runIn
一下是官方上的64位 Linux上的依赖包
一下是官方上的64位 Linux上的依赖包 binutils compat-libstdc++ elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers libaio libaio-devel libgcc libstdc++ libstdc++-devel make sysstat libXp libXp-devel 运行命令检查是否已经都安装了,尽可能的都安装32和64位的 rpm -qa --queryformat "%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})n"
LINUX平台下的10.2.0.4版本的CLUSTERWARE引入的变化-关于OPROCD进程
linux 平台上的Oracle Clusterware 10.2.0.4和以后版本引入了一个新的Oracle Clusterware Process Monitor Daemon (OPROCD)进程来监控系统状态和集群中的每个节点的健康状态,就象已经在不使用第三方的cluster软件的UNIX系统中提供的那样,下面来看看 OPROCD到底是何方神圣。 OPROCD在linux平台上的10.2.0.4版本中和hangcheck- timer一起运行,它和hangcheck-timer模块没有联系和依赖关系,它由init.ccsd进程产生出来并用root用户运行。 OPROCD进程被锁定在内存中来监控集群中的每个它自己运行的节点,来检测机器上的硬件或者驱
给客户做的一个ASM RAC的归档策略和脚本
给客户做的一个ASM RAC的归档策略和脚本 使用3个级别。 提供三个级别的rman脚本 注 增量备份备份从最近的n级别或者更小级别以来的所有更改过的数据块内容,针对于数据库的备份。不包含归档 其实在使用的时候,觉得级别搞1,2,3,4没有太大意义,一般也就用了1,2级, 在10g里Oracle索性拿走了其他的级别含义,只有0,1表示全备和增量。 搜索更多相关主题的帖子: Oracle RAC RMAN ASM Incremental 提供Oracle管理/故障处理/优化/安装/RAC/备份恢复技术服务,提供专
asmcmd的一个问题
在64bit的Centos5上运行asmcmd [oracle@inthrac01 ~]$ asmcmd install_driver(Oracle) failed: Can't load '/u01/app/oracle/product/10.2.0/db_1/perl/lib/site_perl/5.8.3/i686-linux-thread-multi/auto/DBD/Oracle/Oracle.so' for module DBD::Oracle: /u01/app/oracle/product/10.2.0/db_1/lib32/libnnz10.so: cannot restore segment prot after reloc: Permission denied at /u01/app/oracle/product/10.2.0/db_1/perl/lib/5.8.3/i686-linux-thread-multi/DynaLoader.pm line 229. at (eval 2) line 3 Compilation faile
VIPCA failes with CRS-0215 ONS
VIPCA的时候,ons出现问题。 racle Database 10g CRS Release 10.2.0.4.0 Production Copyright 1996, 2005 Oracle. All rights reserved. 2010-02-24 16:45:09.610: [ RACG][3577232672] [17799][3577232672][ora.mxb2bcoredb01.ons]: Number of onsconfiguration retrieved, numcfg = 0 Number of onsconfiguration retrieved, numcfg = 0 onsctl: ons failed to start 2010-02-24 16:45:09.610: [ RACG][3577232672] [17799][3577232672][ora.mxb2bcoredb01.ons]: clsrcexecut: env ORACLE_CONFIG_HOME=/u01/product/crs
linux下rac环境下删除节点
os:linux as 4 版本:oracle10gr2 我的环境是oracle_home==/u01/app/oracle/product/10.2.0/db_1,crs_home==/u02/app/oracle/product/10.2.0/db_1 rac01 的 oracle_sid=orcl1 rac02 的 oracle_sid=orcl2 rac03 的 oracle_sid=orcl3 首先检查集群信息,以root用户登陆,进入CRS目录 ./olsnodes -n rac01 1 rac02 2 rac03 3 该过程将通过下3个步骤实现 1. 删除数据库实例 2. 删除ASM实例 3. 删除节点 第一步 从RAC中删除数据库实例 该步骤将完成如下: 撤销选择的实例在关联的Oracle Net Services监
oracle RAC 底层进程介绍
1.GSD global services daemon oracle官方文档的描述 The Global Services Daemon (GSD) runs on each node with one GSD process per node. The GSD coordinates with the cluster manager to receive requests from clients such as the DBCA, EM, and the SRVCTL utility to execute administrative job tasks such as instance startup or shutdown. The GSD is not an Oracle instance background process and is therefore not started with the Oracle instance. GSD与rac的管理工具dbca srvctl oem进行交互,用来完
卸载CRS
在我们安装失败了CRS以后。我们要卸载CRS 卸载有两种方法 方法一,使用CRS提供给我们的工具 $ORA_CRS_HOME/install/rootdelete.sh和$ORA_CRS_HOME/install/rootdeinstall.sh 这个会删除CRS的文件包括一些服务文件,还会清理ocr和vote disk的信息 方法二,手工删除 也就是 先停止到节点上的服务和instance srvctl stop nodeapps -n nodename 删除CRS相关程序 rm /etc/oracle/* rm -f /etc/init.d/init.cssd rm -f /etc/init.d/init.crs rm -f /etc/init.d/init.crsd rm -f /etc/init.d/init.evmd rm -f /etc/rc2.d/
CRS 目录下的Log
admin => 记录一些概要信息 alertgnd-rac01.log =>记录节点crs状态变化时候的一些概要信息,详细还是要看css log client =>记录crs初始化,ocr application including: CLSCFG, CSS, OCRCHECK, OCRCONFIG, OCRDUMP and OIFCFG crsd =>记录crsd的相关日志,crs等待css进入fatal模式后,启动crsd然后启动相关的resource cssd =>记录cssd的相关日志,节点停止,启动,reconfig等,所有问题都会记录,最重要的日志 evm
RACG是什么
在RAC里有在CRS的日志目录里有一个子目录名字RACG 在此目录下有关于ons,vip和gsd的一些日志 evtf.log ora.inth-rac02.vip.log racgmain/ ora.inth-rac01.vip.log racgeut/ ora.inth-rac02.ons.log racgevtf/ 特别在Oracle的文档里 查了查,这个RACG是什么意思 特此记录一下 RACG—Extends clusterware to support Oracle-specific requirements and complex resources. Runs server callout scripts when FAN events occur. 参考文档 http://download.oracle.com/docs/cd/B19306_
CRS主要service
crs主要进程 (1)crsd 负责管理ha操作 管理crs资源,如linstener,vip,ons,gsn等 由root用户管理、启动 (2)ocssd 管理各节点的关系,用于节点间通信 由oracle用户运行管理 (3)oprocd 集群进程管理 —Process monitor for the cluster. 仅在没有使用vendor的集群软件状态下运行 (4)evmd 事件检测进程,由oracle用户运行管理 相关log位置 $ORA_CRS_HOME/log/nodename/crsd $ORA_CRS_HOME/crs/init $ORA_CRS_HOME/css/log $ORA_CRS_HOME/css/init $ORA_CRS_HOME/evm/log $ORA_CRS_HOME/evm/init $ORA_CRS_HOME/srvm/l
RAC Private Network - UDP私有网络的调优
UDP私有网络的调优 当使用UDP作为数据库实例间cache fusion的通信协议时,在操作系统上需要调整相关参数,以提高UDP传输效率,并在较大数据时避免出现超出OS限制的错误: (1) UDP数据包发送缓冲区:大小通常设置要大于(db_block_size * db_multiblock_read_count )+4k, (2) UDP数据包接收缓冲区:大小通常设置10倍发送缓冲区; (3) UDP缓冲区最大值:设置尽量大(通常大于2M)并一定要大于前两个值; 各个平台对应查看和修改命令如下: Solaris查看ndd /dev/udp udp_xmit_hiwat udp_recv_hiwat ud
RAC添加新节点
RAC通过多个实例,多个节点提供了高性能处理的一种方案,不过有时候,出于变化的原因,我们需要新增加一个节点到我们已经部署好的RAC的集群上,这时候我们可以使用crs(Clusterware)的AddNode的工具实现我们的需求。 执行先使用$CRS_HOME/bin/cluvfy检查安装条件 [oracle@inth-rac01 ~]$ /opt/crs/product/10.2.0.1/crs_1/bin/cluvfy stage -pre crs inst -n inth-rac02 ERROR: Could not find a suitable set of interfaces for VIPs. 注意这里会有这样的提示,主要是10.2.0.1版本里的一个bug,对于172.168. 192.168. 10.0.
Oracle 数据库 升级为 RAC
对于那些具有有限操作经验的用户而言,实施 Oracle RAC 10g 的前景令人生畏。但事情并不一定如此。 本指南将提供明确的步骤,引导您在 RHEL3 上将单一实例 Oracle 10g 数据库转换为 Oracle RAC。我将 Oracle 自动存储管理 (ASM)(一个构建到 Oracle 数据库内核中的集成文件系统和卷管理解决方案)用于 RAC 数据库存储,因为它不但提供了存储可靠性和高性能,还简化了数据库存储管理。 总的说来,有多种方法可以将数据库转换为 RAC。如果数据库比较小,则可以考虑在 ASM上安装一个新的 RAC 数据库,并将当前数据库中的数据导出/导入到