oracle procedure ussing Host() command

前端 未结 2 1375
余生分开走
余生分开走 2021-01-21 19:36

I am having a problem using host() command in oracle procedure. I have written very simple oracle code.

CREATE OR REPLACE PROCEDURE 

run_command(c         


        
2条回答
  •  礼貌的吻别
    2021-01-21 20:02

    The HOST command is only available in SQL*Plus and not from PL/SQL.

    You can use Java stored procedure to call call OS commands. Oracle released a white paper on calling OS commands from within PL/SQL back in 2008 but there's plenty of other stuff out there (including Oracle Base, which is quite good)

提交回复
热议问题