[root@localhost6 ~]# rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
Retrieving http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
warning: /var/tmp/rpm-tmp.rIN0Eg: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Preparing... ########################################### [100%]
1:epel-release ########################################### [100%]
[root@localhost6 ~]# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
[root@localhost6 ~]# yum install rlwrap readline readline-devel
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink | 5.6 kB 00:00
* base: mirrors.sin3.sg.voxel.net
* epel: mirror.smartmedia.net.id
* extras: mirrors.sin3.sg.voxel.net
* updates: mirror.colocity.com
epel | 4.2 kB 00:00
epel/primary_db | 5.6 MB 00:00
Setting up Install Process
Package readline-6.0-4.el6.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package readline-devel.x86_64 0:6.0-4.el6 will be installed
--> Processing Dependency: ncurses-devel for package: readline-devel-6.0-4.el6.x86_64
---> Package rlwrap.x86_64 0:0.37-1.el6 will be installed
--> Running transaction check
---> Package ncurses-devel.x86_64 0:5.7-3.20090208.el6 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=================================================================================================================================================================================
Package Arch Version Repository Size
=================================================================================================================================================================================
Installing:
readline-devel x86_64 6.0-4.el6 base 134 k
rlwrap x86_64 0.37-1.el6 epel 90 k
Installing for dependencies:
ncurses-devel x86_64 5.7-3.20090208.el6 base 642 k
Transaction Summary
=================================================================================================================================================================================
Install 3 Package(s)
Total download size: 866 k
Installed size: 2.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): ncurses-devel-5.7-3.20090208.el6.x86_64.rpm | 642 kB 00:00
(2/3): readline-devel-6.0-4.el6.x86_64.rpm | 134 kB 00:00
(3/3): rlwrap-0.37-1.el6.x86_64.rpm | 90 kB 00:00
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 482 kB/s | 866 kB 00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Installing : ncurses-devel-5.7-3.20090208.el6.x86_64 1/3
Installing : readline-devel-6.0-4.el6.x86_64 2/3
Installing : rlwrap-0.37-1.el6.x86_64 3/3
Verifying : ncurses-devel-5.7-3.20090208.el6.x86_64 1/3
Verifying : readline-devel-6.0-4.el6.x86_64 2/3
Verifying : rlwrap-0.37-1.el6.x86_64 3/3
Installed:
readline-devel.x86_64 0:6.0-4.el6 rlwrap.x86_64 0:0.37-1.el6
Dependency Installed:
ncurses-devel.x86_64 0:5.7-3.20090208.el6
Complete!
[root@localhost6 ~]#
#Login as oracle user
vi /home/oracle/.bash_profile
#append 2 more lines
alias sqlplus='rlwrap sqlplus'
alias rman='rlwrap rman'
Logout and login again.
--------------------The End----------------------------------------------------------------------
No comments:
Post a Comment