Set the sqlplus tool in oracle to easily execute the previous commands (I personally think it is a very good rpm package)

Source: Internet
Author: User

Add the following command to. bashrc under the replicel User:

Install a pack rlwrap-0.37-1.el5.i386.rpm

[Root @ tyger ~] $ Rpm-ivh rlwrap-0.37-1.el5.i386.rpm

Next, modify a parameter:

[Oracle @ tyger ~] $ Cat. bashrc
#. Bashrc

# Source global definitions
If [-f/etc/bashrc]; then
./Etc/bashrc
Fi

# User specific aliases and functions

Take Effect
[Oracle @ tyger ~] $ Source. bashrc

Alias SQL = 'maid sqlplus'
Alias sqlplus = 'maid sqlplus'
Alias lsnrctl = 'rlwrap lsnrctl'
Alias rman = 'rlwrap rman'

[Oracle @ tyger ~] $ Sqlplus/as sysdba

SQL * Plus: Release 10.2.0.1.0-Production on Fri Feb 28 18:49:11 2014


Copyright (c) 1982,200 5, Oracle. All rights reserved.

Connected:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0-Production
With the Partitioning, OLAP and Data Mining options


SYS @ ORCL>

You can press the dig into key to refresh the command that was last executed.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.