plsql - Calling a stored proc from perl -


i running subroutine main script.

print "parameter passed: $_[0]"; $connect_string = 'test/test@testdb'; $sqlplus_settings = ''; $task = ''; $result = qx { sqlplus $connect_string << eof $sqlplus_settings exec {pkgname.procedure($_[0], 'abc',$task); #exit; eof 

when getting called main script {sub($var)}, printing first line input parameter. procedure not getting executed.

as mentioned user @choroba in comments above, best way imho use perl's dbi module.

here example of calling stored procedure work oracle:

$dbh->do("begin your_procedure; end;"); 

and here link started dbi module:

perl dbi

hth


Comments

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -