-
SQL> create or replace procedure test_steeve is
2 begin
3 execute immediate 'host notepad';
4 end;
5 /
Procedure created.
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.
Jeff Hunter
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|