1 AIX系统的安装使用AIX 5300L5的介质,根据系统提示进行安装这一步很简单,不详细说明安装完成后需要设置好系统时区、时间和网路。
2 调整文件系统初步装好的系统,其文件系统如下:# df -kFilesystem 1024-blocks Free %Used Iused %Iused Mounted on/dev/hd4 32768 15648 53% 1724 11% //dev/hd2 1212416 8764 100% 31825 11% /usr/dev/hd9var 32768 23884 28% 369 5% /var/dev/hd3 65536 63404 4% 30 1% /tmp/dev/hd1 32768 31684 4% 18 1% /home/proc - - - - - /proc/dev/hd10opt 65536 14304 79% 981 6% /opt
查看vg情况# lsvg -l rootvgrootvg:LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINThd5 boot 1 1 1 closed/syncd N/Ahd6 paging 16 16 1 open/syncd N/Ahd8 jfslog 1 1 1 open/syncd N/Ahd4 jfs 1 1 1 open/syncd /hd2 jfs 37 37 1 open/syncd /usrhd9var jfs 1 1 1 open/syncd /varhd3 jfs 2 2 1 open/syncd /tmphd1 jfs 1 1 1 open/syncd /homehd10opt jfs 2 2 1 open/syncd /opt
# lsvg -p rootvgrootvg:PV_NAME PV STATE TOTAL PPs FREE PPs FREE DISTRIBUTIONhdisk0 active 543 481 108..93..63..108..109
其中vgroot还有空余的481个PP,由于我的PP大小为32M,所以还有481*32M=15392M的空间可以使用。
接下来要对原先的文件系统进行调整。以/usr为例:原先/usr的大小为32(PPs)*32M(PP SIZE)=1G# lslv hd2LOGICAL VOLUME: hd2 VOLUME GROUP: rootvgLV IDENTIFIER: 0006faaa00004c0000000111fd3878b2.5 PERMISSION: read/writeVG STATE: active/complete LV STATE: opened/syncdTYPE: jfs WRITE VERIFY: offMAX LPs: 32512 PP SIZE: 32 megabyte(s)COPIES: 1 SCHED POLICY: parallelLPs: 32 PPs: 32STALE PPs: 0 BB POLICY: relocatableINTER-POLICY: minimum RELOCATABLE: yesINTRA-POLICY: center UPPER BOUND: 32MOUNT POINT: /usr LABEL: /usr
将/usr的大小变为2G# chfs -a size=2048M /usrFilesystem size changed to 4194304
# df -kFilesystem 1024-blocks Free %Used Iused %Iused Mounted on/dev/hd4 32768 15632 53% 1724 11% //dev/hd2 2097152 865732 59% 31825 7% /usr/dev/hd9var 32768 23884 28% 369 5% /var/dev/hd3 65536 63396 4% 30 1% /tmp/dev/hd1 32768 31684 4% 18 1% /home/proc - - - - - /proc/dev/hd10opt 65536 14304 79% 981 6% /opt
# lslv hd2LOGICAL VOLUME: hd2 VOLUME GROUP: rootvgLV IDENTIFIER: 0006faaa00004c0000000111fd3878b2.5 PERMISSION: read/writeVG STATE: active/complete LV STATE: opened/syncdTYPE: jfs WRITE VERIFY: offMAX LPs: 32512 PP SIZE: 32 megabyte(s)COPIES: 1 SCHED POLICY: parallelLPs: 64 PPs: 64STALE PPs: 0 BB POLICY: relocatableINTER-POLICY: minimum RELOCATABLE: yesINTRA-POLICY: center UPPER BOUND: 32MOUNT POINT: /usr LABEL: /usr
其他的文件系统根据自己的需求进行设置就可以了,下面是我的设置:Filesystem 1024-blocks Free %Used Iused %Iused Mounted on/dev/hd4 32768 16708 50% 1777 11% //dev/hd2 2097152 811420 62% 32230 7% /usr/dev/hd9var 262144 245636 7% 380 1% /var/dev/hd3 1048576 796292 25% 457 1% /tmp/dev/hd1 262144 253744 4% 27 1% /home/proc - - - - - /proc/dev/hd10opt 2097152 1938404 8% 2302 1% /opt
oracle安装时需要的空间比较大,所以单独划了一个文件系统。# crfs -v jfs -g rootvg -m /oracle -a size=8196M -a bf=true
其中文件系统的类型时JFS的,大小8个G,支持大文件。
最终的文件系统划分如下:# df -kFilesystem 1024-blocks Free %Used Iused %Iused Mounted on/dev/hd4 32768 15580 53% 1727 11% //dev/hd2 2097152 865732 59% 31825 7% /usr/dev/hd9var 262144 246068 7% 373 1% /var/dev/hd3 524288 507704 4% 34 1% /tmp/dev/hd1 262144 253748 4% 18 1% /home/proc - - - - - /proc/dev/hd10opt 2097152 1981172 6% 981 1% /opt/dev/lv00 8388608 8125260 4% 17 1% /oracle
3 检查系统物理内存 # lsattr -E -l sys0 -a realmemrealmem 1048576 Amount of usable physical memory in Kbytes False
# lsattr -E -l mem0goodsize 1024 Amount of usable physical memory in Mbytes Falsesize 1024 Total amount of physical memory in Mbytes False可以看到,我的系统的物理内存为1G
4 检查虚拟内存# lsps -a Page Space Physical Volume Volume Group Size %Used Active Auto Typehd6 hdisk0 rootvg 512MB 4 yes yes lv可以看到我的系统原先的虚拟内存为512M,一般需要将其设置成物理内存的两倍大小
通过将SWAP分区所在的逻辑分区扩展48个PP的大小,即48*32M=1536M,加上原来的512M正好为2G# extendlv hd6 32# lsps -aPage Space Physical Volume Volume Group Size %Used Active Auto Typehd6 hdisk0 rootvg 2048MB 1 yes yes lv
5 检查CPU情况# lsdev -C | grep proc proc0 Available 00-00 Processor
# lsattr -E -l proc0frequency 450000000 Processor Speed Falsesmt_enabled false Processor SMT enabled Falsesmt_threads 0 Processor SMT threads Falsestate enable Processor state Falsetype PowerPC_POWER3 Processor type False
6 确认系统结构# getconf HARDWARE_BITMODE64
7 确认安装oracle所需的系统库文件是否安装lslpp -l bos.adt.base bos.adt.lib bos.adt.libm bos.perf.perfstat bos.perf.libperfstat bos.perf.proctools bos.adt.prof bos.cifs_fs.rteFileset Level State Description ----------------------------------------------------------------------------Path: /usr/lib/objreposbos.adt.base 5.3.0.50 COMMITTED Base Application DevelopmentToolkit bos.adt.lib 5.3.0.50 COMMITTED Base Application DevelopmentLibraries bos.adt.libm 5.3.0.40 COMMITTED Base Application DevelopmentMath Library bos.adt.prof 5.3.0.50 COMMITTED Base Profiling Support bos.cifs_fs.rte 5.3.0.50 COMMITTED Runtime for SMBFS bos.perf.libperfstat 5.3.0.50 COMMITTED Performance Statistics LibraryInterface bos.perf.perfstat 5.3.0.50 COMMITTED Performance StatisticsInterface bos.perf.proctools 5.3.0.50 COMMITTED Proc Filesystem Tools
Path: /etc/objreposbos.cifs_fs.rte 5.3.0.50 COMMITTED Runtime for SMBFS bos.perf.libperfstat 5.3.0.50 COMMITTED Performance Statistics LibraryInterface bos.perf.perfstat 5.3.0.50 COMMITTED Performance StatisticsInterface如果有库文件没有安装,请使用smitty(CLI)或smit(GUI),根据向导进行安装。
8 对于ORACLE10.2.0.1版本的数据库需要确认系统安装如下补丁:/usr/sbin/instfix -i -k "IY89080"如果补丁没有安装,请使用smitty(CLI)或smit(GUI),根据向导进行安装,打完补丁后,需要重启机器。
至此,OS部分的安装就完成了。
/********************ORACLE 10.2.0.1安装与配置********************/1 从oracle官方网站上下载Oracle Database 10g Release 2 (10.2.0.1.0) for AIX5L
下载网页链接如下:http://www.oracle.com/technology/so...201aixsoft.html注意下载需要首先注册成为oracle网站的用户
现在的文件如下:10gr2_aix5l64_database.cpio.gz (1,268,576,110 bytes) (cksum - 3772623559)
将下载好的压缩包通过FTP上传到AIX上,并通过如下命令进行解压缩:gunzip 10gr2_aix5l64_database.cpio.gzcpio -idcmv < 10gr2_aix5l64_database.cpio.gz
2 创建用户组oinstall和dba3 创建oracle用户,用户组为oinstall和dba修改oracle用户的系统限额vi /etc/security/limitsdefault:fsize = -1core = 2097151cpu = -1data = 262144rss = 65536stack = 65536nofiles = 2000
root:
daemon:
bin:
sys:
adm:
uucp:
guest:
nobody:
lpd:
oracle:data = -1stack = -1
修改oracle用户的.pofile文件ORACLE_BASE=/oracle;export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/10.2.0; export ORACLE_HOMEORACLE_SID=icdvm;export ORACLE_SID
PATH=$ORACLE_HOME/bin:$PATH;export PATH4 以root执行rootpre.sh5 以oracle用户登陆export DISPLAY=本机的IP地址:0.0如export DISPLAY=192.168.100.167:0.0然后执行runInstall.sh脚本,根据GUI向导进行oracle的安装
至此,oracle的安装就完成了。