linux 安装 oracle

linux 版本:centos 5.5  32位

oracle : linux_11gR2_database_1和2

使用图形界面安装

安装oracle 11g依赖的组件包

  需要安装:binutils  /  compat-libstdc++ / elfutils-libelf / elfutils-libelf-devel / elfutils-libelf-devel-static  / gcc / gcc-c++ / glibc /  glibc-common  / glibc-devel / glibc-headers  / kernel-headers / ksh /  libaio  / libaio-devel / libgcc / libgomp / libstdc++ / libstdc++-devel  / make / numactl-devel / sysstat / unixODBC / unixODBC-devel

  1.通过rpm -qa | grep 名字 去逐个寻找文件,看是否存在,如果不存在 到 xx.iso\Centos路径寻找 rpm 文件 ,上传至服务器,解压(rpm -ivh *.rpm)

  2.通过yum -y(-y(当安装过程提示选择全部为"yes"))

      yum -y install binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel glibc glibc-common glibc-devel gcc gcc-c++ libaio-devel libaio libgcc libstdc++ libstdc++-    devel make sysstat unixODBC unixODBC-devel pdksh numactl-devel glibc-headers

  3.我通过yum安装显示下载的文件

  Downloading Packages:
      (1/25): libaio-devel-0.3.106-5.i386.rpm                                                                                                                             
      (2/25): numactl-devel-0.9.8-12.el5_6.i386.rpm                                                                                                                       
      (3/25): elfutils-libelf-devel-0.137-3.el5.i386.rpm                                                                                                                       
      (4/25): numactl-0.9.8-12.el5_6.i386.rpm                                                                                                                              
      (5/25): elfutils-libelf-devel-static-0.137-3.el5.i386.rpm                                                                                                                
      (6/25): libgomp-4.4.7-1.el5.i386.rpm                                                                                                                                   
      (7/25): libgcc-4.1.2-55.el5.i386.rpm                                                                                                                                    
      (8/25): nscd-2.5-123.el5_11.3.i386.rpm                                                                                                                               
      (9/25): sysstat-7.0.2-13.el5.i386.rpm                                                                                                                                  
      (10/25): pdksh-5.2.14-37.el5_8.1.i386.rpm                                                                                                                            
      (11/25): compat-libstdc++-33-3.2.3-61.i386.rpm                                                                                                                          
      (12/25): unixODBC-2.2.11-10.el5.i386.rpm                                                                                                                             
          http://mirror.lzu.edu.cn/centos/5.11/os/i386/CentOS/unixODBC-2.2.11-10.el5.i386.rpm: [Errno 4] Socket Error: (104, ‘Connection reset by peer‘)
      Trying other mirror.
      (12/25): unixODBC-2.2.11-10.el5.i386.rpm                                                                                                                                 
      (13/25): libstdc++-4.1.2-55.el5.i386.rpm                                                                                                                             
      (14/25): unixODBC-libs-2.2.11-10.el5.i386.rpm                                                                                                                            
      (15/25): glibc-headers-2.5-123.el5_11.3.i386.rpm                                                                                                                     
      (16/25): unixODBC-devel-2.2.11-10.el5.i386.rpm                                                                                                                        
      (17/25): kernel-headers-2.6.18-419.el5.i386.rpm                                                                                                                      
      (18/25): glibc-devel-2.5-123.el5_11.3.i386.rpm                                                                                                                            
      (19/25): cpp-4.1.2-55.el5.i386.rpm                                                                                                                                   
      (20/25): libstdc++-devel-4.1.2-55.el5.i386.rpm                                                                                                                            
      (21/25): binutils-2.17.50.0.6-26.el5.i386.rpm                                                                                                                        
      (22/25): gcc-c++-4.1.2-55.el5.i386.rpm                                                                                                                                   
      (23/25): gcc-4.1.2-55.el5.i386.rpm                                                                                                                                   
      (24/25): glibc-2.5-123.el5_11.3.i686.rpm                                                                                                                                
      (25/25): glibc-common-2.5-123.el5_11.3.i386.rpm

  4.创建文件等;
     root用户下:
    groupadd oinstall
    groupadd dba
    mkdir -p /u01/oracle
    useradd -g oinstall -G dba -d /u01/oracle oracle
    cp /etc/skel/.bash_profile /u01/oracle
    cp /etc/skel/.bashrc /u01/oracle
    cp /etc/skel/.bash_logout /u01/oracle
    passwd oracle  密码123456
    chown -R oracle:oinstall u01
    检查 nobody 是否存在 ,  id nobody(缺省存在的。如果不存在 # /usr/sbin/useradd -g nobody)
    vi /etc/sysctl.conf
      fs.aio-max-nr = 1048576
      fs.file-max = 6815744
      kernel.shmall = 2097152
      kernel.shmmax = 536870912
      kernel.shmmni = 4096
      kernel.sem = 250 32000 100 128
      net.ipv4.ip_local_port_range = 9000 65500
      net.core.rmem_default = 262144
      net.core.rmem_max = 4194304
      net.core.wmem_default = 262144
      net.core.wmem_max = 1048586  
    vi /etc/security/limits.conf
      oracle           soft    nproc   2047
      oracle           hard    nproc   16384
      oracle           soft    nofile  1024
      oracle           hard    nofile  65536
 
    vi /etc/pam.d/login
      session    required     pam_limits.so
 
    设置oracle 用户环境变量
     切换oracle
      su - oracle
      pwd
      ls -la
    vi .bash_profile
      ORACLE_BASE=/u01
      ORACLE_HOME=$ORACLE_BASE/oracle
      ORACLE_SID=wilson
      PATH=$ORACLE_HOME/bin:$PATH:$HOME/bin
      export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
    切换到root用户(将解压的oracle.zip datebase)
      mv database /u01/
      cd /u01
      chown -R oracle:oinstall database/

  5.使用oracle账号 登陆图形界面

    cd /u01/database
    ./runInstaller

  。。。剩余就是正常安装oracle

  

时间: 04-01

linux 安装 oracle的相关文章

Linux安装Oracle报Checking operating system version must be redhat-3, SuSE-9, redhat-4

解决办法:vi /xx/database/install/oraparam.ini 找到[Certified Versions] Linux=redhat-3,SuSe-9,redhat-4,后面加上redhat-5保存并退出即可.如图: Linux安装Oracle报Checking operating system version must be redhat-3, SuSE-9, redhat-4,布布扣,bubuko.com Linux安装Oracle报Checking operating

Linux安装Oracle 11G过程(测试未写完)

一.简介 Oracle数据库在系统运维中的重要性不言而喻,通过熟悉Oracle的安装来加深对操作系统和数据库知识的了解.Linux安装Oracle前期修改linux内核参数很重要,其实就是linux下的对Oracle数据库配置的过程.(很重要,如何不配置完全在后期安装过程中会报错的) 安装测试的环境如下: 操作系统:CentOS 6.5 X64 数据库:OracleDatabase 11g Release 2 (11.2.0.1.0) for Linux x86-64 简易过程: 1. 安装需要

Linux安装Oracle JDK替换OpenJDK详解

Linux安装Oracle JDK替换OpenJDK详解 作者:旸仔发表于:2013-3-11分类:Linux 众所周知,由于Oracle公司的JDK的版权问题,大多数Linux发行版在安装时都会附带开源的无版权问题的OpenJDK,以支持某些 java程序软件.但是如果我们在Linux下做一些java语言的开发,很可能还是需要安装和使用Oracle公司的原版JDK(以下简称 “JDK”).如何安装JDK并替换掉OpenJDK呢?今天旸仔做一个详细的解答: 毋庸置疑,如果一个系统内同时存在一个以

RedHat5.5_X64 Linux安装oracle 11.2.0.3 报错

REDHAT linux 安装 11G  11.2.0.3   报错 oracle用户执行./runinstaller后 直接报错 查看日志后 [[email protected] OraInstall2012-06-29_12-08-50AM]# more installActions2012-06-29_12-08-50AM.log  SEVERE: [FATAL] HXZG: HXZG. Refer associated stacktrace #oracle.install.commons

linux 安装oracle 11g

安装环境 Linux服务器:SuSe10 sp2 64位 Oracle服务器:Oracle11gR2 64位 系统要求 Linux安装Oracle系统要求 系统要求 说明 内存 必须高于1G的物理内存 交换空间 一般为内存的2倍,例如:1G的内存可以设置swap 分区为3G大小 硬盘 5G以上 2.修改操作系统核心参数 在Root用户下执行以下步骤: 1)修改用户的SHELL的限制,修改/etc/security/limits.conf文件 输入命令:vi /etc/security/limit

linux安装oracle笔记

linux安装oracle 1.增大swap空间,内存大于8G后swap跟内存同等大小即可 mkdir /home/swap cd /home/swap dd if=/dev/zero of=swapfile bs=1G count=31 mkswap swapfile swapon swapfile #增加到swap分区(31G + 31G = 62G) #设置开机自动添加swapfile vi /etc/fstab: /home/swap/swapfile swap defaults 0 0

linux安装Oracle中文乱码问题汇总

解决oracle中文显示乱码有三层地方需要调整或者修改 第一层:操作系统层 1.首先查看linux是否有安装中文字符集, locale -a 2.设置用户的中文字符集 查看到linux安装了中文字符集,那么oracle用户下面要设置中文字符集 vi /etc/locale.conf # centos7是这个配置文件,有的linux是这个配置文件/etc/sysconfig/i18n LANG="zh_CN.UTF-8" 上面的那种方法设置完后,系统所有用户的字符集都是UTF-8.也可以

linux安装oracle 11g rac

安装oracle 11gR2 RAC 一.网络规划及安装虚拟主机 主机名 主机版本 Ip rac1.localdomain Redhat 6.5 RAC节点1 192.168.100.11 rac2.localdomain Redhat 6.5 RAC节点2 192.168.100.12 Loaclhost.localdomain Redhat 5.8 DNS服务器 192.168.100.9 Short hostname type Ip address interface rac1 Publi

Linux安装Oracle数据库

一.安装Oracle前准备 1.创建运行oracle数据库的系统用户和用户组 [[email protected] ~]$ su root #切换到root Password: [[email protected] sonny]# groupadd oinstall #创建用户组oinstall [[email protected] sonny]# groupadd dba #创建用户组dba [[email protected] sonny]# useradd -g oinstall -g d