注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

风之人生

人生如风,却无法如风般潇洒。

 
 
 

日志

 
 
关于我

一介草民,苟活于上海滩,以甲骨文为生,偶尔对一些国家大事有些兴趣,日常无事常以丝竹之声为乐。

网易考拉推荐

Oracle Installation in fedora 12  

2010-05-26 17:48:11|  分类: Oracle |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
1. Check the prerequisite software.

[root@coolma ~]# grep MemTotal /proc/meminfo
MemTotal:        1276452 kB

[root@coolma ~]# grep SwapTotal /proc/meminfo
SwapTotal:       2555896 kB

[root@coolma ~]# df -k /tmp
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg_coolma-lv_root
                      54964304   5825496  46346772  12% /

2. Configure network.
[root@coolma ~]# cat /etc/nsswitch.conf | grep hosts
#hosts:     db files nisplus nis dns
hosts:      files dns

[root@coolma ~]# hostname
coolma.sjtu.edu.cn

[root@coolma ~]# domainname
(none)

3. Create the user and group

[root@coolma ~]# /usr/sbin/groupadd oinstall
[root@coolma ~]# /usr/sbin/groupadd dba
[root@coolma ~]# /usr/sbin/useradd -g oinstall -G dba oracle
[root@coolma ~]# passwd oracle

4. Configure Kernel parameters as below.

Parameter Value File
semmsl

semmns

semopm

semmni

250

32000

100

128

/proc/sys/kernel/sem
shmall 2097152 /proc/sys/kernel/shmall
shmmax Half the size of physical memory (in bytes) /proc/sys/kernel/shmmax
shmmni 4096 /proc/sys/kernel/shmmni
file-max 65536 /proc/sys/fs/file-max
ip_local_port_range Minimum:1024

Maximum: 65000

/proc/sys/net/ipv4/ip_local_port_range
rmem_default 1048576 /proc/sys/net/core/rmem_default
rmem_max 1048576 /proc/sys/net/core/rmem_max
wmem_default 262144 /proc/sys/net/core/wmem_default
wmem_max 262144 /proc/sys/net/core/wmem_max

you can change these parameters in /etc/sysctl.conf, add following lines.

kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default = 1048576
net.core.rmem_max = 1048576
net.core.wmem_default = 262144
net.core.wmem_max = 262144
vi /etc/security/limits.conf
oracle              soft    nproc   2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536

vi /etc/pam.d/login
session    required     /lib/security/pam_limits.so
session required pam_limits.so

5. installation

vi /etc/redhat-release
change to redhat-4
yum install libXp.so.6 otherwise ,you'll get the error below when you execute the runInstaller.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2010-05-26_05-35-05PM. Please wait ...[oracle@coolma database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2010-05-26_05-35-05PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at sun.security.action.LoadLibraryAction.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
at sun.awt.DebugHelper.<clinit>(Unknown Source)
at java.awt.Component.<clinit>(Unknown Source)

finsh! Please enjoy!.

  评论这张
 
阅读(180)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017