oracle資料庫安裝前的環境配置

來源:互聯網
上載者:User

標籤:資料庫安裝   security   required   oracle   linux   

系統版本redhat5.6
一 安裝前環境配置
查看記憶體
grep MemTotal /proc/meminfo
grep SwapTotal /proc/meminfo
(或者free -m同時查看記憶體和swap空間,一般需要記憶體2G,swap空間2G即可)
修改使用者的SHELL限制,修改/etc/security/limits.conf檔案
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack  10240
修改/etc/pam.d/login 檔案
session required /lib/security/pam_limits.so
session required pam_limits.so
修改linux核心,修改/etc/sysctl.conf檔案,輸入命令: vi /etc/sysctl.conf
fs.aio-max-nr = 1048576
fs.file-max = 6815744
kernel.shmall = 2097152
kernel.shmmax = 4294967295
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
執行sysctl -p 使sysctl.conf檔案生效
編輯 /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
建立相關的使用者和組
groupadd -g 1000 oinstall
groupadd -g 1001 dba
groupadd -g 1002 oper
useradd -u 1001 oracle -d /home/oracle -g oinstall -G dba,oper
建立相關的目錄並且更改目錄的屬主
mkdir /u01
chown -R oracle:oinstall /u01
chmod -R 755 /u01
設定oracle的環境變數 .bash_profile
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
export ORACLE_SID=ORA11GR2
export PATH=$PATH:$HOME/bin:$ORACLE_HOME/bin
安裝Linux下的依懶包(建議先用rpm安裝,然後再嘗試用yum)
配置yum
/etc/yum.repo.d/yum.repo
[redhat5u6]
name=redhat5u6
baseurl=file:///test/Server/
enabled=1
gpgcheck=0


yum clean all
yum list
按照官方文檔要求安裝
binutils-2.17.50.0.6
compat-libstdc++-33-3.2.3
compat-libstdc++-33-3.2.3 (32 bit)
elfutils-libelf-0.125
elfutils-libelf-devel-0.125
gcc-4.1.2
gcc-c++-4.1.2
glibc-2.5-24
glibc-2.5-24 (32 bit)
glibc-common-2.5
glibc-devel-2.5
glibc-devel-2.5 (32 bit)
glibc-headers-2.5
ksh-20060214
libaio-0.3.106
libaio-0.3.106 (32 bit)
libaio-devel-0.3.106
libaio-devel-0.3.106 (32 bit)
libgcc-4.1.2
libgcc-4.1.2 (32 bit)
libstdc++-4.1.2
libstdc++-4.1.2 (32 bit)
libstdc++-devel 4.1.2
make-3.81
sysstat-7.0.2
二、安裝過程:
解包 unzip
產生一個database檔案夾
配置圖形介面
./runInstaller--->裝軟體
dbca建庫

oracle資料庫安裝前的環境配置

聯繫我們

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