ITPub博客

首页 > Linux操作系统 > Linux操作系统 > oracle 11g install on OEL

oracle 11g install on OEL

原创 Linux操作系统 作者:david3389 时间:2009-03-20 12:25:43 0 删除 编辑

因为windows版em实在太难搞,可能是我网卡DHCP的缘故,装了那个什么虚拟的网卡也配置不成EM,可我的网卡又没有办法改固定IP,网络限制,无奈,VMWARE吧,只能重新装实验环境了。虽说装ORACLE并不是什么难事,无非就是修改内核参数,建立用户及组,安装即可。但是本着eygle教导我们对学习认真的态度,还是去找了一篇官方文档,认真的做这一次,最起码要了解,11g的安装要求都是些啥吧。记录一下自己的安装过程

Last login: Thu Mar 19 18:06:08 2009 from 10.10.10.5
[root@nam ~]#
[root@nam ~]# groupadd dba
[root@nam ~]# groupadd oinstall
[root@nam ~]# useradd -g oinstall -G -d /u01
useradd: unknown group -d
[root@nam ~]# useradd -g oinstall -G dba -d /u01
usage: useradd  [-u uid [-o]] [-g group] [-G group,...]
                [-d home] [-s shell] [-c comment] [-m [-k template]]
                [-f inactive] [-e expire ] [-p passwd] [-M] [-n] [-r] [-l] name
       useradd  -D [-g group] [-b base] [-s shell]
                [-f inactive] [-e expire ]
[root@nam ~]# useradd -g oinstall -G dba -d /u01 oracle
[root@nam ~]# passwd oracle
Changing password for user oracle.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
Sorry, passwords do not match
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@nam ~]# chown -R oracle:oinstall /u01
[root@nam ~]# cd /
[root@nam /]# ls -l
total 172
drwxr-xr-x   2 root   root      4096 Mar 19 15:38 bin
drwxr-xr-x   3 root   root      4096 Mar 19 15:35 boot
drwxr-xr-x   8 root   root      6520 Mar 20 10:07 dev
drwxr-xr-x  89 root   root     12288 Mar 20 11:21 etc
drwxr-xr-x   2 root   root      4096 Oct  7  2006 home
drwxr-xr-x   2 root   root      4096 Oct  7  2006 initrd
drwxr-xr-x  12 root   root      4096 Mar 19 18:08 lib
drwx------   2 root   root     16384 Mar 19 23:30 lost+found
drwxr-xr-x   4 root   root      4096 Mar 20 10:07 media
drwxr-xr-x   2 root   root      4096 Jul 25  2008 misc
drwxr-xr-x   3 root   root      4096 Mar 19 15:48 mnt
drwxr-xr-x   2 root   root      4096 Oct  7  2006 opt
dr-xr-xr-x  69 root   root         0 Mar 20  2009 proc
drwxr-x---  13 root   root      4096 Mar 19 18:13 root
drwxr-xr-x   2 root   root     12288 Mar 19 15:38 sbin
drwxr-xr-x   2 root   root      4096 Mar 19 15:33 selinux
drwxr-xr-x   2 root   root      4096 Oct  7  2006 srv
drwxr-xr-x   9 root   root         0 Mar 20  2009 sys
drwxrwxrwt   8 root   root      4096 Mar 20 10:07 tmp
drwxr-xr-x   5 oracle oinstall  4096 Mar 20 11:21 u01
drwxr-xr-x  14 root   root      4096 Mar 19 15:34 usr
drwxr-xr-x  19 root   root      4096 Mar 19 15:39 var
[root@nam /]# vi /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1       localhost
10.10.10.3      nam

[root@nam /]#
[root@nam /]# ping nam
PING nam (10.10.10.3) 56(84) bytes of data.
64 bytes from nam (10.10.10.3): icmp_seq=0 ttl=64 time=4.09 ms

--- nam ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 4.092/4.092/4.092/0.000 ms, pipe 2
[root@nam /]# ping localhost
PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=0 ttl=64 time=0.664 ms
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.890 ms

--- localhost ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.664/0.777/0.890/0.113 ms, pipe 2
[root@nam /]# vi /etc/sysctl.conf
###
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

[root@nam /]# /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
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
[root@nam /]# vi /etc/security/limits.conf
# End of file
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
[root@nam /]# vi /etc/pam.d/login
session required /lib/security/pam_limits.so
session required pam_limits.so
[root@nam /]# su - oracle
[oracle@nam ~]$ vi .bash_profile
ORACLE_BASE=/u01
ORACLE_HOME=/u01/app/product/11.1.0
ORACLE_SID=orcl
PATH=$PATH:$HOME/bin:/u01/app/product/11.1.0/bin
export PATH ORACLE_BASE ORACLE_HOME ORACLE_SID
unset USERNAME

验证安装包,没装的原盘里面应该有,我用的是OEL 4
[root@nam /]# rpm -qa |grep 下面的软件
binutils
compat-libstdc++
elfutils-libelf
elfutils-libelf-devel
glibc
glibc-common
glibc-devel
gcc-
gcc-c++-
libaio-devel-
libaio-
libgcc-
libstdc++-
libstdc++-devel-
make-
sysstat-
unixODBC-
unixODBC-devel-

上传安装包,解压缩,./runInstaller图形化安装,后面过程相同。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16628454/viewspace-573211/,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-11-17

  • 博文量
    19
  • 访问量
    120528