安装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 x86(Oracle11g软件):
|
Installation Type Requirement for Software Files (GB) |
|
Enterprise Edition 3.47 |
|
Standard Edition 3.22 |
|
Custom (maximum) 3.45 |
Linux x86-64(Oracle11g软件):
|
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-845或ORA-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博客 ” ,链接:https://blog.itpub.net/570433/viewspace-1026852/ ,如需转载,请注明出处,否则将追究法律责任。