广告
返回顶部
首页 > 资讯 > 数据库 >Oracle 11g RAC + DG安装详解--02
  • 793
分享到

Oracle 11g RAC + DG安装详解--02

2024-04-02 19:04:59 793人浏览 安东尼
摘要

二、安装Grid Infrastructure 1. 上传Grid Infrastructure 和oracle11g 安装文件 2. 安装vncserver 节点1 [root@TRAC1 rpm

二、安装Grid Infrastructure

1. 上传Grid Infrastructure 和oracle11g 安装文件

2. 安装vncserver

节点1

[root@TRAC1 rpm]# rpm -ivh tigervnc-server1.1.0-24.el6.x86_64.rpm

warning: tigervnc-server-1.1.0-24.el6.x86_64.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY

Preparing...                ########################################### [100%]

   1:tigervnc-server        ########################################### [100%]

[root@TRAC1 rpm]#

3. 解压缩grid 软件

节点1

[root@TRAC1 software]# unzip p13390677_112040_linux-x86-64_3of7.zip

修改cvu_config

[root@TRAC1 grid]# sed -i 's/CV_ASSUME_DISTID=OEL4/CV_ASSUME_DISTID=OEL6/' /home/software/grid/stage/cvu/cv/admin/cvu_config

节点2

[root@TRAC2 software]# unzip p13390677_112040_Linux-x86-64_3of7.zip

修改cvu_config

[root@TRAC2 grid]# sed -i 's/CV_ASSUME_DISTID=OEL4/CV_ASSUME_DISTID=OEL6/' /home/software/grid/stage/cvu/cv/admin/cvu_config

4. 安装cvuqdisk-1.0.9-1.rpm

cd /home/software/grid/rpm/

rpm -ivh cvuqdisk-1.0.9-1.rpm

5. 准备安装Grid Infrastructure

节点1 启动vncserver

[root@TRAC1 grid]# su - grid

[grid@TRAC1 ~]$ vncserver

You will require a passWord to access your desktops.

Password:

Verify:

xauth:  file /home/grid/.Xauthority does not exist

New 'TRAC1:1 (grid)' desktop is TRAC1:1

Creating default startup script /home/grid/.vnc/xstartup

Starting applications specified in /home/grid/.vnc/xstartup

Log file is /home/grid/.vnc/TRAC1:1.log

[grid@TRAC1 ~]$

6. 安装Grid Infrastructure

[grid@TRAC1 grid]$ cd /home/software/grid/

[grid@TRAC1 grid]$ ls

install  readme.html  response  rpm  runcluvfy.sh  runInstaller  sshsetup  stage  welcome.html

[grid@TRAC1 grid]$ ./runInstaller

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

6.1 第一个脚本root 运行:

节点1

[root@TRAC1 /]# /home/app/grid/orainventory/orainstRoot.sh

Changing permissions of /home/app/grid/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of /home/app/grid/oraInventory to oinstall.

The execution of the script is complete.

节点2

[root@TRAC2 ~]# /home/app/grid/oraInventory/orainstRoot.sh

Changing permissions of /home/app/grid/oraInventory.

Adding read,write permissions for group.

Removing read,write,execute permissions for world.

Changing groupname of /home/app/grid/oraInventory to oinstall.

The execution of the script is complete.

6.2 第二个脚本root 运行:

节点1

[root@TRAC1 /]# /home/app/grid/crs/root.sh

PerfORMing root user operation for Oracle 11g

The following environment variables are set as:

    ORACLE_OWNER= grid

    ORACLE_HOME=  /home/app/grid/crs

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /home/app/grid/crs/crs/install/crsconfig_params

Creating trace directory

User ignored Prerequisites during installation

Installing Trace File Analyzer

OLR initialization - successful

  root wallet

  root wallet cert

  root cert export

  peer wallet

  profile reader wallet

  pa wallet

  peer wallet keys

  pa wallet keys

  peer cert request

  pa cert request

  peer cert

  pa cert

  peer root cert TP

  profile reader root cert TP

  pa root cert TP

  peer pa cert TP

  pa peer cert TP

  profile reader pa cert TP

  profile reader peer cert TP

  peer user cert

  pa user cert

Adding Clusterware entries to upstart

CRS-2672: Attempting to start 'ora.mdnsd' on 'TRAC1'

CRS-2676: Start of 'ora.mdnsd' on 'TRAC1' succeeded

CRS-2672: Attempting to start 'ora.gpnpd' on 'TRAC1'

CRS-2676: Start of 'ora.gpnpd' on 'TRAC1' succeeded

CRS-2672: Attempting to start 'ora.CSSdmonitor' on 'TRAC1'

CRS-2672: Attempting to start 'ora.gipcd' on 'TRAC1'

CRS-2676: Start of 'ora.cssdmonitor' on 'TRAC1' succeeded

CRS-2676: Start of 'ora.gipcd' on 'TRAC1' succeeded

CRS-2672: Attempting to start 'ora.cssd' on 'TRAC1'

CRS-2672: Attempting to start 'ora.diskmon' on 'TRAC1'

CRS-2676: Start of 'ora.diskmon' on 'TRAC1' succeeded

CRS-2676: Start of 'ora.cssd' on 'TRAC1' succeeded

ASM created and started successfully.

Disk Group VOT created successfully.

clscfg: -install mode specified

Successfully accumulated necessary OCR keys.

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

CRS-4256: Updating the profile

Successful addition of voting disk 2458bdc83f4e4f5cbfc3a4942a2096c3.

Successful addition of voting disk 72d50e2a50994f64bfbab3bfcfec8c08.

Successful addition of voting disk 04df90281c1f4f38bfd6a234f8d17244.

Successfully replaced voting disk group with +VOT.

CRS-4256: Updating the profile

CRS-4266: Voting file(s) successfully replaced

##  STATE    File Universal Id                File Name Disk group

--  -----    -----------------                --------- ---------

 1. ONLINE   2458bdc83f4e4f5cbfc3a4942a2096c3 (/data/oradata/votdisk6) [VOT]

 2. ONLINE   72d50e2a50994f64bfbab3bfcfec8c08 (/data/oradata/votdisk5) [VOT]

 3. ONLINE   04df90281c1f4f38bfd6a234f8d17244 (/data/oradata/votdisk4) [VOT]

Located 3 voting disk(s).

CRS-2672: Attempting to start 'ora.asm' on 'TRAC1'

CRS-2676: Start of 'ora.asm' on 'TRAC1' succeeded

CRS-2672: Attempting to start 'ora.VOT.dg' on 'TRAC1'

CRS-2676: Start of 'ora.VOT.dg' on 'TRAC1' succeeded

Configure Oracle Grid Infrastructure for a Cluster ... succeeded

节点2

[root@TRAC2 ~]# /home/app/grid/crs/root.sh

Performing root user operation for Oracle 11g

The following environment variables are set as:

    ORACLE_OWNER= grid

    ORACLE_HOME=  /home/app/grid/crs

Enter the full pathname of the local bin directory: [/usr/local/bin]:

The contents of "dbhome" have not changed. No need to overwrite.

The contents of "oraenv" have not changed. No need to overwrite.

The contents of "coraenv" have not changed. No need to overwrite.

Entries will be added to the /etc/oratab file as needed by

Database Configuration Assistant when a database is created

Finished running generic part of root script.

Now product-specific root actions will be performed.

Using configuration parameter file: /home/app/grid/crs/crs/install/crsconfig_params

Creating trace directory

User ignored Prerequisites during installation

Installing Trace File Analyzer

OLR initialization - successful

Adding Clusterware entries to upstart

CRS-4402: The CSS daemon was started in exclusive mode but found an active CSS daemon on node TRAC1, number 1, and is terminating

An active cluster was found during exclusive startup, restarting to join the cluster

Configure Oracle Grid Infrastructure for a Cluster ... succeeded

  Oracle 11g RAC + DG安装详解--02

Oracle 11g RAC + DG安装详解--02

7. 检查集群

节点1

[grid@TRAC1 ~]$ crs_stat -t

Name           Type           Target    State     Host       

------------------------------------------------------------

ora....ER.lsnr ora....er.type ONLINE    ONLINE    TRAC1   

ora....N1.lsnr ora....er.type ONLINE    ONLINE    TRAC1   

ora.VOT.dg     ora....up.type ONLINE    ONLINE    TRAC1   

ora.asm        ora.asm.type   ONLINE    ONLINE    TRAC1   

ora.cvu        ora.cvu.type   ONLINE    ONLINE    TRAC1   

ora.gsd        ora.gsd.type   OFFLINE   OFFLINE               

ora....network ora....rk.type ONLINE    ONLINE    TRAC1   

ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    TRAC1   

ora.ons        ora.ons.type   ONLINE    ONLINE    TRAC1   

ora.scan1.vip  ora....ip.type ONLINE    ONLINE    TRAC1   

ora....SM1.asm application    ONLINE    ONLINE    TRAC1   

ora....C1.lsnr application    ONLINE    ONLINE    TRAC1   

ora....ac1.gsd application    OFFLINE   OFFLINE              

ora....ac1.ons application    ONLINE    ONLINE    TRAC1   

ora....ac1.vip ora....t1.type ONLINE    ONLINE    TRAC1   

ora....SM2.asm application    ONLINE    ONLINE    TRAC2   

ora....C2.lsnr application    ONLINE    ONLINE    TRAC2   

ora....ac2.gsd application    OFFLINE   OFFLINE              

ora....ac2.ons application    ONLINE    ONLINE    TRAC2   

ora....ac2.vip ora....t1.type ONLINE    ONLINE    TRAC2 

节点2

[grid@TRAC2 ~]$ crs_stat -t

Name           Type           Target    State     Host       

------------------------------------------------------------

ora....ER.lsnr ora....er.type ONLINE    ONLINE    TRAC1   

ora....N1.lsnr ora....er.type ONLINE    ONLINE    TRAC1   

ora.VOT.dg     ora....up.type ONLINE    ONLINE    TRAC1   

ora.asm        ora.asm.type   ONLINE    ONLINE    TRAC1   

ora.cvu        ora.cvu.type   ONLINE    ONLINE    TRAC1   

ora.gsd        ora.gsd.type   OFFLINE   OFFLINE              

ora....network ora....rk.type ONLINE    ONLINE    TRAC1   

ora.oc4j       ora.oc4j.type  ONLINE    ONLINE    TRAC1   

ora.ons        ora.ons.type   ONLINE    ONLINE    TRAC1   

ora.scan1.vip  ora....ip.type ONLINE    ONLINE    TRAC1   

ora....SM1.asm application    ONLINE    ONLINE    TRAC1   

ora....C1.lsnr application    ONLINE    ONLINE    TRAC1   

ora....ac1.gsd application    OFFLINE   OFFLINE               

ora....ac1.ons application    ONLINE    ONLINE    TRAC1   

ora....ac1.vip ora....t1.type ONLINE    ONLINE    TRAC1   

ora....SM2.asm application    ONLINE    ONLINE    TRAC2   

ora....C2.lsnr application    ONLINE    ONLINE    TRAC2   

ora....ac2.gsd application    OFFLINE   OFFLINE              

ora....ac2.ons application    ONLINE    ONLINE    TRAC2   

ora....ac2.vip ora....t1.type ONLINE    ONLINE    TRAC2  

8. 修改asm_hbeat 参数

[grid@TRAC1 ~]$ sqlplus / as sysdba

SQL*Plus: Release 11.2.0.4.0 Production on Mon Jun 19 12:09:47 2017

Copyright (c) 1982, 2013, Oracle.  All rights reserved.

Connected to:

Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production

With the Real Application Clusters and Automatic Storage Management options

SQL> select ksppinm as "hidden parameter", ksppstvl as "value" from x$ksppi join x$ksppcv using (indx) where ksppinm like '\_%' escape '\' and ksppinm like '%asm_hb%' order by ksppinm;

hidden parameter

--------------------------------------------------------------------------------

value

--------------------------------------------------------------------------------

_asm_hbeatiowait

15

_asm_hbeatwaitquantum

2

SQL> alter system set "_asm_hbeatiowait"=120 sid='*' scope=spfile;

重启asm 和数据库

您可能感兴趣的文档:

--结束END--

本文标题: Oracle 11g RAC + DG安装详解--02

本文链接: https://www.lsjlt.com/news/49834.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • Oracle 11g RAC + DG安装详解--02
    二、安装Grid Infrastructure 1. 上传Grid Infrastructure 和oracle11g 安装文件 2. 安装vncserver 节点1 [root@TRAC1 rpm...
    99+
    2022-10-18
  • Oracle 11g RAC + DG安装详解--04
    六 、验证 1. 启动em 验证 2. 登录sqlplus 检查 [oracle@TRAC1 ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4...
    99+
    2022-10-18
  • Oracle linux7.2安装11g RAC
    注意:所有需要在两台主机上都设置的操作都有注明,贴出过程仅以rac1为模版 IP规划:#Public IP192.168.1.22  rac1192.168.1.33  rac...
    99+
    2022-10-18
  • rhel7.4安装oracle 11G 11.2.0.4.0 RAC
    一、操作系统 red hat 7.4oracle数据库版本11.2.0.4oracle grid版本11.2.0.4对应的文件p13390677_112040_Linux-x86-64_1of7.zip ...
    99+
    2022-10-18
  • solaris 11 下安装oracle 11g 与 11g RAC
    1、To Find Swap, RAM, and OS Version 对于 Solaris 操作系统,查看 Swap, RAM, and OS Version 的方法: ...
    99+
    2022-10-18
  • oracle 11g rac安装之grid报错解决
    1.在rac2节点使用oracleasm找不到共享磁盘[root@rac2 ~]# oracleasm scandisks       ...
    99+
    2022-10-18
  • Oracle 11g R2+ RAC+ ASM+ OracleLinux6.4安装详解(1)前期准备
    1. 版本说明: 软件版本:oracle 11.2.0.4 RAC 系统版本:Redhat 6.4 这次搭建的是Oracle 11g R2 11.2.0.4的RAC环境,使用的操作系统版本为Oracle...
    99+
    2022-10-18
  • Oracle 11G RAC集群安装(2)——安装grid
    Oracle的grid不多介绍,直接开始安装: 一、安装前的准备工作: 本次是以图形化安装grid,所以两种方式调用图形化安装界面: 1.系统自带图形桌面可以通过VNC方式访问。 这样的环境安装就简单了,只...
    99+
    2022-10-18
  • Oracle 11gR2 RAC DG 安装前初始化
    1、preusers.sh脚本#!/bin/bash #Purpose:Create 6 groups named 'oinstall','dba','asmadmi...
    99+
    2022-10-18
  • oracle linux 5.8安装oracle 11g rac环境之oracle安装
     上续的系统配置,环境变量添加和grid安装在上一篇博客中,这篇主要是继上篇剩余的安装,上篇博客地址:http://tongcheng.blog.51cto.com/6214144/1852074...
    99+
    2022-10-18
  • OEL5.5如何安装Oracle 11g R2 RAC
    小编给大家分享一下OEL5.5如何安装Oracle 11g R2 RAC,希望大家阅读完这篇文章之后都有所收获,下面让我们一起去探讨吧! 1.安装前的准备: 操作系统:oracl...
    99+
    2022-10-19
  • oracle linux 5.8安装oracle 11g rac环境之grid安装
    安装环境:操作系统:oracle linux 5.8 64位集群软件:linux.x64_11gR2_grid.zip数据库:linux.x64_11gR2_database_1of1.zip,linux....
    99+
    2022-10-18
  • Oracle 11g RAC One node 安装与配置
    一、RAC One Node介绍 1、rac one node数据库可以转换成RAC数据库,转换过程可以在线,无需停止RAC one node数据库;  2、rac one node可以创建多...
    99+
    2022-10-18
  • 怎么解决CentOs 7.X安装Oracle 11g RAC的坑
    本篇内容主要讲解“怎么解决CentOs 7.X安装Oracle 11g RAC的坑”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“怎么解决CentOs 7.X安装...
    99+
    2022-10-18
  • Oracle 11g RAC with ASM 安装在 RHEL5上(简版)
    1、明确任务准备一台RHEL5的PC机充当SAN设备,san(同时充当DNS和授时系统)准备两台RHEL5的PC机充当RAC节点,r1和r2将RAC安装在ASM磁盘上,包括OCR、VOTING、库2、修改r...
    99+
    2022-10-18
  • Oracle 11G RAC集群安装方法是什么
    本篇内容介绍了“Oracle 11G RAC集群安装方法是什么”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!本次Oracle 11G RAC...
    99+
    2023-05-31
  • oracle 11G RAC客户端安装和PLSQL连接配置
      为方便项目组开发人员使用oracle11g RAC数据库,安装个客户端并配置PLSQL访问数据库服务器. 从oracle官方下载如下三个包: instantclient-b...
    99+
    2022-10-18
  • Oracle 11g rac 安装中报PRCT-1011错误怎么办
    这篇文章给大家分享的是有关Oracle 11g rac 安装中报PRCT-1011错误怎么办的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。 在安装O...
    99+
    2022-10-18
  • Redhat 6中Oracle 11g RAC安装注意事项有哪些
    小编给大家分享一下Redhat 6中Oracle 11g RAC安装注意事项有哪些,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!...
    99+
    2022-10-18
  • Oracle 11g服务器安装详细步骤图文详解
    Oracle 11g是在推出的最新数据库软件,Oracle 11g有400多项功能,经过了1500多个小时的测试,开发工作量达到了3.6万人/月,相当于1000名员工连续研发3年。Oracle 11g提供了...
    99+
    2022-10-18
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作