今天在登陆数据库的时候使用!sql登录
[oracle@p520b ~]$ !sql
sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Wed Feb 20 10:40:07 2019
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, Oracle Label Security, OLAP, Data Mining,
Oracle Database Vault and Real Application Testing options
SYS@gbps>
!sql 这个感叹号在shell中是直接调用history中执行过的命令,可以是数字,也可以是字符串, !sql就只引用最近以sql开头的命令
你把.bash_history清空再执行"!sql"就不行了
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。