广告
返回顶部
首页 > 资讯 > 数据库 >怎么在Centos7中安装Oracle 11G R2数据库
  • 421
分享到

怎么在Centos7中安装Oracle 11G R2数据库

2024-04-02 19:04:59 421人浏览 独家记忆
摘要

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

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

1.软件下载

登录Oracle技术网站下载Oracle Database 11g 第2 版,下载的时候选择现在系统版本为linux x86-64的版本。

下载路径:

https://www.oracle.com/technetwork/cn/database/enterprise-edition/downloads/index.html

2. 系统环境准备

参考文档:Https://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm

  • 硬件环境需求:

内存要求:

 怎么在Centos7中安装Oracle 11G R2数据库

Swap空间要求:

 怎么在Centos7中安装Oracle 11G R2数据库

磁盘空间要求:

 怎么在Centos7中安装Oracle 11G R2数据库

 怎么在Centos7中安装Oracle 11G R2数据库

  • 软件环境需求:

Oracle 11G R2系统版本要求:

 怎么在Centos7中安装Oracle 11G R2数据库

Package版本需求:

 怎么在Centos7中安装Oracle 11G R2数据库

此次使用的硬件及系统版本为:

内存:2GB

CPU:1核

系统版本:CentOS Linux release 7.6.1810 (Core)

Linux内核版本:3.10.0-957.21.3.el7.x86_64

  • 安装依赖包之前,先配置yum源:

       查看并备份当前yum

        [root@localhost oracle_install]# cd /etc/yum.repos.d/

     

        [root@localhost yum.repos.d]# mkdir repo_bak

        [root@localhost yum.repos.d]# mv *.repo repo_bak/

        下载网易和阿里云repo文件

        [root@localhost yum.repos.d]# wget http://mirrors.aliyun.com/repo/Centos-7.repo

        [root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo     

        [root@localhost yum.repos.d]# ls

        CentOS7-Base-163.repo  Centos-7.repo  repo_bak

        

        清除yum缓存

        [root@localhost yum.repos.d]# yum clean all

        重新生成yum缓存

        [root@localhost yum.repos.d]# yum makecache

  • 安装依赖包

        当前使用操作系统为64位,所以选择相应64位依赖包进行安装,另外如提示没有相应依赖包,可选择安装新版本的

        yum install -y binutils-2.23.52.0.1-12.el7.x86_64 

        yum install -y compat-libcap1-1.10-3.el7.x86_64 

        yum install -y compat-libstdc++-33-3.2.3-71.el7.x86_64

        yum install -y GCc-4.8.2-3.el7.x86_64 

        yum install -y gcc-c++-4.8.2-3.el7.x86_64 

        yum install -y glibc-2.17-36.el7.x86_64 

        yum install -y glibc-devel-2.17-36.el7.x86_64 

        yum install -y ksh

        yum install -y libaio-0.3.109-9.el7.x86_64 

        yum install -y libaio-devel-0.3.109-9.el7.x86_64 

        yum install -y libgcc-4.8.2-3.el7.x86_64 

        yum install -y libstdc++-4.8.2-3.el7.x86_64 

        yum install -y libstdc++-devel-4.8.2-3.el7.x86_64 

        yum install -y libXi-1.7.2-1.el7.x86_64 

        yum install -y libXtst-1.2.2-1.el7.x86_64 

        yum install -y make-3.82-19.el7.x86_64 

        yum install -y sysstat-10.1.5-1.el7.x86_64

         yum install -y elfutils-libelf-devel.x86_64 0:0.176-2.el7

         yum install -y unixODBC-2.3.1-14.el7.x86_64 

         yum install -y unixODBC-devel-2.3.1-14.el7.x86_64  

        

  •  创建用户组和用户

        [root@localhost ~]# groupadd oinstall

        [root@localhost ~]# groupadd dba

        [root@localhost ~]# useradd -g oinstall -G dba oracle

        [root@localhost ~]#  id oracle

        uid=1001(oracle) gid=1001(oinstall) groups=1001(oinstall),1002(dba)

        [root@localhost ~]# passwd oracle

  • 创建目录

    [root@localhost /]# mkdir -p /db/oracle

        [root@localhost /]# mkdir -p /db/oraInventory

        [root@localhost /]# mkdir -p /db/database

        [root@localhost /]# cd /db

        [root@localhost db]# chown -R oracle:oinstall /db/oracle

        [root@localhost db]# chown -R oracle:oinstall /db/oraInventory/

        [root@localhost db]# chown -R oracle:oinstall /db/database/

  • 修改系统标识(oracle不识别centos系统)

        [root@localhost db]# cat /etc/redhat-release 

        CentOS Linux release 7.6.1810 (Core) 

        [root@localhost db]# vi /etc/redhat-release 

        [root@localhost db]# cat /etc/redhat-release 

        redhat-7

  • 修改内核参数

        [root@localhost db]# vi /etc/sysctl.conf

        内容如下:

        net.ipv4.icmp_echo_ignore_broadcasts = 1

        net,ipv4.conf.all.rp_filter = 1

        fs.aio-max-nr = 1048576

        fs.file-max = 6815744

        kernel.shmall = 2097152

        kernel.shmmax = 536870912

        kernel.shmmni = 4096

        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

  • 配置oracle用户参数

    [root@localhost db]# vi /etc/security/limits.conf

        添加:

        oracle soft nproc 2047

        oracle hard nproc 16384

        oracle soft nofile 1024

        oracle hard nofile 65536

  • 关闭selinux

        [root@localhost yum.repos.d]# vi /etc/selinux/config

        将SELINUX=enforcing改为SELINUX=disabled

        设置后需要重启才能生效

  • 配置用户环境变量

        [root@localhost db]# vi /home/oracle/.bash_profile 

        追加内容:

        export ORACLE_BASE=/db/oracle

        export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1 

        export ORACLE_SID=orcl 

        export ORACLE_TERM=xterm 

        export PATH=$ORACLE_HOME/bin:$PATH 

        export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib 

        export LANG=C

        export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK

        [root@localhost db]# source /home/oracle/.bash_profile 

  • 上传oracle安装包,并解压

        [root@localhost oracle_install]# unzip "*.zip"

        [root@localhost oracle_install]# ls

        database  linux.x64_11gR2_database_1of2.zip  linux.x64_11gR2_database_2of2.zip

        [root@localhost oracle_install]# mv database/ /db/database/

        [root@localhost db]# chown -R oracle:oinstall /db/database/database/ 

      3. 数据库安装

  • 安装时要先进行图形化配置(root用户)

        [root@localhost database]# export DISPLAY=:0.0         

        [root@localhost database]# xhost +

        access control disabled, clients can connect from any host

  • 图形化设置(oracle用户)

        [root@localhost database]# su - oracle

         [oracle@localhost ~]$ vi .bash_profile 

        [oracle@localhost ~]$ export DISPLAY=:0.0

  • 图形化配置完成,开始安装(oracle用户 )

        [oracle@localhost db]$ cd /db/database/database/

        [oracle@localhost database]$ ./runInstaller 

  怎么在Centos7中安装Oracle 11G R2数据库

  怎么在Centos7中安装Oracle 11G R2数据库

  怎么在Centos7中安装Oracle 11G R2数据库

  怎么在Centos7中安装Oracle 11G R2数据库

  怎么在Centos7中安装Oracle 11G R2数据库

  怎么在Centos7中安装Oracle 11G R2数据库

  怎么在Centos7中安装Oracle 11G R2数据库

  怎么在Centos7中安装Oracle 11G R2数据库

  怎么在Centos7中安装Oracle 11G R2数据库

  怎么在Centos7中安装Oracle 11G R2数据库

       怎么在Centos7中安装Oracle 11G R2数据库

       怎么在Centos7中安装Oracle 11G R2数据库

       怎么在Centos7中安装Oracle 11G R2数据库       

       怎么在Centos7中安装Oracle 11G R2数据库 

       怎么在Centos7中安装Oracle 11G R2数据库

       怎么在Centos7中安装Oracle 11G R2数据库

       怎么在Centos7中安装Oracle 11G R2数据库

       怎么在Centos7中安装Oracle 11G R2数据库

       怎么在Centos7中安装Oracle 11G R2数据库

       怎么在Centos7中安装Oracle 11G R2数据库

       怎么在Centos7中安装Oracle 11G R2数据库

       怎么在Centos7中安装Oracle 11G R2数据库

  • 安装完成时需要root用户下执行两个脚本

        [root@localhost ~]#/db/oraInventory/orainstRoot.sh

        [root@localhost db]#/db/oracle/product/11.2.0/db_1/root.sh 

        至此数据库安装完成。

            

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

您可能感兴趣的文档:

--结束END--

本文标题: 怎么在Centos7中安装Oracle 11G R2数据库

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

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

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

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

下载Word文档
猜你喜欢
  • 怎么在Centos7中安装Oracle 11G R2数据库
    这篇文章主要讲解了“怎么在Centos7中安装Oracle 11G R2数据库”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“怎么在Centos7中安装Ora...
    99+
    2022-10-18
  • 静默安装Oracle及创建数据库11G R2
    oracle.install.responseFileVersion=/oracle/install/rspfmt_dbinstall_response_schema_v11_2_0 oracle.inst...
    99+
    2022-10-18
  • 怎么安装单实例数据库Oracle 11G
    这篇文章主要介绍“怎么安装单实例数据库Oracle 11G”,在日常操作中,相信很多人在怎么安装单实例数据库Oracle 11G问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”...
    99+
    2022-10-18
  • 如何在Linux 7中使用脚本安装oracle 11g r2
    今天就跟大家聊聊有关如何在Linux 7中使用脚本安装oracle 11g r2,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。什么是Linux系统L...
    99+
    2022-10-18
  • Oracle-11g数据库安装教程
    Oracle是甲骨文公司的一款关系数据库管理系统。系统可移植性好、使用方便、功能强,适用于各类大、中、小、微机环境。它是一种高效率、可靠性好的 适应高吞吐量的数据库解决方案。相信每一位IT大神都对ORACL...
    99+
    2022-10-18
  • Linux下安装oracle 11g数据库(一)
    Linux下安装oracle 11g数据库(一)1 内存的要求最低配置: 1 GB of RAM推荐配置: 2 GB of RAM or more确定内存大小,输入下面的命令:grep MemTotal /...
    99+
    2022-10-18
  • 怎么在CentOS7上安装Oracle
    这篇文章主要介绍“怎么在CentOS7上安装Oracle”,在日常操作中,相信很多人在怎么在CentOS7上安装Oracle问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”怎么...
    99+
    2022-10-18
  • CentOS7.X怎么安装MariaDB数据库
    这篇文章主要介绍“CentOS7.X怎么安装MariaDB数据库”,在日常操作中,相信很多人在CentOS7.X怎么安装MariaDB数据库问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望...
    99+
    2022-10-18
  • Oracle 11g数据库安装及配置之配置
    Oracle 11g配置 1.创建实例 ...
    99+
    2022-10-18
  • Oracle 11g数据库的安装及配置方法
    本篇内容介绍了“Oracle 11g数据库的安装及配置方法”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!O...
    99+
    2022-10-18
  • 如何使用yum源安装oracle 11g数据库
    这篇文章主要介绍了如何使用yum源安装oracle 11g数据库,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。***************...
    99+
    2022-10-18
  • 怎么在Linux上安装Oracle数据库
    这篇文章主要介绍“怎么在Linux上安装Oracle数据库”,在日常操作中,相信很多人在怎么在Linux上安装Oracle数据库问题上存在疑惑,小编查阅了各式资料,整理出简单好用的操作方法,希望对大家解答”...
    99+
    2022-10-18
  • 怎么在CentOS7下安装MySQL5.7数据库以及配置
    本篇内容主要讲解“怎么在CentOS7下安装MySQL5.7数据库以及配置”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“怎么在CentOS7下安装MySQL5....
    99+
    2022-10-18
  • Ubuntu中怎么安装Oracle数据库
    这篇文章主要讲解了“Ubuntu中怎么安装Oracle数据库”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“Ubuntu中怎么安装Oracle数据库”吧!公用命令,不管您是32 位系统还是64...
    99+
    2023-07-04
  • 怎么在Centos7中安装 Mysql8
    这篇文章给大家介绍怎么在Centos7中安装 Mysql8,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。Mysql8新特性:Mysql从5.x版本直接跳跃到8.x,我个人是这么看的:MySQL 5.5 -> My...
    99+
    2023-06-07
  • oracle 11g和12c初始安装数据库需调整的参数
    一、11g版本初始安装数据库需要调整的参数:参数设置标准默认存在风险db_files1000200数据库内允许最大文件个数,初始值为200,数量太小会导致无法增加数据文件processes1500数据库最大...
    99+
    2022-10-18
  • Oracle 11g 安装卸载与DMP文件的恢复数据库
    1、orcale 11g 安装 1 管理员运行setup.exe(没有安装包的下面群里联系我)  1.2不用接收更新  1.3选择第一个  1.4选择桌面类  1.5 我是默认的口令还是写一下   1.6 安装 7 这是我卸载...
    99+
    2021-07-13
    Oracle 11g 安装卸载与DMP文件的恢复数据库
  • VMWare虚拟机Centos7安装Oracle数据库的示例方法
    这篇文章给大家分享的是有关VMWare虚拟机Centos7安装Oracle数据库的示例方法的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。想用linux虚拟机装一个oracle,中间遇到的坑太多了,最后总算是安装好...
    99+
    2023-06-07
  • 怎么在centos7系统中安装mysql8
    今天就跟大家聊聊有关怎么在centos7系统中安装mysql8,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。一、RPM版安装查看是否有其他版本的数据...
    99+
    2022-10-18
  • Oracle 11g rac 安装中报PRCT-1011错误怎么办
    这篇文章给大家分享的是有关Oracle 11g rac 安装中报PRCT-1011错误怎么办的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。 在安装O...
    99+
    2022-10-18
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作