Red Hat Enterrise Linux4
Update5 环境下静默方安装
Oracle10.2.0.1升级到 10.2.0.3
数据库,并创建数据库
Oracle10G 安装
目录
一、检查安装环境:
LinuxAS4Update5在安装时,将所有开发相关的组件全部安装;
[root@localhost ~]# rpm -q binutils compat-db control-center gcc gcc-c++ glibc
glibc-common gnome-libs libstdc++ libstdc++-devel make pdksh sysstat xscreensaver libaio
binutils-2.15.92.0.2-22
compat-db-4.1.25-9
control-center-2.8.0-12.rhel4.5
gcc-3.4.6-8
gcc-c++-3.4.6-8
glibc-2.3.4-2.36
glibc-common-2.3.4-2.36
gnome-libs-1.4.1.2.90-44.1
libstdc++-3.4.6-8
libstdc++-devel-3.4.6-8
make-3.80-6.EL4
pdksh-5.2.14-30.3
package sysstat is not installed
xscreensaver-4.18-5.rhel4.13
libaio-0.3.105-2
[root@localhost ~]#
sysstat 没有安装,在安装盘 4 中的 下找到
sysstat-5.0.5-14.rhel4.i386.rpm ,上传至 LINUX机器并安装
[root@localhost ~]# rpm -Uvh sysstat-5.0.5-14.rhel4.i386.rpm
warning: sysstat-5.0.5-14.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e
Preparing... ########################################### [100%]
1:sysstat ########################################### [100%]
[root@localhost ~]#
安装后检查:
[root@localhost ~]# rpm -q sysstat
sysstat-5.0.5-14.rhel4
[root@localhost ~]#
安装成功!
判断本机是否安装过 oracle:
[root@localhost ~]# more /etc/oraInst.loc
/etc/oraInst.loc: No such file or directory
[root@localhost ~]#
表示没有安装过 oracle
创建安装 Oracle 需要的用户和组:
[root@localhost ~]# groupadd oinstall
[root@localhost ~]# groupadd dba
[root@localhost ~]# useradd -m -g oinstall -G dba oracle
[root@localhost ~]#
设置 oracle 用户密码,这里设置为“ 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.
[root@localhost ~]#
创建安装 oracle 所需的目录:
[root@localhost ~]# mkdir -p /u01/app/oracle/db_1
[root@localhost ~]# chown oracle.oinstall /u01/app/oracle
[root@localhost ~]# chown oracle.oinstall /u01/app/oracle/db_1
[root@localhost ~]#
配置 Linux 系统内核参数:
[root@localhost ~]# vi /etc/sysctl.conf
修改或添加以下参数:
kernel.shmall = 2097152
kernel.shmmax = 256000000
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
fs.file-max = 65536
net.ipv4.ip_local_port_range = 1024 65000