加入收藏 | 设为首页 | 会员中心 | 我要投稿 衢州站长网 (https://www.0570zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长百科 > 正文

bay——安装_RAC11g_LC_测试环境-rehat6+udev.txt

发布时间:2021-01-18 13:09:28 所属栏目:站长百科 来源:网络整理
导读:副标题#e# ★★★____★☆★〓〓〓〓→ VMware vSphere Client6.0 https://10.20.4.200/ 下载Vwmare IP:10.20.4.200 -------账号:root -------密码:password --------------------------------------------- 机器1: root/bayaim oracle/oracle grid/grid

node2:
[[email?protected] ~]# fdisk -l
root用户在node1上格式化/dev/sdb、/dev/sdc、/dev/sdd、/dev/sde这4块盘
[[email?protected] ~]# fdisk /dev/sdb
n 表示新建1个分区;
p 表示分区类型选择为primary partition 主分区;
1 表示分区编号从1开始;
500 起始、终止柱面选择默认值,即1和500;
w 表示将新建的分区信息写入硬盘分区表。

[[email?protected] ~]#
重复上述步骤②,以root用户在node1上分别格式化其余3块磁盘:
格式化完毕之后,在node1,node2节点上分别看到下述信息:


#仅节点1执行
[[email?protected]:~]$ export LANG=en_US

规划需要的共享磁盘个数及大小
[[email?protected] home]# fdisk -l | grep /dev/sd
[[email?protected] etc]# lsblk

安装完毕后,执行 rpm -qa|grep asm确认是否安装成功。

?

[[email?protected] trace]# ls *.log
alert_+ASM1.log
[[email?protected] trace]# pwd
/u01/app/grid/diag/asm/+asm/+ASM1/trace

查看CRS日志

[[email?protected] ~]# find / -name crsd.log
/u01/app/11.2.0/grid/log/rac1/crsd/crsd.log
-------------------------------------------------------


2.5 解压安装介质======================================
node1:

Oracle Database(includes Oracle Database和Oracle RAC)安装数据库至少需要这两个安装包:

p13390677_112040_Linux-x86-64_1of7.zip
p13390677_112040_Linux-x86-64_2of7.zip

Oracle Grid Infrastructure(包括Oracle ASM、Oracle Clusterware和Oracle Restart):
p13390677_112040_Linux-x86-64_3of7.zip

注意:这里的3个软件包均是来源于MetaLink网站,其版本均是目前Oracle 11g的最新版本,11.2.0.3.0。
如果没有MetaLink账号的话,也可以从oracle官方网站免费获取11.2.0.1.0的版本软件来进行安装和配置。

我们通过下述命令来解压上述3个压缩软件包:

[[email?protected] bai]# unzip p13390677_112040_Linux-x86-64_1of7.zip
[[email?protected] bai]# unzip p13390677_112040_Linux-x86-64_2of7.zip
[[email?protected] bai]# unzip p13390677_112040_Linux-x86-64_3of7.zip
[[email?protected] bai]# du -sh database/
2.5G database/
[[email?protected] bai]# du -sh grid/
1.3G grid/

为便于将来安装软件,分别将其move到oracle用户和grid用户的家目录:
[[email?protected] u01]# chown -R grid:oinstall /bai/grid/
[[email?protected] u01]# chown -R oracle:oinstall /bai/database/
[[email?protected] ~]# mv database/ /home/oracle/
[[email?protected] ~]# mv grid/ /home/grid/
[[email?protected] ~]#

2.6 安装前预检查配置信息=====================
yum -y install unixODBC*
yum -y install xorg-x11-apps
yum -y install libXp*
yum -y install pdksh
rpm -ivh compat-lib* --nodeps --force >>>>>强制安装的方法

安装依赖包,配好yum装吧

yum install -y binutils compat-libstdc++-33 glibc ksh libaio libgcc libstdc++ make compat-libcap1 gcc gcc-c++ glibc-devel libaio-devel libstdc++-devel sysstat elfutils-libelf-devel


yum install binutils compat-db compat-libstdc++-33 compat-libstdc++-296 compat-gcc-34-c++ compat-gcc-34 control-center elfutils-libelf elfutils-libelf-devel elfutils-libelf-devel-static gcc gcc-c++ glibc glibc-common glibc-devel glibc-headers gnome-screensaver kernel-headers ksh libaio libaio-devel libgcc libgomp libstdc++ libstdc++-devel libXp make numactl-devel openmotif openmotif22 pdksh rsh setarch sysstat unixODBC unixODBC-devel xorg-x11 xorg-x11-apps libcap

图形界面grid用户运行
#su - grid
node1-> ./runInstaller


在安装 GRID之前,建议先利用CVU(Cluster Verification Utility)检查 CRS的安装前环境。

使用 CVU 检查CRS的安装前环境:
# su – grid
node1-> cd grid/
node1-> ./runcluvfy.sh stage -pre crsinst -n baydb1,baydb2 -fixup -verbose

Please run the following script on each node as "root" user to execute the fixups:
‘/tmp/CVU_11.2.0.3.0_grid/runfixup.sh‘
Pre-check for cluster services setup was unsuccessful on all the nodes.
node1->
从上面的预检查结果中,可以看到不成功,其实错误的原因是grid用户不属于dba组!不过,Oracle自动给我们提供的修复的脚本,根据上述提示,分别以root用户在两个节点上执行/tmp/CVU_11.2.0.3.0_grid/runfixup.sh脚本来修复。


直到此步骤,我们的安装环境已经完全准备OK!!!

大家在使用客户端连接linux的时候,secureCRT是个非常棒的工具,但是由于不支持图形模式,在一些需要图形界面
的时候就很麻烦,其实有个比较简单的解决办法,就是使用xmanager的passive.
如果提示“Warning: Missing charsets in String to FontSet conversion”不需理会,只是字符转换问题。在执行netca的时候,提前设置

export LANG=en_US 设置为英文环境即可。

bayaim: 打开:Xmanager - Passive 后台运行着


查看本地"CMD"——IPconfig: IPv4 地址 . . . . . . . . . . . . : 10.20.100.128

rac1-> source .bash_profile
rac1-> export DISPLAY=10.20.100.128:0.0
rac1-> export LANG=en_US
rac1-> xhost +
rac1-> xclock
rac1-> ./runInstalle

注意:
在 11gr2 中
external >= 1
normal >=3
high >=5


ASM的SYS、ASMSNMP用户配置为相同的口令,并输入口令 : bayaim


-----------------------------------------------------------------------------------
问题1:
This task verifies cluster time synchronization on clusters that use Network Time Protocol (NTP).?(more details)

解决办法:
# service ntpd stop
Shutting down ntpd: [ OK ]
# chkconfig --level 2345 ntpd off
# rm -rf /etc/ntp.conf

节点二和节点三上执行相同的命令,卸载NTP

在集群安装完后,要确认ctssd是否处于活动状态
#crsctl check ctss


问题1:
Device Checks for ASM
This is a pre-check to verify if the specified devices meet the requirements for configuration through the Oracle Universal Storage Manage
解决办法: 因未配置DNS,此错误可以忽略。忽略报错会弹窗,问是否忽略错误,确认就好

问题2:
This is a prerequisite condition to test whether sufficient total swap space is available on system

解决办法:
4) 修改swap 分区:------------

以下操作需要root权限。

#cd /usr/
#mkdir swap
#dd if=/dev/zero of=swapfile bs=2G count=8
dd if=/dev/zero of=swapfile bs=2M count=1024

这条命令从硬盘里分出一个 2×8G 大小的空间,挂在swapfile上。

#mkswap swapfile

构建swap格式于/usr/swap/swapfile 上

#swapon swapfile

激活swapfile ,加入到swap分区中。

# vi /etc/fstab
在/etc/fstab文件中加入下面这样一行:

/usr/swap/swapfile swap swap defaults 0 0

bs=bytes:同时设置读入/输出的块大小为bytes个字节。
count=blocks:仅拷贝blocks个块,块大小等于ibs指定的字节数。


在所有节点上安装完cvuqdisk-1.0.9-1软件后,重新执行预检查,不再有警告信息

问题3:
准备作为CRS磁盘组的3个磁盘都是200M,选择CRS对应的磁盘组报如下错误
INS-30515: Insufficient space available in the selected disks.
原因:Insufficient space available in the selected Disks. At least,string MB of free space is required.
所选的磁盘空间不足。

解决办法:改成3个1G的磁盘解决问题。

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

注意顺序: 先在第一个节点上执行,然后其他节点顺序执行,不能同时执行
根据提示以root用户分别在两个节点上执行脚本:

node1:

[[email?protected] ~]#sh /u01/app/oraInventory/orainstRoot.sh
node2:

[[email?protected] ~]#sh /u01/app/oraInventory/orainstRoot.sh

node1:
[[email?protected] ~]#sh /u01/app/11.2.0/grid/root.sh
中间按一次回车

node2:

[[email?protected] ~]#sh /u01/app/11.2.0/grid/root.sh


再重新执行这个root.sh脚本
[[email?protected] lib64]# /u01/app/11.2.0/grid/root.sh
Performing root user operation for Oracle 11g

The following environment variables are set as:
ORACLE_OWNER= grid
ORACLE_HOME= /u01/app/11.2.0/grid

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.

(编辑:衢州站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

推荐文章
    热点阅读