设为首页 收藏本站
查看: 863|回复: 0

[经验分享] Centos 6.5安装oracle 11g

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2016-11-14 09:33:57 | 显示全部楼层 |阅读模式
1.下载Centos 6.5 64位和oracle 11g 64位数据库软件

2.操作系统安装
  (1).图形化界面安装
  (2).系统分区
     /       根分区(27G)
     /boot    安装oracle分区(512G)
     swap     交换分区(4G)
  (3).禁用防火墙
  (4).禁用Selinux

3.配置网络和yum源
[iyunv@oracle11g ~]# ping baidu.com
PING baidu.com (180.149.132.47) 56(84) bytes of data.
64 bytes from 180.149.132.47: icmp_seq=1 ttl=47 time=144 ms
64 bytes from 180.149.132.47: icmp_seq=2 ttl=47 time=62.8 ms
--- baidu.com ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1424ms
rtt min/avg/max/mdev = 62.828/103.529/144.230/40.701 ms
[iyunv@oracle11g ~]# vim /etc/yum.repos.d/CentOS-Base.repo
baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ --这行全部取消注释
[iyunv@oracle11g ~]# yum repolist
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.btte.net
* centosplus: mirrors.cn99.com
* contrib: mirrors.cn99.com
* extras: mirrors.cn99.com
* updates: mirrors.cn99.com
repo id            repo name                  status
base            CentOS-6 - Base                6,696
centosplus        CentOS-6 - Plus                 52
contrib          CentOS-6 - Contrib               0
extras           CentOS-6 - Extras               62
updates          CentOS-6 - Updates              581
repolist: 7,391
[iyunv@oracle11g ~]#

4.安装依赖包
[iyunv@oracle11g ~]# yum install -y binutils compat-libstdc++-33 elfutils-libelf elfutils-libelf-devel gcc gcc-c++ glibc glibc-common glibc-devel libaio libaio-devel libgcc libstdc++ libstdc++-devel make numactl sysstat libXp unixODBC unixODBC-devel -y
[iyunv@oracle11g ~]#

5.修改内核参数
[iyunv@oracle11g ~]# vim /etc/sysctl.conf
fs.file-max = 6815744
fs.aio-max-nr=1048576
kernel.shmall = 2097152
kernel.shmmax = 2147483648
kernel.shmmni = 4096
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 9000 65500
net.core.rmem_default = 262144
net.core.rmem_max = 4194304
net.core.wmem_default = 262144
net.core.wmem_max = 1048576
[iyunv@oracle11g ~]# sysctl -p

6.用户对系统资源的限制
[iyunv@oracle11g ~]# vim /etc/security/limits.conf
oracle  soft  nproc  2047
oracle  hard  nproc  16384
oracle  soft  nofile  1024
oracle  hard  nofile  65536
oracle  soft  stack  10240
[iyunv@oracle11g ~]#

7.用户对shell的限制
[iyunv@oracle11g ~]# vim /etc/profile
if [ $USER = "oracle" ]; then
  if [ $SHELL = "/bin/ksh" ]; then
     ulimit -p 16384
     ulimit -n 65536
  else
     ulimit -u 16384 -n 65536
  fi
fi
[iyunv@oracle11g ~]#

8.添加用户登陆模块

[iyunv@oracle11g ~]# vim /etc/pam.d/login
session   required     /lib/security/pam_limits.so
session   required     pam_limits.so
[iyunv@oracle11g ~]#

9.主机与IP地址解析
[iyunv@oracle11g ~]# vim /etc/hosts
192.168.3.20   oracle11g

10.创建用户与用户组
[iyunv@oracle11g ~]# groupadd -g 500 oinstall
[iyunv@oracle11g ~]# groupadd -g 501 dba
[iyunv@oracle11g ~]# groupadd -g 502 oper
[iyunv@oracle11g ~]# useradd -u 500 -g oinstall -G dba,oper oracle
[iyunv@oracle11g ~]# chown  -R oracle:oinstall /home/oracle
[iyunv@oracle11g ~]# passwd oracle
Changing password for user oracle.
New password:
BAD PASSWORD: it is based on a dictionary word
BAD PASSWORD: is too simple
Retype new password:
passwd: all authentication tokens updated successfully.
[iyunv@oracle11g ~]#

11.创建所需要要的目录和设置环境变量
[iyunv@oracle11g ~]# mkdir -p /u01/oracle/product/11.2.0.1/db_1
[iyunv@oracle11g ~]# chown -R oracle:oinstall /u01
[iyunv@oracle11g ~]# vim /home/oracle/.bash_profile
export ORACLE_BASE=/u01/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0.1/db_1
export ORACLE_SID=orac11g
export PATH=$ORACLE_HOME/bin:$PATH
[iyunv@oracle11g ~]# . /home/oracle/.bash_profile

12.解压oracle 11g软件并安装
[iyunv@oracle11g ~]# xhost +
access control disabled, clients can connect from any host
[iyunv@oracle11g ~]# su - oracle
[oracle@oracle11g ~]$ unzip linux.x64_11gR2_database_1of2.zip
[oracle@oracle11g ~]$ unzip linux.x64_11gR2_database_2of2.zip
[oracle@oracle11g ~]$ cd database/

[oracle@oracle11g database]$ ./runInstaller



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-300075-1-1.html 上篇帖子: oracle linux 4.8安装oracle 10g rac环境之cluster安装 下篇帖子: 使用LogMiner分析oracle的redo日志和归档 oracle
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表