Home > Database > Mysql Tutorial > body text

RHEL5.2系统下安装Oracle 10g详细步骤

WBOY
Release: 2016-06-07 17:15:50
Original
1020 people have browsed it

RHEL5.2系统下安装Oracle 10g详细步骤,一、检查硬件要求内存要求(至少1G) #grep MemTotal /proc/meminfo交换区要求#grep Sw

Linux公社

首页 → 数据库技术

背景:

阅读新闻

RHEL5.2系统下安装Oracle 10g详细步骤

[日期:2012-07-09] 来源:Linux社区  作者:yangkegang [字体:]

一、         检查硬件要求
 
          内存要求(至少1G) #grep MemTotal   /proc/meminfo
          交换区要求#grep SwapTotal   /proc/meminfo
          /tmp目录(至少400M空间) #df -m /tmp
二、         系统软件要求
 
           查看操作系统版本 # cat /et c/issue
           查看内核版本 # uname -r
          系统软件包查询
            Binutils
            Compat-db
            Compat-libstdc++-296
Control-center
Gcc
Gcc-c++
Glibc
Glibc-common
Gnome-libs
Libstdc++
Listdc++-devel
Make
Pdksh
Sysstat
Xscreensaver
Setarch
libXp
openmotif
libaio-0.3.106
修改/etc/hosts文件 (添加本地主机名与ip地址对应关系)
 
      #vi /etc/hosts
100.100.100.200                    linux5
三、         创建用户和组
     #/usr/sbin/groupadd oinstall
     #/usr/sbin/groupdd   dba
     #/usr/sbin/groupadd   oper
     #useradd –g oinstall –G dba,oper Oracle
     #passwd oracle
四、         确认用户nobody的存在
     # id nobody
五、         调整内核参数
修改/et      c/sysctl.conf文件(在文件末尾添加如下内容)
kernel.core_uses_pid = 1
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 10248576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 26144
使内核参数立即生效
#sysctl –p
六、         修改用户限制
      编辑文件/etc/security/limits.conf(在文件末尾添加如下内容) oracle          soft     nproc         2047
oracle          hard     nproc         16384
oracle          soft     nofile        1024
oracle          hard     nofile        65536
      编辑文件/etc/pam.d/login(在文件末尾添加如下内容)
session    required     pam_selinux.so open
session    required     /lib/security/pam_limits.so
session    required     pam_limits.so
      编辑文件/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
         编辑文件/etc/csh.login
if ( $USER == "oracle" ) then
        limit maxproc 16384
        limit descriptors 65536
endif
 
七、         创建oracle软件安装目录
[root@linux5 ~]# mkdir -p /db/oracle
[root@linux5 ~]# chown -R oracle:oinstall /db/oracle/
[root@linux5 ~]# chmod -R 775 /db/oracle/
八、         设置oracle用户环境变量(添加如下内容)
[root@linux5 ~]# su - oracle
[oracle@linux5 ~]$ vi .bash_profile
umake 022
ORACLE_BASE=/db/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
ORACLE_SID=yang
PATH=$ORACLE_HOME/bin:$PATH:.
export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
九、         上传oracle database软件
      启动linux服务器上的vsftpd服务
 [root@linux5 ~]# service vsftpd start
Starting vsftpd for vsftpd:    [ok]
在windows主机上使用ftp上传oracle database软件

十一、安装oracle数据库
由于orcale10不支持 RHEL5 所以需要修改/etc/RedHat_realease 将 Red Hat Enterprise Linux Server release 5 (Tikanga) 改为Red Hat Enterprise Linux Server release 4 (Tikanga)
#cd /home/oracle/database
#./runInstaller
1、注意不选“create starter database”
2、检查前面添加修改的参数文件
3、默认下一步 进行安装
4、安装中途,提示执行脚本文件,,以root用户执行之
[oracle@linux5 db_1]$ su -
Password:
[root@linux5 ~]# sh /db/oracle/product/10.2.0/db_1/root.sh
[root@linux5 ~]#sh /db/oracle/oraInventory/orainstRoot.sh
执行完成后点击ok键
退出
十二、配置监听程序
1、 打开配置监听助手
[oracle@linux5 ~]$ netca
2、 点击next
3、 完成即可!

linux

  • 0
  • 各类型表空间的创建、扩展、删除

    Oracle数据库用户、表、表空间之间关系

    相关资讯       Oracle安装教程 

    图片资讯      

    本文评论   查看全部评论 (0)

    评论声明

    最新资讯

    本周热门

    source:php.cn
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!