ITPub博客

首页 > 数据库 > Oracle > 11g r2 添加节点大致步骤

11g r2 添加节点大致步骤

Oracle 作者:531968912 时间:2015-04-18 19:09:55 0 删除 编辑
1、配置hosts
=================================================================
根据原有节点配置host文件
 
=================================================================
2、配置内核(按照现有节点配置)
=================================================================
 
参照其他节点
 
=================================================================
3、配置包(安装oracle需要包,此处用yum)
=================================================================
 
安装依赖包
 
=================================================================
4、创建用户(用户和组id必须一样)
=================================================================
 
通过id 确定用户的id
 
=================================================================
5、配置ssh(配置互信)
=================================================================
 
 
配置三节点的互信
1、使用脚本
./sshUserSetup.sh -user grid -hosts "devdb1 devdb2 devdb3" -advanced -noPromptPassphrase
2、手工配置
 
=================================================================
6、创建目录
=================================================================
 
根据源节点创建目录
 
=================================================================
7、安装asmlib  由需要的配置 ,不需要的跳过
=================================================================
 
这里配置asmlib的朋友需要操作,不要的请跳过 
 
=================================================================
8、环境检测
=================================================================
 
*****************************************************************
  -post hwos  post check for hardware and operating system
  -pre cfs    pre-check for CFS setup
  -post cfs   post-check for CFS setup
  -pre crsinst pre-check for Oracle Clusterware installation
  -post crsinst post-check for Oracle Clusterware installation
  -pre dbinst pre-check for database installation
  -pre dbcfg  pre-check for database configuration
  -post hwos:对硬件和操作系统进行后期检查;
  -pre cfs:对CFS设置进行预检;
  -post cfs:对CFS设置进行后期检查;
  -pre crsinst:对CRS安装进行预检查;
  -post crsinst:对CRS安装进行后期检查;
  -pre dbinst:对数据库安装进行预检查;
  -pre dbcfg:对数据库配置进行预检查。
        Components include
        nodereach   Checks reachability between nodes
        nodecon     Checks node connectivity
        cfs         Checks CFS integrity
        ssa         Checks shared storage accessibility
        space       Checks space availability
        sys         Checks minimum system requirements
        clu         Checks cluster integrity
        clumgr      Checks cluster manager integrity
        ocr         Checks OCR integrity
        crs         Checks Oracle Clusterware (CRS) integrity
        nodeapp     Checks node applications exist
        admprv      Checks administrative privileges
        peer        Compares properties with peers
 
        **************************************************************************************
        检测脚本
        cluvfy comp peer -refnode 11grac1 -n 11grac3 -orainv oinstall -osdba oinstall -verbose 
        cluvfy stage -pre nodeadd -n bigweb3 -verbose
        cluvfy stage -post nodeadd -n 11grac2 -verbose
        cluvfy stage -pre  nodeadd -n rac11gr2  -fixup -fixupdir /tmp
 
    **************************************************************************************
 
 
=================================================================
9、添加GRID节点
=================================================================
 
        *****************************************************************
        清理审计文件
        sqlplus / as sysasm
        show parameter audit
 
        cd $ORACLE_HOME/rdbms/audit
 
        *****************************************************************
        export IGNORE_PREADDNODE_CHECKS=Y (host 解析scan 需要配置这个)
 
        ./addNode.sh  -silent  "cluster_new_nodes={11grac3}"  "cluster_new_virtual_hostnames={11grac3-vip}"
 
================================================================= 
10、添加db节点
=================================================================
 ./addNode.sh -silent "CLUSTER_NEW_NODES={11grac3}" 
 
=================================================================
11、添加实例
=================================================================
此处用dbca添加,报错在用手工添加
 
手工
在节点RAC01 以Oracle 用户执行:
SQL> alter database add logfile thread 3 group 5 ('+DATA01','+FB') size 50M; 
SQL> alter database add logfile thread 3 group 6 ('+DATA01','+FB') size 50M;
SQL> alter database add logfile thread 3 group 7 ('+DATA01','+FB') size 50M;
SQL> alter database enable public thread 3;
SQL> create undo tablespace undotbs3 datafile '+DATA01' size 200M;
SQL> alter system set undo_tablespace=UNDOTBS3 scope=spfile sid='rac3';
SQL> alter system set instance_number=3 scope=spfile sid='rac3';
SQL> alter system set cluster_database_instances=3 scope=spfile sid='*';
 
srvctl add instance -d rac -i rac3 -n 11grac3
srvctl status database -d rac -v
srvctl config database -d rac
srvctl start instance -d rac -i rac3
 
 
=================================================================
12、修改服务
=================================================================
 修改服务
 srvctl modify service -d rac -s rac_taf -n -i rac1,rac2,rac3
 srvctl modify service -d rac -s orcl_taf -n -i rac1,rac2,rac3
 srvctl start service -d rac -s rac_taf -n rac3 
 srvctl start service -d rac -s orcl_taf -n rac3
 
 
 
=================================================================
13、 修改0gg
=================================================================
 
 ALTER EXTRACT xxx, THREADS 4


http://www.traveldba.com/archives/773

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/25462274/viewspace-1584995/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2014-09-24

  • 博文量
    576
  • 访问量
    1111350