# ls -l /unix
32位内核升级到64位:
# ln -sf /usr/lib/boot/unix_64 /unix
//unix_64是一个用来读取64位内核的文件
//将unix文件链接到unix_64文件上,即当系统启动时,系统会通过读取unix文件而读取到unix_64这个文件
# ln -sf /usr/lib/boot/unix_64 /usr/lib/boot/unix
//做第二个链接,此文件本身就是一个链接文件
//“ln -s”:做一个软链接,f代表强制
# bosboot -ad /dev/ipldevice //修改启动信息
# shutdown -Fr //重启系统
64位内核降级到32位:
# ln -sf /usr/lib/boot/unix_mp /unix
//unix_32是一个用来读取32位内核的文件
# ln -sf /usr/lib/boot/unix_mp /usr/lib/boot/unix
# bosboot -ad /dev/ipldevice //修改启动信息
# shutdown -Fr //重启系统
补充完毕——————————————————————————————————————————————————————————————————
(2)确认文件系统、交换分区大小
# df -m//查看文件系统
注意项目:
/u01
单独创建一个文件系统放到u01下,不要放在根下,避免把根空间塞满处理起来较麻烦。即单独建立一个逻辑卷,把其挂载到u01下,在u01下存放oracle的所有文件。
在/u01单独作为文件系统的情况下,根也就不用分配太大的空间了。
/tmp
安装oracle之前,至少要有400M的临时空间,若tmp不够手工对其进行一下扩容。
%Used
不要超过80%,若发现某个空间超过80%了,一定要去扩容。
/home
设置给其2g,通常会使用ftp在home下上传一些文件,稍微给大一些,较方便。
# lsps -a //查看交换分区信息建议给4g
//因为这里机器内存为2g,交换分区设成是其两倍
//交换分区扩容时不要使用阵列上的磁盘(阵列若是多机使用有被删除的可能性),使用根卷下的磁盘
//对于根卷,不要给其添加新的物理卷(即不要将阵列上的盘添加到根卷上),因为阵列磁盘添加到根卷后,若将阵列上的扩充磁盘直接删除将会引起系统很多问题
【补充】:查看交换分区大小
————————————————————————————————————————————————————————————————————
方式一:# lsps -a
方式二:# lsps -s
补充完毕
————————————————————————————————————————————————————————————————————
(3)查看软件包的安装和补丁的安装
3.1 软件包的安装
# lslpp -l |grep bos.adt
# lslpp -l |grep -i xlc.rte
# lslpp -l |grep -i xlc
# lslpp -l |grep -i bos.perf
3.2 补丁包的安装
# instfix -ik IY58143
# instfix -ik IY59386
# instfix -ik IY60930
# instfix -ik IY66513
# instfix -ik IY70159
# instfix -ik IY68989
(4)修改系统内核参数
# smit system

Maximum number of PROCESSES allowed peruser 允许访问用户访问的进程个数
2048
(5)启动异步IO
# smit chaio
//启动异步IO要保证操作系统支持异步IO,如果操作系统不支持异步IO,要在oracle用户下去模拟一些异步的进程
//chaio代表change IO
STATE to be configured atsystem restart 系统下次启动设备状态
默认defined
修改成available//设备可用状态
(6)建立用户和组
使用smit user(或#smit mkuser)命令创建用户
users: oracle
oracle 501 /home/oracle
参考信息如下图:
# id oracle
# passwd oracle//用户设置密码
login: oracle
//要使用oracle用户登陆一次,因为第一次登陆会重设密码,之后用户才会生效
使用smit group(或#smit mkgroup)命令创建组
oinstall 501 false oracle root files
dba 502 false oracle root files
(7)修改oracle 用户读取内存页面的限制
#smit chuser//修改oracle参数设置
修改选项
Soft FILE size 可以读取或写入文件的大小
-1 不做限制
Soft DATA segment 堆栈的大小
-1 不做限制
Soft STACK size
-1 不做限制
Soft CORE file size
-1 不做限制
# cat/etc/security/limits//修改完参数后,会添加到limits文件中,查看到如下
*
* Sizes are in multiples of 512 byte blocks, CPU timeis in seconds
*
* fsize -soft file size in blocks
* core - softcore file size in blocks
* cpu -soft per process CPU time limit in seconds
* data -soft data segment size in blocks
* stack -soft stack segment size in blocks
* rss -soft real memory usage in blocks
* nofiles -soft file descriptor limit
* fsize_hard - hard file size in blocks
* core_hard -hard core file size in blocks
* cpu_hard -hard per process CPU time limit in seconds
* data_hard -hard data segment size in blocks
* stack_hard - hard stack segment size in blocks
* rss_hard -hard real memory usage in blocks
* nofiles_hard - hard file descriptor limit
*
* The following table contains the default hard valuesif the
* hard values are not explicitly defined:
*
* Attribute Value
* ========== ============
* fsize_hard set to fsize
* cpu_hard set to cpu
* core_hard -1
* data_hard -1
* stack_hard 8388608
* rss_hard -1
* nofiles_hard -1
*
* NOTE: A valueof -1 implies "unlim