软件:
Aix 6.1
Oracle11g
放入光盘,启动系统,听到嘟的一声,速度按5,然后选择语言,进入菜单,选择全新安装。
等待。。。。。。
Xmanger连接aix的远程桌面
smit install
选择光盘
按f4 选择ssl安装,共三个包。
因为安装ssh之前必须装ssl,所以先装ssl,之后装ssh。
按“/”输入openssl。Esc+7选中3个包。回车
PREVIEW only? (install operation will NOT occur) no /yes 这个选项如果是yes就是试安装,就是尝试去安装一个软件,先检查有没有error,在确认安装。
ACCEPT new license agreements? Yes这个选项需要是yes
下面就回车开始安装了,后面的ssh和ssl安装一样。这里就不多写了。
装完ssh之后,需要启动sshd
# lssrc -a | grep ssh
sshd ssh 7274618 active
# startsrc -s sshd
0513-029 The sshd Subsystem is already active.
Multiple instances are not supported.
一般情况下上传软件不是很大,感觉不到问题,我传oracle的时候老报错,说什么空间不足,结果查了半天,百度上搜了一下,才发现需要修改aix ftp上传文件限制。
如下:
# cd /etc/security
# vi limits
修改
default:
default:
fsize = -1
core =-1
cpu = -1
data = -1
rss =-1
stack = -1
nofiles =-1
将这两个参数修改为1,重启之后再上传就好了。
上传软件
客户端上传
ftp 192.168.8.254
mput aix*
aix上查看
ls
解压
# jar -xvf aix.*.zip
在安装好AIX6.1的IBM小型机上检查安装环境及必要的AIX软件及补丁:
1、检查物理内存,swap空间以及tmp空间
#/usr/sbin/lsattr –E –l sys0 –a realmem(检查内存至少1G)
#lsps -a 检查swap空间 (oracle建议如果物理内存在1~2G swap为1.5RAM,物理内存为2~8G swap=RAM;物理内存大于8G,swap=3/4RAM) --根据实际可做适当调整。)
# df -g /tmp 看下tmp目录大小,oracle建议在150m~200m。(aix6.1默认为2g,所以足以,不用调整或根据使用要求做相应调整)
2、检查是否包含已经的包(ORACLE 安装要求的软件包)
bos.adt.base
bos.adt.lib
bos.adt.libm
bos.perf.libperfstat
bos.perf.perfstat
bos.perf.proctools
xlC.aix61.rte:9.0.0.1 or later (AIX 6.1)
xlC.rte:9.0.0.1 or later (AIX 6.1)
可以用:# lslpp –l 后边加上上面的文件名检查是否安装
3、创建用户和组
分别创建dba和oinstall组
#smit mkgroup
或者命令
#mkgroup -A oinstall
# mkgroup dba
# cat /etc/group
system:!:0:root,pconsole,esaadmin
staff:!:1:ipsec,esaadmin,sshd,sybase,radiusd
bin:!:2:root,bin
sys:!:3:root,bin,sys
adm:!:4:bin,adm
uucp:!:5:uucp,nuucp
mail:!:6:
security:!:7:root
cron:!:8:root
printq:!:9:lp
audit:!:10:root
ecs:!:28:
nobody:!:4294967294:nobody,lpd
usr:!:100:guest
perf:!:20:
shutdown:!:21:
lp:!:11:root,lp
invscout:!:12:invscout
snapp:!:13:snapp
ipsec:!:200:
pconsole:!:14:pconsole
sshd:!:201:sshd
sybase:!:202:sybase
oinstall:!:401:oracle,grid
dba:!:402:oracle,grid
radiusd:!:205:radiusd
创建用户
smit mkuser
或者
#mkuser pgrp='oinstall' groups=dba oracle
# cat /etc/passwd
root:!:0:0::/:/usr/bin/ksh
daemon:!:1:1::/etc:
bin:!:2:2::/bin:
sys:!:3:3::/usr/sys:
adm:!:4:4::/var/adm:
uucp:!:5:5::/usr/lib/uucp:
guest:!:100:100::/home/guest:
nobody:!:4294967294:4294967294::/:
lpd:!:9:4294967294::/:
lp:*:11:11::/var/spool/lp:/bin/false
invscout:*:6:12::/var/adm/invscout:/usr/bin/ksh
snapp:*:200:13:snapp login user:/usr/sbin/snapp:/usr/sbin/snappd
ipsec:*:201:1::/etc/ipsec:/usr/bin/ksh
nuucp:*:7:5:uucp login user:/var/spool/uucppublic:/usr/sbin/uucp/uucico
pconsole:*:8:0::/var/adm/pconsole:/usr/bin/ksh
esaadmin:*:10:0::/var/esa:/usr/bin/ksh
sshd:*:202:201::/var/empty:/usr/bin/ksh
sybase:!:203:202::/sybase:/usr/bin/ksh
oracle:!:401:401::/home/oracle:/usr/bin/ksh
grid:!:402:401::/home/grid:/usr/bin/ksh
radiusd:*:204:205::/home/radiusd:/usr/bin/ksh
为oracle用户设置口令
passwd oracle
4、创建安装目录
mkdir –p /oracle/products/11/db
chown –R oracle:oinstall /oracle/products
chmod –R 777 /oracle/products
查看/oracle目录大小
# df -g /oracle
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/fslv00 20.00 15.00 25% 3461 1% /oracle
# cat /home/oracle/.profile
export ORACLE_SID=wolf
export ORACLE_BASE=/oracle/products/
export ORACLE_HOME=$ORACLE_BASE/11/db
export PATH=$PATH:$ORACLE_HOME/bin
# xhost +
access control disabled, clients can connect from any host
# su - oracle
$ export DISPLAY=192.168.8.126:1.0
$ ls
smit.log smit.script smit.transaction
$ cd /oracle
$ ls
aix.ppc64_11gR2_database_1of2.zip lost+found
aix.ppc64_11gR2_database_2of2.zip products
database
$ cd database
$ ls
doc response rootpre.sh runInstaller stage
install rootpre rpm sshsetup welcome.html
$ ./runInstaller
********************************************************************************
Your platform requires the root user to perform certain pre-installation
OS preparation. The root user should run the shell script 'rootpre.sh' before
you proceed with Oracle installation. rootpre.sh can be found at the top level
of the CD or the stage area.
Answer 'y' if root has run 'rootpre.sh' so you can proceed with Oracle
installation.
Answer 'n' to abort installation and then ask root to run 'rootpre.sh'.
********************************************************************************
Has 'rootpre.sh' been run by root? [y/n] (n)
y
Starting Oracle Universal Installer...
Checking Temp space: must be greater than 190 MB. Actual 824 MB Passed
Checking swap space: must be greater than 150 MB. Actual 4608 MB Passed
Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2012-07-06_04-22-38PM. Please wait ...$
下面我们只安装数据库软件,
然后通过netca配置监听
通过dbca创建数据库
欢迎加入qq群:
119224876(db china联盟),233065499(db china联盟),229845401(虚拟化-云计算-物联网)