How to execute an OS command in SQL*PLUS without leaving the session ?

SQL> help help


Enter Help [topic] for help.

 @                COPY         PAUSE                    SHUTDOWN
 @@            DEFINE       PRINT                    SPOOL
 /                         DEL          PROMPT                   SQLPLUS
 ACCEPT            DESCRIBE     QUIT                     START
 APPEND             DISCONNECT   RECOVER                  STARTUP
 ARCHIVE LOG   EDIT         REMARK                   STORE
 ATTRIBUTE        EXECUTE      REPFOOTER                TIMING
 BREAK                EXIT         REPHEADER                TTITLE
 BTITLE                GET          RESERVED WORDS (SQL)     UNDEFINE
 CHANGE        HELP         RESERVED WORDS (PL/SQL)  VARIABLE
 CLEAR         HOST         RUN                      WHENEVER OSERROR
 COLUMN        INPUT        SAVE                     WHENEVER SQLERROR
 COMPUTE       LIST         SET                      XQUERY
 CONNECT       PASSWORD     SHOW


SQL> help host

 HOST
 ----

 Executes an operating system command without leaving SQL*Plus.
 Enter HOST without command to display an operating system prompt.
 You can then enter multiple operating system commands.

 HO[ST] [command]


SQL> ho echo %cd%
C:\Ken\SQL\Learning

你可能感兴趣的:(sql,session,OS,command,System,input)