RHEL5.8安装Oracle11g

1、安装环境
[[email protected] ~]# uname -r
2.6.18-308.el5
[[email protected] ~]# cat /etc/issue
Red Hat Enterprise Linux Server release 5.8 (Tikanga)
Kernel \r on an \m
[[email protected] ~]# uname -a
Linux rusky-oracle11g.com 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

2、主机名及IP设置为如下
[[email protected] local_repo]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.1.201 rhel201.com rhel201

[[email protected] local_repo]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=yes
HOSTNAME=rhel201.com

[[email protected] local_repo]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0
BOOTPROTO=static
DHCPCLASS=
HWADDR=00:0C:29:C5:02:E2
ONBOOT=yes
IPADDR=192.168.1.201
NETMASK=255.255.255.0
GATEWAY=192.168.1.1

3、关闭selinux及防火墙
[[email protected] ~]# 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 - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

关闭防火墙:
[[email protected] ~]#chkconfig iptables off
[[email protected] ~]#service iptables stop

3、内核及其它相关参数设置
[[email protected] ~]# cat /etc/security/limits.conf
# /etc/security/limits.conf
#
#Each line describes a limit for a user in the form:
#
#<domain> <type> <item> <value>
#
#Where:
#<domain> can be:
# - an user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
#
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#
#<item> can be one of the following:
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open files
# - rss - max resident set size (KB)
# - stack - max stack size (KB)
# - cpu - max CPU time (MIN)
# - nproc - max number of processes
# - as - address space limit
# - maxlogins - max number of logins for this user
# - maxsyslogins - max number of logins on the system
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
# - sigpending - max number of pending signals
# - msgqueue - max memory used by POSIX message queues (bytes)
# - nice - max nice priority allowed to raise to
# - rtprio - max realtime priority
#
#<domain> <type> <item> <value>
#

#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 4096
oracle hard nofile 65536
oracle soft stack 10240
# End of file

[[email protected] ~]# cat /etc/pam.d/login
#%PAM-1.0
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth include system-auth
account required pam_nologin.so
account include system-auth
password include system-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
session optional pam_keyinit.so force revoke
session required pam_loginuid.so
session include system-auth
session optional pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session required pam_selinux.so open

session required pam_limits.so

4、安装所需的包
配置本地yum源,使用yum命令安装所需包。参考链接:
The following or later version of packages for Asianux 3, Oracle Linux 5, and Red Hat Enterprise Linux 5 must be installed:

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
还要下面这三个包也安装:
On Asianux Server 3, Oracle Linux 5, and Red Hat Enterprise Linux 5:
unixODBC-2.2.11 (32-bit) or later
unixODBC-devel-2.2.11 (64-bit) or later
unixODBC-2.2.11 (64-bit) or later

最好重启机器,以确保之前配置的相关内容生效。

5、创建用户及组
groupadd oinstall
groupadd dba
groupadd oper
useradd -g oinstall -G dba,oper oracle
passwd oracle

6、创建安装目录
Create the directories in which the Oracle software will be installed.

mkdir -p /u01/app/oracle/product/11.2.0.4/db_1
chown -R oracle:oinstall /u01
chmod -R 775 /u01
If you are using X Emulation, login as root and issue the following command.

xhost +

7、设置oracle用户环境变量
Login as the oracle user and add the following lines at the end of the "/home/oracle/.bash_profile" file.
以oracle用户登录添加如下内容到这个文件:/home/oracle/.bash_profile
# Oracle Settings
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR

ORACLE_HOSTNAME=rusky-oel.com; export ORACLE_HOSTNAME
ORACLE_UNQNAME=DB11G; export ORACLE_UNQNAME
ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0.4/db_1; export ORACLE_HOME
ORACLE_SID=orcl; export ORACLE_SID
ORACLE_TERM=xterm; export ORACLE_TERM
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH

LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH

===================================
修改系统环境变量/etc/profile
修改环境变量/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
8、执行安装
installation

Log into the oracle user. If you are using X emulation then set the DISPLAY environmental variable.

DISPLAY=192.168.1.203:0.0; export DISPLAY
Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory.

./runInstaller DISPLAY报错处理:http://www.cnblogs.com/rusking/p/4232835.html

《参数文档: http://oracle-base.com/articles/11g/oracle-db-11gr2-installation-on-oracle-linux-7.php》

时间: 2024-10-16 20:59:19

RHEL5.8安装Oracle11g的相关文章

rhel5.5 安装 oracle11g asm(1)

在64位rhel5.5上安装oracle11g,使用自动存储管理(asm) #cat /etc/redhat-release Red Hat Enterprise Linux Server release 5.5 (Tikanga) #vi /etc/sysconfig/network-scripts/ifcfg-eth0 IPADDR=192.168.11.100 NETMASK=255.255.255.0 #/etc/init.d/network restart #vi /etc/hosts

安装oracle11g INS-30131执行安装程序验证所需的初始设置失败的解决方法

每一个项目环境的搭建都离不开安装oracle数据库,那么安装oracle11g数据库出现 [INS-30131] 执行安装程序验证所需的初始设置失败.我该怎么办呢? 解决方法 第一步:控制面板>所有控制面板项>管理工具>服务>SERVER 启动 TCP/IP 启动 第二步: 1.点击 开始->运行 ,输入regedit ,然后回车键进入注册编辑器2.找到并点击HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Lanman

centos6.5安装Oracle11g 温故而知新

在线gen更新各种依赖包 yum -y install make glibc libaio compat-libstdc++-33 compat-gcc-34  compat-gcc-34-c++  gcc libXp openmotif  compat-db 1.配置/etc/sysctl.conf /sbin/sysctl -p kernel.shmall = 2097152 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem

初学者安装oracle11g报错,求赐教

如图,在linux6.2上安装oracle11g,都装到%95了,报错,各位大神,这个可以忽略吗?

RedHat-server-5.6-64bit安装oracle11g

最近也是要给客户上系统,无奈客户只是提供了操作系统,数据库并没有安装起来,需要我们自己动手安装,说真的,oracle这东西在windows下装了不少,但是在Linux上可真是没有安装过,这也是第一次装,所以为了以防万一,我提前在本机用虚拟机装了一遍,下面的内容就把大致过程做以记录. 第一次安装,惯例当然是百度上找教程了,找到一篇还不错的教程,我就是按照博主的过程安装的,虽然中间稍微有一点不同,但是基本就是按照他的架子来装的,我这里附上原文地址:http://blog.csdn.net/westm

CentOS-6.7下安装Oracle11g

具体安装细节可以参考oracle11g官方文档(install.112/e24324/toc.html),这里只记录一些主要的步骤. (1)检查硬件 (2)检查安装包 缺少的包就用yum安装,其中pdksh这个包好像不在yum源里面,需要自己手动下载安装 除上述包之外,还要安装unixODBC和unixODBC-devel (3)创建组和用户 这里设置的oracle用户的密码是oracle (4)配置资源限制 编辑/etc/sysctl.conf文件,将下面的内容追加到文件末尾 然后执行sysc

ubuntu14.04 安装 Oracle11g

以前我用的是win7但是作为一个java的开发者怎么不用liunx呢,于是我决定专用ubuntu本人比较喜欢新的就安装了最新的ubuntu14.04.我比较喜欢使用mysql数据库.因为它开源.小巧但是公司用的是oracle11g .所以今天给大家带来的是一个在ubuntu 下安装Oracle11g的文章.可能有的地方比较罗嗦,但是本人也是ubuntu 的初学者,对于不对的地方希望大家指教. 1.安装前的准备 1).下载oracle11g 安装文件并解压 下载地址:  http://www.or

win10-32bit安装oracle11g客户端

win10-32bit安装oracle11g client提示 在安装文件的/stage/cvu文件夹下面找到文件 cvu_prereq.xml文件,修改为如下(添加windows 10相关字段,若你的系统为32位只需要添加win10 32的子段即可,若你的系统为64位只需要添加win10 64的子段即可): 安装过程提示预检查不通过,可以忽略.

linux-CentOS6.4下安装oracle11g详解

来源:http://dengqsintyt.iteye.com/blog/1991930 目录: 1.前言         2.安装环境         3.基本要求         4.修改linux核心配置(可省略)         5.安装步骤         6.建立数据库         7.创建监听         8.基本操作 前言: 之前再XX网上写的很多技术文章,不知什么原因,全部被干掉了,伤心了几天,想通了,日子还得过嘛~! 先从最近参与的的一个项目开始吧.这个项目是一个we