返回顶部
首页 > 资讯 > 数据库 >RHEL7.3怎么安装11G grid和Rdbms
  • 913
分享到

RHEL7.3怎么安装11G grid和Rdbms

2024-04-02 19:04:59 913人浏览 八月长安
摘要

这篇文章主要讲解了“RHEL7.3怎么安装11G grid和Rdbms”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“RHEL7.3怎么安装11G grid和

这篇文章主要讲解了“RHEL7.3怎么安装11G grid和Rdbms”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“RHEL7.3怎么安装11G grid和Rdbms”吧!

##安装桌面

yum -y groupinstall "Server with GUI"

#启动桌面

startx

#设置启动模式

[root@localhost ~]# systemctl get-default

multi-user.target

[root@localhost ~]# cat /etc/inittab

# inittab is no longer used when using systemd.

#

# ADDING CONFIGURATioN HERE WILL HAVE NO EFFECT ON YOUR SYSTEM.

#

# Ctrl-Alt-Delete is handled by /usr/lib/systemd/system/ctrl-alt-del.target

#

# systemd uses 'targets' instead of runlevels. By default, there are two main targets:

#

# multi-user.target: analoGous to runlevel 3    #多用户模式

# graphical.target: analogous to runlevel 5     #图形化模式

#

# To view current default target, run:

# systemctl get-default

#

# To set a default target, run:

# systemctl set-default TARGET.target

#

[root@localhost ~]# systemctl set-default graphical.target   

Removed symlink /etc/systemd/system/default.target.

Created symlink from /etc/systemd/system/default.target to /usr/lib/systemd/system/graphical.target.

[root@localhost ~]# systemctl get-default

graphical.target

##创建用户和组

groupadd -g 500 oinstall

groupadd -g 501 dba

groupadd -g 502 oper

groupadd -g 600 asmadmin

groupadd -g 601 asmdba

groupadd -g 602 asmoper

useradd -u 1000 -g oinstall -G dba,oper,asmdba oracle

useradd -u 1001 -g oinstall -G dba,asmdba,asmadmin,asmoper grid

##安装包

yum -y install binutils compat-libstdc++ compat-libcap1 GCc gcc-c++ glibc glibc*.i686 glibc-devel glibc-devel*.i686 ksh libaio*.i686 libaio libaio-devel*.i686 libaio-devel libgcc*.i686 libgcc libstdc++*.i686 libstdc++ libstdc++-devel*.i686 libstdc++-devel libXi*.i686 libXi libXtst*.i686 libXtst make sysstat unixODBC*.i686 unixODBC unixODBC-devel

yum -y localinstall compat-libstdc++-33-3.2.3-72.el7.x86_64.rpm

yum -y localinstall elfutils-libelf-devel-0.166-2.el7.x86_64.rpm

rpm -qa | grep binutils-2.23.52.0.1-12.el7.x86_64

rpm -qa | grep compat-libcap1-1.10-3.el7.x86_64

rpm -qa | grep gcc-4.8.2-3.el7.x86_64

rpm -qa | grep gcc-c++-4.8.2-3.el7.x86_64

rpm -qa | grep glibc-2.17-36.el7.i686

rpm -qa | grep glibc-2.17-36.el7.x86_64

rpm -qa | grep glibc-devel-2.17-36.el7.i686

rpm -qa | grep glibc-devel-2.17-36.el7.x86_64

rpm -qa | grep ksh

rpm -qa | grep libaio-0.3.109-9.el7.i686

rpm -qa | grep libaio-0.3.109-9.el7.x86_64

rpm -qa | grep libaio-devel-0.3.109-9.el7.i686

rpm -qa | grep libaio-devel-0.3.109-9.el7.x86_64

rpm -qa | grep libgcc-4.8.2-3.el7.i686

rpm -qa | grep libgcc-4.8.2-3.el7.x86_64

rpm -qa | grep libstdc++-4.8.2-3.el7.i686

rpm -qa | grep libstdc++-4.8.2-3.el7.x86_64

rpm -qa | grep libstdc++-devel-4.8.2-3.el7.i686

rpm -qa | grep libstdc++-devel-4.8.2-3.el7.x86_64

rpm -qa | grep libXi-1.7.2-1.el7.i686

rpm -qa | grep libXi-1.7.2-1.el7.x86_64

rpm -qa | grep libXtst-1.2.2-1.el7.i686

rpm -qa | grep libXtst-1.2.2-1.el7.x86_64

rpm -qa | grep make-3.82-19.el7.x86_64

rpm -qa | grep sysstat-10.1.5-1.el7.x86_64

binutils-2.23.52.0.1-12.el7.x86_64

compat-libcap1-1.10-3.el7.x86_64

compat-libstdc++-33-3.2.3-71.el7.i686

compat-libstdc++-33-3.2.3-71.el7.x86_64

gcc-4.8.2-3.el7.x86_64

gcc-c++-4.8.2-3.el7.x86_64

glibc-2.17-36.el7.i686

glibc-2.17-36.el7.x86_64

glibc-devel-2.17-36.el7.i686

glibc-devel-2.17-36.el7.x86_64

ksh

libaio-0.3.109-9.el7.i686

libaio-0.3.109-9.el7.x86_64

libaio-devel-0.3.109-9.el7.i686

libaio-devel-0.3.109-9.el7.x86_64

libgcc-4.8.2-3.el7.i686

libgcc-4.8.2-3.el7.x86_64

libstdc++-4.8.2-3.el7.i686

libstdc++-4.8.2-3.el7.x86_64

libstdc++-devel-4.8.2-3.el7.i686

libstdc++-devel-4.8.2-3.el7.x86_64

libXi-1.7.2-1.el7.i686

libXi-1.7.2-1.el7.x86_64

libXtst-1.2.2-1.el7.i686

libXtst-1.2.2-1.el7.x86_64

make-3.82-19.el7.x86_64

sysstat-10.1.5-1.el7.x86_64

##关闭防火墙和selinux

[root@localhost ~]# systemctl stop firewalld

[root@localhost ~]# systemctl disable firewalld  

Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.

[root@rhel7ora11 ~]# getenforce

Enforcing

[root@rhel7ora11 ~]# setenforce 0

[root@rhel7ora11 ~]# getenforce

Permissive

[root@rhel7ora11 ~]# vi /etc/selinux/config

SELINUX=disabled

sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config

##内存参数配置

vi /etc/sysctl.conf

fs.aio-max-nr = 1048576

fs.file-max = 6815744

kernel.shmmni = 4096

kernel.shmall = 2097152

kernel.shmmax = 964507648

kernel.sem = 250 32000 100 128

net.ipv4.ip_local_port_range = 9000 65500

net.core.rmem_default = 262144

net.core.rmem_max = 4194304

net.core.wmem_default = 262144

net.core.wmem_max = 1048576

##(英文为官档建议),/sbin/sysctl -a | grep shm

kernel.shmall = 2097152 #共享内存的总量,8G内存设置:2097152*4k/1024/1024

40 percent of the size of physical memory in pages

Note: If the server supports multiple databases, or uses a large SGA, then set this parameter to a value that is equal to the total amount of shared memory, in 4K pages, that the system can use at one time.

kernel.shmmax = 4294967295 #最大共享内存的段大小

Half the size of physical memory in bytes

See My Oracle Support Note 567506.1 for additional infORMation about configuring shmmax.

##查询配置

/sbin/sysctl -a | grep ""

#vi /etc/security/limits.conf

grid soft nproc 2047

grid hard nproc 16384

grid soft nofile 1024

grid hard nofile 65536

oracle soft nproc 2047

oracle hard nproc 16384

oracle soft nofile 1024

oracle hard nofile 65536

##创建安装目录和赋权

mkdir -p /u01/grid

mkdir -p /u01/gridhome

mkdir -p /u01/oracle

chown -R grid:oinstall /u01/grid

chmod -R 755 /u01/grid

chown -R grid:oinstall /u01/gridhome

chmod -R 755 /u01/gridhome

chown -R oracle:oinstall /u01/oracle

chmod -R 755 /u01/oracle

#udev绑定裸设备,这里只绑定权限

[root@rhel7ora11 ~]# /usr/lib/udev/scsi_id -g -u /dev/sdb1

1ATA_VBOX_HARDDISK_VBfa21baba-d14e1c11

[root@rhel7ora11 ~]# /usr/lib/udev/scsi_id -g -u /dev/sdb2

1ATA_VBOX_HARDDISK_VBfa21baba-d14e1c11

[root@rhel7ora11 ~]# vi /etc/udev/rules.d/99-oracle-asmdevices.rules

KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/lib/udev/scsi_id -g -u -d /dev/$parent",

RESULT=="1ATA_VBOX_HARDDISK_VBfa21baba-d14e1c11",  OWNER="grid", GROUP="asmadmin", MODE="0660"

KERNEL=="sd?2", SUBSYSTEM=="block", PROGRAM=="/lib/udev/scsi_id -g -u -d /dev/$parent",

RESULT=="1ATA_VBOX_HARDDISK_VBfa21baba-d14e1c11",  OWNER="grid", GROUP="asmadmin", MODE="0660"

[root@rhel7ora11 ~]# systemctl restart systemd-udev-trigger.service

[root@rhel7ora11 ~]# ls -l /dev/sdb*

brw-rw---- 1 root disk     8, 16 Aug  7 14:02 /dev/sdb

brw-rw---- 1 grid asmadmin 8, 17 Aug  7 14:02 /dev/sdb1

brw-rw---- 1 grid asmadmin 8, 18 Aug  7 14:02 /dev/sdb2

#设置用户参数文件

su - grid

export ORACLE_BASE=/u01/grid

export ORACLE_HOME=/u01/gridhome/11g

export ORACLE_SID=+ASM1

PATH=$ORACLE_HOME/bin:$PATH

export LD_LIBRARY_PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/local/bin

export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

su - oracle

export ORACLE_BASE=/u01/oracle

export ORACLE_HOME=$ORACLE_BASE/11g

export ORACLE_SID=orcl

PATH=$ORACLE_HOME/bin:$PATH

export LD_LIBRARY_PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/local/bin

export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib

##安装grid

./runInstaller

#注意,在执行root脚本前,要执行下面的步骤,否则会报错无法启动ohas服务

touch /usr/lib/systemd/system/ohas.service

chmod 777 /usr/lib/systemd/system/ohas.service

[Unit]

Description=Oracle High Availability Services

After=syslog.target


[Service]

ExecStart=/etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple

Restart=always


[Install]

WantedBy=multi-user.target

systemctl daemon-reload

systemctl enable ohas.service

systemctl start ohas.service

systemctl status ohas.service

[root@rhel7ora11 ~]# systemctl daemon-reload

[root@rhel7ora11 ~]# systemctl enable ohas.service

Created symlink from /etc/systemd/system/multi-user.target.wants/ohas.service to /usr/lib/systemd/system/ohas.service.

[root@rhel7ora11 ~]# systemctl start ohas.service

[root@rhel7ora11 ~]# systemctl status ohas.service

[0m ohas.service - Oracle High Availability Services

   Loaded: loaded (/usr/lib/systemd/system/ohas.service; enabled; vendor preset: disabled)

   Active: failed (Result: start-limit) since Sun 2017-08-06 00:10:44 CST; 3s ago

  Process: 20405 ExecStart=/etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple (code=exited, status=203/EXEC)

Main PID: 20405 (code=exited, status=203/EXEC)

Aug 06 00:10:44 rhel7ora11 systemd[1]: ohas.service: main process exited, code=exited, status=203/EXEC

Aug 06 00:10:44 rhel7ora11 systemd[1]: Unit ohas.service entered failed state.

Aug 06 00:10:44 rhel7ora11 systemd[1]: ohas.service failed.

Aug 06 00:10:44 rhel7ora11 systemd[1]: ohas.service holdoff time over, scheduling restart.

Aug 06 00:10:44 rhel7ora11 systemd[1]: start request repeated too quickly for ohas.service

Aug 06 00:10:44 rhel7ora11 systemd[1]: Failed to start Oracle High Availability Services.

Aug 06 00:10:44 rhel7ora11 systemd[1]: Unit ohas.service entered failed state.

Aug 06 00:10:44 rhel7ora11 systemd[1]: ohas.service failed.

##如果一直不能正常启动,一直检查下面的文件是否存在,当文件存在马上手动启动oha,推介

[root@rhel7ora11 ~]# ls /etc/init.d/init.ohasd

ls: cannot access /etc/init.d/init.ohasd: No such file or directory

[root@rhel7ora11 ~]# ls /etc/init.d/init.ohasd

/etc/init.d/init.ohasd

[root@rhel7ora11 ~]# systemctl start ohas.service

[root@rhel7ora11 ~]# systemctl status ohas.service

[0m ohas.service - Oracle High Availability Services

   Loaded: loaded (/usr/lib/systemd/system/ohas.service; enabled; vendor preset: disabled)

   Active: active (running) since Sun 2017-08-06 00:12:18 CST; 2s ago

Main PID: 23278 (init.ohasd)

   CGroup: /system.slice/ohas.service

           23278 /bin/sh /etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple

Aug 06 00:12:18 rhel7ora11 systemd[1]: Started Oracle High Availability Services.

Aug 06 00:12:18 rhel7ora11 systemd[1]: Starting Oracle High Availability Services...

Aug 06 00:12:18 rhel7ora11 su[23298]: (to grid) root on none

[root@rhel7ora11 ~]# systemctl status ohas.service

[0m ohas.service - Oracle High Availability Services

   Loaded: loaded (/usr/lib/systemd/system/ohas.service; enabled; vendor preset: disabled)

   Active: active (running) since Sun 2017-08-06 00:12:18 CST; 13s ago

Main PID: 23278 (init.ohasd)

   CGroup: /system.slice/ohas.service

           23278 /bin/sh /etc/init.d/init.ohasd run >/dev/null 2>&1 Type=simple

Aug 06 00:12:18 rhel7ora11 systemd[1]: Started Oracle High Availability Services.

Aug 06 00:12:18 rhel7ora11 systemd[1]: Starting Oracle High Availability Services...

Aug 06 00:12:18 rhel7ora11 su[23298]: (to grid) root on none

##安装rdbms

cd database/

./runInstaller

注意:如果报告错误Error in invoking target ‘agent nmhs‘ of makefile

解决方法:  

cd $ORACLE_HOME/sysman/lib

vi ins_emagent.mk   

修改此处如下:  

#===========================

#  emdctl

#===========================

$(SYSMANBIN)emdctl:

        $(MK_EMAGENT_NMECTL)

替换为:

$(SYSMANBIN)emdctl:

        $(MK_EMAGENT_NMECTL)-lnnz11

然后retry

感谢各位的阅读,以上就是“RHEL7.3怎么安装11G grid和Rdbms”的内容了,经过本文的学习后,相信大家对RHEL7.3怎么安装11G grid和Rdbms这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是编程网,小编将为大家推送更多相关知识点的文章,欢迎关注!

您可能感兴趣的文档:

--结束END--

本文标题: RHEL7.3怎么安装11G grid和Rdbms

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

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

猜你喜欢
  • RHEL7.3怎么安装11G grid和Rdbms
    这篇文章主要讲解了“RHEL7.3怎么安装11G grid和Rdbms”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“RHEL7.3怎么安装11G grid和...
    99+
    2024-04-02
  • RHEL7.3如何安装oracle12c 单点grid和rdbms
    小编给大家分享一下RHEL7.3如何安装oracle12c 单点grid和rdbms,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧...
    99+
    2024-04-02
  • Oracle 11G RAC集群安装(2)——安装grid
    Oracle的grid不多介绍,直接开始安装: 一、安装前的准备工作: 本次是以图形化安装grid,所以两种方式调用图形化安装界面: 1.系统自带图形桌面可以通过VNC方式访问。 这样的环境安装就简单了,只...
    99+
    2024-04-02
  • 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+
    2024-04-02
  • oracle 11g rac安装之grid报错解决
    1.在rac2节点使用oracleasm找不到共享磁盘[root@rac2 ~]# oracleasm scandisks       ...
    99+
    2024-04-02
  • Linux怎么安装Oracle 11g
    这篇文章主要讲解了“Linux怎么安装Oracle 11g”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Linux怎么安装Oracle 11g”吧!安装前环...
    99+
    2024-04-02
  • Linux下怎么安装Oracle 11g
    这篇文章主要介绍“Linux下怎么安装Oracle 11g”的相关知识,小编通过实际案例向大家展示操作过程,操作方法简单快捷,实用性强,希望这篇“Linux下怎么安装Oracle 11g”文章能帮助大家解决问题。oracle 11g客户端是...
    99+
    2023-06-28
  • Oracle 11g R2 安装和配置
    --=========== 0: XServer准备安装XServer,配置XShell--Xming,Xmanager,Vcxsrv--=========== 1: 磁盘分区和挂载cd /etc/yum....
    99+
    2024-04-02
  • RHEL6.5安装grid报错CRS-4124怎么办
    这篇文章主要介绍“RHEL6.5安装grid报错CRS-4124怎么办”,在日常操作中,相信很多人在RHEL6.5安装grid报错CRS-4124怎么办问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操...
    99+
    2024-04-02
  • centos7怎么安装grid并启用oracle restart
    本篇内容主要讲解“centos7怎么安装grid并启用oracle restart”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“centos7怎么安装grid并...
    99+
    2024-04-02
  • windows7怎么安装与卸载oracle 11G
    本篇内容主要讲解“windows7怎么安装与卸载oracle 11G”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“windows7怎么安装与卸载oracle 1...
    99+
    2024-04-02
  • 怎么安装单实例数据库Oracle 11G
    这篇文章主要介绍“怎么安装单实例数据库Oracle 11G”,在日常操作中,相信很多人在怎么安装单实例数据库Oracle 11G问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”...
    99+
    2024-04-02
  • Oracle 11g安装和配置教程(图解)-linux
    1、安装规划网络规划:IP: xxxx   --静态IP目录规划ORACLE_BASE:   /oracle/app          ...
    99+
    2024-04-02
  • 怎么在Centos7中安装Oracle 11G R2数据库
    这篇文章主要讲解了“怎么在Centos7中安装Oracle 11G R2数据库”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“怎么在Centos7中安装Ora...
    99+
    2024-04-02
  • 怎么解决CentOs 7.X安装Oracle 11g RAC的坑
    本篇内容主要讲解“怎么解决CentOs 7.X安装Oracle 11g RAC的坑”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“怎么解决CentOs 7.X安装...
    99+
    2024-04-02
  • Oracle 11g rac 安装中报PRCT-1011错误怎么办
    这篇文章给大家分享的是有关Oracle 11g rac 安装中报PRCT-1011错误怎么办的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。 在安装O...
    99+
    2024-04-02
  • Oracle 11g安装和配置教程(图解)-win7 64位
    1. 下载Oracle 11g R2 for Windows的版本,官方网站下载地址如下:http://download.oracle.com/otn/nt/oracle11g/112010/win32_1...
    99+
    2024-04-02
  • oracle 11G RAC客户端安装和PLSQL连接配置
      为方便项目组开发人员使用oracle11g RAC数据库,安装个客户端并配置PLSQL访问数据库服务器. 从oracle官方下载如下三个包: instantclient-b...
    99+
    2024-04-02
  • Oracle 11g安装错误提示未找到wfmlrsvcapp.ear怎么办
    这篇文章将为大家详细讲解有关Oracle 11g安装错误提示未找到wfmlrsvcapp.ear怎么办,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。如图:Oracle 1...
    99+
    2024-04-02
  • Oracle 11G RAC集群安装方法是什么
    本篇内容介绍了“Oracle 11G RAC集群安装方法是什么”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!本次Oracle 11G RAC...
    99+
    2023-05-31
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作