您好,欢迎访问一九零五行业门户网

Fedora 14(32位 i686)下文字界面安装Oracle 10gR2 数据库

在fedora 14(32位 i686)下文字界面安装oracle 10gr2 数据库:一.创建用户和用户组[root@xinchang ~]# groupadd -g 502 dba[root@
首页 → 数据库技术
背景:
阅读新闻
fedora 14(32位 i686)下文字界面安装oracle 10gr2 数据库
[日期:2010-12-23]来源:linux时代 作者:xinchang[字体:]
在fedora 14(32位 i686)下文字界面安装oracle 10gr2 数据库:
一.创建用户和用户组
[root@xinchang ~]# groupadd -g 502 dba
[root@xinchang ~]# groupadd -g 503 oper
[root@xinchang ~]# groupadd -g 504 asmadmin
[root@xinchang ~]# groupadd -g 505 oinstall
[root@xinchang ~]# useradd -u 505 -g oinstall -g dba,asmadmin,oper oracle
[root@xinchang ~]# passwd oracle
二.查看安装环境
1.内存和swap
[root@xinchang ~]# grep memtotal /proc/meminfo
memtotal:        1026060 kb
[root@xinchang ~]# grep swaptotal /proc/meminfo
swaptotal:       4194300 kb
2.系统架构
[root@xinchang ~]# uname -m
i686
3.cpu
[root@xinchang ~]# grep model name /proc/cpuinfo
model name    : intel(r) core(tm)2 duo cpu     e8400  @ 3.00ghz
4.磁盘空间需求
/tmp空间至少有1g的可用空间
[root@xinchang ~]# df -h /tmp
文件系统          容量  已用  可用 已用%% 挂载点
/dev/sda3             4.0g  2.7g  1.1g  72% /
安装空间至少需要3.95g
[root@xinchang ~]# df -h /home
文件系统          容量  已用  可用 已用%% 挂载点
/dev/sda5              32g  841m   29g   3% /home
我在试验环境下一般喜欢把oracle装在/home/oracle目录下所以这里查看/home的可用空间大小
5.系统运行级别
[root@xinchang ~]# who -r
         运行级别 5 2010-11-23 16:10
3或者5均可
6.查看并修改操作系统release-id(这里的步骤在个人pc下是可以不改的)
[root@xinchang ~]# yum -y install redhat-lsb
[root@xinchang ~]# lsb_release -id
distributor id:    fedora
description:    fedora release 14 (laughlin)
[root@xinchang ~]# vim /etc/redhat-release
fedora release 14 (laughlin)
改成
red hat enterprise linux as release 4 (nahant update 5)
安装完成以后改回即可
7.内核
[root@xinchang ~]# uname -r
2.6.35.6-45.fc14.i686
需要2.6.9以上内核版本
三.安装依赖软件包
binutils
compat-db
control-center
gcc
gcc-c++
glibc
glibc-common
gnome-libs
libstdc++
libstdc++-devel
make
pdksh(fedora14 已经淘汰pdksh所以我们可以装ksh)
sysstat
xscreensaver
四.网络设置
[root@xinchang ~]# export oracle_hostname=xinchang.taobao.com
也可以修改/etc/hosts
五.配置oracle安装所有者shell限制
1.vim /etc/security/limits.conf
添加如下内容:
oracle          soft     nproc          2047
oracle          hard     nproc          16384
oracle          soft     nofile         1024
oracle          hard     nofile         65536
oracle          -        memlock        unlimited
2.vim /etc/pam.d/login
添加如下内容:
session    required    pam_limits.so
3.vim /etc/profile
添加如下内容:
if [ $user = oracle ];then
     if [ $shell = /bin/ksh ];then
             ulimit -p 16384
             ulimit -n 65536
     else
             ulimit -u 16384 -n 65536
     fi
umask 022
fi
4.配置内核参数
1.vim /etc/sysctl.conf
添加如下内容:
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 = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
保存退出
sysctl -p   //应用更改
sysctl -a   //查看更改
0
oracle db 10g启动及关闭过程的理解
centos下oracle 10g 升级至10.2.0.4
相关资讯       fedora 14
图片资讯
本文评论查看全部评论 (0)
评论声明
最新资讯
本周热门
其它类似信息

推荐信息