redhat 6.4安装oracle11g单机
概述:学习oracle首先需要将oracle安装在操作系统后,您才可以继续其他方面的学习;本文就oracle11g在redhat6.4上使用本地卷管理的方式进行简单安装说明;官方文档请查看:https://docs.oracle.com/cd/E11882_01/install.112/e47689/toc.htm
实验步骤:
1、操作系统准备
1.1、相关包安装
1.2、相关系统参数修改
1.3、关闭防火墙
2、新建相关用户:oracle
3、新建相关目录并修改权限
4、配置oracle用户环境变量
5、安装oracle软件和使用dbca建库
实验:
解压安装介质:11.2.0.4oracle安装包
[root@cube ~]# cd /tmp/
[root@cube tmp]# ls
keyring-bzLfgY p13390677_112040_LINUX_1of7.zip pulse-l84Sn5PAruWy virtual-root.O43zXP
orbit-gdm p13390677_112040_LINUX_2of7.zip rhel-server-6.4-x86_64-dvd.iso virtual-root.qyE84j
orbit-root pulse-dPtARQbfzMNp ssh-afkKAU1848 yum.log
[root@cube tmp]# unzip p13390677_112040_LINUX_1of7.zip
[root@cube tmp]# unzip p13390677_112040_LINUX_2of7.zip
操作系统参数修改:
[root@cube tmp]# cat /etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.66 cube
[root@cube tmp]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted - Targeted processes are protected,
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
[root@cube tmp]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]
[root@cube tmp]# chkconfig iptables off
[root@cube tmp]# vi /etc/sysctl.conf --- 添加
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
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
[root@cube tmp]# sysctl -p --生效参数
[root@cube tmp]# vi /etc/security/limits.conf ---添加
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
[root@cube tmp]# vi /etc/pam.d/login ---添加
session required /lib64/security/pam_limits.so
session required pam_limits.so
[root@cube tmp]# vi /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
oracle需求的包安装
[root@cube tmp]# mount /dev/cdrom /media/
mount: block device /dev/sr0 is write-protected, mounting read-only
[root@cube tmp]# yum install -y 相关包 后续提示缺少包 就相应的补上就行
新建用户oracle:
[root@cube tmp]# groupadd -g 2000 oinstall
[root@cube tmp]# groupadd -g 2001 dba
[root@cube tmp]# useradd -u 1000 -g oinstall -G dba oracle
[root@cube tmp]# passwd oracle
新建相关目录及修改权限
[root@cube tmp]# mkdir -p /u01/app/oracle
[root@cube tmp]# chown -R oracle:oinstall /u01/
[root@cube tmp]# chmod -R 755 /u01/
修改oracle用户参数文件:
[root@cube tmp]# vi /home/oracle/.bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
export PATH
export ORACLE_SID=CUBE
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib
export NLS_LANG=AMERICAN_AMERICA.ZHS16GBK
至此安装准备阶段已经完成,开图形安装吧。
安装:
[root@cube database]# xhost +
su - oracle
[oracle@cube database]# pwd
/tmp/database
[oracle@cube database]# ./runInstaller
总结:至此单机安装完成让我们开启oracle的使用旅程吧。
redhat 6.4安装oracle11g单机相关推荐
- 自己动手 CentOS-6.5 安装Oracle11g R2
学习oracle,首先要有个环境,在自己机器上用虚拟机装了个CentOS版的linux,准备装Oracle,发现很多资料都缺点什么,设置内核参数及安装依赖包基本都有,其他的参数设置都不大一样,可能是安 ...
- linux安装Oracle11g详细教程(redhat6、Centos7)
转载请注明:https://blog.csdn.net/u011291276/article/details/108143497 一.摘要 本文是安装Oracle11g的详细步骤: 本人已通过此方式, ...
- ubuntu16.04 安装 oracle11g (2022.6.5)
ubuntu16.04 安装 oracle11g (2022.6.5) 参考博客如下: 原文链接:https://www.nakivo.com/blog/how-to-install-oracle-o ...
- Redhat 7.4 安装oracle 11g
以下是以redhat 企业版 7.4为例说明 一.安装redhat 7.4 步骤 备注 :安装系统必须将swap虚拟交换内存分配到18G或者更高,这是oracle11g的配置要求 1.1.选择红色框选 ...
- 在RedHat6.9_x64上安装Oracle11g R2_11.2.0.4
前言: 本次是在RedHat6.9_x64操作系统上安装Oracle11g R2_11.2.0.4版本. 安装RedHat6.9_X64操作系统时,有以下注意事项: 1.注意分区时swap分区大小,O ...
- linux6.5下安装oracle 11,centos6.5下安装oracle11g
centos6.5下安装oracle11g 一.检测并安装Linux的图形界面,这里安装的KDE环境桌面 检测是否已经安装图形界面:命令yum grouplist (该命令输出很长),在命令执行后的输 ...
- oracle 11所选安装,在red hat enterprise linux 5.4上安装oracle11g
一. 在rhel中可以访问oracle11g的zip安装包. 二. rhel4中,我们需要查询安装oracle11g所需要的rpm包是否已安装:#rpm - qa.在rhel5.4中,软件包要求: 在 ...
- Centos7上安装oracle11g/12c的安装教程推荐及注意事项
Centos7上安装oracle11g的安装教程推荐及注意事项 历时一天半,终于在今天中午安装完oracle11g,成功后喜悦的心情自是溢于言表.总有些疑问,比如为何如此复杂的数据库为何还会有如此之多 ...
- RedHat企业版的安装(一)
这次说一下RedHat企业版的安装 其它这个有其它的linux安装方法差不多,所以只要你其它的会装,这个也自然会了 直接回车,一般会赶往图形安装方式,但不提倡这样装 这个是检查光盘是否完整 如果你 ...
最新文章
- 永久设置SecureCRT的背景色和文字颜色方案
- 北大新研究用数学模型揭网红崛起奥秘!登上Nature子刊
- 在ASP.Net 2.0中实现多语言界面的方法
- 初尝微信小程序2-基本框架
- 出了本练内功的书:《完美软件开发:方法与逻辑》
- 天梯—重要的话说三遍(C语言)
- java后端分页查询_java后端分页方案
- 分享7个超实用的Emmet(zen coding)HTML代码使用技巧
- mysql中order by的原理
- python安装osgeo库_python第三方库安装
- 【Python 最全版(一)】—加解密、编码解码、进制转换、字符串转换
- 【单片机仿真】(七)寻址方式 — 位寻址
- 27英寸显示器多大 长宽多少厘米
- Qt中提示“常量中有换行符“的解决方法
- 引起C运行时错误R6034的原因和解决方法
- 巧用“sfc scannow”命令扫描修复Win8系统
- 列表元组和字典课后练习
- ubuntunbsp;16.04安装smba服务
- 计算机word茶的功效,乌龙茶的功效与作用 Microsoft Word 文档
- 安装maven的eclipse插件出现Cannot complete the install because one or more required items could not be found