二、生成oracle用户和dba组
1、 在 /目录下建oracle目录
# cd /
# mkdir oracle
2、建oracle用户和dba组
3、在 /oracle 目录下建以下几个子目录:
oracle
patchset
tmp
4、将patch文件拷至/oracle/patchset下
然后: # uncompress *.Z
# tar xvf SCO*
5、改变/oracle目录及其所属文件的属性
# cd /
# chown oracle:dba oracle
# cd /oracle
# chown -R oracle:dba *
# cd /oracle
# chmod 777 tmp
三、设置oracle环境变量
# cd /oracle/oracle
# vi .profile
四、mount CD
1、插入《Oracle7 Server Enterprise Edition》光盘
2、# mount /dev/cd0 /mnt
五、安装软件、建库
1、以oracle身份进入系统, 安装软件
$ cd /mnt/orainst
$ orainst
安装过程及详细步骤:
a 安装方式Install Type选用 "Custom Installation" ,
b Select the Installer activity:选"Install,Upgrade,or De_install Software"
c Installation options:Install New product -Do Not create DB Object
d Environment Variables:用默认值
e login and Status:用默认值
f Pre_Installation OS Preparation:询问是否已执行
rootpre.sh,此时切换至 root用户,
然后:# cd /mnt/orainst
# sh rootpre.sh
再切换回安装界面,选Yes
g Install Source:选Install from CD_ROM
h NLS:选All Languages
i Relink All Excutables? :选Yes
j Software Asset Manager:此时进入安装选择画面
安装选项: Oracle Intelligent Agent
Oracle Distributed DB
Oracle Unix install
Oracle Server 7.3.4 DBMS
PL/SQL
SQL*NET
Pro*C
SQL *Module for C
SQL*Plus
TCP/IP
k DBA Group:选dba
l OSOPER Group:dba
m 开始安装直至结束
2、安装 patch
patch的作用是将 Oracle7.3.4 升至 Oracle7.3.4.2
$ cd /mnt/orainst
$ orainst
安装过程及详细步骤:
a 安装方式Install Type选用 Custom Installation
b Select the Installer activity: 选 Install,Upgrade,or De_install Software
c Installation options: 选Add/Upgrade Software
d Installation Options:Home locator : 用默认值
e loggin and Status:用默认值
f Pre_Installation OS Preparation:选Yes
g Install Source:选Install from Staging Area
h Staging Area:Temporary Staging Area
i Source Staging Area: 不输入
j NLS:选All Languages
k Relink All Excutables? :选Yes
l Root Install Script File: Append root-related actions to this file
m Software Asset Manager:此时进入安装选择画面
用From...选择数据源路经,选:
/oaracle/patchset/7.3.4.2.0/unix.prd:
并安装:Oracle7 Server (RDBMS) 7.3.4.2.0
n Upgrade:选Yes
o Upgrade:选Yes
p DBA Group:选dba
q OSOPER Group:dba
r 开始安装直至结束
3、切换至 root 用户,执行root.sh
# cd $ORACLE_HOME/orainst
# sh root.sh
4、改cnfg.orc文件
# cd $ORACLE_HOME/rdbms/install/rdbms
# vi cnfg.orc
设: db_block_size = 4096
5、创建数据库
切换至 oracle 用户
$ cd /mnt/orainst
$ orainst
安装过程及详细步骤:
a 安装方式Install Type选用 Custom Installation
b Select the Installer activity: 选Create/Upgrade Datebase Objects
c Installation options: Create Database Objects
d Environment Variables:用默认值
e login and Status:用默认值
f Pre_Installation OS Preparation:选Yes
g ORACLE_SID:ora7
h Software Asset Manager:此时进入安装选择画面
安装选项: Oracle Intelligent Agent
Oracle Distributed DB
Oracle Server 7.3.4 DBMS
PL/SQL
SQL*NET
Pro*C
SQL *Module for C
SQL*Plus
TCP/IP
i Database Action:Create Product DB Objects
j Storage Type:选Filesystem-Based Database
k Create DB Objects(F/S): Control File Distribution: 选No
l mount Point locator(Control file 的位置): 输入 /oracle
m Character set (选择字符集): 选Others...并输入zh16cgb231280
n System Password: 输入口令两遍(manager)
o Sys Password: 输入口令两遍(manager)
p dba Password? : Yes
q dba Password: 输入口令两遍(manager)
r orapwd entries value : 16
s Configure MTS and Start a SQL*NET listener called 'listener':
选No
t Create DB Object(F/S):Control File Loctor:选Yes
u DB defaults :用默认值
v Default DB.........:选No
w Create DB Object(F/S): System file loctor :
数据文件路径全用用默认值,大小变动如下:
SYSTEM 40M -->; 80M
LOG1 550K -->; 1M
LOG2 550K -->; 1M
LOG3 550K -->;1M
ROLLBACK 25M -->; 50M
TEMP 25M -->; 50M
USERS -->; 50M
TOOLS 15M -->; 15M
x Default DB: Yes
y Help Facility ?: Yes
z Demo Tables?: Yes
z1 开始安装直至结束