Red Hat Enterprise Linux 7.4上安装Oracle 11.2.0.4
1. 配置Yum源及关闭SeLinux
[root@localhost ~]# mkdir /media/rhel
[root@localhost ~]# mount /dev/cdrom /media/rhel
mount: /dev/sr0 is write-protected, mounting read-only
[root@localhost ~]# vi /etc/yum.repos.d/iso.repo [iso]
name=iso
baseurl=file:///media/rhel
enabled=
gpgcheck=
[root@localhost ~]# vi /etc/selinux/config
# modify
SELINUX=disabled
2. 安装桌面环境(如果未安装)
[root@localhost ~]# yum -y group install "Server with GUI"
3. 安装软件包
[root@localhost ~]# yum -y install binutils binutils-devel compat-libcap1 compat-libstdc++- compat-libstdc++-.i686 ksh elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel glibc-headers gcc gcc-c++ libaio libaio.i686 libaio-devel libaio-devel.i686 libgcc libstdc++ libstdc++.i686 libstdc++-devel libstdc++-devel.i686 make sysstat unixODBC unixODBC-devel libXp libXp-devel libXpm-devel telnet
4. 建立用户
[root@localhost ~]# groupadd oinstall
[root@localhost ~]# groupadd dba
[root@localhost ~]# useradd -g oinstall -G dba oracle
[root@localhost ~]# passwd oracle
[root@localhost ~]# vi /etc/profile #在末尾加入
if [ \$USER = "oracle" ];then
if [ \$SHELL = "/bin/ksh" ];then
ulimit -p
ulimit -n
else
ulimit -u -n
fi
umask
fi
5. 建立文件夹
[root@localhost ~]# mkdir -p /u01/oracle
[root@localhost ~]# mkdir -p /u01/oracle/11.2./db_1
[root@localhost ~]# chown -R oracle:oinstall /u01/oracle/
[root@localhost ~]# chown -R oracle:oinstall /u01/oracle/11.2./db_1/
[root@localhost ~]# chmod -R /u01/oracle/
[root@localhost ~]# chmod -R /u01/oracle/11.2./db_1/
6. 配置系统核心参数,Oracle用户资源限制,Oracle用户环境变量
[root@localhost ~]# MEMTOTAL=$(free -b | sed -n '2p' | awk '{print $2}')
[root@localhost ~]# SHMMAX=$(expr $MEMTOTAL / )
[root@localhost ~]# SHMMNI=
[root@localhost ~]# PAGESIZE=$(getconf PAGE_SIZE)
[root@localhost ~]# cat >> /etc/sysctl.conf << EOF
fs.aio-max-nr =
fs.file-max =
kernel.shmmax = $SHMMAX
kernel.shmall = $(expr \( $SHMMAX / $PAGESIZE \) \* \( $SHMMNI /  \))
kernel.shmmni = $SHMMNI
kernel.sem =
net.ipv4.ip_local_port_range =
net.core.rmem_default =
net.core.rmem_max =
net.core.wmem_default =
net.core.wmem_max =
EOF
[root@localhost ~]# sysctl -p
[root@localhost ~]# vi /etc/security/limits.conf
# add to the end
oracle soft nproc
oracle hard nproc
oracle soft nofile
oracle hard nofile
oracle soft stack
oracle hard stack
[root@localhost ~]# vi /home/oracle/.bash_profile
# add to the end
export ORACLE_SID=sdzy;
export ORACLE_BASE=/u01/oracle;
export ORACLE_HOME=/u01/oracle/11.2./db_1;
export PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
export LD_LIBRARY_PATH=$ORACLE_HOME/lib
[root@localhost ~]# reboot
7. 编辑主机名
[root@localhost ~]# vi /etc/hosts
# add
192.168.10.11 oracle
[root@localhost ~]# vi /etc/hostname
# modify
oracle
[root@localhost ~]# vi /etc/sysconfig/network
8. 解压安装文件
[root@localhost ~]# cd /opt
[root@localhost opt]# unzip p13390677_112040_Linux-x86-64_1of7.zip ;unzip p13390677_112040_Linux-x86-64_2of7.zip
9. 开始安装
[oracle@localhost ~]$ cd $ORACLE_HOME/sysman/lib
[oracle@localhost lib]$ cp ins_emagent.mk ins_emagent.mk.bak
[oracle@localhost lib]$ vi ins_emagent.mk
查找$(MK_EMAGENT_NMECTL)
更改为$(MK_EMAGENT_NMECTL) -lnnz11
[root@localhost rhel]# xhost +
access control disabled, clients can connect from any host
[root@localhost rhel]# su - oracle
[oracle@localhost ~]$ export DISPLAY=10.1.105.52:0.0 #此处IP请改为客户端的IP
[oracle@localhost ~]$ cd /opt/database/
[oracle@localhost database]$ ./runInstaller









检查发现少了一个软件包,且在光盘中搜不到,需要网上下载后手动安装。
[root@localhost opt]# rpm -ivh compat-libstdc++--3.2.-.el7.x86_64.rpm



[root@localhost opt]# /u01/oracle/oraInventory/orainstRoot.sh
[root@localhost opt]# /u01/oracle/11.2./db_1/root.sh
至此安装完成!
Red Hat Enterprise Linux 7.4上安装Oracle 11.2.0.4的更多相关文章
- 在Red Hat Enterprise Linux 7.3上安装SQL Server 2017
		
必要条件: 1.在此快速安装过程中,您需要安装SQL Server 2017或SQL Server 2019上Red Hat Enterprise Linux (RHEL) 7.3 +.然后使用sql ...
 - Red Hat Enterprise Linux Server(RHEL) yum安装软件时This system is not registered with RHN. RHN support will be disabled. 的解决方法(转)
		
新安装了redhat6.5.安装后,登录系统,使用yum update 更新系统.提示: This system is not registered to Red Hat Subscription M ...
 - Red Hat Enterprise Linux Server 6.5安装GCC 4.9.2
		
现在很多程序员都应用GCC,怎样才能更好的应用GCC.目前,GCC可以用来编译C/C++.FORTRAN.JAVA.OBJC.ADA等语言的程序,可根据需要选择安装支持的语言.本文以在RedHat L ...
 - Red Hat Enterprise Linux / CentOS 7 yum安装zabbix4.0
		
添加Zabbix存储库安装存储库配置包. 该软件包包含yum(软件包管理器)配置文件. rpm -ivh https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_6 ...
 - Red Hat Enterprise Linux AS4, C++ OCCI connect Oracle 9i
		
前提是已经安装好Oracle 9i. 1. 下载对应的ORACLE client安装. http://www.oracle.com/technetwork/database/features/inst ...
 - Deploy Oracle 10.2.0.5 DataGuard on Red Hat Enterprise Linux 6.4
		
系统:Red Hat Enterprise Linux 6.4 数据库:Oracle 10.2.0.5.0 Patch Set 4 主机:10dg1 192.168.1.91 10dg2192.168 ...
 - Red Hat Enterprise Linux 6.6安装体验
		
Red Hat Enterprise Linux 6.6的安装首界面有五个选项,这跟以前的Red Hat Enterprise Linux 5.x的安装界面是有一些区别的. 安装或者升级现有系统( ...
 - Red Hat Enterprise Linux 6 “桌面”、“工作站”、“服务器” 版本差异比较
		
Red Hat Enterprise Linux 6,共有三个版本.通过安装发现,所谓的"桌面"."工作站"."服务器"这三个版本的区别就在 ...
 - Red Hat Enterprise Linux 5 64-bit chinese language support config steps
		
Red Hat Enterprise Linux 5 64-bit 系统下安装中文语言支持方法 测试环境:Windows2012+Vmvare9.0+Red Hat Enterprise Linux ...
 
随机推荐
- 神经网络中的激活函数tanh sigmoid RELU softplus softmatx
			
所谓激活函数,就是在神经网络的神经元上运行的函数,负责将神经元的输入映射到输出端.常见的激活函数包括Sigmoid.TanHyperbolic(tanh).ReLu. softplus以及softma ...
 - 虚拟机 windows xp sp3 原版
			
原版的镜像:http://www.7xdown.com/Download.asp?ID=3319&URL=http://d5.7xdown.com/soft2/&file=Window ...
 - RESTful API 和  Django REST framework
			
100天 cmdb最后一天 #RESTful API - 定义规范 如get就是请求题 - 面向资源编程 把网络任何东西都当作资源 #给一个url,根据方法的不同对资源做不同的操作 #返回结果和状态码 ...
 - Luogu    P1160 【队列安排】
			
详细的链表讲解 很明显的一个链表裸题 和普通的链表有一个区别就是这个题 可以O(1)插入,O(1)查询 然后我们为了方便,采用双向链表,定义s.f作为指针数组 更详细的解释见代码 #include&l ...
 - Oracle学习笔记:实现select top N的方法
			
由于Oracle不支持select top N语句,所以在Oracle中需要利用order by和rownum的组合来实现select top N的查询. rownum是记录表中数据编号的一个隐藏字段 ...
 - cve-2010-3333 Microsoft Office Open XML文件格式转换器栈缓冲区溢出漏洞 分析
			
用的是泉哥的POC来调的这个漏洞 0x0 漏洞调试 Microsoft Office Open XML文件格式转换器栈缓冲区溢出漏洞 Microsoft Office 是微软发布的非常流行的办公 ...
 - .NET异步多线程,Thread,ThreadPool,Task,Parallel,异常处理,线程取消
			
今天记录一下异步多线程的进阶历史,以及简单的使用方法 主要还是以Task,Parallel为主,毕竟用的比较多的现在就是这些了,再往前去的,除非是老项目,不然真的应该是挺少了,大概有个概念,就当了解一 ...
 - lr11录制时报“Request Connection: Remote Server @ 0.0.0.0:1080   (Service=?)  NOT PROXIED! )”解决方法
			
在录制脚本的时候出现如下现象: 解决方法: LoadRunner录制脚本时出现:Unable to connect to remote server),有事件没有脚本的问题 1.首先要查看IE浏览 ...
 - fast协议解读
			
目录 背景 fast协议特征 fast协议解读 背景 股票行情一般传输的数据类型为: int / long / float /double / string 来表示行情价格成交量之类的数据. 正常传输 ...
 - 【基础知识】winfrom窗体的属性
			
窗体的属性: Icon:窗体的右上角图标 FormBoarderStyle:窗体的边线样式 MaximizeBox: 最大化按钮是否可用 MinimizeBox:最小化按钮是否可用 Opacity:透 ...