execute immediate problem
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: execute immediate problem

  1. #1
    Join Date
    Nov 2000
    Posts
    440
    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?

  2. #2
    Join Date
    Jun 2000
    Location
    Madrid, Spain
    Posts
    7,447
    you cannot execute host in pl/sql, in other words you cannot execute system commands like this, in PL/SQL is not possible

  3. #3
    Join Date
    Nov 2000
    Location
    greenwich.ct.us
    Posts
    9,092
    HOST is a sqlplus command, not a PL/SQL command.
    Jeff Hunter
    marist89@yahoo.com
    http://marist89.blogspot.com/
    Get Firefox!
    "I pledge to stop eating sharks fin soup and will not do so under any circumstances."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width