1 Oracle Database 11.2.0.3.0 RAC On Oralce Linux 6.5使用-Oracle安裝先決條件(二)

LuiseDalian發表於2014-02-10

1.1.1 手動安裝

# 除了基本的安裝外,下面的包也必須進行安裝。一些包還同時需要安裝32位和64位的版本。

# 安裝必要的軟體包,如果按照前面的選擇安裝的Linux,則註釋的軟體包已經安裝完成

$ cd /media

$ ls   // 檢視掛載的虛擬光碟機, 進入到Package資料夾中執行下面的命令

//$rpm -Uvh binutils-2.*

//$rpm -Uvh compat-libstdc++-33*

//$rpm -Uvh elfutils-libelf-0.*

//$rpm -Uvh libaio-0.*

$rpm -Uvh libaio-devel-0.*

//$rpm -Uvh sysstat-9.*

//$rpm -Uvh glibc-2.*

//$rpm -Uvh glibc-common-2.*

//$rpm -Uvh glibc-devel-2.* glibc-headers-2.*

$rpm -Uvh ksh-2*

//$rpm -Uvh make-3.*

//$rpm -Uvh libgcc-4.*

//$rpm -Uvh libstdc++-4.*

$rpm -Uvh libstdc++-4.*.i686*

//$rpm -Uvh libstdc++-devel-4.*

//$rpm -Uvh gcc-4.*x86_64*

//$rpm -Uvh gcc-c++-4.*x86_64*

//$rpm -Uvh --allfiles elfutils-libelf-0*x86_64* elfutils-libelf-devel-0*x86_64*

$rpm -Uvh elfutils-libelf-0*i686* elfutils-libelf-devel-0*i686*

$rpm -Uvh libtool-ltdl*i686*

$rpm -Uvh ncurses*i686*

$rpm -Uvh readline*i686*

$rpm -Uvh unixODBC*

$ cd /

$ eject

##############   配置 /etc/sysctl.conf檔案  ##############

# Oracle RAC

fs.aio-max-nr = 1048576

fs.file-max = 6815744

#kernel.shmall = 2097152

#kernel.shmmax = 1054504960

kernel.shmmni = 4096

# semaphores: semmsl, semmns, semopm, semmni

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=1048586

# 執行命令,改變當前Kernel的引數

[root@RacNode1 桌面]$ /sbin/sysctl -p

net.ipv4.ip_forward = 0

net.ipv4.conf.default.rp_filter = 1

net.ipv4.conf.default.accept_source_route = 0

kernel.sysrq = 0

kernel.core_uses_pid = 1

net.ipv4.tcp_syncookies = 1

error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key

error: "net.bridge.bridge-nf-call-iptables" is an unknown key

error: "net.bridge.bridge-nf-call-arptables" is an unknown key

kernel.msgmnb = 65536

kernel.msgmax = 65536

kernel.shmmax = 68719476736

kernel.shmall = 4294967296

fs.aio-max-nr = 1048576

fs.file-max = 6815744

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 = 1048586

#將下面的行新增到/etc/security/limits.conf檔案中

oracle              soft    nproc   2047

oracle              hard    nproc   16384

oracle              soft    nofile  4096

oracle              hard    nofile  65536

oracle              soft    stack   10240

# 將下面的配置新增到/etc/pam.d/login檔案中

session    required     pam_limits.so

# 建立新的組和使用者

groupadd -g 1000 oinstall

groupadd -g 1200 dba

useradd -u 1100 -g oinstall -G dba oracle

passwd oracle

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17013648/viewspace-1078691/,如需轉載,請註明出處,否則將追究法律責任。

相關文章