代码改变世界

Oracle – Quick Tip – Run OS Commands Within SQL*Plus

2022-03-09 11:01  jetwill  阅读(35)  评论(0编辑  收藏  举报

Oracle – Quick Tip – Run OS Commands Within SQL*Plus

SQL> HO[ST] [command]

# https://docs.oracle.com/cd/B19306_01/server.102/b14357/ch12026.htm
# https://sqljana.wordpress.com/2017/01/14/oracle-quick-tip-run-os-commands-within-sqlplus/
# following works in both Windows and Linux
SQL> host <OS command>
SQL> ho <OS command>
# following only works in Linux
SQL> !<OS command>
# following only works in Windows
SQL> $<OS command>