RHEL 5 下 安裝 Oracle 10g 心得筆記

來源:互聯網
上載者:User

以下過程完全是個人在RHEL 5 下 安裝 Oracle 10g心得筆記,一步一步安裝步驟,按照此步驟安裝應該不會有問題

1.安裝RPM包
rpm -aq | grep libgcc //檢查包檔案
rpm -Uvh * //安裝所有包檔案
binutils
compat-db
compat-libstdc++
control-center
gcc
gcc-c++
glibc
glibc-common
libstdc++
libstdc++-devel
make
sysstat
setarch
libXp (to start runInstaller)
---------------------------------------------

2.修改/ect/sysctl.conf
kernel.shmall = 268435456
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
---------------------------------------------

3.生效sysctl.conf
sysctl -p
---------------------------------------------

4.建立ORACLE使用者及組
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba oracle //屬於oinstall組並支援dba組
passwd oracle
---------------------------------------------

5.建立目錄
mkdir /db
chown -R oracle:oinstall /db
---------------------------------------------

6.編輯使用者環境變數
vi /home/oracle/.bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
ORACLE_SID=orcl
ORACLE_BASE=/db/oracle
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1
export ORACLE_SID ORACLE_BASE ORACLE_HOME
PATH=$PATH:$ORACLE_HOME/bin:$HOME/bin
export PATH
---------------------------------------------

7.vi /ect/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
---------------------------------------------

8.vi /ect/pam.d/login
session required /lib/security/pam_limits.so
session required /lib64/security/pam_limits.so //X86_64核心
---------------------------------------------

9.vi /ect/profile
if [ $USER = "oracle" ]; then
if [ $SHELL = "/bin/ksh" ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
fi
---------------------------------------------

10.授權安裝
chmod -R 777 Database
./filename -ignoreSysPrereqs 跳過OS檢測 (/etc/RedHat-release中的5.1改成4)
./runInstall -

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.