配置sqlplus 光标移动的方法

本文介绍了如何配置SQLPlus使得按上下左右键可以移动光标。首先通过sqlplus --help找到配置文件,接着在数据库中运行'show all'查找sqlprompt,然后使用'define'命令定制个人喜好的输出格式。
摘要由CSDN通过智能技术生成

使用sqlplus 连接到数据库后,我们需要配置sqlplus 按上下左右键可以移动光标

路径记不住,命令记不住.有技巧.

第一步:找到配置文件

使用 sqlplus --help


[oracle@oracle ~]$ sqlplus --help |grep sqlplus
Usage 1: sqlplus -H | -V
Usage 2: sqlplus [ [<option>] [{logon | /nolog}] [<start>] ]
           sqlplus myusername/mypassword@ORCL
           sqlplus myusername/mypassword@Host/ORCL
(e.g. $ORACLE_HOME/sqlplus/admin/glogin.sql) and the user profile

第二步:配置,进入数据库,运行命令 show all; 找到sqlprompt

SYS@PROD>show all;
appinfo is OFF and set to "SQL*Plus"
arraysize 15
autocommit OFF
autoprint OFF
autorecovery OFF
autotrace OFF
blockterminator "." (hex 2e)
btitle OFF and is the first few characters of the next SELECT statement
cmdsep OFF
colsep " "
compatibility version NATIVE
concat "." (hex 2e)
copycommit 0
COPYTYPECHECK is ON
define "&" (hex 26)
describe DEPTH 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值