Oracle 11.1.0.6 for linux X86 64的SILENT安装
首先是检查系统硬件情况:
代码:
[root@enterprice64 ~]# grep MemTotal /proc/meminfo
MemTotal: 8178836 kB
[root@enterprice64 ~]# grep SwapTotal /proc/meminfo
SwapTotal: 8385888 kB
[root@enterprice64 ~]# free
total used free shared buffers cached
Mem: 8178836 5297744 2881092 0 122512 4773424
-/+ buffers/cache: 401808 7777028
Swap: 8385888 0 8385888
[root@enterprice64 ~]# df -k /dev/shm
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 4089416 0 4089416 0% /dev/shm
[root@enterprice64 ~]# df -k /tmp
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda7 10153988 428132 9201740 5% /
[root@enterprice64 ~]# df -k /data
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda9 207275064 3933228 192642952 3% /data
要求内存不小于1G,在内存小于2G,SWAP应该是内存的1.5倍,内存2到8G,
SWAP和内存相同大小即可,内存超过8G,SWAP是内存的0.75倍。
由于11g对于共享内存要求变大,因此系统共享内存应该大于512*进程数,
如果共享内存不足的话,会造成ORA-845或ORA-1078错误。
要求临时表空间不少于200M,安装目录应大于4G。
下面检查系统软件情况:
代码:
[root@enterprice64 ~]# cat /proc/version
Linux version 2.6.18-8.el5 ()
(gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1
SMP Tue Jun 5 23:25:19 EDT 2007
[root@enterprice64 ~]# uname -a
Linux enterprice64 2.6.18-8.el5 #1 SMP Tue Jun 5
23:25:19 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
[root@enterprice64 ~]# more /etc/issue
Enterprise Linux Enterprise Linux Server release 5 (Carthage)
Kernel r on an m
.
对操作系统要求:
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 Enterprise Linux 10.0
系统内核为2.6.9(Asianux 2.0、Oracle Enterprise Linux
4.0、Red Hat Enterprise Linux 4.0),2.6.18
(Asianux 3.0、Oracle Enterprise Linux 5.0、
Red Hat Enterprise Linux 5.0),或2.6.16.21(SUSE Enterprise Linux 10.0)。
对于ES4,oracle需要一下包:
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命令进行安装。
检查网络情况:
代码:
[root@enterprice64 ~]# cat /etc/nsswitch.conf|grep hosts
#hosts: db files nisplus nis dns
hosts: files dns
[root@enterprice64 ~]# hostname
enterprice64
[root@enterprice64 ~]# domainname
(none)
[root@enterprice64 ~]# more /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 enterprice64 localhost.localdomain localhost
172.25.13.195 enterprice64
建立Oracle用户和dba组:
代码:
[root@enterprice64 ~]# groupadd oinstall
[root@enterprice64 ~]# groupadd dba
[root@enterprice64 ~]# groupadd asadmin
[root@enterprice64 ~]# useradd -g oinstall -G dba,asadmin oracle
[root@enterprice64 ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@enterprice64 ~]# id nobody
uid=99(nobody) gid=99(nobody) groups=99(nobody) context=root:system_r:unconfined_t:SystemLow-SystemHigh
建立oinstall、dba和asadmin组。创建好用户后,检查nobody用户是否存在。
不存在的话,建立该用户。
检测并修改系统的核心参数,编辑/etc/sysctl.conf文件,添加下面的配置,
保存后重启系统。注意,如果系统默认的配置比这里给出的值大,不要修改原有配置。