SQL> create or replace procedure test_steeve is
3 execute immediate 'host notepad';
SQL> execute test_steeve;
BEGIN test_steeve; END;
ERROR at line 1:
ORA-00900: invalid SQL statement
ORA-06512: at "DEMO_320.TEST_STEEVE", line 3
ORA-06512: at line 1
Is there restriction on host command in procedure?
you cannot execute host in pl/sql, in other words you cannot execute system commands like this, in PL/SQL is not possible
HOST is a sqlplus command, not a PL/SQL command.
Click Here to Expand Forum to Full Width