设为首页 加入收藏

TOP

CentOS 6.6安装Oralce 11gR2数据库(一)
2015-11-13 01:24:22 来源: 作者: 【 】 浏览:46
Tags:CentOS 6.6 安装 Oralce 11gR2 数据库

环境要求:


rlwrap-0.42


VMware Workstation 11


linux.x64_11gR2_database_1of2和linux.x64_11gR2_database_1of2


rlwrap的下载地址:http://utopia.knoware.nl/~hlub/uck/rlwrap/#rlwrap


CentOS release 6.6



选择Basic Server其它没有什么特别要求:


VMware Workstation 11的安装也没有什么特别要求?


VMware Workstation 11.0 永久不过期激活密钥:


1F04Z-6D111-7Z029-AV0Q4-3AEH8


http://download.oracle.com/otn/linux/oracle11g/R2/linux.x64_11gR2_database_1of2.zip


http://download.oracle.com/otn/linux/oracle11g/R2/linux.x64_11gR2_database_2of2.zip


CentOS 6.6 基本环境配置:


1) . ip地址配置


# vi /etc/sysconfig/network-scripts/ifcfg-eth0


NM_CONTROLLED=yes


BOOTPROTO=static


IPADDR=192.168.1.6


NETMASK=255.255.255.0


NETWORK=192.168.1.0


2) .主机名和网配置


# vi /etc/sysconfig/network? ? ? ? ? ? ? ? ?


HOSTNAME=oracle.dba.No1


GATEWAY=192.168.1.254


3) .DNS配置?


# vi /etc/resolv.conf


nameserver 192.168.1.254


4) .关闭selinux


# vi /etc/selinux/config


SELINUX=disabled


5) .配置ip和主机名的对应的关系?


# vi /etc/hosts? ? ?


192.168.1.6? oracle.dba.No1


?The static table lookup for host name(主机名查询静态表)Linux 的/etc/hosts是配置ip地址和其对应主机名的文件,这里可以记录本机的或其他主机的ip及其对应主机名.


6) .关闭防火墙


# chkconfig --list iptables


iptables? ? ? 0:关闭1:关闭2:启用3:启用4:启用5:启用6:关闭


# chkconfig --del iptables


7) .配置CentOS 6更新源


# vi /etc/yum.repos.d/CentOS-Base.repo


[aliyu]


name=from http://mirrors.aliyun.com/centos/6.6/os/x86_64/


baseurl=http://mirrors.aliyun.com/centos/6.6/os/x86_64/


gpgcheck=1


enabled=1


gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6


# yum clean all


# yum makecache


8) .安装常用包


yum groupinstall 'Development tools'? 'Compatibility libraries'? 'Desktop Platform Development'


9) .配置使用xrdp或Xmanager 远程连接 CentOS6?


# yum install gdm? ? ? ? 安装gdm


# rpm -qi gdm? ? ? ? ? ? 查看gdm的描述消息


Name? ? ? ? : gdm? ? ? ? ? ? ? ? ? ? ? ? ? Relocations: (not relocatable)


Version? ? : 2.30.4? ? ? ? ? ? ? ? ? ? ? ? ? ? Vendor: CentOS


Release? ? : 64.el6? ? ? ? ? ? ? ? ? ? ? ? Build Date: 2014年10月16日 星期四 05时23分17秒


Install Date: 2015年01月05日 星期一 23时42分08秒? ? ? Build Host: c6b8.bsys.dev.centos.org


Group? ? ? : User Interface/X? ? ? ? ? ? ? Source RPM: gdm-2.30.4-64.el6.src.rpm


Size? ? ? ? : 4828731? ? ? ? ? ? ? ? ? ? ? ? ? License: GPLv2+


Signature? : RSA/SHA1, 2014年10月18日 星期六 04时01分31秒, Key ID 0946fca2c105b9de


Packager? ? : CentOS BuildSystem


URL? ? ? ? : http://download.gnome.org/sources/gdm


Summary? ? : The GNOME Display Manager


Description :


GDM provides the graphical login screen, shown shortly after boot up,


log out, and when user-switching.


1)编辑/etc/gdm/custom.conf,内容如下:


[daemon]


[security]


AllowRemoteRoot=true


[xdmcp]


Port=177


Enable=1


[gui]


[greeter]


[chooser]


[debug]


[servers]


复制custom.conf到gdm.conf


>cp custom.conf gdm.conf


然后重启桌面:gdm-restart


init 3


init 5


或重启系统。


2)设置防火墙,在/etc/sysconfig/iptables文件中加入:


-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 6000:6010 -j ACCEPT


-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 177 -j ACCEPT


重启防火墙:service iptables restart?


3)在windows中安装Xmanager,打开Xbrowser,新建XDMCP session,就可以看到CentOS了。


注:我出现了防火墙阻挡访问的问题,使用service iptables stop关闭防火墙后即可访问。或者用命令system-config-firewall来关闭防火墙。


至此主机环境配置完毕......................


oracle软件所必需的环境配置:


1) .安装依赖包?


挂载光驱从安装光盘上安装所缺少的软件外


# mkdir /mnt/cdrom


# mount -t iso9660 /dev/cdrom /mnt/cdrom


# cd /mnt/cdrom/Packages/


以 rpm -ivh? 包名? 的方式安装所缺的软件包


binutils-2.20.51.0.2-5.11.el6 (x86_64)


compat-libcap1-1.10-1 (x86_64)


compat-libstdc++-33-3.2.3-69.el6 (x86_64)


compat-libstdc++-33-3.2.3-69.el6.i686


gcc-4.4.4-13.el6 (x86_

首页 上一页 1 2 3 4 下一页 尾页 1/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇通过JMS监听Oracle AQ,在数据库.. 下一篇MNIST数据库介绍及转换

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容: