环境要求:
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_