Linux Oracle 11G R2 64 安装文档

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

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

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

资源描述

1LinuxOracle11GR264安装文档目录1.环境及系统参数配置...............................................................................................................21.1.添加oracle,grid用户及设置环境变量(在所有节点上执行).....................................21.2.所必需的安装包检查...................................................................................................31.3.修改系统配置...............................................................................................................52.时间同步(分别在不同前置机上执行)....................................................................................63.SSH信任关系设置(Oracle用户下执行)................................................................................64.ASM设置.................................................................................................................................75.OracleGridInfrastructure安装................................................................................................75.1.安装前检查...................................................................................................................75.2.安装步骤(图)................................................................................................................76.Oracle软件安装(图)..............................................................................................................137.创建ASMDATAGROUP存放数据文件.............................................................................198.创建数据库.............................................................................................................................209.附录.........................................................................................................................................319.1.自动内存管理增加/dev/shm......................................................................................319.2.NTPD设置.................................................................................................................319.3.增大SWAP区............................................................................................................3221.环境及系统参数配置1.1.添加oracle,grid用户及设置环境变量(在所有节点上执行)1.1.1添加oracle用户//添加oinstall组#/usr/sbin/groupadd-g1000oinstall#/usr/sbin/groupadd-g1001dba#/usr/sbin/groupadd-g1002oper#/usr/sbin/groupadd–g1003asmadmin#/usr/sbin/groupadd–g1004asmoper#/usr/sbin/groupadd–g1005asmdba#/usr/sbin/groupadd–g1006orauser#/usr/sbin/usermod-goinstall-Gdba,asmdbaoracle#/usr/sbin/usermod-goinstall-Gdba,asmdba,oper,oinstall,asmadmingrid//设置oracle密码passwdoraclepasswdgrid//创建oracle的安装目录mkdir/u01//修改目录权限chown-Roracle:oinstall/u01创建目录#mkdir-p/u01/grid#chown-Rgrid:oinstall/u01/grid#chmod-R775/u01/grid#mkdir-p/u01/app/oracle#chown-Roracle:oinstall/u01/app/oracle1.1.2配置环境变量设置Oracle用户环境变量vi/home/oracle/.bash_profile添加以下内容3exportORACLE_UNQNAME=racexportORACLE_SID=rac1[2]exportORACLE_BASE=/u01/appexportORACLE_HOME=$ORACLE_BASE/oracleexportORACLE_OWNER=oracleexportLD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/libexportNLS_LANG=simplifiedchinese_china.zhs16gbksttyerase^HPATH=$PATH:$HOME/bin$:$ORACLE_HOME/binexportPATHunsetUSERNAMEaliassqlplus=rlwrapsqlplusumask022设置grid用户环境变量vi/home/grid/.bash_profileexportORACLE_SID=+ASM1[2]exportORACLE_BASE=/u01/appexportORACLE_HOME=/u01/gridexportORACLE_OWNER=gridexportLD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib:/lib:/usr/lib:/usr/local/libexportNLS_LANG=simplifiedchinese_china.zhs16gbksttyerase^HPATH=$PATH:$HOME/bin$:$ORACLE_HOME/binexportPATHunsetUSERNAME#aliassqlplus=rlwrapsqlplusumask0221.2.所必需的安装包检查binutils-2.17.50.0.6compat-libstdc++-33-3.2.3compat-libstdc++-33-3.2.3(32bit)elfutils-libelf-0.125elfutils-libelf-devel-0.125gcc-4.1.2gcc-c++-4.1.2glibc-2.5-244glibc-2.5-24(32bit)glibc-common-2.5glibc-devel-2.5glibc-devel-2.5(32bit)libaio-0.3.106libaio-0.3.106(32bit)libaio-devel-0.3.106libaio-devel-0.3.106(32bit)libgcc-4.1.2libgcc-4.1.2(32bit)libstdc++-4.1.2libstdc++-4.1.2(32bit)libstdc++-devel4.1.2make-3.81sysstat-7.0.2unixODBC-2.2.11unixODBC-2.2.11(32bit)unixODBC-devel-2.2.11unixODBC-devel-2.2.11(32bit)1020rpm-qabinutils1021rpm-qacompat-libstdc++1022rpm-qa|grepcompat-1029rpm-qa|grepelfutils1030rpm-qagcc1031rpm-qagcc-c++1032rpm-qaglibc1033rpm-qaglibc-common1034rpm-qaglibc-devel1035rpm-qalibaio1036rpm-qa|greplibaio1037rpm-qalibaio-devel1040rpm-qalibaio-devel-0.3.106-3.2.i386.rpm1044rpm-qalibgcc1045rpm-qalibstdc++1046rpm-qalibstdc++-devel1047rpm-qamake1048rpm-qasysstat1052rpm-qaunixODBC1053rpm-qa|grepunixODBC51.3.修改系统配置1.3.1设置用户权限vi/etc/profile#oracleif[$USER=oracle]||[$USER=grid];thenif[$SHELL=/bin/ksh];thenulimit-p16384ulimit-n65536elseulimit-u16384-n65536fiumask022fi1.3.2设置内核参数vi/etc/sysctl.conf#kernel.shmall=2097152#kernel.shmmax=2147483648#kernel.shmmni=4096kernel.sem=25032000100128net.core.rmem_default=262144net.core.rmem_max=4194304net.core.wmem_default=262144fs.file-max=6815744net.ipv4.ip_local_port_range=900065500net.core.wmem_max=1048576fs.aio-max-nr=1048576然后运行使用之生效/sbin/sysctl-p1.3.3修改oracle用户shell限制vi/etc/security/limits.conf#oraclegridsoftnproc2047gridhardnproc16384gridsof

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

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

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

×
保存成功