安裝Oracle 11g for RedHat AS5 U3(一)

guyeh發表於2009-09-11

安裝Oracle 11g for RedHat AS5 U3(一)

[@more@]

一、系統環境檢查

1、 記憶體檢查:Oracle11g需要至少1GB記憶體:

[root@jwdb ~]# grep MemTotal /proc/meminfo

MemTotal: 3751936 kB

交換分割槽檢查:Oracle11g 要求:

RAM Swap Space

Between 1024 MB and 2048 MB 1.5 times the size of RAM

Between 2049 MB and 8192 MB Equal to the size of RAM

More than 8192 MB 0.75 times the size of RAM

[root@jwdb ~]# grep SwapTotal /proc/meminfo

SwapTotal: 8185076 kB

2、 磁碟檢查:

至少400MB/tmp空閒空間

[root@jwdb ~]# df -k /tmp

Filesystem 1K-blocks Used Available Use% Mounted on

/dev/cciss/c0d0p2 128896188 467492 121775380 1% /

Oracle11g軟體需要3.5~5GB的磁碟空間,而資料庫還需要1.5~3GB的磁碟空間

[root@jwdb ~]# df -h

Filesystem Size Used Avail Use% Mounted on

/dev/cciss/c0d0p2 123G 457M 117G 1% /

/dev/cciss/c0d0p6 95G 188M 90G 1% /dbdata

/dev/cciss/c0d0p5 53G 2.8G 47G 6% /usr

/dev/cciss/c0d0p3 119G 3.7G 109G 4% /dbbak

/dev/cciss/c0d0p1 1.9G 42M 1.8G 3% /boot

tmpfs 1.8G 0 1.8G 0% /dev/shm

none 1.8G 40K 1.8G 1% /var/lib/xenstored

Linux x86Oracle11g軟體:

Installation Type Requirement for Software Files (GB)

Enterprise Edition 3.47

Standard Edition 3.22

Custom (maximum) 3.45

Linux x86-64Oracle11g軟體):

Installation Type Requirement for Software Files (GB)

Enterprise Edition 4.35

Standard Edition 3.73

Custom (maximum) 4.54

Linux x86(資料庫):

Installation Type Disk Space for Data Files (GB)

Enterprise Edition 1.6

Standard Edition 1.6

Custom (maximum) 1.81

Linux x86-64資料庫):

Installation Type Disk Space for Data Files (GB)

Enterprise Edition 1.68

Standard Edition 1.48

Custom (maximum) 2.14

3、 作業系統版本

Oracle11g 支援以下版本作業系統

Asianux 2.0

Asianux 3.0

Oracle Enterprise Linux 4.0

Oracle Enterprise Linux 5.0

Red Hat Enterprise Linux 4.0

Red Hat Enterprise Linux 5.0

SUSE Linux Enterprise Server 10.0

[root@jwdb ~]# cat /etc/redhat-release

Red Hat Enterprise Linux Server release 5.3 (Tikanga)

[root@jwdb ~]# uname -srvi

Linux 2.6.18-128.el5xen #1 SMP Wed Dec 17 12:22:24 EST 2008 i386

4、 軟體包檢查:

Linux x86(AS5):

binutils-2.17.50.0.6-2.el5

compat-libstdc++-33-3.2.3-61

elfutils-libelf-0.125-3.el5

elfutils-libelf-devel-0.125

gcc-4.1.1-52

gcc-c++-4.1.1-52

glibc-2.5-12

glibc-common-2.5-12

glibc-devel-2.5-12

glibc-headers-2.5-12

libaio-0.3.106

libaio-devel-0.3.106

libgcc-4.1.1-52

libstdc++-4.1.1

libstdc++-devel-4.1.1-52.e15

make-3.81-1.1

sysstat-7.0.0

unixODBC-2.2.11

unixODBC-devel-2.2.11

Linux x86-64(AS5):

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

gcc-c++-4.1.1

glibc-2.5-12

glibc-2.5-12 (32 bit)

glibc-common-2.5

glibc-devel-2.5

glibc-devel-2.5-12 (32 bit)

libaio-0.3.106

libaio-0.3.106 (32 bit)

libaio-devel-0.3.106

libgcc-4.1.1

libgcc-4.1.1 (32 bit)

libstdc++-4.1.1

libstdc++-4.1.1 (32 bit)

libstdc++-devel 4.1.1

make-3.81

sysstat-7.0.0

檢查需要的包是否安裝:rpm -qa

透過rpm -ivh進行安裝

二、安裝準備

1、檢查網路配置是否滿足要求,並在/etc/hosts檔案中加入主機名、IP地址資訊:

[root@jwdb ~]# cat /etc/hosts

# Do not remove the following line, or various programs

# that require network functionality will fail.

127.0.0.1 jwdb localhost.localdomain localhost

#::1 localhost6.localdomain6 localhost6

10.1.26.204 jwdb jwdb

[root@oracle11g ~]# domainname

(none)

2、建立Oracle使用者和dba

[root@oracle11g ~]# groupadd oinstall

[root@oracle11g ~]# groupadd dba

[root@oracle11g ~]# groupadd oper

[root@oracle11g ~]# useradd -g oinstall -G dba,oper oracle

[root@oracle11g ~]#

修改Oracle使用者口令:

[root@oracle11g ~]# passwd oracle

[root@oracle11g ~]# id oracle

uid=500(oracle) gid=500(oinstall) groups=500(oinstall),501(dba),502(oper) context=root:system_r:unconfined_t:SystemLow-SystemHigh

3、配置核心:

編輯 /etc/sysctl.conf。將以下內容新增至檔案,儲存後重新啟動系統(注意,如果系統預設的配置比這裡給出的值大,不要修改原有配置。):

# Kernel paramaters required by Oracle 11gR1

fs.file-max = 6553600 ———512*processes(由於11g對於共享記憶體要求變大,因此係統共享記憶體應該大於512*程式數,如果共享記憶體不足的話,會造成ORA-845ORA-1078錯誤。)
kernel.shmall = 2097152
kernel.shmmax = 2147483648
———記憶體的一半
kernel.shmmni = 4096
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

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

相關文章