`
hl8189
  • 浏览: 5823 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Install 11g oracle on linux

阅读更多

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

5. Download & Install
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

Note:If it don't open X-window,there may be something wrong on the xauth setting. list the root xauth setting and add the xauth setting to the oracle user.

[root@localhost oracle]# xauth
Using authority file /root/.Xauthority
xauth> list
localhost.localdomain/unix:12  MIT-MAGIC-COOKIE-1  159b05bdace313ae273355f2d3e336aa
localhost.localdomain/unix:10  MIT-MAGIC-COOKIE-1  6f089e2055aefa800dbcdbacd0821d65
localhost.localdomain/unix:11  MIT-MAGIC-COOKIE-1  e453959bfabbeff89eacfed6553b4042

add to oracle

[oracle@localhost ~]$ xauth
Using authority file /home/oracle/.Xauthority
xauth> add localhost.localdomain/unix:12  MIT-MAGIC-COOKIE-1  159b05bdace313ae273355f2d3e336aa

4. after intallation the database created,we will use sqlplus to access to the oracle.

It may trigger an problem like 'cannot restore segment prot after reloc'

we can use the cmd to resolve the issue. chcon -t texrel_shlib_t   /usr/local/rsi/idl_6.1/bin/bin.linux.x86/*.so

 

分享到:
评论

相关推荐

    install Oracle 11G on Oracle Enterprise Linux 7

    在本文中,我们将详细介绍如何在Oracle Enterprise Linux 7 (OEL7)上安装Oracle 11G数据库。首先,确保你已经安装了Oracle Linux 7,因为这是安装Oracle 11G的前提。如果你还没有安装,可以参考"Install Oracle ...

    Installing Oracle Database 11g on Linux

    在本文中,我们将深入探讨如何在Linux环境下安装Oracle Database 11g,这是一个重要的数据库管理系统,广泛用于企业级数据存储和处理。Oracle 11g提供了高性能、高可用性和安全性,使其成为许多组织的核心数据库解决...

    Oracle Database 11g Release 2 (11.2.0.3) RAC On Oracle Linux 6

    Oracle Database 11g Release 2 (11.2.0.3) RAC On Oracle Linux 6.3 Using VirtualBox This article describes the installation of Oracle Database 11g release 2 (11.2.0.3 64-bit) RAC on Linux (Oracle Linux ...

    oracle 11.2 install on linux

    oracle 11.2 install on linux

    oracle 11g rac install on linux with virtualbox

    ### Oracle 11g RAC 安装在 Linux 上使用 VirtualBox 的详细步骤与注意事项 #### 前言 Oracle Real Application Clusters (RAC) 是一种多节点集群数据库解决方案,能够提供高可用性和可扩展性。在本篇文档中,我们...

    install oracle10g on linux

    ### 安装Oracle 10g于Linux x86系统详解 #### 一、概述 在企业级数据库管理系统中,Oracle Database一直占据着举足轻重的地位。Oracle 10g(10g代表“Grid”)是Oracle公司发布的一个重要版本,它引入了许多新特性...

    Install Oracle RAC 10g on Oracle Enterprise Linux Using VMware

    安装和配置Oracle RAC 10g on Oracle Enterprise Linux Using VMware的过程涉及多个关键步骤: #### 1. 硬件需求和概述 首先,需要明确硬件要求,包括足够的CPU、内存和存储空间,以及网络配置,确保虚拟机之间...

    oracle11安装配置向导手册(Oracle Goldengate 11g Install and Setup Guide)

    Oracle Goldengate 11g是Oracle公司提供的一种数据复制软件,主要用于实现不同数据库系统之间的数据同步,支持实时数据集成和变更数据捕获。在Oracle数据库环境中,Goldengate广泛应用于数据迁移、灾难恢复、实时...

    oracle21c RAC install on linux 8.4.pdf

    oracle21c RAC install on linux 8.4.pdf

    oracle9204 install on linux

    详细介绍linux上oracle得安装,详细得就像唐僧………… 专业得安装文档。

    Install_Oracle9204_on_CentOS4.2

    【标题】"Install_Oracle9204_on_CentOS4.2" 指的是在 CentOS 4.2 操作系统上安装 Oracle 9i Release 2 (9.2.0.4) 数据库的过程。Oracle 9i 是 Oracle 公司在 2001 年发布的数据库产品,它提供了数据存储、管理和...

    Oracle 10g Rac Install on Linux

    在Linux环境下安装Oracle 10g RAC,需要进行一系列的准备工作和配置步骤。 ### 系统要求 #### 操作系统 在安装Oracle 10g RAC之前,首先要确保操作系统兼容。Oracle 10g RAC支持多种Linux发行版,如Red Hat ...

    Oracle Database 11g Release 2 Installation On Oracle Linux 6

    Oracle Database 11g Release 2 (11.2) 的安装在 Oracle Linux 6 (64-bit) 上是一项关键任务,尤其对于那些依赖于稳定、高性能数据库的企业来说。本指南将详细介绍安装过程,包括所需的软件包、系统配置以及安装步骤...

    install_oracle10g_on_linuxAS4

    在本篇内容中,我们将深入探讨如何在Linux AS4环境下安装Oracle 10g数据库,这一过程涵盖了从系统检查到软件包安装的各个关键步骤。 ### 一、系统准备与检查 #### 1.1 查看内核版本 在安装Oracle 10g之前,首先...

    Install_Oracle_RAC_10_g_on_Oracle_Enterprise_Linux

    在IT领域,尤其是在数据库管理和企业级软件部署方面,Oracle Real Application Clusters (RAC) 10g在Oracle Enterprise Linux上的安装与配置是一项关键技能。本文将深入探讨如何使用VMware Server在Oracle ...

    oracle 19c rac install on linux7.pdf

    在 Linux 7 上安装 Oracle 19c RAC 需要一系列的系统配置和软件包安装。以下是详细步骤和涉及的知识点: 1. **系统准备**: - **关闭防火墙和 SELinux**:Oracle RAC 安装通常需要开放多个端口以实现节点间的通信...

    oracle Install Guide on Red Hat Linux

    Oracle在Red Hat Linux上的安装指南提供了详细的步骤,确保在该操作系统上成功安装Oracle数据库。以下是一些关键知识点的详细说明: 1. **硬件配置检查**: - **Swap Space**:Oracle建议根据物理RAM的大小设置...

    Oracle11g RPM linux

    总之,安装Oracle 11g RPM on Linux涉及多个步骤,包括系统准备、RPM包安装、环境配置、数据库创建、安全性和性能优化等。理解并掌握这些知识点对于成功部署和管理Oracle数据库至关重要。在实际操作中,务必遵循官方...

Global site tag (gtag.js) - Google Analytics