在SQLPLUS环境中host命令会暂时跳出SQLPLUS回到linux操作系统提示符,在操作系统命令符提示下exit可回到SQLPLUS 环境:
SQL> host
[oracle@localhost ~]$ pwd
/home/oracle
[oracle@localhost ~]$ exit
exit
SQL> select sysdate from dual
2 ;
SYSDATE
---------
17-NOV-16
SQLPLUS中使用!会达到同样的效果:
SQL> !
[oracle@localhost ~]$ pwd
/home/oracle
[oracle@localhost ~]$ exit
exit
SQL> host
[oracle@localhost ~]$ pwd
/home/oracle
[oracle@localhost ~]$ exit
exit
SQL> select sysdate from dual
2 ;
SYSDATE
---------
17-NOV-16
SQLPLUS中使用!会达到同样的效果:
SQL> !
[oracle@localhost ~]$ pwd
/home/oracle
[oracle@localhost ~]$ exit
exit
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/30207872/viewspace-2128634/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/30207872/viewspace-2128634/