Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Command fallback in Oracle SQL> mode

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Connecting to sqlplus does not go through history as mysql does, by installing rlwrap

1. Install rlwrap-0.37.tar.gz

Tar zxvf rlwrap-0.37.tar.gz

Cd rlwrap-0.37

. / configure

# yum list | grep termcap

# yum list | grep readline

# yum-y install libtermcap-devel readline-devel

. / configure

Make

Make install

2. Set environment variables

Switch to oracle user

Vim .bash _ profile

Add alias sqlplus/rman configuration

Alias sqlplus='rlwrap sqlplus'

Alias rman='rlwrap rman'

3. Save and exit source. Bash _ profile to make it effective or log in again.

At this time, enter the command to execute sqlplus "/ as sysdba" and find that you can call back.

You can also execute rlwrap sqlplus "/ as sysdba" directly without setting an alias

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report