`
Juizes361
  • 浏览: 7008 次
  • 性别: Icon_minigender_1
  • 来自: 杭州
最近访客 更多访客>>
社区版块
存档分类
最新评论

CentOS 5.5安装Oracle 10gR2

阅读更多

1. 用Root用户登录系统

2. 检查Oracle安装依赖的软件包

 binutils-2.17.50.0.6-14.el5.i386.rpm
 compat-db-4.2.52-5.1.i386.rpm
 compat-libstdc++-33-3.2.3-61.i386.rpm
 gcc-4.1.2-48.el5.i386.rpm
 gcc-c++-4.1.2-48.el5.i386.rpm
 gd-2.0.33-9.4.el5_4.2.i386.rpm
 gdb-7.0.1-23.el5.i386.rpm
 gd-progs-2.0.33-9.4.el5_4.2.i386.rpm
 glibc-2.5-49.i686.rpm
 glibc-common-2.5-49.i386.rpm
 glibc-devel-2.5-49.i386.rpm
 glibc-headers-2.5-49.i386.rpm
 glibc-utils-2.5-49.i386.rpm
 libaio-0.3.106-5.i386.rpm
 libstdc++-4.1.2-48.el5.i386.rpm
 libstdc++-devel-4.1.2-48.el5.i386.rpm
 libXp-1.0.0-8.1.el5.i386.rpm
 make-3.81-3.el5.i386.rpm
 openmotif-2.3.1-2.el5_4.1.i386.rpm
 setarch-2.0-1.1.i386.rpm
 sysstat-7.0.2-3.el5.i386.rpm
 

3. 创建需要的用户组及用户

# groupadd dba
# groupadd oinstall
# useradd -g oinstall -G dba -d /home/oracle oracle
# passwd oracle
  

4. 配置内核参数

  修改:/etc/sysctl.conf 文件

 # shmall - maximum number of shared memory pages. If you set it to too low value can slowdown any program usng shared memory
 # shmmax - maximum size of shared memory segment that can be allocated in the memory. For servers with lots of memory can be increased to 80% of memory to avoid shared memory fragmentation
 # shmmni - maximum number of segments. It's good idea to change it only by vendor recommendation 
 kernel.shmall = 2097152
 kernel.shmmax = 2147483648
 kernel.shmmni = 4096

 # semaphores: semmsl, semmns, semopm, semmni
 # semmsl - maximum number of semaphores per semaphore identifier. Very big number will eat memory not used later
 # semmns - maximum number of semaphores in the system. Size it carefully because of above reason
 # semopm - Define maximum number of semaphore operations per system call
 # semmni ¨C maximum number of semaphore identifier. Do not increase it over needed limit, because of waste of memory
 kernel.sem = 250 32000 100 128

 # the maximum number of file handles
 fs.file-max = 65536

 # ip_local_port_range - define full range of local ports in Linux, normally upper limit is 32000
 # rmem_default - Default Receive Window
 # rmem_max Maximum - Receive Window
 # wmem_default - Default Send Window
 # wmem_max - Maximum Send Window 
 net.ipv4.ip_local_port_range = 1024 65000
 net.core.rmem_default = 1048576
 net.core.rmem_max = 1048576
 net.core.wmem_default = 262144
 net.core.wmem_max = 262144
 

5. 为oracle用户提高shell限额,配置环境变量
To improve the performance of the software on Linux systems, you must increase the following shell limits for the oracle user:

nofile - Maximum number of open file descriptors
nproc  - Maximum number of processes available to a single user

  5.1 修改/etc/security/limits.conf 文件:

 

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

  5.2 修改/etc/pam.d/login文件:

 session    required     /lib/security/pam_limits.so
 session    required     pam_limits.so
 

  5.3 修改/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
 

  5.4 修改/etc/oratab文件

 

 #oradb:/opt/oracle/product/10.2.0/db_1:N
 oradb:/opt/oracle/product/10.2.0/db_1:Y
 

  5.5 设置bash下环境变量,修改 .bash_profile文件

 

 ORACLE_BASE=/opt/oracle; export ORACLE_BASE
 ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
 ORACLE_SID=oradb; export ORACLE_SID
 PATH=$ORACLE_HOME/bin:/usr/sbin:$PATH; export PATH
 LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
 

6. 解压oracle安装文件 ./runInstaller,根据提示开始安装


7. 将Oracle设为系统服务,并开机自启动

  7.1 编写 /etc/init.d/oracle脚本

 

#!/bin/bash
 #description:starts the oracle database deamons

 ORA_HOME="/opt/oracle/product/10.2.0/db_1"
 ORA_OWNER="oracle"
 case $1 in

 'start')
 echo -n "***Starting Oracle***"
 su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl start"
 su - $ORA_OWNER -c "$ORA_HOME/bin/dbstart"
 ;;

 'stop')
 echo -n "***Stopping Oracle***"
 su - $ORA_OWNER -c "$ORA_HOME/bin/lsnrctl stop"
 su - $ORA_OWNER -c "$ORA_HOME/bin/dbshut"
 ;;

 'restart')
 echo -n "***Restarting Oracle***"
 $0 stop
 $0 start
 ;;

 'isqlstart')
 echo "***Starting Oracle iSQL PLus***"
 su - $ORA_OWNER -c "$ORA_HOME/bin/isqlplusctl start"
 echo "*** Note:You can access service at url:http://$(hostname):5560/isqlplus"
 ;;

 'isqlstop')
 echo "***Stopping Oracle iSQL Plus***"
 su - $ORA_OWNER -c "$ORA_HOME/bin/isqlplusctl stop"
 ;;

 'emstart')
 echo "***Starting Oracle Enterprise Manager 10g Database control***"
 su - $ORA_OWNER -c "$ORA_HOME/bin/emctl start dbconsole"
 echo "Note:You can access service as url:http://$(hostname):1158/em"
 ;;

 'emstop')
 echo "***Stopping Oracle Enterprise Manager 10g Database control***"
 su - $ORA_OWNER -c "ORA_HOME/bin/emctl stop dbconsole"
 ;;

 '*')
 echo "Usage:$0 {start|stop|isqlstart|isqlstop|emstart|emstop}"
 exit 1

 esac
 exit 0
 

   7.2 设置Oracle服务开机启动

 

#chkconfig oracle on

 

 

 

分享到:
评论

相关推荐

    在VMWare ESX4 /Sever 2中以 CentOS5.5安装Oracle 11gR2 RAC.rar

    提供的“在VMWare ESX4 Sever 2中以 CentOS5.5安装Oracle 11g R2 RAC.doc”文档很可能是作者的详细安装步骤记录,包含了具体操作、注意事项和可能遇到的问题解决方案。在实际操作时,应仔细遵循这些步骤,并参考官方...

    Centos5.5+oracle11gR2_database--installation-step-by-step.rar

    这个压缩包"Centos5.5+oracle11gR2_database--installation-step-by-step.rar"显然包含了在CentOS 5.5版本上安装Oracle 11g R2数据库的详细步骤。Oracle 11g R2是Oracle数据库的一个重要版本,提供了许多增强功能和...

    在VMWare ESX4Sever 2中以 CentOS5.5安装Oracle 11g R2 RAC

    自己写的安装手记,应该无问题的,大家试着用吧,我自己安装过3次了

    CentOS下Oracle10gR2之静默安装+手工建库.docx

    * ORACLE_HOME = "/opt/oracle10gr2/db_1" * ORACLE_HOME_NAME = "OraDb10g_home1" * SELECTED_LANGUAGES = {"en","zh_CN","zh_TW"} * COMPONENT_LANGUAGES = {"en","zh_CN","zh_TW"} * INSTALL_TYPE = "EE" * s_...

    oracle_11gR22

    这篇内容我们将深入探讨 Oracle 11gR2 的关键特性、安装过程以及与 CentOS 5.5 操作系统的整合。 首先,Oracle 11gR2 强调了高性能,通过引入并行执行改进、高速缓存融合和高级压缩等技术,提高了数据处理的速度。...

    Oracle11gR2 部署手册

    6. 安装Oracle11gR2: - 下载并解压Oracle数据库软件。 - 配置环境变量,如ORACLE_HOME、PATH、LD_LIBRARY_PATH等。 - 初始化数据库实例(DBCA)并创建数据库。 - 配置监听器(Listener.ora和tnsnames.ora)以使...

    oracle11g在centos上安装

    以下将详细介绍在CentOS 5.5上安装Oracle 11g所需的知识点: 1. **环境配置**: - 首先,确保你的虚拟机环境满足Oracle 11g的最低要求,即内存至少1GB,交换分区至少1.5倍物理内存,硬盘空间至少15GB。 - 使用...

    oracle11gr2 Linux安装说明

    在 Linux 操作系统上安装 Oracle 11gR2 需要遵循一系列步骤,确保系统满足必要的硬件和软件要求。以下是详细的安装过程: 1. **系统需求**: - **Linux 版本**:建议使用 Linux 5 以上的版本,如 CentOS 5.5 或更...

    Oracle11gR2数据库视频教程【15集】

    教程名称:Oracle 11g R2数据库视频教程【15集】教程目录:【】oracle_11gR2_01....本地安装.centos.5.5.linux.操作系统【】oracle_11gR2_03.下载.Orac 资源太大,传百度网盘了,链接在附件中,有需要的同学自取。

    [手工整理]208个Oracle安装文档,包含各个平台各个版本的单实例RAC以及DataGuard(1).xlsx

    5 ADG BLOG_Oracle_lhr_一步一步在RHEL6.5+VMware Workstation 10上搭建 oracle 11gR2 rac + dg 6 ADG Creating Standby Database with Grid Control-15 7 ADG data-guard-far-sync 8 ADG DataGuard环境搭建详细...

    oracle_11gR23

    提供的文件"下载 Oracle 11g R2 第二版,并在CentOS5.5 linux 上安装 - 01.avi"和"下载 Oracle 11g R2 第二版,并在CentOS5.5 linux 上安装 - 01.txt"可能分别包含了视频教程和安装过程的文字记录,可以作为实际操作...

    linux下安装oracle11g图文详解

    - 本文档基于CentOS 5.5 (内核版本2.6.18-194.el5) 进行安装。 3. **下载Oracle软件**: - 访问Oracle官方网站(https://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html)下载对应...

    linux下安装oracle 11G

    本文旨在为希望在 CentOS 5.5 系统上安装 Oracle 11G 数据库的用户提供一个详细的指南。文章将按照准备阶段、用户及权限配置、环境变量设置、软件包解压与安装等步骤进行详细介绍。 #### 一、准备工作 在开始安装...

    Linux下安装oracle11g.docx

    我们的Linux版本是CentOS5.5,内核版本是2.6.18-194.el5。为了确保安装的顺利进行,我们需要至少4.5G的硬盘空间,1G的内存和2G的swap空间。 下载Oracle安装包 首先,我们需要下载Oracle11g的安装包。我们可以从...

    linux下安装oracle

    本文档旨在详细介绍如何在 Linux 操作系统(本例中使用 CentOS 5.5)下安装 Oracle 11g 数据库。通过遵循本文档提供的步骤,您将能够顺利地在 Linux 环境下搭建 Oracle 数据库。 #### 二、准备工作 在开始安装之前...

    ORACLE11g安装用户手册

    通过以上步骤,您可以顺利完成 Oracle 11g 数据库在 Centos 5.5 上的安装与基本配置。在整个过程中,需要注意细节操作,确保每一步都正确无误地执行。此外,对于可能出现的问题(如缺少依赖包),也需要及时解决以...

Global site tag (gtag.js) - Google Analytics