在Red Hat Enterprise Linux 5 64-bit安装oracle11g r2
网上这种文档一搜就一堆,没别的目的,刚接触oracle为了加深理解记忆。只要是跟我的版本一样操作系统和oracle软件,按照步骤肯定可以成功安装
在虚拟机上安装Red Hat Enterprise Linux 5 64-bit操作系统,然后在linux系统中安装oracle11g软件
虚拟机硬件分配:(实验环境弄的简单点,没有完全按照官方安装文档分配)
2G内存
40G硬盘
-swap:5G
-/:35G
1.内核需求
Red Hat Enterprise Linux 5——2.6.18 或者更高
2.需要的软件包
binutils-2.17.50.0.6 compat-libstdc++-33-3.2.3 compat-libstdc++-33-3.2.3 (32 bit) elfutils-libelf-0.125 elfutils-libelf-devel-0.125 gcc-4.1.2 gcc-c++-4.1.2 glibc-2.5-24 glibc-2.5-24 (32 bit) glibc-common-2.5 glibc-devel-2.5 glibc-devel-2.5 (32 bit) glibc-headers-2.5 ksh-20060214 libaio-0.3.106 libaio-0.3.106 (32 bit) libaio-devel-0.3.106 libaio-devel-0.3.106 (32 bit) libgcc-4.1.2 libgcc-4.1.2 (32 bit) libstdc++-4.1.2 libstdc++-4.1.2 (32 bit) libstdc++-devel 4.1.2 make-3.81 sysstat-7.0.2 unixODBC-2.2.11 unixODBC-2.2.11 (32 bit) unixODBC-devel-2.2.11 unixODBC-devel-2.2.11 (32 bit) 可以通过rpm -qa | grep XXX来检查是否安装的此软件包,如下:
3.对linux内核参数配置
vim /etc/sysctl.conf将下面内核参数添加到最后
fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 1053542400 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 = 1048586 同下:
并要求立即生效
sysctl -p
同下:
4.用户检查资源限制
vi /etc/security/limits.conf 同样在最后添加如下内容
oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536
同样:
5.配置oracle用户的shell限制
vim /etc/pam.d/login 添加到最后
session required pam_limits.so
添加如下内容到/etc/profile的最后
if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi
6.创建主组和附属组,并创建oracle用户
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle
passwd oracle 密码自行设置
7.创建oracle安装目录,并分配给文件夹权限和所属组
# mkdir -p /u01/app/ # chown -R oracle:oinstall /u01/app/ # chmod -R 775 /u01/app/
权限和所属组如下:
8.配置oracle用户环境变量
su - oracle 切换到oracle用户下
编辑.bash_profile
同下:
在最后添加如下信息:
ORACLE_BASE=/u01/app
ORACLE_SID=shen
ORACLE_HOME=$ORACLE_BASE/oracle/product/11.2.0/dbhome_1
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_SID ORACLE_HOME PATH
同下:
SID是自己定义的,可以随便起名字,在后面安装oracle的时候创建的数据库名字一致
(这个时候配置的环境基本搞定,oracle的安装的图像界面的,为了方便操作,我使用的vnc客户端连接redhat5进行操作,需要了解的朋友可以去看我的转载http://www.cnblogs.com/srui/p/3282007.html 。这里再插一句,也的我的一点点傻傻的事情,为了将本机中的oracle软件拷贝到虚拟机中,还去配置了samba服务,后来朋友跟我说可以直接插U盘的,傻了我,呵呵~有想了解的朋友可以看有关samba服务的配置http://www.cnblogs.com/srui/p/3282344.html ,我机器上的samba很简单的配置,可以参照下:在vim /etc/samba/smb.conf 安全模式默认的user,需要改成share。
随便写的一个共享,仅供参考)
9.在图像界面下操作安装oracle软件
①在图形界面下,root用户下执行xhost +
同下:
②切换到oracle用户下,解压oracle安装包,到解压后的文件夹下找到database,执行./runInsraller
同下:
稍后会弹出来安装界面:
1.
配置安全更新,提示电子邮箱地址,可以将取消勾号,不更新;
2.
安装数据库软件和创建一个数据库,当然也可以只安装数据库软件,我是选择这个的
3.
选择服务器模式
4.
选择单实例数据库安装
5.
高级安装
6.
选择语言英语
7.
企业版安装
8.
这个就是数据库安装目录了,如果权限和所属组不正确,会报错,请参照之前配置
9.
指定具有产品清单写权限的组dba
10.
一般用途/事务处理
11.
SID好要与环境变量一致
12.
可以默认不变
13.
一路next,直到:
设置密码
14.
定义特权操作系统的组
15.
一路next,直到最后执行两个脚本
切换到root权限下去执行,按照顺序执行
好了,到这里oracle11g就安装完毕了,以后就是对oracle学习的事情了~、
好好学习天天向上吧~!
在Red Hat Enterprise Linux 5 64-bit安装oracle11g r2的更多相关文章
- 在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 7 64 位 虚拟机安装后无法启动图形化
原因: 1.系统在创建时,没有安装图形化 2.系统在安装后,有降低内存的操作,内存过低无法启动桌面,以及其他 就原因一进行图形化安装: 1.VMware挂载Red Hat Enterprise Lin ...
- 更换Red Hat Enterprise Linux 7 64位的yum为centos的版本
查看redhat原有的yum包有哪些: [root@localhost ~]# rpm -qa|grep yum yum-utils-1.1.31-24.el7.noarch yum-langpack ...
- 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 ...
- linux云计算集群架构学习笔记:workstation 12.0 按装Red Hat Enterprise Linux 7(64位)
安装RHEL7.2 步骤: 1.安装虚拟机,按以下截图安装即可 步骤2: Ret hat 7.2 操作系统安装 rhel7因为许可报错解决
- 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 7.4上安装Oracle 11.2.0.4
1. 配置Yum源及关闭SeLinux [root@localhost ~]# mkdir /media/rhel [root@localhost ~]# mount /dev/cdrom /medi ...
- Red Hat Enterprise Linux 8.0 安装
Red Hat Enterprise Linux 8.0 安装 本次安装通过使用VMware Workstation 15 pro 进行. 1.新建虚拟机 2.点击首页的创建新的虚拟机,或者点击标签栏 ...
- Red Hat Enterprise Linux 6.6安装体验
Red Hat Enterprise Linux 6.6的安装首界面有五个选项,这跟以前的Red Hat Enterprise Linux 5.x的安装界面是有一些区别的. 安装或者升级现有系统( ...
随机推荐
- C# 实现预览dwg文件完整源代码(无需autocad环境)
using System; using System.Drawing; using System.Collections; using System.ComponentModel; using Sys ...
- tableView特色用法
// // ViewController.m // UITableView // // Created by yhj on 15/12/15. // Copyright © 2015年 QQ: ...
- C#总结(3)
这次我们来谈谈函数. C#的函数分为静态函数,和普通函数. 先上代码. using System; using System.Collections.Generic; using System.Lin ...
- poj 3959 Alignment of Code <vector>“字符串”
Description You are working in a team that writes Incredibly Customizable Programming Codewriter (IC ...
- (转) 谈C/C++指针精髓
原文:http://www.cnblogs.com/madengwei/archive/2008/02/18/1072410.html [摘要] 指针是C和C++语言编程中最重要的概念之一, ...
- (原)ubuntu16中安装moses
转载请注明出处: http://www.cnblogs.com/darkknightzh/p/5653186.html 在ubuntu14中,可以使用下面的语句安装moses: luarocks in ...
- YUI Array 之dedupe(快速去重)
YUI.Array.dedupe函数,如果传参为有length属性,返回一个去除掉重复项('1’ 与1 | true 与'true’认为相等)的参数数组副本,如果传参的length为undefined ...
- C# 操作系统回收站
主要目的:对系统回收站的文件进行操作. 首先添加引用,引入shell32.dll. /// <summary> /// 对回收站的文件进行还原.删除.剪切等操作 /// </summ ...
- php web qq第三方登录
官方api地址:http://wiki.connect.qq.com/%E5%87%86%E5%A4%87%E5%B7%A5%E4%BD%9C_oauth2-01.去qq互联上注册申请成为开发者,并创 ...
- appsettings.json
appsettings.json 目录索引 [无私分享:ASP.NET CORE 项目实战]目录索引 简介 在我们之前的Asp.net mvc 开发中,一提到配置文件,我们不由的想到 web.conf ...