DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: DOS Script to execute Stored Procdure on NT

  1. #1
    Join Date
    Nov 2000
    Posts
    224
    Oracle 8.0.5
    OS - NT 4.0

    I want to execute Stored procedure without using SQL*Plus interactive mode.
    Is it possible to invoke SQLPlus and execute stored procedure from a batch file. This way I put my Oracle connection info in batch file and then issue execute PROCEDURE NAME;

    Thansk.


  2. #2
    Join Date
    Dec 2000
    Location
    Ljubljana, Slovenia
    Posts
    4,439
    In your batch file, run your SQL*Plus like:

    SQLPLUS /NOLOG @my.sql

    and in your SQL script my.sql you should put

    CONNECT username/password@connect_string

    as your first command.
    Jurij Modic
    ASCII a stupid question, get a stupid ANSI
    24 hours in a day .... 24 beer in a case .... coincidence?

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