Oracle Linux 6.5安裝Oracle 11.2.0.4 x64

來源:互聯網
上載者:User

Oracle Linux 6.5安裝Oracle 11.2.0.4 x64

1. Oracle11g安裝環境準備

採用Oracle Linux 6.5 x64安裝,安裝過程與RedHat一致,安裝過程中選中案頭,開發包,開發庫,其它預設選項。 
Desktops > X Window System   
Development > Additional Development   
Development > Development Tools

安裝好後: 
(1) 關閉selinux   
(2) 關閉iptables   
(3) 重啟

在CentOS 6.4下安裝Oracle 11gR2(x64)

Oracle 11gR2 在VMWare虛擬機器中安裝步驟

Debian 下 安裝 Oracle 11g XE R2

2. 開始安裝基礎包(放入光碟片、或掛載ISO檔案)

mount /dev/cdrom /mnt 

cd /mnt/cdrom/Server/Packages   

rpm -Uvh binutils-2*x86_64*   

rpm -Uvh glibc-2*x86_64* nss-softokn-freebl-3*x86_64*   

rpm -Uvh glibc-2*i686* nss-softokn-freebl-3*i686*   

rpm -Uvh compat-libstdc++-33*x86_64*   

rpm -Uvh glibc-common-2*x86_64*   

rpm -Uvh glibc-devel-2*x86_64*   

rpm -Uvh glibc-devel-2*i686*   

rpm -Uvh glibc-headers-2*x86_64*   

rpm -Uvh elfutils-libelf-0*x86_64*   

rpm -Uvh elfutils-libelf-devel-0*x86_64*   

rpm -Uvh gcc-4*x86_64*   

rpm -Uvh gcc-c++-4*x86_64*   

rpm -Uvh ksh-*x86_64*   

rpm -Uvh libaio-0*x86_64*   

rpm -Uvh libaio-devel-0*x86_64*   

rpm -Uvh libaio-0*i686*   

rpm -Uvh libaio-devel-0*i686*   

rpm -Uvh libgcc-4*x86_64*   

rpm -Uvh libgcc-4*i686*   

rpm -Uvh libstdc++-4*x86_64*   

rpm -Uvh libstdc++-4*i686*   

rpm -Uvh libstdc++-devel-4*x86_64*   

rpm -Uvh make-3.81*x86_64*   

rpm -Uvh numactl-devel-2*x86_64*   

rpm -Uvh sysstat-9*x86_64*   

rpm -Uvh compat-libstdc++-33*i686*   

rpm -Uvh compat-libcap*


(1) 確認安裝以下包

# rpm -q binutils compat-libstdc++-33 compat-gcc-34-c++ elfutils-libelf

elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel

glibc-headers kernel-headers ksh libaio libaio-devel libgcc libgomp

libstdc++ libstdc++-devel make sysstat numactl-devel unixODBC

unixODBC-devel openmotif22 openmotif compat-db libXp


binutils-2.20.51.0.2-5.36.el6.x86_64 
compat-libstdc++-33-3.2.3-69.el6.x86_64   
compat-libstdc++-33-3.2.3-69.el6.i686   
package compat-gcc-34-c++ is not installed   
elfutils-libelf-0.152-1.el6.x86_64   
elfutils-libelf-devel-0.152-1.el6.x86_64   
gcc-4.4.7-4.el6.x86_64   
gcc-c++-4.4.7-4.el6.x86_64   
glibc-2.12-1.132.el6.x86_64   
glibc-2.12-1.132.el6.i686   
glibc-common-2.12-1.132.el6.x86_64   
glibc-devel-2.12-1.132.el6.x86_64   
glibc-devel-2.12-1.132.el6.i686   
glibc-headers-2.12-1.132.el6.x86_64   
kernel-headers-2.6.32-431.el6.x86_64   
ksh-20120801-10.el6.x86_64   
libaio-0.3.107-10.el6.x86_64   
libaio-0.3.107-10.el6.i686   
libaio-devel-0.3.107-10.el6.x86_64   
libaio-devel-0.3.107-10.el6.i686   
libgcc-4.4.7-4.el6.x86_64   
libgcc-4.4.7-4.el6.i686   
libgomp-4.4.7-4.el6.x86_64   
libstdc++-4.4.7-4.el6.x86_64   
libstdc++-4.4.7-4.el6.i686   
libstdc++-devel-4.4.7-4.el6.x86_64   
make-3.81-20.el6.x86_64   
sysstat-9.0.4-22.el6.x86_64   
numactl-devel-2.0.7-8.el6.x86_64   
package unixODBC is not installed   
package unixODBC-devel is not installed   
package openmotif22 is not installed   
package openmotif is not installed   
package compat-db is not installed   
package libXp is not installed

(2) 安裝相關包

# rpm -ivh compat-db-4.6.21-15.el6.x86_64.rpm compat-db42-4.2.52-15.el6.x86_64.rpm compat-db43-4.3.29-15.el6.x86_64.rpm   

# rpm -ivh compat-gcc-34-c++-3.4.6-19.el6.x86_64.rpm compat-gcc-34-3.4.6-19.el6.x86_64.rpm   

# rpm -ivh unixODBC-2.2.14-12.el6_3.x86_64.rpm unixODBC-devel-2.2.14-12.el6_3.x86_64.rpm   

# rpm -ivh openmotif-2.3.3-6.1.el6_4.x86_64.rpm openmotif22-2.2.3-19.el6.x86_64.rpm libXp-1.0.0-15.1.el6.x86_64.rpm


(3) 替換sqlplus工具

# wget http://utopia.knoware.nl/~hlub/uck/rlwrap/rlwrap-0.37.tar.gz   
# tar zxvf rlwrap-0.37.tar.gz   
# cd rlwrap-0.36   
# ./configure   
# make   
# make check   
# make install

3. 建立oracle安裝相關使用者組及使用者帳號

1)建立oinstall,dba組和oracle使用者(用root身份)

groupadd oinstall 
groupadd dba   
useradd -g oinstall -G dba oracle   
passwd oracle

2)建立Oralce HOME目錄

mkdir -p /u01/app/oracle/product/11.2.0/db_1 
chmod -R 775 /u01/app   
chown -R oracle:oinstall /u01

 

4. 修改核心支援

# vi /etc/sysctl.conf

fs.aio-max-nr = 1048576 
fs.file-max = 6815744   
kernel.shmall = 2097152   
kernel.shmmax = 2147483648   
kernel.shmmni = 4096   
kernel.sem = 250 32000 100 128   
net.ipv4.ip_local_port_range = 9000 65500   
net.core.rmem_default = 4194304   
net.core.rmem_max = 4194304   
net.core.wmem_default = 262144   
net.core.wmem_max = 1048586

# sysctl -p

核心參數配置說明:   
kernel.shmall = 2097152      # 系統可以使用的共用記憶體總頁數,預設值就是2097152。   
kernel.shmmax = 2147483648  # 單個共用記憶體段的最大值,位元組為單位, 此例為2GB。   
kernel.shmmni = 4096        # 共用記憶體段的最大預設數量

 

5. 修改檔案描述符

cat >> /etc/security/limits.conf << EOF 
oracle  soft  nproc  2047   
oracle  hard  nproc  16384   
oracle  soft  nofile  1024   
oracle  hard  nofile  65536   
oracle  soft  stack  10240   
EOF

 

6. 修改登陸認證模組

cat >> /etc/pam.d/login << EOF 
session required /lib64/security/pam_limits.so   
EOF

 

7. 修改本地hosts檔案

# vi /etc/hosts 
192.168.233.100    vm100

更多詳情見請繼續閱讀下一頁的精彩內容:

  • 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.