1、环境准备:学习Oracle一定要有自己的环境,包括硬件和软件,下面说一下我的环境,大家可以参考。
硬件环境:
机器型号:Dell Latitude E5440
CPU:Intel Core i5-4210U @ 1.70GHz 双核
内存:12G(原装4G+自己配的8G)
硬盘:500G
同时在主板选项中开启虚拟化支持。
软件环境:
操作系统:Windows 7 64位
虚拟机软件:WMware Workstation 10.0.2
Linux版本:RHEL6.6 64位
Oracle:11.2.0.4Secure
CRT:7.3.0Xmanager:4
运行securable.exe查看是否满足虚拟化条件,如果是如下结果,表示你的软硬件满足虚拟化要求。
2、环境搭建软硬件环境准备好了后,我们就来搭建学习环境。
(1)安装Windows 7 64位操作系统,SecureCRT以及Xmanager
(2)安装虚拟机软件WMware Workstation
(3)创建虚拟机,安装RHEL6.6,具体可以参考http://blog.itpub.net/28536251/viewspace-1455365/
(4)为Linux系统配置YUM,具体可以参考http://blog.itpub.net/28536251/viewspace-1750096/
(4)安装数据库,具体可以参考http://blog.itpub.net/28536251/viewspace-1689235/
(5)在Linux中安装rlwrap,安装这个软件的目的是为了在sqlplus下使用方向键,具体步骤如下:
[[email protected] ~]# yum install readline* libtermcap-devel* lrzsz
[[email protected] ~]# wget http://utopia.knoware.nl/~hlub/rlwrap/rlwrap-0.41.tar.gz
[[email protected] ~]# tar -xvzf rlwrap-0.41.tar.gz[[email protected] ~]# cd rlwrap-0.41
[[email protected] rlwrap-0.41]# ./configure
[[email protected] rlwrap-0.41]# make
[[email protected] rlwrap-0.41]# make install
[[email protected] rlwrap-0.41]# vi /home/oracle/.bash_profile
#添加 下面2行
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
保存退出后,使配置文件生效就可以了。
[[email protected] rlwrap-0.41]# source /home/oracle/.bash_profile