在RHEL 5.4 64位系统上安装Oracle 10g R2

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

在RHEL5.464位系统上安装Oracle10gR2------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------1/31By.程鹏举E-mail:7looki@gmail.com在RHEL5.464位系统上安装Oracle10gR21.检查基本系统环境:操作系统:RHEL5.486_64主机名称:DBT0(这里uname-n的结果和hostname的结果必须相同)IP地址:192.168.6.203Oracle®DatabaseInstallationGuide10gRelease2(10.2)forLinuxx86-64中给出了安装Oracle10g所需硬件的最基本要求:•Atleast1GBofphysicalRAM•ThefollowingtabledescribestherelationshipbetweeninstalledRAMandtheconfiguredswapspacerequirement.--------------------------------------------------------------------------------------------------RAMSwapSpace--------------------------------------------------------------------------------------------------Upto512MB2timesthesizeofRAMBetween1024MBand2048MB1.5timesthesizeofRAMBetween2049MBand8192MBEqualtothesizeofRAMMorethan8192MB0.75timesthesizeofRAM--------------------------------------------------------------------------------------------------•400MBofdiskspaceinthe/tmpdirectory•Between1.5GBand3.5GBofdiskspacefortheOraclesoftware,dependingontheinstallationtype•1.2GBofdiskspaceforapreconfigureddatabasethatusesfilesystemstorage(optional)在RHEL5.464位系统上安装Oracle10gR2------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------2/31By.程鹏举E-mail:7looki@gmail.com2.安装Oracle10gR2所依赖的软件Oracle®DatabaseInstallationGuide10gRelease2(10.2)forLinuxx86-64中给出了安装Oracle10g所依赖的软件列表:6.5ListofPackagesforAsianux3,OracleLinux5,andRedHatEnterpriseLinux5Thefollowing(orlaterversions)arethelistofpackagesforAsianux3,OracleLinux5,andRedHatEnterpriseLinux5:binutils-2.17.50.0.6-2.el5compat-db-4.2.52-5.1compat-gcc-34-3.4.6-4compat-gcc-34-c++-3.4.6-4compat-libstdc++-33-3.2.3-61compat-libstdc++-33-3.2.3-61(i386)compat-libstdc++-296(i386)gcc-4.1.1-52.el5.2gcc-c++-4.1.1-52.el5.2glibc-2.5-12glibc-2.5-12(i386)glibc-common-2.5-12glibc-devel-2.5-12glibc-devel-2.5-12(i386)glibc-headers-2.5-12libgcc-4.1.1-52.el5(i386)libXp-1.0.0(i386)libXt-1.0.2(i386)libXtst-1.0.1(i386)libaio-0.3.106-3.2libaio-devel-0.3.106-3.2libgcc-4.1.1-52.el5libstdc++-4.1.1-52.el5.2libstdc++-devel-4.1.1-52.el5.2libgomp-4.1.1-52.EL5make-3.81-1.1numactl-devel-0.9.8.x86_64sysstat-7.0.0-3.el5系统安装完以后,有些依赖包并没有被安装,在安装Oracle10g前,先安装所需的依赖包.首先配置本地YUM源(1)新建光盘挂载目录(/mnt/cdrom)(2)将光盘挂载到/mnt/cdrom目录.这里也可以将ISO镜像挂载到此目录.视实际情况而定.(3)进入YUM配置目录,重命名rhel-debuginfo.repo为rhel-cdrom.repo(4)修改YUM配置文件rhel-cdrom.repo,加入本地源(5)清空YUM缓存在RHEL5.464位系统上安装Oracle10gR2------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------3/31By.程鹏举E-mail:7looki@gmail.com到此,本地YUM建立好了,下面安装所需的依赖包,只需一条命令即可:yum-yinstallbinutilscompat-dbcompat-gcc-34compat-gcc-34-c++\compat-libstdc++-33compat-libstdc++gccgcc-c++glibcglibc-common\glibc-develglibc-headerslibgcclibXplibXtlibXtstlibaiolibaio-devel\libgcclibstdc++libstdc++-devellibgompmakenumactl-develsysstat注意:这里会自动安装32位和64位的包,不要忽略32位的包!例如只安装64位的libXp,在安装Oracle10g时会报如下错误:Exceptioninthreadmainjava.lang.UnsatisfiedLinkError:/tmp/OraInstall2007-12-21_10-40-21PM/jre/lib/i386/libawt.so:libXp.so.6:cannotopensharedobjectfile:Nosuchfileordirectory3.设置网络需要在/etc/hosts中加入相对应的设置(IP+主机名),否则在安装Oracle10g时会出错.4.创建Oracle用户和组(1)新增两个组oinstall和dba(2)新增一个用户oracle,并设置其数组为oinstall和dba在RHEL5.464位系统上安装Oracle10gR2------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------4/31By.程鹏举E-mail:7looki@gmail.com5.修改内核参数以上是默认的内核参数,需要添加一些参数信息:新添字段的含义:kernel.shmmni=4096##整个系统共享内存段的最大数目kernel.sem=25032000100128##每个信号对象集的最大信号对象数##系统范围内最大信号对象数##每个信号对象支持的最大操作数##系统范围内最大信号对象集数在RHEL5.464位系统上安装Oracle10gR2------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------5/31By.程鹏举E-mail:7looki@gmail.comfs.file-max=65536##系统中所允许的文件句柄最大数目net.ipv4.ip_local_port_range=102465500##应用程序可使用的IPv4端口范围net.core.rmem_default=4194304##套接字接收缓冲区大小的缺省值net.core.wmem_default=262144##套接字发送缓冲区大小的缺省值net.core.rmem_max=4194304##套接字接收缓冲区大小的最大值net.core.wmem_max=262144##套接字发送缓冲区大小的最大值运行sysctl-p使设置生效注:内核参数并非必须修改,可以根据自己实际情况而定.6.为Oracle用户设置Shell限制编辑/etc/security/limits.conf,在最后添加以下内容:oraclesoftnproc2047oraclehardnproc16384oraclesoftnofile1024oraclehardnofile65536在RHEL5.464位系统

1 / 31
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功