1. 建议完全方式安装Linux
2.视窗方式运行Linux,如果不是视窗,可以更改一下配置使启动的时候变为图形方式,配置如下
  #vi /etc/inittab
 
[root@localhost ~]# vi /etc/inittab
#
# inittab      This file describes how the INIT process should set up
#              the system in a certain run-level.
#
# Author:      Miquel van Smoorenburg, <miquels@drinkel.>
#              Modified for RHS Linux by Marc Ewing and Donnie Barnes
#
# Default runlevel. The runlevels used by RHS are:
#  0 - halt (Do NOT set initdefault to this)
#  1 - Single user mode
#  2 - Multiuser, without NFS (The same as 3, if you do not have networking)
#  3 - Full multiuser mode
#  4 - unused
#  5 - X11
#  6 - reboot (Do NOT set initdefault to this)
#
id:5:initdefault:    #将此处改为 id:3:initdefault:
# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit
l0:0:wait:/etc/rc.d/rc 0
3. 新建一个oracle用户,新建用户密码为oracle
[root@localhost ~]# useradd oracle
[root@localhost ~]# 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.
4.新建一个dba
[root@localhost ~]# groupadd dba
5.oracle用户加入dba
[root@localhost ~]# usermod -G dba oracle
------说明:此步如果写为 usermod -G oracle dba将会导致如下错误循环
[oracle@localhost oracle10files]$ ./runInstaller
Starting Oracle
Checking
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
                                      Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-09-08_01-21-44PM. Please wait ...sh: /tmp/oracle10files/install/unzip: Permission denied
Error in writing to directory /tmp/OraInstall2011-09-08_01-21-44PM. Please ensure that this directory is writable and has atleast 60 MB of disk space. Installation cannot continue.
: Success
6.建立oracle安装目录/oracle,和数据库安装目录/oradata
[root@localhost ~]# mkdir /oracle
[root@localhost ~]# mkdir /oradata
7.修改目录权限,仅属于dba组下的oracle用户
[root@localhost ~]# chown -R oracle:dba /oracle
[root@localhost ~]# chown -R oracle:dba /oradata
8.进入oracle安装源文件目录,本人放在oracle登录命令/tmp/oracle10files
[root@localhost tmp]# cd /tmp/oracle10files
[root@localhost oracle10files]#
9.更换用户oracle进行安装
[root@localhost oracle10files]# su oracle
[oracle@localhost oracle10files]$
10.运行./runInstall
[oracle@localhost oracle10files]$ ./runInstaller
bash: ./runInstaller: Permission denied
----说明oracle用户没有权限运行此文件
[oracle@localhost oracle10files]$ ls -l
total 28
drwxr-xr-x 9 root root 4096 Aug 15 13:11 doc
drwxr-xr-x 5 root root 4096 Aug 15 13:11 install
drwxr-xr-x 2 root root 4096 Aug 15 13:11 response
-rw-r--r-- 1 root root 1327 Jul  2  2005 runInstaller
drwxr-xr-x 9 root root 4096 Aug 15 13:11 stage
-rw-r--r-- 1 root root 5100 Jul  2  2005 welcome.html
[oracle@localhost oracle10files]$
-----runInstaller缺少x权限
11.给runInstaller加上x权限
[oracle@localhost oracle10files]$ exit
exit
[root@localhost oracle10files]# chmod +x runInstaller
[root@localhost oracle10files]#
12. 更换用户oracle进行安装
[root@localhost oracle10files]# su oracle
[oracle@localhost oracle10files]$
[oracle@localhost oracle10files]$ ./runInstaller
./runInstaller: line 54: /tmp/oracle10files/install/.oui: Permission denied
-----说明/tmp/oracle10files/install/.oui权限不够
13. 给/tmp/oracle10files/install/.oui加上x权限
[oracle@localhost oracle10files]$ exit
exit
[root@localhost oracle10files]# chmod +x /tmp/oracle10files/install/.oui
14. 更换用户oracle进行安装
[root@localhost oracle10files]# su oracle
[oracle@localhost oracle10files]$
[oracle@localhost oracle10files]$ ./runInstaller
Starting Oracle
Checking
Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
                                      Passed
All installer requirements met.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2011-09-08_01-21-44PM. Please wait ...sh: /tmp/oracle10files/install/unzip: Permission denied
Error in writing to directory /tmp/OraInstall2011-09-08_01-21-44PM. Please ensure that this directory is writable and has atleast 60 MB of disk space. Installation cannot continue.
: Success
[oracle@localhost oracle10files]$
-----------说明/tmp/OraInstall2011-09-08_01-21-44PM和/tmp/oracle10files/install/unzip 权限不够

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。