RHEL 6.5安装oracle11gR2
发表于:2025-02-03 作者:千家信息网编辑
千家信息网最后更新 2025年02月03日,RHEL 6.5安装oracle11gR21、安装前准备OS安装,RHEL6.5默认安装即可,关闭iptables,关闭selinux,修改本地hosts文件~]# service iptables
千家信息网最后更新 2025年02月03日RHEL 6.5安装oracle11gR2
RHEL 6.5安装oracle11gR2
1、安装前准备
OS安装,RHEL6.5默认安装即可,关闭iptables,关闭selinux,修改本地hosts文件
~]# service iptables stop ~]# chkconfig --del iptables~]# vim /etc/selinux/config #配置重启后永久有效SELINUX=disabled~]# vim /etc/hosts
制作本地yum仓库,oracle11gR2所依赖包安装
~]# cd //]# mkdir local.repo ~]# cd /media/RHEL_6.5\ x86_64\ Disc\ 1/cp -rf * /localrepo/~]# vim /etc/yum.repos.d/localrepo[localrepo]name=localrepobaseurl=file:///localrepogpgcheck=0enabled=1~]# yum repolistLoaded plugins: product-id, refresh-packagekit, security, subscription-managerThis system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.localrepo | 3.9 kB 00:00 ... localrepo/primary_db | 3.1 MB 00:00 ... repo id repo name statuslocalrepo localrepo 3,690repolist: 3,690
安装所依赖包:
yum install binutils-2.* compat-libstdc++-33* elfutils-libelf-0.* elfutils-libelf-devel-* gcc-4.* gcc-c++-4.* glibc-2.* glibc-common-2.* glibc-devel-2.* glibc-headers-2.* ksh-2* libaio-0.* libaio-devel-0.* libgcc-4.* libstdc++-4.* libstdc++-devel-4.* make-3.* sysstat-7.* unixODBC-2.* unixODBC-devel-2.* pdksh* -y注意:还有一个包需要单独安装rpm -ivh pdksh-5.2.14-30.x86_64.rpm warning: pdksh-5.2.14-30.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 73307de6: NOKEYerror: Failed dependencies:pdksh conflicts with ksh-20120801-10.el6.x86_64先要对ksh-20120801-10.el6.x86_64进行卸载处理rpm -e ksh-20120801-10.el6.x86_64rpm -ivh pdksh-5.2.14-30.x86_64.rpmwarning: pdksh-5.2.14-30.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 73307de6: NOKEYPreparing... ########################################### [100%] 1:pdksh ########################################### [100%]
创建用户并修改环境变量
~]# groupadd -g 1000 oinstall~]# groupadd -g 1100 dba~]# useradd -m -g oinstall -G dba -u 1200 oracle~]# id oracleuid=1200(oracle) gid=1000(oinstall) groups=1000(oinstall),1100(dba)~]# passwd oracle[oracle@~]$ vim .bash_profile # .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then . ~/.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/binexport ORACLE_SID=*****export ORACLE_HOME=/home/u01/app/oracle/product/11.2.0/db_1export PATH=$ORACLE_HOME/bin:$PATHexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/libif [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fifiexport PATH
创建目录
~]# mkdir -p /home/u01/app/oracle/product/11.2.0/db_1~]# chown -R oracle:oinstall /home/u01
修改系统参数配置
~]# vim /etc/sysctl.conf #添加如下# Controls the maximum size of a message, in byteskernel.msgmax = 65536# Controls the maximum shared segment size, in byteskernel.shmmax = 32000000000# Controls the maximum number of shared memory segments, in pageskernel.shmall = 8388608kernel.shmmni = 4096kernel.sem = 250 32000 100 128fs.file-max = 65536net.ipv4.ip_local_port_range = 1024 65000net.core.rmem_default = 4194304net.core.wmem_default = 262144net.core.rmem_max = 4194304net.core.wmem_max = 262144kernel.msgmnb = 65536kernel.msgmax = 65536fs.aio-max-nr = 262144sysctl -p~]# vim /etc/security/limits.conf #添加如下oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 65536~]# vim /etc/pam.d/login #添加如下session required pam_limits.so~]# vim /etc/security/limits.d/90-nproc.conf# Default limit for number of user's processes to prevent# accidental fork bombs.# See rhbz #432903 for reasoning.* - nproc 16384root soft nproc unlimited
oracle11204软件安装
授权oracle权限tmp]# chmod 777 -R oracle/[root tmp]# chown -R oracle.oinstall oracle/ 进入oracle用户进行解压oracle]$ unzip p13390677_112040_Linux-x86-64_1of7.zip oracle]$ unzip p13390677_112040_Linux-x86-64_2of7.ziproot用户下进行桌面共享xhost+进入oracle用户进行安装oracle]# cd /tmp/oracle/database/database]# ./runInstaller注意安装路径要和之前配置的环境变量路径一致,安装时选择仅安装software,安装验证时报的swap空间错误可以忽略后续建库可用通过dbca完成,配置监听通过netca
用户
配置
变量
环境
路径
有效
一致
仓库
参数
文件
时报
权限
桌面
目录
空间
系统
软件
错误
永久
准备
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
阿里云服务器推送海康威视摄像头
网络安全知识图谱应用
郑州互迅网络技术有限公司
网络安全服务的是
个人储存服务器
我国目前大数据库状况
男26岁转行可以做什么网络技术
首都公安网络安全日
软件开发和图像论文题目
数据库文档设计
太空网络安全原则
分布式数据库技术难点
python中文写入数据库
sql数据库怎么打开看表
杨浦区营销软件开发采购
军用网络安全检查
其它网络安全性
电子商务的网络技术基础
青岛苹果软件开发系统
重庆奔浪科技互联网
中央网网络安全与信息化主任
网络技术课题
后台服务器已锁定
python中文写入数据库
达梦数据库同步数据
c 数据库 登录失败
郑州阿斯特软件开发
pop和smtp服务器地址查询
中国网络技术崛起
浙江迈田网络技术有限公司面试