aix oracle11 grid安装卸载.docx
《aix oracle11 grid安装卸载.docx》由会员分享,可在线阅读,更多相关《aix oracle11 grid安装卸载.docx(26页珍藏版)》请在冰豆网上搜索。
aixoracle11grid安装卸载
数据版软件安装
1,安装oracle11G所需要的操作系统环境包
Thefollowing,orlaterversions,oftheoperatingsystemsarerequiredforOracleDatabase11g Release2(11.2):
∙AIX5LV5.3TL09SP1("5300-09-01"),64bitkernel
∙AIX6.1TL02SP1("6100-02-01),64-bitkernel
∙AIX7.1TL0SP1("7100-00-01"),64-bitkernel
∙AIX7.2TL0SP1("7200-00-01"),64-bitkernel
Thefollowingoperatingsystemfilesetsarerequiredfor AIX5L:
∙bos.adt.base
∙bos.adt.lib
∙bos.adt.libm
∙bos.perf.libperfstat5.3.9.0 orlater
∙bos.perf.perfstat
∙bos.perf.proctools
∙xlC.aix50.rte.10.1.0.0 orlater
∙xlC.rte.10.1.0.0 orlater
∙gpfs.base3.2.1.8 orlater
Thefollowingoperatingsystemfilesetsarerequiredfor AIX6.1:
∙bos.adt.base
∙bos.adt.lib
∙bos.adt.libm
∙bos.perf.libperfstat6.1.2.1 orlater
∙bos.perf.perfstat
∙bos.perf.proctools
∙xlC.aix61.rte.10.1.0.0 orlater
∙xlC.rte.10.1.0.0 orlater
∙gpfs.base3.2.1.8 orlater
Thefollowingoperatingsystemfilesetsarerequiredfor AIX7.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 orlater
∙gpfs.base3.3.0.11 orlater
Thefollowingoperatingsystemfilesetsarerequiredfor AIX7.2:
∙bos.adt.base
∙bos.adt.lib
∙bos.adt.libm
∙bos.perf.libperfstat
∙bos.perf.perfstat
∙bos.perf.proctools
∙xlC.aix61.rte.13.1.2.0 orlater
∙xlc.rte.13.1.2.0 orlater
2,创建oracle用户
ThefollowinglocaloperatingsystemgroupsandusersarerequiredifyouareinstallingOracleDatabase:
∙TheOracleInventorygroup(oinstall)
∙TheOSDBAgroup(dba)
∙TheOraclesoftwareowner(oracle)
#smitmkgroup创建oinstall和dba组
#smitmkuser创建oracle用户,同时把oracle的主组设置为oinstall,属组设置为dba
#passwdoracle给一个密码
#idoracle
uid=202(oracle)gid=201(oinstall)groups=202(dba)
3,修改系统参数
ulimit settings:
Limit
RecommendedValue
SoftFILEsize
-1(Unlimited)
SoftCPUtime
-1(Unlimited)
SoftDATAsegment
-1(Unlimited)
SoftSTACKsize
-1(Unlimited)
SoftRealMemorysize
-1(Unlimited)
Processes(peruser)
-1(Unlimited)
kernelparameters:
Parameter
RecommendedValue
maxuprocs
16384
ncargs
128
tcp_ephemeral_low
32768
tcp_ephemeral_high
65535
udp_ephemeral_low
32768
udp_ephemeral_high
65535
aio_maxreqs value:
AIX6.1:
#ioo–oaio_maxreqs
aio_maxreqs=65536
OnAIX5.3:
#lsattr-Elaio0-amaxreqs
maxreqs65536MaximumnumberofREQUESTSTrue
4, 创建安装目录
#mkdir-p/u01/app/
#chown-Roracle:
oinstall/u01/app/
#chmod-R775/u01/app/
5,运行rootpre.sh
Runthe rootpre.sh script:
1.Switchuserto root:
2.$su-
3.password:
4.#
5.Completeoneofthefollowingsteps,dependingonthelocationoftheinstallationfiles:
oIftheinstallationfilesareonDVD,enteracommandsimilartothefollowing,where directory_path isthediscmountpointdirectoryorthepathofthe db directoryontheDVD:
o#/directory_path/rootpre/rootpre.sh
oIftheinstallationfilesareontheharddisk,changethedirectorytothepathwhere rootpre.sh existsandenterthefollowingcommand:
o#./rootpre.sh
6.Exitfromtherootaccount:
7.#exit
6,安装数据库软件
运行数据库安装命令
$/mount_point/db/runInstaller
安装数据库软件
Screen
RecommendedAction
ConfigureSecurityUpdates
是否设置自动升级。
Click Next.
DownloadSoftwareUpdates
StartingwithOracleDatabase11g Release2(11.2.0.2),youcanusetheSoftwareUpdatesfeaturetodynamicallydownloadandapplylatestupdates.Selectoneofthefollowingoptionsandclick Next:
o
ApplySoftwareUpdates
IfyouselectedUsepre-downloadedsoftwareupdatesinthepreviousscreen,select Applyallupdates,andthenclick Next.
SelectInstallationOption
Select Createandconfigureadatabase fromthefollowinglistofavailableoptions,thenclick Next:
oCreateandconfigureadatabase
oInstalldatabasesoftwareonly
oUpgradeanexistingdatabase
SystemClass
Select ServerClass fromthefollowingoptionstoinstallthedatabase,andclick Next..
GridInstallationOptions
Select Singleinstancedatabaseinstallation forthetypeofdatabaseinstallationyouwanttoperform,andclick Next.
SelectInstallType
Select TypicalInstall astheinstallationtypefromthefollowingoptions,andclick Next:
TypicalInstallConfiguration
ConfirmPassword:
Reenter,andconfirmthepasswordfortheprivilegeddatabaseaccount.
Click Next tocontinue.
CreateInventory
ThisscreenisdisplayedonlyduringthefirstinstallationofOracleproductsonasystem.
SpecifythefullpathoftheOracleInventorydirectory.Ensurethattheoperatingsystemgroupselectedis oinstall.Click Next tocontinue.
PerformPrerequisiteChecks
Verifythatalltheprerequisitecheckssucceed,andthenclick Next.
OracleUniversalInstallerchecksthesystemtoverifythatitisconfiguredcorrectlytorunOraclesoftware.Ifyouhavecompletedallthepreinstallationstepsinthisguide,allthechecksshouldpass.
Ifacheckfails,thenreviewthecauseofthefailurelistedforthatcheckonthescreen.Ifpossible,rectifytheproblemandrerunthecheck.Alternatively,ifyouaresatisfiedthatyoursystemmeetstherequirements,thenyoucanselectthecheckboxforthefailedchecktomanuallyverifytherequirement.
Note:
OraclerecommendsthatyouusecautionincheckingtheIgnoreAlloption.Ifyoucheckthisoption,thenOracleUniversalInstallermaynotconfirmthatyoursystemcaninstallOracleDatabasesuccessfully.
Summary
Reviewtheinformationdisplayedonthisscreen,andthenclick Install.
Note:
StartingwithOracleDatabase11g Release2(11.2),youcansavealltheinstallationstepsintoaresponsefilebyclicking SaveResponseFile. Later,thisfilecanbeusedforasilentinstallation.
InstallProduct
Thisscreenstatestheprogressofadatabaseinstallation.Afterthedatabaseisinstalled,youarepromptedtoexecutesomerootconfigurationscriptfornewinventoryasthe root user.Click Next.
Thisscreenthendisplaysthestatusinformationfortheconfigurationassistantsthatconfigurethesoftwareandcreateadatabase.
Finally,amessageisdisplayedaftertheDatabaseConfigurationAssistantprocessiscomplete.Click OK.
Executethe root.sh scriptasthe root usertocompletetheinstallationandclick OK.
Finish
Thisscreenisshownautomaticallywhenalltheconfigurationtoolsaresuccessful.
Click Close.
安装方法与静默安装不同的是在我们先安装oracle软件,再安装数据库(当然你也可以同时一起安装)我们这里选择与静默安装有所不同,也是两种安装方式的不同之处。
进入/u01/app/oracle/database目录下运行./runInstaller,出现如下图形界面,我们也开始了oracle11gR2的安装
在第一个画面中我们看系统的环境而定,如果我们是内部的生产系统,不接入公网我们不需要填写你的oraclesupport的用户面和密码,这个是用于oracle官方内部给客户发送补丁更新和服务请求的,这里我们直接跳过,点击”Next“,然后继续我们的安装。
跳入以下界面中,我们看到三种安装方式,第一种是安装oracle并创建数据库,第二种是只安装数据库软件,第三是更新一个已存在的数据库,这里我们选择与静默安装的不同我们这里可以选择第二项只安装数据库软件。
继续“Next”
我们这里两项中选择单库单实例安装,选择第一个,继续下一步
我们看到三种不同版本的数据库,我们选择Enterprise Edition企业版本安装。
继续
到一下界面我们配置oraclebase的路径与oraclehome的路径,这里其实不需要配置,
Oracle本身会读取环境变量的内容帮我们填写,我们只需查看是否正确即可,继续下一步
看到这一步我们也是需要查看之前在操作系统创建的dba、oinstall两个组,以下是oracle推荐的组的使用方式和
权限的设计,我们选择即可
下一步我们跳入oracle对操作系统环境的检测,我们这里平稳通过。
通过继续下一步
我们开始安装。
。
。
。
。
。
。
等待!
!
!
安装完成后,弹出一个窗口让我们用root用户执行两个脚本我们按照提供的路径去运行即可,这里oracle软件就安装完成了!
我们继续安装oracle数据库,还是用OUI通用工具dbca来执行数据库的安装,在命令中输
$dbca
我们来到如下界面
四个选项中我们选择第一个“CreateaDatabase”创建一个数据库,继续下一步
我们三个选项中选择第一个通用安装,这里我们也可以选择customdatabase。
继续下一步
数据库的名字我们把Globaldatabasename与SID可以相同,我们安装的是单实例这里可以一致,这里解释一下两者的区别SID:
数据库至少由一个实例引用,该实例由Oracle系统标识符(SID)唯一地标识,以区别其他实例。
Globaldatabasename 是扩展物理数据库名字DB_name的方式,防止多个数据库出现的同名。
来到如下界面我们这里可以选择configureEnterpriseManager,这里不是必选项,看需求,automaticmaintenancetasks 我们保持默认,提示你是否开启自动维护模式
下一步我们选择数据库用户的管理密码,这里我们使用同样的管理密码,密码设置有要求必须为大小写字母加数字
下面我们配置数据文件的存储类型和位置,我们目前选择默认filesystem(JFS2),如果有远端的存储阵列我们可以ASM方式管理
我们继续下一步,看到选择oracle 快速恢复区域设置,这不是个必选项,我们跳过oracle的特性,这个特性的
选择也要看需求而定。
Enable archiving这里也不是必选项,以后也可以配置数据是否要归档,这里也跳过
下一步我们继续配置数据库的内存、字符集,分配内存时我们需要平衡os和数据库SGA和PGA的内存总和,这里
我们设置多少要看项目需求,在实验机器上我们分配的是memory_target是2024MB,sizing选择数据块的大小为8byte,
process默认,charactersets字符集选择为zhs16GBk,国际字符集默认,connectionmode 也是默认选择专用模式,我们下一步
来到这个界面,完成oracle数据库安装的基本配置后,我们点击finish,开始自动安装
点击“Finish"开始安装
oracle11gr2安装成功。
数据库卸载
从Oracle11gR2开始,Oracle推荐使用deinstall来卸载Oracle数据库。
交互过程如下:
$ORACLE_HOME/deinstall/deinstall
Checkingforrequiredfilesandbootstrapping...
Pleasewait...
Locationoflogs/tmp/deinstall2017-09-11_02-50-04PM/logs/
############ORACLEDEINSTALL&DECONFIGTOOLSTART############
#########################CHECKOPERATIONSTART#########################
##[START]Installcheckconfiguration##
CheckingforexistenceoftheOraclehomelocation/u01/app/oracle/product/11.2.0/db_1
OracleHometypeselectedfordeinstallis:
OracleSingleInstanceDatabase
OracleBaseselectedfordeinstallis:
/u01/app/oracle
Checkingforexistenceofcentralinventorylocation/u01/app/oraInventory
Checkingforsufficienttempspaceavailabilityonnode(s):
'DB074'
##[END]Installcheckconfiguration##
NetworkConfigurationcheckconfigSTART
Networkde-configurationtracefilelocation:
/tmp/deinstall2017-09-11_02-50-04PM/logs/netdc_check2017-09-11_02-50-10-PM.log
SpecifyallSingleInstancelistenersthataretobede-configured[LISTENER]:
(这里需要确认监听器名称,默认值没问题,直接回车)
NetworkConfigurationcheckconfigEND
DatabaseCheckConfigurationSTART
Databasede-configurationtracefilelocation:
/tmp/deinstall2017-09-11_02-50-04PM/logs/databasedc_check2017-09-11_02-51-44-PM.log
Usecommaasseparatorwhenspecifyinglistofvaluesasinput
SpecifythelistofdatabasenamesthatareconfiguredinthisOraclehome[cams]:
(这里需要确认数据库名称,默认值没问题,直接回车)
######ForDatabase'cams'######
SingleInstanceDatabase
Thediagnosticdestinationlocationofthedatabase:
/u01/app/oracle/diag/rdbms/cams
StoragetypeusedbytheDatabase:
FS
Databasefilelocation:
/u01/app/oracle/oradata/cams,/u01/app/oracle/fast_recovery_are