原文地址:
http://ivan.kartik.sk/oracle/install_ora11gR1_elinux.html
参考地址:
http://blog.csdn.net/shile1987/article/details/6688429
1. Create oracle User Account
Login as root and create te user oracle which belongs to dba group.
su -
# groupadd dba
# useradd -g dba oracle
2. Setting System parameters
Edit the /etc/sysctl.conf and add following lines:
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 6553600
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
Note: You need reboot system or execute "sysctl -p" command to apply above settings.
For RedHat (OEL, Centos, WBL) 4 version:
Edit the /etc/pam.d/login file and add following line:
session required /lib/security/pam_limits.so
For RedHat (OEL, Centos) 5 version:
Edit the /etc/pam.d/login file and add following line:
session required pam_limits.so
Edit the /etc/security/limits.conf file and add following lines:
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
3. Creating oracle directories
# mkdir /opt/oracle
# mkdir /opt/oracle/111
# chown -R oracle:dba /opt/oracle
4. Setting Oracle Enviroment
Edit the /home/oracle/.bash_profile file and add following lines:
ORACLE_BASE=/opt/oracle
ORACLE_HOME=$ORACLE_BASE/111
ORACLE_SID=ORCL
LD_LIBRARY_PATH=$ORACLE_HOME/lib
PATH=$PATH:$ORACLE_HOME/bin
export ORACLE_BASE ORACLE_HOME ORACLE_SID LD_LIBRARY_PATH PATH
Save the .bash_profile and execute following commands for load new enviroment:
cd /home/oracle
. .bash_profile
1. Download and install required .rpm packages
Some additional packages are required for succesful instalation of Oracle software.
To check wheter required packages are installed on your operating system use following command:
rpm -q binutils elfutils elfutils-libelf gcc gcc-c++ glibc glibc-common
glibc-devel compat-libstdc++-33 cpp make compat-db sysstat libaio
libaio-devel unixODBC unixODBC-devel|sort
If some package is not installed then install it from installation media or download it from following locations:
RedHat Enterprise Linux 4
- source packages only
RedHat Enterprise Linux 5
- source packages only
Centos Linux 4
Centos Linux 5
This is example how to build RPM package from source package (libaio-0.3.105-2.src.rpm).
Note gcc, make and rpm-build (and dependent) packages must be already installed on your system.
# rpm -ivh libaio-0.3.105-2.src.rpm
# cd /usr/src/redhat/SPECS/
# rpmbuild --target i386 libaio.spec
# cd ../RPMS/i386/
# rpm -ivh libaio-0.3.105-2.i386.rpm libaio-devel-0.3.105-2.i386.rpm
Install the required packages using the rpm command:
rpm -ivh <package_name>
.rpm
2. Download the Oracle 11g release 1 (11.1.0.6.0) software from Oracle website
.
Extract the files using following command:
unzip linux_11gR1_database.zip
3. Start the Oracle software installation process.
Now the system is prepared for Oracle software installation.
To start the installation process execute the following commands:
cd database
./runInstaller
1. (Optional) Auto Startup and Shutdown of Database and Listener
Login as root and modify /etc/oratab file and change last character to Y for apropriate database.
ORCL:/opt/oracle/111:Y
As root user create new file "oracle" (init script for startup and
shutdown the database) in /etc/init.d/ directory with following content:
#!/bin/bash
#
# oracle Init file for starting and stopping
# Oracle Database. Script is valid for 10g and 11g versions.
#
# chkconfig: 35 80 30
# description: Oracle Database startup script
# Source function library.
. /etc/rc.d/init.d/functions
ORACLE_OWNER="oracle"
ORACLE_HOME="/opt/oracle/111"
case "$1" in
start)
echo -n $"Starting Oracle DB:"
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/dbstart $ORACLE_HOME"
echo "OK"
;;
stop)
echo -n $"Stopping Oracle DB:"
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/dbshut $ORACLE_HOME"
echo "OK"
;;
*)
echo $"Usage: $0 {start|stop}"
esac
Execute (as root) following commands (First script change the
permissions, second script is configuring execution for specific
runlevels):
chmod 750 /etc/init.d/oracle
chkconfig --add oracle --level 0356
2. (Optional) Auto Startup and Shutdown of Enterprise Manager Database Control
As root user create new file "oraemctl" (init script for startup and
shutdown EM DB Console) in /etc/init.d/ directory with following
content:
#!/bin/bash
#
# oraemctl Starting and stopping Oracle Enterprise Manager Database Control.
# Script is valid for 10g and 11g versions.
#
# chkconfig: 35 80 30
# description: Enterprise Manager DB Control startup script
# Source function library.
. /etc/rc.d/init.d/functions
ORACLE_OWNER="oracle"
ORACLE_HOME="/opt/oracle/111"
case "$1" in
start)
echo -n $"Starting Oracle EM DB Console:"
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/emctl start dbconsole"
echo "OK"
;;
stop)
echo -n $"Stopping Oracle EM DB Console:"
su - $ORACLE_OWNER -c "$ORACLE_HOME/bin/emctl stop dbconsole"
echo "OK"
;;
*)
echo $"Usage: $0 {start|stop}"
esac
Execute (as root) following commands (First script change the
permissions, second script is configuring execution for specific
runlevels):
chmod 750 /etc/init.d/oraemctl
chkconfig --add oraemctl --level 0356
3. (Optional) You may consider to use rlwrap for comfortable work with sqlplus and adrci utility.
RPM package for RedHat compatible (x86) distribution you can download here
.
su -
# rpm -ivh rlwrap-0.24-rh.i386.rpm
# exit
echo "alias sqlplus='rlwrap sqlplus'" >> /home/oracle/.bash_profile
echo "alias adrci='rlwrap adrci'" >> /home/oracle/.bash_profile
. /home/oracle/.bash_profile
DISPLAY not set. Please set the DISPLAY and try again.
Solution: Execute "export DISPLAY=:0.0" when you perform installation on local machine or "export DISPLAY=:0.0
when you perform installation on remote machine connected over SSH".
Don't forget to execute "xhost +" command on client machine.
error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory
Solution: Install libaio and libaio-devel packages. If packages already
installed and error still occurs try execute "ldconfig" as root.
Check complete. The overall result of this check is: Failed <<<<
分享到:
相关推荐
标题提到的"redhat 安装oracle 11g R2 需要的包"是指在Linux环境中安装Oracle数据库时,必须准备的一些关键依赖。这些包并非标准安装过程中自动提供的,而是针对Oracle 11g R2特定的,有时可能会遇到一些坑,需要...
Oracle 11g 在 Redhat 6.5 上的安装和配置 Oracle 11g 是一种关系型数据库管理系统,广泛应用于企业级应用中。为了在 Redhat 6.5 操作系统上安装和配置 Oracle 11g,需要进行以下步骤。 服务器配置 在安装 ...
RedHat7.6操作系统环境下安装Oracle 11g R2数据库的详细步骤和关键知识点如下: 一、OS环境准备: 1. 配置本地yum源: - 创建本地yum源配置文件`redhat-base.repo`。 - 指定本地安装介质的路径,并设置为yum源。 ...
RedHat6.8安装oracle11g RAC 完整安装步骤,虚拟机上安装验证过
由于自己在找这些rpm的时候花费了挺多时间的,在此作个资源,为大家节省一些时间。redhat6.6安装oracle11g所需全部rpm
- 为了顺利安装Oracle 11g R2,临时修改`/etc/redhat-release`文件中的版本信息为: ``` Red Hat Enterprise Linux Server release 5.0 (Tikanga) ``` - 安装完成后记得将其改回原始值。 **步骤7:创建安装路径...
### RedHat下安装Oracle11g详细步骤 #### 一、环境准备 ##### 1.1 系统配置要求 为了确保Oracle 11g在Red Hat 6.1上能够顺利安装并运行,需要满足一定的硬件及软件配置条件: - **内存要求**:至少需要2GB内存,...
本资料通过本人研究很久实验的结果,希望能对大家有所帮助
描述:本文将根据作者的实际安装经验,提供一步步的安装指导,旨在帮助读者顺利地安装 Oracle 11g 在 Redhat 5 操作系统下。 标签:Linux Redhat5 Oracle 安装 VMware 安装 Oracle 11g 需要满足一定的系统需求,...
总结来说,"redhat安装oracle11G 创建ASM磁盘套件包"涉及到的关键知识点包括Oracle 11g的安装、ASM的原理与配置、磁盘管理以及数据库实例的创建。在实践中,需要对Linux系统管理、Oracle数据库原理有深入了解,同时...
"redhat7安装oracle11gR2之动手安装" 本篇文章将详细介绍如何在Red Hat 7操作系统上安装Oracle 11g R2数据库。作为一个数据库管理员,了解如何安装和配置Oracle数据库是非常重要的。本篇文章将通过详细的步骤和截图...
本文旨在提供一个详尽的指南,帮助读者在 Redhat 6.9 操作系统上成功安装 Oracle 11g R2 数据库。此文档将覆盖从系统准备到最终配置的所有必要步骤,包括对硬件需求、软件依赖以及关键配置参数的详细介绍。 #### 二...
在本教程中,我们将详细探讨如何在Red Hat Enterprise Linux 5.5(RHEL 5.5)上使用VirtualBox虚拟机安装Oracle 11g Release 2(11.2 64位)Real Application Clusters(RAC)。RAC是一种高可用性解决方案,允许...
Linux安装oracle11gR2必须的安装包: compat-libstdc++-33-3.2.3-47.3.i386.rpm; elfutils-libelf-devel-0.97.1-5.i386.rpm; gcc-c++-3.4.6-3.i386.rpm; libaio-0.3.105-2.i386.rpm.tar.rpm; libaio-devel-0.3.106-5....
Linux RedHat 6.8 中安装 Oracle 11g 的详细步骤 本文档将介绍在 Linux RedHat 6.8 中安装 Oracle 11g 的详细步骤,该步骤经过了多次测试,确保安装的成功。 一、安装依赖包 在安装 Oracle 11g 之前,需要安装...
这个是在REDHAT 企业版中安装ORACLE11G 所必须的一些RPM包,没有它就安装不了ORACLE 11G
redhat6.4安装oracle 11g 详细介绍oracle安装过程
在Red Hat Enterprise Linux 5(简称RHEL5)操作系统上安装Oracle 11g是一项复杂的任务,涉及到多个步骤和注意事项。以下是一个详细的安装过程概述,旨在帮助你克服资源不足的问题。 1. **系统准备**: - **硬件...
### RedHat6上安装Oracle11g的详细步骤 #### 一、系统环境配置 为了确保Oracle11g能够在RedHat6系统上顺利运行,首先需要对系统进行一系列的优化设置。 1. **修改内核参数**:通过编辑`/etc/sysctl.conf`文件来...
### Linux Redhat 5.5 Oracle 11g 安装详解 #### 一、环境需求与准备 根据所提供的信息,我们首先明确一下在Linux Redhat 5.5上安装Oracle 11g的一些基本环境需求及准备工作: 1. **硬件配置**: - 内存:建议...