AIX7.1安装oracle11g
环境配置:
成都创新互联是一家从事企业网站建设、成都网站建设、网站制作、行业门户网站建设、网页设计制作的专业的建站公司,拥有经验丰富的网站建设工程师和网页设计人员,具备各种规模与类型网站建设的实力,在网站建设领域树立了自己独特的设计风格。自公司成立以来曾独立设计制作的站点上千多家。
1).操作系统版本:
# oslevel -s
7100-01-06-1241
给rootvg做镜像:
# lsdev -Cc disk -- #查看系统盘的分配情况
hdisk0 Available 07-08-00 SAS Disk Drive
hdisk1 Available 07-08-00 SAS Disk Drive
hdisk2 Available 07-08-00 SAS Disk Drive
# chdev -l hdisk1 -a pv=yes --#将hdisk1配置为PV
hdisk1 changed
# extendvg -f rootvg hdisk1 --#将hdisk1配置入rootvg中(可以加-f参数强制执行添加到rootvg中的操作)
# mirrorvg rootvg
0516-1804 chvg: The quorum change takes effect immediately.
0516-1126 mirrorvg: rootvg successfully mirrored, user should perform
bosboot of system to initialize boot records. Then, user must modify
bootlist to include: hdisk1 hdisk0.
# bosboot -a -d /dev/hdisk1 --#将引导信息加入新盘中
bosboot: Boot p_w_picpath is 53276 512 byte blocks.
# bootlist -m normal hdisk0 hdisk1 --更改启动顺序
# lsvg -l rootvg
rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd5 boot 1 2 2 closed/syncd N/A
hd6 paging 33 66 2 open/syncd N/A
hd8 jfs2log 1 2 2 open/syncd N/A
hd4 jfs2 2 4 2 open/syncd /
hd2 jfs2 5 10 2 open/syncd /usr
hd9var jfs2 1 2 2 open/syncd /var
hd3 jfs2 39 78 2 open/syncd /tmp
hd1 jfs2 1 2 2 open/syncd /home
hd10opt jfs2 1 2 2 open/syncd /opt
hd11admin jfs2 1 2 2 open/syncd /admin
lg_dumplv sysdump 6 12 2 open/syncd N/A
livedump jfs2 1 2 2 open/syncd /var/adm/ras/livedump
安装CDE图形界面:
#smit install_bundle
安装路径选择/dev/cd0
INPUT device / directory for software [/dev/cd0]
安装选项选择CDE,如
# Bundle (Locations)
AllDevicesKernels
Alt_Disk_Install
App-Dev
CC_EVAL.DocServices
CC_EVAL.Graphics
CDE
DocServices
GNOME
最后选择安装设置,如。
* INPUT device / directory for software /dev/cd0
* BUNDLE CDE
* SOFTWARE to install [all]
……
ACCEPT new license agreements? yes
回车执行,安装提示插入第二张光盘,直到最后安装执行完成。
启动CDE
a、在AIX启动时自动启动CDE。使用root用户登录,并在命令行中执行:
# /usr/dt/bin/dtconfig -e
b、在命令行中启动CDE:
# /etc/rc.dt;exit
# /usr/dt/bin/dtlogin -daemon
c、确认CDE已经启动:
# ps -ef |grep dtlogin
# netstat -an |grep 177
2).修改系统时间和时区:
3).创建oracle用户和用户组:
# id oracle
uid=202(oracle) gid=201(oinstall) groups=402(dba),403(oper)
4)创建安装oracle数据库的目录:
创建datavg
#mkdir /u01
#mklv -t jfs2 -y lv_databack datavg 100G
-t 为逻辑卷类型
-y为逻辑卷名字
datavg是指定卷组
#crfs -v jfs2 -d lv_databack -A yes -m /databack
-v 为文件系统的类型
-d为逻辑卷名字
-A 为系统重启后自动挂载
-m为挂载的目录
#mount /u01
# df -g /u01
Filesystem GB blocks Free %Used Iused %Iused Mounted on
/dev/lv_u01 100.00 83.91 17% 42585 1% /u01
$ mkdir -p /u01/app/oracle/product/11.2.0/db_1
修改目录权限
修改oracle环境变量:
export ORACLE_SID=ORCL
export ORACLE_BASE=/u01/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
生效:
$ ./.profile
5)网卡绑定:
绑定前:
# lsdev -Cc adapter
ent0 Available 01-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent1 Available 01-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
绑定方法:smitty etherchannel
绑定后,多出了ent2网卡
# lsdev -Cc adapter | grep ent
ent0 Available 01-08 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent1 Available 01-09 2-Port 10/100/1000 Base-TX PCI-X Adapter (14108902)
ent2 Available EtherChannel / IEEE 802.3ad Link Aggregation
6)hosts文件:
# cat /etc/hosts | grep oracle
192.168.1.98 oracle
7)扩展交换分区:
chps -s 3 hd6 交换分区
# lsps -a
Page Space Physical Volume Volume Group Size %Used Active Auto Type Chksum
hd6 hdisk0 rootvg 16896MB 1 yes yes lv 0
安装基本条件:
The following operating system filesets are required for AIX 7.1:
bos.adt.base
bos.adt.lib
bos.adt.libm
bos.perf.libperfstat
bos.perf.perfstat
bos.perf.proctools
xlC.rte.11.1.0.2
or latergpfs.base 3.3.0.11
or later
系统其它设置
default:
fsize = -1
core = -1
cpu = -1
data = -1
rss = -1
stack = -1
nofiles = -1
2.4系统参数文件
lsattr -EH -l sys0 -a ncargs 检查内核参数ncargs的值
lsattr -EH -l sys0 -a maxuproc 检查内核参数maxuproc的值
ioo -o aio_maxreqs 在AIX7.1中检查内核参数maxreqs的值
修改命令:
chdev -l sys0 -a ncargs=256
chdev -l sys0 -a maxuproc=16384
ioo -o aio_maxreqs=65536 在AIX6.1中检查内核参数maxreqs的值
修改命令:
no -p -o tcp_ephemeral_low=9000
no -p -o tcp_ephemeral_high=65500
no -p -o udp_ephemeral_low=9000
no -p -o udp_ephemeral_high=65500
no -p -o udp_sendspace=655360
no -p -o udp_recvspace=655360
no -p -o tcp_sendspace=655360
no -p -o tcp_recvspace=655360
no -p -o rfc1323=1
no -p -o sb_max=1310720
no -r -o ipqmaxlen=512
上传oracle安装镜像:
jar xvf 镜像.ZIP。
安装,,,
遇到INS-30060错误,解决办法:# chmod 775 -R /tmp/CVU_11.2.0.3.0_oracle、
安装完成:
$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.3.0 Production on Thu Jan 29 14:17:59 2015
Copyright (c) 1982, 2011, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> !oslevel
7.1.0.0
补充:AIX挂载LINUX的NFS文件报错解决:
# showmount -e 192.168.1.13
export list for 192.168.1.13:
/var/ftp/software *.*
# mount 192.168.1.13:/var/ftp/software /software
mount: 1831-008 giving up on:
192.168.1.13:/var/ftp/software
vmount: Operation not permitted.
解决办法:
# nfso -o nfs_use_reserved_follvports=1
Setting nfs_use_reserved_ports to 1
# mount 192.168.1.13:/var/ftp/software /software
# df -g /software
Filesystem GB blocks Free %Used Iused %Iused Mounted on
192.168.1.13:/var/ftp/software 1574.90 948.00 40% 73951 1% /software
==================================================================
# mkgroup -'A' id='2000' adms='root' finstall
# mkgroup -'A' id='2001' adms='root' fdba
# mkgroup -'A' id='2002' adms='root' foper
# mkuser id='2010' pgrp='finstall' groups='fdba,foper' home='/home/fol' fol
# id fol
uid=2010(fol) gid=2000(finstall) groups=2001(fdba),2002(foper)
# passwd fol
Changing password for "fol"
fol's New password:
Enter the new password again:
# chdev -l hdisk30 -a pv=yes
hdisk30 changed
# mkvg -f -y datavg hdisk30
datavg
开机自启动
# chvg -ay datavg
# mkdir /fol
# mklv -t jfs2 -y follv datavg 100G
follv
# crfs -v jfs2 -d follv -A yes -m follv
File system created successfully.
104854196 kilobytes total disk space.
New File System size is 209715200
mkdir -p /fol/app/oracle/product/11.2.0/db_1
chown -R fol:finstall /fol/app/oracle
# chown -R fol:finstall /fol/app/oracle
# chmod -R 775 /fol/app/
export ORACLE_SID=CWFOLB
export ORACLE_BASE=/fol/app/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export PATH=$PATH:$ORACLE_HOME/bin
./runInstaller -invPtrLoc /fol/app/oracle/oraInst.loc
mklv -t jfs2 -y foldata datavg 450G
crfs -v jfs2 -d foldata -A yes -m /foldata
mklv -t jfs2 -y folarch datavg 250G
crfs -v jfs2 -d folarch -A yes -m /folarch
mklv -t jfs2 -y folback datavg 150G
crfs -v jfs2 -d folback -A yes -m /folback
网站题目:AIX7.1安装oracle11g
本文网址:http://pwwzsj.com/article/gedspe.html