Oracle12c-for-Linux7.1安装文档

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

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

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

资源描述

Oracle12cforLinux7.1安装手册2015年8月7日文档属性属性内容用户名称:项目名称:Fast项目编号:文档主标题:Oracle12cforlinux7.1安装手册文档编号:文档版本号:V2.0版本日期:文档状态:文档作者:钱前目录1.硬件要求...........................................................................................................................41.1内存要求.......................................................................................................................41.2硬盘要求.......................................................................................................................42.软件要求...........................................................................................................................42.1系统环境.......................................................................................................................42.2安装依赖软件包...........................................................................................................42.2.1安装软件.................................................................................................................42.2.2安装方法.................................................................................................................52.2.3配置本地YUM..........................................................................................................52.3系统配置.......................................................................................................................62.3.1创建用户及用户组.................................................................................................62.3.2创建安装目录.........................................................................................................62.3.3DISABLESELINUX...........................................................................................................72.3.4修改系统内核参数.................................................................................................72.3.5设置用户限制.........................................................................................................72.3.6配置环境变量.........................................................................................................83.安装数据库.......................................................................................................................83.1解压安装文件...............................................................................................................83.2开始安装.......................................................................................................................94.配置数据库监听.............................................................................................................205.测试数据库.....................................................................................................................251.硬件要求1.1内存要求Oracle12c对系统内存要求:最小:1G推荐:跟服务器内存一样大1.2硬盘要求Oracle12c要求至少有10G的磁盘空间用来安装数据库,请使用df–h检查磁盘空间大小推荐:/1T或更大。/boot500Mswap内存一样大/home剩下空间95%。留5%备用2.软件要求2.1系统环境操作系统:OracleLinux7.1Oracle版本:Oracle12c2.2安装依赖软件包2.2.1安装软件安装依赖软件包原则是尽量多装,否则在安装数据库时会报丢失软件包:binutils-2.17.50.0.6compat-libstdc++-33-3.2.3gcc-4.1.2gcc-c++-4.1.2glibc-2.5-58glibc-devel-2.5-58kshlibaio-0.3.106libaio-devel-0.3.106libgcc-4.1.2libstdc++-4.1.2libstdc++-devel4.1.2libXext-1.0.1libXtst-1.0.1libX11-1.0.3libXau-1.0.1libXi-1.0.1make-3.81sysstat-7.0.2compat-libcap1*compat-libstdc++libaio-devex*2.2.2安装方法可采用rpm安装或者yum安装,本文档采用yum本地安装,配置本地yum源请参考如下yum–yinstall软件包名,因为后面要有图形化界面,所以yum–yinstallx*,将相关的包都装上。[root@localhostiso]#rpm-ivhcompat-libstdc++-33-3.2.3-69.el6.x86_64.rpm2.2.3配置本地YUM1)新建iso用于存放系统iso文件#mkdir/home/fast/iso2)将iso文件挂载或者copy至新建的iso目录下(就是将linux的iso文件解压后的所有文件拷贝到此目录下。)3)修改配置文件在/etc/yum.repos.d下输入yum[root@localhostetc]#cdyum.repos.d/Centos7的文件名不一样。不必照搬。[root@localhostyum.repos.d]#cpredhat.reporedhat.repo.bak[root@localhostyum.repos.d]#mvredhat.reporhel-media.repovimrhel-media.repo[rhel-media]name=RedHatEnterpriseLinux7.1baseurl=file:///home/fast/iso(镜像文件位置,解压文件的地址)enabled=1gpgcheck=0gpgkey=file:///home/fast/iso/RPM-GPG-KEY-release4)修改完毕,保存配置文件5)修改yumRepo.py配置文件—这步是redhat6.5需要的,7.1不需要7也不需要。cd/usr/lib/python2.6/site-packages/yum/viyumRepo.py找到remote=url+‘/’+relative#802行改为remote=/home/redhat-iso+'/'+relative5)刷新yum#yumcleanall6)重建yum#yummakecache2.3系统配置2.3.1创建用户及用户组[root@localhost]#groupadddba[root@localhost]#groupaddoinstall[root@localhost]#useradd-goinstall-Gdbaoracle[root@localhost]#idoracleuid=502(oracle)gid=503(oinstall)groups=503(oinstall),502(dba)修改oracle用户密码#passwdoracle按照要求输入两次密码即可2.3.2创建安装目录[root@localhost]#mkdir-p/u01/app/oracle[root@localhost]#chown-Roracle:oinstall/u01/app/oracle[root@localhost]#chmod-R775/u01/app/oracle[root@localhost]#mkdir-p/u01/app/oraInventory[root@localhost]#chown-Roracle:oinstall/u01/app/oraInventory[root@localhost]#chmod-R775/u01/app/oraInventory2.3.3DISABLESELINUX关闭SELinux的方法:修改/etc/selinux/config文件中的SELINUX=为disabled,然后重启如果不想重启系统,使用命令setenforce0注:setenforce1设置SELinux成为enforcing模式setenforce0设置SELinux成为permissive模式2.3.4修改系统内核参数在修改之前最好备份一下配置文件/etc/sysctl.conf[root@localhost]#cp/etc/sysctl.conf/etc/sysctl.conf.bak[root@localhost]#vi/etc/sysctl.conf添加或修改下面参数kernel.shmm

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

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

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

×
保存成功