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

red hat enterprise linux 5.2 install and startup oracle 10.2.0

阅读更多
d rhel5.2下安装ORACLE 10G
我的安装步骤参考了下面的方法,原文地址:http://www.oracle-base.com/articles/10g/OracleDB10gR2InstallationOnRHEL5.php

Oracle Database 10g Release 2 (10.2.0.1) Installation On Red Hat Enterprise Linux 5 (RHEL5)
In this article I'll describe the installation of Oracle Database 10g Release 2 (10.2.0.1) on Red Hat Enterprise Linux 5 (RHEL5). The article is based on a server installation similar to this, with a minimum of 2G swap, secure Linux disabled and the following package groups installed:

    * GNOME Desktop Environment
    * Editors
    * Graphical Internet
    * Text-based Internet
    * Development Libraries
    * Development Tools
    * Legacy Software Development
    * Server Configuration Tools
    * Administration Tools
    * Base
    * Legacy Software Support
    * System Tools
    * X Window System

Alternative installations may require more packages to be loaded, in addition to the ones listed below.

    * Download Software
    * Unpack Files
    * Hosts File
    * Set Kernel Parameters
    * Setup
    * Installation
    * Post Installation

Download Software
Download the following software:

    * Oracle Database 10g Release 2 (10.2.0.1) Software

Unpack Files
Unzip the files:

    unzip 10201_database_linux32.zip

You should now have a single directory containing installation files. Depending on the age of the download this may either be named "db/Disk1" or "database".
Hosts File
The /etc/hosts file must contain a fully qualified name for the server:

    <IP-address>  <fully-qualified-machine-name>  <machine-name>

Set Kernel Parameters
Add the following lines to the /etc/sysctl.conf file:

    #kernel.shmall = 2097152
    #kernel.shmmax = 2147483648
    kernel.shmmni = 4096
    # semaphores: semmsl, semmns, semopm, semmni
    kernel.sem = 250 32000 100 128
    #fs.file-max = 65536
    net.ipv4.ip_local_port_range = 1024 65000
    net.core.rmem_default=262144
    net.core.rmem_max=262144
    net.core.wmem_default=262144
    net.core.wmem_max=262144

Run the following command to change the current kernel parameters:

    /sbin/sysctl -p

Add the following lines to the /etc/security/limits.conf file:

    *               soft    nproc   2047
    *               hard    nproc   16384
    *               soft    nofile  1024
    *               hard    nofile  65536

Add the following line to the /etc/pam.d/login file, if it does not already exist:

    session    required     pam_limits.so

Disable secure linux by editing the /etc/selinux/config file, making sure the SELINUX flag is set as follows:

    SELINUX=disabled

Alternatively, this alteration can be done using the GUI tool (System > Administration > Security Level and Firewall). Click on the SELinux tab and disable the feature.
Setup
Install the following packages:

    # From RedHat AS5 Disk 1
    cd /media/cdrom/Server
    rpm -Uvh setarch-2*
    rpm -Uvh make-3*
    rpm -Uvh glibc-2*
    rpm -Uvh libaio-0*
    cd /
    eject

    # From RedHat AS5 Disk 2
    cd /media/cdrom/Server
    rpm -Uvh compat-libstdc++-33-3*
    rpm -Uvh compat-gcc-34-3*
    rpm -Uvh compat-gcc-34-c++-3*
    rpm -Uvh gcc-4*
    rpm -Uvh libXp-1*
    cd /
    eject

    # From RedHat AS5 Disk 3
    cd /media/cdrom/Server
    rpm -Uvh openmotif-2*
    rpm -Uvh compat-db-4*
    cd /
    eject

Create the new groups and users:

    groupadd oinstall
    groupadd dba
    groupadd oper

    useradd -g oinstall -G dba oracle
    passwd oracle

Create the directories in which the Oracle software will be installed:

    mkdir -p /u01/app/oracle/product/10.2.0/db_1
    chown -R oracle.oinstall /u01

Login as root and issue the following command:

    xhost +<machine-name>

Edit the /etc/redhat-release file replacing the current release information (Red Hat Enterprise Linux Server release 5 (Tikanga)) with the following:

    redhat-4

Login as the oracle user and add the following lines at the end of the .bash_profile file:

    # Oracle Settings
    TMP=/tmp; export TMP
    TMPDIR=$TMP; export TMPDIR

    ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE
    ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
    ORACLE_SID=TSH1; 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

    if [ $USER = "oracle" ]; then
      if [ $SHELL = "/bin/ksh" ]; then
        ulimit -p 16384
        ulimit -n 65536
      else
        ulimit -u 16384 -n 65536
      fi
    fi

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

    DISPLAY=<machine-name>:0.0; export DISPLAY

Start the Oracle Universal Installer (OUI) by issuing the following command in the database directory:

    ./runInstaller

During the installation enter the appropriate ORACLE_HOME and name then continue installation. For a more detailed look at the installation process, click on the links below to see screen shots of each stage.

   1. Select Installation Method
   2. Specify Inventory Directory and Credentials
   3. Select Installation Type
   4. Specify Home Details
   5. Product-Specific Prerequisite Checks
   6. Select Configuration Option
   7. Select Database Configuration
   8. Specify Database Configuration Options
   9. Select Database Management Option
  10. Specify Database Storage Option
  11. Specify Backup and Recovery Options
  12. Specify Database Schema Passwords
  13. Summary
  14. Install
  15. Configuration Assistants
  16. Database Configuration Assistant
  17. Database Configuration Assistant Password Management
  18. Execute Configuration Scripts
  19. End Of Installation

Post Installation
Edit the /etc/redhat-release file restoring the original release information:

    Red Hat Enterprise Linux Server release 5 (Tikanga)

Edit the /etc/oratab file setting the restart flag for each instance to 'Y':

    TSH1:/u01/app/oracle/product/10.2.0/db_1:Y

For more information see:

    * Installation Guide for Linux x86 (10.2)
    * Installing Oracle Database 10g Release 1 and 2...
    * Automating Database Startup and Shutdown on Linux

Hope this helps. Regards Tim...

Back to the Top.

安装的时候告诉我swap的大小不够,没有设置固定的IP。我的虚拟机分配了1G的内存(原来是只给了512M,所以安装的时候swap设置为1G)现在系统提示最好是1.6G
我没有理会上面一个错误和一个警告。安装完成后使用地址访问了isqlplus一切正常。没有使用自动启动。
关闭机器后启动ORACLE。
进入到/home/oracle/oracle/product/10.2.0/db_2(第一次没有装成功,因些这里变成2了)
一开如进入/home/oracle/oracle/product/10.2.0/db_2/bin
输入$./lsnrctl start
提示:ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracle
When using Oracle 10g Release 2, calling dbstart might result in the following error message:

    Failed to auto-start Oracle Net Listener using /ade/vikrkuma_new/oracle/bin/tnslsnr

This is due to a hard coded path in the dbstart script. To correct this, edit the "$ORACLE_HOME/bin/dbstart" script and replace the following line (approximately line 78):

    ORACLE_HOME_LISTNER=/ade/vikrkuma_new/oracle

With this:

    ORACLE_HOME_LISTNER=$ORACLE_HOME


The dbstart script shold now start the listener as expected.


$./dbstart
提示如下错误:
ORA-27101: shared memory realm does not exist

    Cause: Unable to locate shared memory realm

    Action: Verify that the realm is accessible

这是由于没有正确设置和ORACLE_HOME 和 ORACLE_SID引起的,于时按照上面方法设置了
$ORACLE_HOME=/home/oracle/oracle/product/10.2.0/db_2;export ORACLE_HOME
$ORACLE_SID=orcl;export ORACLE_SID

停止监听后./lsnrctl stop,运行了不起./dbshut
修改了$ORACLE_HOME/network/admin下面的tnsnames.ora原来IP为localhost.localdomain
我把它改为127.0.0.1
把listener.ora中做同样的修改。
$sqlplus connect sys/a00000@orcl as SYSDBA
提示Connected to an idle instance.
执行其它的SQL操作提示:
ORACLE IS NOT AVAILABLE
这时需要输入:
sql>startup
启动数据库实例



分享到:
评论

相关推荐

    Red Hat Enterprise Linux 5下安装Oracle 10g

    ### Red Hat Enterprise Linux 5 下安装 Oracle 10g 相关知识点 #### 一、准备工作 ##### 1.1 引言 本文档详细介绍了如何在 Red Hat Enterprise Linux 5 (RHEL 5) 上逐步安装 Oracle 10g 企业版。尽管官方文档...

    Red_Hat_Linux5.5下安装Oracle10g

    在Red Hat Linux 5.5环境下安装Oracle 10g是一项技术性的工作,涉及到操作系统配置、依赖库安装、用户权限设定以及数据库实例的创建等多个环节。以下是一个详细的步骤指南: 首先,确保你的Red Hat Linux 5.5系统...

    实验1 Red Hat Linux 9 安装

    【Red Hat Linux 9 安装详解】 Red Hat Linux 9是Red Hat公司于2003年发布的一款操作系统,它是Linux系统中的一个重要版本,以其稳定性、安全性以及强大的企业级功能而闻名。在这个实验中,我们将详细介绍如何进行...

    linux+apache+tomcat整合完整详解版(最新)

    Linux+Apache+Tomcat 的整合是目前最常用的 web 服务器架构之一,本文档将详细介绍如何在 Red Hat Enterprise Linux 5.2 环境下安装和配置 Apache2.2.12、Tomcat6.0.20 和 JDK6u16,以实现一个完整的 JSP 环境。...

    在Enterprise Linux5 上的安装Oracle11[1].1.6.rar

    Enterprise Linux 5,即Red Hat Enterprise Linux 5,是Oracle官方支持的操作系统版本之一。你需要确保你的系统是64位的,并且更新到最新的安全补丁。同时,硬件方面,推荐至少2GB内存,足够的硬盘空间,以及一个...

    Oracle 10g for LinuxAS5.2 X86-32安装文档

    Linux AS5.2(Advanced Server)是Red Hat Enterprise Linux 5的一个版本,它为Oracle数据库提供了一个稳定且高性能的运行环境。本文将详细介绍如何在Linux AS5.2 X86-32平台上安装Oracle 10g。 一、系统需求与准备...

    Red_Hat(LINUX)下JDK TOMCAT(x64)环境配置 自启动设置

    在本文中,我们将详细介绍如何在 Red Hat Enterprise Linux 4 (x86_64) 操作系统上安装并配置 JDK 1.6 和 Tomcat 6,以及如何设置它们为系统自启动服务。此过程适用于服务器管理员和技术人员,他们希望在 Red Hat ...

    linux-oracle-install.rar_Oracle 11G_oracle

    推荐使用Red Hat Enterprise Linux或CentOS操作系统,因为Oracle官方对这些发行版提供了全面支持。系统应至少有4GB内存和足够的磁盘空间,以容纳数据库文件和日志。 二、安装依赖包 Oracle 11g需要一系列依赖库才能...

    Linux下oracle启动和监听

    在 Linux 平台上安装 Oracle 之后,需要创建 Oracle 系统用户,并在 `/home/oracle` 下面的 `.bash_profile` 添加几个环境变量:`ORACLE_SID`, `ORACLE_BASE`, `ORACLE_HOME`。例如: `export ORACLE_SID=test` `...

    Red_Hat_Linux基本知识

    ### Red Hat Linux 基础知识 #### 一、安装 Red Hat Linux 1. **准备工作:** - **硬件检查与准备:** 在安装 Red Hat Linux 之前,首先需要确认计算机硬件是否支持运行该系统。这包括但不限于处理器类型、内存...

    Installing Oracle Database 11g on Linux

    通常,你需要一个64位的Linux发行版,如Red Hat Enterprise Linux (RHEL)或CentOS,以及足够的内存(推荐2GB以上)和磁盘空间。安装过程可能会涉及到多个软件包,包括开发工具、库和运行时环境。 1. **系统准备**:...

    linux下oracle的安装与配置

    在示例中,系统是基于`Linux localhost.localdomain 2.6.18-128.el5`,这是一个Red Hat Enterprise Linux 5 (RHEL5)的版本。对于Oracle的安装,确保你的系统满足Oracle的最低硬件和软件需求。 2. **软件依赖** - ...

    oracle 10G在linux安装

    将“Red Hat Enterprise Linux Server release 5.2 (Tikanga)”替换为“redhat-4”(将5替换为4)。 ##### 修改系统参数 为了更好地支持Oracle数据库的运行,需要调整系统内核参数: ```sh [root@database ~]# vi /...

    linux里面oracle做成服务的脚本方法

    这里我们将详细介绍如何在Linux AS5(Red Hat Enterprise Linux 5)上为Oracle 10g创建服务脚本。 首先,Oracle 10g在Linux上运行需要满足一些前提条件,比如安装Glibc、binutils、gcc等基础开发工具,以及kernel-...

    linux 下安装oracle10g

    1. 操作系统:Oracle 10g支持多种Linux发行版,如Red Hat Enterprise Linux或CentOS。 2. 内存:至少1GB,推荐2GB以上,以确保数据库运行流畅。 3. 硬盘空间:根据数据库大小和用途,预留足够的磁盘空间,通常至少...

    LINUX下安装ORACLE 10G步骤详解

    1. 系统版本:Oracle 10g通常在Red Hat Enterprise Linux (RHEL)或CentOS上运行,推荐使用RHEL 5.x或CentOS 5.x系列。 2. 操作系统用户:创建一个名为`oracle`的用户,并将其添加到`dba`和`oinstall`组。 3. 硬件...

    Oracle10g(10.2.0.1)在Linux RedHat EnterPrise5上安装.pdf

    本文档旨在详细介绍如何在Linux Red Hat Enterprise 5操作系统上安装Oracle 10g(10.2.0.1)数据库。通过此文档,即使是初次接触Oracle数据库系统的用户也能顺利完成安装过程。安装步骤基于实际操作经验,并参考了多...

    linux 手动建oracle数据库

    在开始构建Oracle 11g数据库之前,确保已经在Red Hat Enterprise Linux 5.4.32环境下正确安装了Oracle软件。安装过程中应当设置`ORACLE_BASE`和`ORACLE_SID`两个重要的环境变量,这两个变量对于后续数据库的正常运行...

Global site tag (gtag.js) - Google Analytics