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

Thread: Unix Script

  1. #1
    Join Date
    Jan 2001
    Posts
    515
    I am writing a unix script that runs a function in the database by logging in and calling the function. I am not able to get the return value from the function. This is what I have and it is not working:

    num=`sqlplus -s << EOSQL
    ${USER}/${PASSWORD}
    set serveroutput on
    declare
    x number;
    begin
    x := UPD_FUNC(0000046,'F');
    dbms_output.put_line(x);
    end;
    EOSQL
    `

    the function works fine from the command line. Any ideas?
    We are using AIX unix with oracle 8.1.7.

  2. #2
    Join Date
    May 2001
    Location
    San Francisco, California
    Posts
    511
    I saw someone in the forum suggesting to put a / after the end; and it works.

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