CentOS 5.5 64 位元安裝Oracle 10g日誌

來源:互聯網
上載者:User

安裝日誌[20100707]
1.DELL伺服器
2.安裝CentOS 5.5 (64位)
注意swap通常為4G
3。安裝Oracle 10.2 (64位)

grep MemTotal /proc/meminfo

grep SwapTotal /proc/meminfo

uname -mi
4 檢查環境:
rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' \
      binutils compat-db control-center gcc gcc-c++ glibc glibc-common \
      libstdc++ libstdc++-devel make pdksh sysstat libaio \
      glibc-devel compat-libstdc++-33 compat-libstdc++-296 glibc-headers \
      libgomp libXp openmotif setarch


再加上glibc-devel-2.5-49 (i386)
libgomp-4.4.0-6.el5 (i386)
libstdc++-devel-4.1.2-48.el5 (i386)
這3個檔案

(以上檔案都能從安裝光碟片中找到,www.bkjia.com所以安裝完系統之後都要把鏡像盤拷一份在某個目錄下)
5. 設定管理員主機的實體環境            
vi /etc/sysctl.conf

kernel.shmmax=2147483648
kernel.sem=250 32000 100 128
fs.file-max=65536
net.ipv4.ip_local_port_range=1024 65000

net.core.rmem_default = 262144
net.core.rmem_max = 262144
net.core.wmem_default = 262144
net.core.wmem_max = 262144

5.2 執行#vi /etc/security/limits.conf ,修改或增添如下配置
* soft nproc 2047
* hard nproc 16384
* soft nofile 1024
* hard nofile 65536
5.3 執行#vi /etc/pam.d/login, 增添如下配置
session required /lib/security/pam_limits.so
5.4 執行#vi /etc/selinux/config,確認如下配置為disabled
SELINUX=disabled (這個關掉的目的是為了後面vnc串連的時候以免出錯)

sysctl -p 使以上配置生效

6.編輯/etc/RedHat-release
vi /etc/redhat-release
把Red Hat Enterprise Linux Server release 5 替換成 redhat-4 ,替換這裡的原因是在執行./runInstaller的時候,其版本判斷不支援redhat as5.

7.建立oracle使用者和組
   在root使用者下,執行下面的命令
groupadd dba
groupadd oinstall
useradd -c "Oracle software owner" -g oinstall -G dba oracle
passwd oracle

mkdir -p /oracle/u01/app/oracle
chown oracle.oinstall /oracle/u01/app/oracle

8.配置oracle使用者的環境變數
vi ~oracle/.bash_profile   (這步最好切換到oracle使用者下去操作)
export ORACLE_BASE=/oracle/u01/app/oracle
export ORACLE_SID=orcl

export LC_ALL=zh_CN.GBK
export LC_CTYPE=en_US.UTF-8

export ORACLE_HOME=$ORACLE_BASE/oracle/product/10.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export LD_LIBRARY_PATH=$ORACLE_HOME/lib

export NLS_LANG="SIMPLIFIED CHINESE_CHINA.ZHS16GBK"

在文檔最後添加上以上語句。

  • 1
  • 2
  • 下一頁

相關文章

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.