(无图形界面,远程安装)Oracle11g基于Centos7的静默安装方式

本文详述了如何在Centos7最小化安装环境下,通过静默方式安装Oracle 11g数据库。包括环境准备、系统配置、依赖安装、静默安装响应文件设置、数据库创建、监听配置、开机自启动设置以及如何删除实例的完整步骤。
摘要由CSDN通过智能技术生成

一、安装前环境准备

  1. VMware Workstation 11 搭建Centos7虚拟机,Centos7操作系统最小化安装,2G内存,20G磁盘空间,1核CPU,已配置好网络IP:192.168.206.135在这里插入图片描述
  2. 已下载Oracle 11g Linux安装文件:linux.x64_11gR2_database_1of2.zip和linux.x64_11gR2_database_2of2.zip
  3. 通过XmanagerXftp上传到虚拟机/tmp目录中
    在这里插入图片描述

二、操作系统准备工作

  1. 使用root用户登录操作系统
  2. yum 安装 unzip软件,用来解压上传的Oracle安装文件
  3. 解压Oracle 安装程序
[root@Centos ~]#cd /tmp
[root@Centostmp]#unzip linux.x64_11gR2_database_1of2.zip && unzip linux.x64_11gR2_database_2of2.zip

等待解压完成后,会在/tmp目录下生产一个database文件夹,里面就Oracle 11g安装文件

  1. yum 安装vim软件,用于编辑配置文件(个人习惯,不安装vim,使用vi也可以)
[root@Centostmp]#yum install vim -y
  1. 在/etc/hosts文件中添加主机名
[root@Centostmp]# vim /etc/hosts               //添加192.168.206.135 centos

在这里插入图片描述

  1. 关闭selinux
[root@Centostmp]# vim /etc/selinux/config        //设置SELINUX=disabled

在这里插入图片描述

[root@Centostmp]# setenforce 0
  1. 关闭防火墙
[root@Centos ~]# systemctl stop firewalld
[root@Centos ~]# systemctl disable firewalld
  1. 安装Oracle 11g依赖包
[root@Centostmp]# yum install yum install gcc make binutilsgcc-c++ compat-libstdc++-33 elfutils-libelf-develelfutils-libelf-devel-static kshlibaiolibaio-develnumactl-develsysstatunixODBCunixODBC-develpcre-devel –y
  1. 添加安装用户和用户组
[root@Centostmp]# groupadd oinstall
[root@Centostmp]# groupadd dba
[root@Centostmp]# useradd -g oinstall -G dba oracle
[root@Centostmp]# passwd oracle
[root@Centostmp]# id oracle
uid=1001(oracle) gid=1001(oinstall) 组=1001(oinstall),1002(dba)
  1. 修改内核参数配置文件
[root@Centos ~]# vim /etc/sysctl.conf

添加以下内容

fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 10737
  • 6
    点赞
  • 9
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

A Master

您的鼓励是对我最大的支持

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值