1InsatllOracle11gR2Client.docx
《1InsatllOracle11gR2Client.docx》由会员分享,可在线阅读,更多相关《1InsatllOracle11gR2Client.docx(14页珍藏版)》请在冰豆网上搜索。
1InsatllOracle11gR2Client
1.1前提条件
1.1.1内存和互换空间要求
至少需要256M的物理内存,互换空间的大小规那么查看下表
RAM
SwapSpace
Between0MBand256MB
3timesthesizeofRAM
Between256MBand512MB
2timesthesizeofRAM
Between512MBand2GB
timesthesizeofRAM
Between2GBand16GB
EqualtothesizeofRAM
Morethan16GB
16GB
执行命令查看物理内存和互换空间大小
#/usr/sbin/lsattr-E-lsys0-arealmem
#/usr/sbin/lsps-a
1.1.2/tmp文件系统空间要求
执行命令查看/tmp空间大小,至少130M
#df–k/tmp
1.1.3操作系统文件集要求
查看文件集和操作系统版本是不是符合要求,操作系统至少是AIXTL02SP1
#lslpp-l\
oslevel-s
1.1.4补丁要求
若是系统是AIXTL04或更新的版本,就不需要另外安装补丁,若是APAR已经安装,能够执行
#/usr/sbin/instfix-i-k"IZ42940IZ49516IZ52331IZ41855IZ52319"
1.2安装预备
1.2.1预备XWindows连接工具
1.2.2创建oracle文件系统、dba组、oracle用户
mklv-yoraclelv-tjfs2rootvg8G
crfs-vjfs2-d/dev/oraclelv-m/oracle-Ayes
mount/oracle
mkgroupid=111dba
mkuserid=111pgrp=dbagroups=dbahome=/oracleoracle
chownoracle:
dba/oracle
passwdoracle
1.2.3修改oracle用户的profile文件
#su-oracle
$vi.profile
在该文件后面增加如下内容:
umask022
ORACLE_BASE=/oracle/app/oracle;exportORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/ORACLE_HOME
ORA_NLS33=$ORACLE_HOME/ocommon/nls/admin/data;exportORA_NLS33
LD_LIBRARY_PATH=$ORACLE_HOME/lib:
/usr/dt/lib:
/usr/lib;exportLD_LIBRARY_PATH
NLS_LANG=;exportNLS_LANG
TMPDIR=/oracle/tmp;exportTMPDIR
TMP=/oracle/tmp;exportTMP
PATH=.:
$ORACLE_HOME/bin:
/etc:
/usr/ccs/bin:
/usr/sbin:
$PATH;exportPATH
exportDISPLAY=
1.3安装介质确认
Oracle产品有如下安装包,请确认/soft/oracle下有如下紧缩包,并确认文件的权限与属主是不是与列表一致
#ls-l/soft/oracle
输出结果应该为:
-rwxr-xr-x1oracledba127965Jun0423:
45unzip_aix
-rwxr-xr-x1oracledba85Jun0504:
511oracledba76097Jun0423:
43
1.4解紧缩安装包
用oracle用户执行以下命令
$uncompress
$chmod+xunzip_aix
$./unzip_aix-ddisk1
$./unzip_aix-ddisk1
1.5Oracle客户端安装步骤
在root用户下,进入第一张安装盘disk1的途径:
#cd/soft/oracle/disk1/
#./
参考输出结果为:
outputwillbeloggedin/tmp/-a:
AIXPMTSAP1600F668A44C00
OSVER:
6
OSREL:
1
Environment:
------------
_=/bin/env
LANG=en_US
LOGIN=root
PATH=/usr/bin:
/etc:
/usr/sbin:
/usr/ucb:
/usr/bin/X11:
/sbin:
/usr/java5/jre/bin:
/usr/java5/bin
LC_ALL=C
LC__FASTMSG=true
LOGNAME=root
MAIL=/usr/spool/mail/root
LOCPATH=/usr/lib/nls/loc
USER=root
AUTHSTATE=compat
SHELL=/usr/bin/ksh
ODMDIR=/etc/objrepos
HOME=/
TERM=vt100
MAILMSG=[YOUHAVENEWMAIL]
PWD=/oracle/media/disk1
TZ=BEIST-8
A__z=!
LOGNAME
NLSPATH=/usr/lib/nls/msg/%L/%N:
/usr/lib/nls/msg/%L/%
------------
Checkingifgroupservicesshouldbeconfigured....
ODMDIR=/etc/objrepos,isHACMP=0
Nothingtoconfigure.
在Oracle用户下,开始安装:
$su-oracle
$cd/soft/oracle/media/disk1/client
$./runInstaller
显示如下信息:
StartingOracleUniversalInstaller...
CheckingTempspace:
mustbegreaterthan190MB.Actual8190MBPassed
Checkingswapspace:
mustbegreaterthan150MB.Actual512MBPassed
Checkingmonitor:
mustbeconfiguredtodisplayatleast256colors.ActualPassed
PreparingtolaunchOracleUniversalInstallerfrom/oracle/tmp/OraInstall2010-07-16_06-51-51PM.Pleasewait...
显现Splash画面
进而是Welcome画面:
选择安装类型
选择安装语言
选择安装目录
选择InventoryDirectory
选择要安装的组件
选择SchedulerAgenthostname
平台安装检查
查看官方手册,确认aixTL04以后的版本已经包括相关补丁,此处忽略那个补丁问题
选择Finish进行相应的安装
配置oracleclient
点击canel
sh
RunningOracle11gscript...
Thefollowingenvironmentvariablesaresetas:
ORACLE_OWNER=oracle
ORACLE_HOME=/oracle/app/oracle/product/thefullpathnameofthelocalbindirectory:
[/usr/local/bin]:
/usr/bin
Copyingdbhometo/usr/bin...
Copyingoraenvto/usr/bin...
Copyingcoraenvto/usr/bin...
Creating/etc/oratabfile...
Entrieswillbeaddedtothe/etc/oratabfileasneededby
DatabaseConfigurationAssistantwhenadatabaseiscreated
Finishedrunninggenericpartofscript.
Nowproduct-specificrootactionswillbeperformed.
#
#su-oracle
$sqlplus/nolog
SQL*Plus:
ReleaseProductiononMonApr1818:
41:
462011
Copyright(c)1982,2009,Oracle.Allrightsreserved.
SQL>
#ls
ContentsXMLlogsoui
#./orain*
Changingpermissionsof/oracle/app/oraInventory.
Addingread,writepermissionsforgroup.
Removingread,write,executepermissionsforworld.
Changinggroupnameof/oracle/app/oraInventorytodba.
Theexecutionofthescriptiscomplete.
#