明晰SUSE enterprise 10 linux 下安裝oracle 11g
本文向大家介紹SUSE enterprise 10 linux 的知識,可能好多人還不了解SUSE enterprise 10 linux ,沒有關(guān)系,看完本文你肯定有不少收獲,希望本文能教會你更多東西。今天主要的是在SUSE enterprise 10 linux 上安裝oracle 11g。
1. 安裝SUSE enterprise 10 linux
2. 檢查操作系統(tǒng)軟硬件環(huán)境是否滿足oracle 11g的安裝要求
3. 創(chuàng)建oracle 用戶組,oracle 安裝目錄以及oracle 用戶環(huán)境變量4. 修改內(nèi)核參數(shù)
5. 安裝數(shù)據(jù)庫軟件
6. 創(chuàng)建數(shù)據(jù)庫監(jiān)聽netca
7. 創(chuàng)建數(shù)據(jù)庫dbca
軟硬件系統(tǒng)配置:
操作系統(tǒng):suse enterprise 10 linux
硬件配置:1024MB內(nèi)存
虛擬一塊網(wǎng)卡
網(wǎng)絡(luò)地址:192.168.31.17
一、 操作系統(tǒng)安裝
二、 檢查操作系統(tǒng)軟硬件環(huán)境是否滿足oracle 11g的安裝要求
2.1檢查磁盤空間
#df –h /tmp
2.2 檢查內(nèi)存、交換分區(qū)、操作系統(tǒng)、系統(tǒng)內(nèi)核
2.3 檢查軟件包
binutils-2.17.50.0.6-2.el5
compat-libstdc++-33-3.2.3-61
elfutils-libelf-0.125-3.el5
elfutils-libelf-devel-0.125
gcc-4.1.1-52
gcc-c++-4.1.1-52
glibc-2.5-12
glibc-common-2.5-12
glibc-devel-2.5-12
glibc-headers-2.5-12
libaio-0.3.106
libaio-devel-0.3.106
libgcc-4.1.1-52
libstdc++-4.1.1
libstdc++-devel-4.1.1-52.e15
make-3.81-1.1
sysstat-7.0.0
unixODBC-2.2.11
unixODBC-devel-2.2.11
2.4 修改操作系統(tǒng)語言環(huán)境(與redhat enterprise as 5 不同)
#yast
系統(tǒng)(system)—語言Language
Redhat enterprise as 5修改語言方法
[root@redhat]# vi /etc/sysconfig/i18n
LANG="en_US"
#LANG="zh_CN.UTF-8"
2.5修改操作系統(tǒng)登陸界面(與redhat enterprise as 5相同)
#id:5:initdefault:
id:3:initdefault:
修改主機名
# vi /etc/hosts
添加192.168.31.17 suse
三、創(chuàng)建oracle 用戶組,oracle 安裝目錄以及oracle 用戶環(huán)境變量
#groupadd oinstall
#groupadd dba
#groupuser –g oinstall –G dba oracle –m
*redhat中不需要加此參數(shù)*
#passwd oracle
#mkdir –p /u01/app/oracle/project/11.1.0/db_1
#chown –R oracle:oinstall /u01
#chmod –R 755 /u01
#su – oracle
口令:XXX
#pwd
/home/oracle
#vi .profile *在redhat中,修改環(huán)境變量為#vi .base_profile*
ORALCE_BASH=/u01/app/oracle/project
ORACLE_HOME=$ORACLE_BASE/11.1.0/db_1/oracle
*此處的oracle 為新建的oracle 用戶*
ORACLE_SID=orcl *oracle sid 可以自行修改*
PATH=$ORALCE_HOME/bin/:path
*bin 目錄不能出錯,否則在安裝完成以后不能新建監(jiān)聽和創(chuàng)建數(shù)據(jù)庫*
Export ORACLE_BASE ORACLE_HOME ORACLE_SID PATH
讓設(shè)置生效
#source .profile
#source .base_profile(redhat enterprise linux)
四、修改內(nèi)核參數(shù)
#vi /etc/sysctl.conf
# Kernel paramaters required by Oracle 11gR1
fs.file-max = 6553600
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 4194304
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 262144
要使 /etc/sysctl.conf 更改立即生效,執(zhí)行以下命令。
# sysctl -p
# 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
#vi /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
五、安裝數(shù)據(jù)庫軟件
#unzip linux_oracle11g
#cd database
#./runInstaller
1.裝軟件我選擇advanced installation
2.#netca 創(chuàng)建監(jiān)聽
3.dbca創(chuàng)建數(shù)據(jù)庫
本文向大家介紹SUSE enterprise 10 linux ,可能好多人還不了解SUSE enterprise 10 linux ,沒有關(guān)系,看完本文你肯定有不少收獲,希望本文能教會你更多東西。
【編輯推薦】