一、下载软件
从这里download Oracle10g for AIX5L的软件:
然后上传到server上。并使用gunzip和cpio解包解压:
$gunzip ship.db.aix.disk1.cpio.gz
$gunzip ship.db.aix.disk2.cpio.gz
$cpio -idcmv $cpio -idcmv
二、确认系统硬件环境
Oracle10g最低安装要求:
512M物理内存、MIN(RAM*2,2G) SWAP空间、400M /TMP空间、4G Oracle目录空间、64位体系结构
下面是确认过程:
1、确认内存大小(1G)
localhost> /usr/sbin/lsattr -E -l sys0 -a realmem
realmem 1048576 Amount of usable physical memory in Kbytes False
这里oracle10g安装文档创砹耍??皊ys0(数字0)”写成了“sysO(字母O)”。
2、确认SWAP空间,512M太小了,加到2G。
localhost> /usr/sbin/lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type
hd6 hdisk0 rootvg 512MB 12 yes yes lv
3、确认/TMP和Oracle目录空间(其中Oracle10g放在/data1下):
localhost> df -k
Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
/dev/hd4 32768 14676 56% 2176 14% /
/dev/hd2 1933312 516400 74% 35398 8% /usr
/dev/hd9var 65536 43496 34% 623 4% /var
/dev/hd3 917504 691884 25% 1034 1% /tmp
/dev/hd1 10911744 4097144 63% 18636 1% /home
/proc - - - - - /proc
/dev/hd10opt 32768 23328 29% 362 5% /opt
/dev/lv00 2097152 937572 56% 708 1% /ptf
/dev/data1lv 13107200 10559980 20% 2735 1% /data1
4、确认系统结构
localhost> /usr/bin/getconf HARDWARE_BITMODE
64
5、我们可以通过下面的命令来确认系统个数和主频:
# lsdev -C |grep proc
proc0 Available 00-00 Processor
proc1 Available 00-01 Processor
# lsattr -E -l proc0
frequency 752010000 Processor Speed False
state enable Processor state False
type PowerPC_RS64-III Processor type False
# lsattr -E -l proc1
frequency 752010000 Processor Speed False
state enable Processor state False
type PowerPC_RS64-III Processor type False
三、确认系统软件环境
1、要求AIX必须是5.2 LEVEL 1以上(含LEVEL 1):
localhost> oslevel -r
5200-01
2、要求安装了这些FILESETS:
localhost> lslpp -l bos.adt.base bos.adt.lib bos.adt.libm bos.perf.perfstat
bos.perf.libperfstat bos.perf.proctools
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
bos.adt.base 5.2.0.11 APPLIED Base Application Development
Toolkit
bos.adt.lib 5.2.0.10 APPLIED Base Application Development
Libraries
bos.adt.libm 5.2.0.13 APPLIED Base Application Development
Math Library
bos.perf.libperfstat 5.2.0.12 APPLIED Performance Statistics Library
Interface
bos.perf.perfstat 5.2.0.12 APPLIED Performance Statistics
Interface
Path: /etc/objrepos
bos.perf.perfstat 5.2.0.0 COMMITTED Performance Statistics
Interface
lslpp: 0504-132 Fileset bos.perf.proctools not installed.
可以看到bos.perf.proctools没有安装,用smitty安装上即可。现在查看确认:
localhost> lslpp -l bos.perf.proctools
Fileset Level State Description
----------------------------------------------------------------------------
Path: /usr/lib/objrepos
bos.perf.proctools 5.2.0.11 APPLIED Proc Filesystem Tools
3、要求安装了APARs(Authorized Problem Analysis Reports):
localhost> /usr/sbin/instfix -i -k "IY43980 IY44810 IY45462 IY45707 IY46214
IY46605 IY48525 IY51801"
All filesets for IY43980 were found.
All filesets for IY44810 were found.
All filesets for IY45462 were found.
All filesets for IY45707 were found.
All filesets for IY46214 were found.
All filesets for IY46605 were found.
There was no data for IY48525 in the fix database.
There was no data for IY51801 in the fix database.
可以看到IY48525和IY51801没有安装,我们可以从网上下载它们然后安装上,这里是下载地址:
但实际上,这两个补丁是针对SDK1.4的, 如果不用1.4完全可以不理。
4、创建Oracle10g用户和组,并创建相关目录
过程省略,下面是确认:
localhost> id
uid=203(ora10) gid=202(dba) groups=1(staff)
localhost> pwd
/data1/ora10
localhost> env|grep ORA
ORACLE_BASE=/data1/app/ora10g
ORACLE_PATH=/data1/app/ora10g/product/10.1.0/dbs
ORA_DB=/data1/app/ora10g/product/10.1.0/dbs
ORACLE_SID=ora10g
ORACLE_TERM=vt100
ORA_NLS33=/data1/app/ora10g/product/10.1.0/ocommon/nls/admin/data
ORACLE_HOME=/data1/app/ora10g/product/10.1.0
5、配置SHELL LIMITS和系统 配置参数
5.1、使用smitty chuser修改ora10用户的SHELL LIMITS
Soft FILE size -1 (Unlimited)
Soft CPU time -1 (Unlimited)
Note: This is the default value.
Soft DATA segment -1 (Unlimited)
Soft STACK size -1 (Unlimited)
5.2、使用smitty chgsys修改“Maximum number of PROCESSES allowed per user”最小2048。
四、安装过程
1、以root执行# ./rootpre.sh
2、用xmanager以ora10用户登录图形界面,执行:
localhost> pwd
/data1/ora10/Disk1
localhost> ls
doc response runInstaller welcome.htm
install rootpre stage
$xhost +
$export DISPLAY=10.16.98.26:0.0
$./runI*