1、检查操作系统版本
[root@ora10g ~]# uname -a
Linux ora10g.localdomain 2.6.18-164.el5 #1 SMP Thu Sep 3 02:16:47 EDT 2009 i686 i686 i386 GNU/Linux
[root@ora10g ~]# lsb_release-a
LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: EnterpriseEnterpriseServer
Description: Enterprise Linux Enterprise Linux Serverrelease 5.4 (Carthage)
Release: 5.4
Codename: Carthage
下载在Linux公社的1号FTP服务器里,下载地址:
密码:www.muu.cc
在 2011年LinuxIDC.com\11月\在Oracle VirtualBox 安装 Oracle 10g For Oracle Linux 5
下载方法见 http://www.linuxidc.net/thread-1187-1-1.html
2、检查内存大小
[root@ora10g ~]# free
total used free shared buffers cached
Mem: 1035140 339916 695224 0 19824 267012
-/+ buffers/cache: 53080 982060
Swap: 2096440 0 2096440
3、 检查磁盘空间利用率,
我们打算在/orasoft安装数据库软件
我们打算在/oradata目录中存放数据文件和归档日志
[root@ora10g ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda7 4.7G 3.0G 1.6G 66% /
/dev/sda6 2.0G 36M 1.9G 2% /tmp
/dev/sda3 4.9G 139M 4.5G 3% /orasoft
/dev/sda2 5.8G 141M 5.4G 3% /oradata
/dev/sda1 190M 12M 170M 7% /boot
tmpfs 506M 0 506M 0% /dev/shm
4、创建相关的用户及用户组和相关目录,并修改权限和所有者及所属组
[root@ora10g ~]# groupadd dba
[root@ora10g ~]# groupadd oinstall
[root@ora10g ~]# useradd -m -g oinstall -G dba -d /orasoft/home oracle
[root@ora10g ~]# 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@ora10g ~]# chown -R oracle:oinstall /orasoft/ /oradata/
[root@ora10g ~]# chmod -R 755 /orasoft/ /oradata/
[root@ora10g ~]# cd/
-bash: cd/: No such file or directory
[root@ora10g ~]# cd /
[root@ora10g /]# ls -rtl
total 162
drwxr-xr-x 2 root root 4096 Jan 9 2009 srv
drwxr-xr-x 2 root root 4096 Jan 9 2009 opt
drwxr-xr-x 2 root root 4096 Jan 9 2009 mnt
drwxr-xr-x 2 root root 4096 Jan 9 2009 media
drwxr-xr-x 2 root root 4096 Jan 9 2009 home
drwx------ 2 root root 16384 Nov 16 22:40 lost+found
drwxr-xr-x 2 root root 4096 Nov 16 22:41 selinux
drwxr-xr-x 14 root root 4096 Nov 16 22:46 usr
drwxr-xr-x 3 root root 4096 Nov 16 22:49 tftpboot
drwxr-xr-x 4 root root 1024 Nov 16 22:52 boot
drwxr-xr-x 13 root root 4096 Nov 16 22:53 lib
drwxr-xr-x 2 root root 4096 Nov 16 22:53 bin
drwxr-xr-x 2 root root 12288 Nov 16 22:53 sbin
drwxr-xr-x 23 root root 4096 Nov 16 22:58 var
drwxr-xr-x 3 oracle oinstall 4096 Nov 16 23:00 oradata
dr-xr-xr-x 94 root root 0 Nov 16 23:30 proc
drwxr-xr-x 11 root root 0 Nov 16 23:30 sys
drwxr-xr-x 2 root root 0 Nov 16 23:31 misc
drwxr-xr-x 2 root root 0 Nov 16 23:31 net
drwxrwxrwt 7 root root 4096 Nov 16 23:31 tmp
drwxr-xr-x 11 root root 3580 Nov 16 23:31 dev
drwxr-x--- 6 root root 4096 Nov 16 23:39 root
drwxr-xr-x 4 oracle oinstall 4096 Nov 16 23:46 orasoft
drwxr-xr-x 99 root root 12288 Nov 16 23:46 etc
4、 修改内核参数
在文件最后添加如下内容,相关参数介绍将会在后期的oracle安装参数详解中进行介绍,有兴趣的朋友可以继续关注
[root@ora10g /]# vi /etc/sysctl.conf
--这部分为共享内存参数设置
kernel.shmall = 2097152 --共享内存段最大页数
kernel.shmmax = 2147483648 --单个共享内存段大小的上限字节数
kernel.shmmni = 4096 --共享内存段的最小长度
kernel.sem = 250 32000 100 128 --信号量四个值分别代表:semmsl,semmns,semopm,semmni
fs.file-max = 65536 --配置系统中打开的最大文件数
net.ipv4.i