Fedora 14(32位 i686)下文字介面安裝Oracle 10gR2 資料庫

來源:互聯網
上載者:User

在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   //查看更改

  • 1
  • 2
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.