栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 数据库 > Oracle

Linux 7下脚本安装配置oracle 11g r2教程

Oracle 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

Linux 7下脚本安装配置oracle 11g r2教程

本教程为大家分享了oracle 11g r2安装教程,供大家参考,具体内容如下

一、环境脚本简单配置

#!/bin/bash
mv /etc/yum.repos.d/* /tmp
mv iso.repo /etc/yum.repos.d/
tar zxvf a.tar.gz
mv 7Server /root/
sed -i '3 s/^#//' /etc/yum.repos.d/iso.repo
sed -i '4 s/^/#/' /etc/yum.repos.d/iso.repo
yum install createrepo -y
yum install unzip -y
yum install gcc* -y
yum install xhost -y
yum -y install elfutils*
createrepo /root/7Server/
sed -i '3 s/^/#/' /etc/yum.repos.d/iso.repo
sed -i '4 s/^#//' /etc/yum.repos.d/iso.repo

#!/bin/bash
IP=`ip addr |grep 'inet'|grep 'eno'|awk '{print $2}'|awk -F / '{print $1}'`
echo $IP ol7.localdomain ol7 >> /etc/hosts
hostnamectl set-hostname ol7.localdomain
sed -i 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/sysconfig/selinux
yum -y install oracle-rdbms-*
yum -y install rlwrap
mkdir -p /u01/app/oracle/product/11.2.0.4/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
systemctl stop firewalld
systemctl disable firewalld
cat >>/home/oracle/.bash_profile<

二、安装

1.使用xmanager安装,服务器是最小化安装的

[root@ol7 oracle]# xhost +
access control disabled, clients can connect from any host
[root@ol7 oracle]# exit
exit
[oracle@ol7 ~]$ export DISPLAY=192.168.3.21:0.0
[oracle@ol7 ~]$ cd database/
[oracle@ol7 database]$ ./runInstaller 
Starting Oracle Universal Installer...

中间就是一些鼠标操作

2.安装完软件,dbca建库就完了

三、总结

 因为自己每次都要配置环境,安装,所以就用了个简单得脚本实现环境的配置。

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持考高分网。

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/171411.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号