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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -