CentOS55安装Oracle11g

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

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

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

资源描述

CentOS5.5安装Oracle11g目录1、swap分区大小设置.............................................................................................................12、操作系统要求.......................................................................................................................23、修改hosts.............................................................................................................................24、安装包需求...........................................................................................................................25、解压安装文件,安装jdk....................................................................................................46、创建用户和组.......................................................................................................................57、调整内核参数.......................................................................................................................58、创建安装oracle的文件夹,并设置其相应权限给Oracle用户......................................69、设置oracle环境变量..........................................................................................................610、以oracle身份登录图形界面进行安装...........................................................................611、设置oracle自动启动....................................................................................................291、swap分区大小设置[root@centos/]#grepMemTotal/proc/meminfoMemTotal:5975048kBOnLinuxx86:OnLinuxx86-64:Atleast4GBofRAM2、操作系统要求[root@centos/]#cat/proc/version■OnLinuxx86:–AsianuxServer3SP2–OracleLinux4Update7–OracleLinux5Update2–RedHatEnterpriseLinux4Update7–RedHatEnterpriseLinux5Update2–SUSELinuxEnterpriseServer10SP2–SUSELinuxEnterpriseServer11■OnLinuxx86-64–AsianuxServer3SP2–OracleLinux4Update7–OracleLinux5Update2–RedHatEnterpriseLinux4Update7–RedHatEnterpriseLinux5Update2–SUSELinuxEnterpriseServer10SP2–SUSELinuxEnterpriseServer113、修改hosts[root@centos/]#vi/etc/hosts#Donotremovethefollowingline,orvariousprograms#thatrequirenetworkfunctionalitywillfail.192.168.89.16centos4、安装包需求[root@centos/]#rpm-qa|grepbinutils(查找包)binutils-2.17.50.0.6-14.el5[root@centosCentOS]#rpm-ivhcompat-libstdc++-33-3.2.3-61.i386.rpm(安装包)warning:compat-libstdc++-33-3.2.3-61.i386.rpm:HeaderV3DSAsignature:NOKEY,keyIDe8562897Preparing...###########################################[100%]1:compat-libstdc++-33###########################################[100%]OnLinuxx86:OnLinuxx86-64:pdksh-5.2.14-36.el5.x86_64.rpmunixODBC-2.2.11-7.1.i386.rpmunixODBC-2.2.11-7.1.x86_64.rpmunixODBC-devel-2.2.11-7.1.i386.rpmunixODBC-devel-2.2.11-7.1.x86_64.rpm5、解压安装文件,安装jdk[root@centossoft]#unzip-d/datalinux.x64_11gR2_database_1of2.zip[root@centossoft]#unzip-d/datalinux.x64_11gR2_database_2of2.zip[root@centossoft]#./jdk-6u22-linux-x64-rpm.binUnpacking...Checksumming...Extracting...UnZipSFX5.50of17February2002,byInfo-ZIP(Zip-Bugs@lists.wku.edu).inflating:jdk-6u22-linux-amd64.rpminflating:sun-javadb-common-10.5.3-0.2.i386.rpminflating:sun-javadb-core-10.5.3-0.2.i386.rpminflating:sun-javadb-client-10.5.3-0.2.i386.rpminflating:sun-javadb-demo-10.5.3-0.2.i386.rpminflating:sun-javadb-docs-10.5.3-0.2.i386.rpminflating:sun-javadb-javadoc-10.5.3-0.2.i386.rpmPreparing...###########################################[100%]6、创建用户和组[root@centos/]#groupaddoinstall[root@centos/]#groupadddba[root@centos/]#groupaddoper[root@centos/]#useradd-goinstall-Gdba,operoracle[root@centos/]#idoracleuid=500(oracle)gid=500(oinstall)groups=500(oinstall),501(dba),502(oper)context=root:system_r:unconfined_t:SystemLow-SystemHigh[root@centos/]#passwdoracleChangingpasswordforuseroracle.NewUNIXpassword:BADPASSWORD:itdoesnotcontainenoughDIFFERENTcharactersRetypenewUNIXpassword:passwd:allauthenticationtokensupdatedsuccessfully.7、调整内核参数[root@centos/]#vi/etc/security/limits.conforaclesoftnproc2047oraclehardnproc16384oraclesoftnofile1024oraclehardnofile65536oraclesoftstack10240[root@centos/]#sysctl-a|grepfs.aio-max-nr(查询内核参数,如果当前值大于推荐值则不用更改,否则要更改)fs.aio-max-nr=65536[root@centos/]#vi/etc/sysctl.conffs.aio-max-nr=1048576fs.file-max=6815744kernel.shmall=2097152kernel.shmmax=536870912kernel.shmmni=4096kernel.sem=25032000100128net.ipv4.ip_local_port_range=900065500net.core.rmem_default=262144net.core.rmem_max=4194304net.core.wmem_default=262144net.core.wmem_max=1048586[root@centos/]#sysctl–p(使设置生效)8、创建安装oracle的文件夹,并设置其相应权限给Oracle用户[root@centos/]#mkdir-p/data/app/oracle/product/11.2.0.1.0[root@centos/]#chown-Roracle:oinstall/data/app[root@centos/]#chmod775/data/app[root@centos/]#chown-Roracle:oinstall/data/database9、设置oracle环境变量[root@centosdata]#vi/home/oracle/.bash_profileLANG=enDISPLAY=192.168.89.16:0.0ORACLE_BASE=/data/app/oracleORACLE_SID=hisORACLE_HOME=$ORACLE_BASE/product/11.2.0.1.0PATH=$ORACLE_HOME/bin:$PATH:$HOME/binLD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/libCLASSPATH=$ORACLE_HOME/jre:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlibexportPATHLANGDISPLAYORACLE_BASEORACLE_SIDORACLE_HOMELD_LIBRARY_PATHCLASSPATH10、以oracle身份登录图形界面进行安装[root@centos~]#xhost+accesscontroldisabled,clientscanconnectfromanyhost[root@centos~]#su-oracle[ora

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

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

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

×
保存成功