DBD::Oracle::st execute failed: ORA-06550: line 3, column 4: PLS-00306: wrong number or types of arguments in call to 'INIT_DELTA_SP'
- From: Vaidy.Venkatraman@xxxxxxxxx
- Date: 21 Dec 2006 12:53:43 -0800
I am calling a stored procedure from Perl Program
my $load_id = 10;
my $source = "WEBCRD";
my $prnt_exec_flg = "0";
my $return_status;
my $sqlerrm_pi;
eval {
my $sth = $dbh->prepare(q{
BEGIN
mdr_admin.build_source_delta_pkg.init_delta_sp
(
v_load_id_in => :v_load_id,
v_source_in => :v_source,
prnt_exec_flg_in => :prnt_exec_flg,
n_status_inout => :n_status,
v_sqlerrm_pi_inout => :v_sqlerrm_pi
);
END;
});
$sth->bind_param (":v_load_id", $load_id+0);
$sth->bind_param (":v_source", "$source");
$sth->bind_param (":prnt_exec_flg", "$prnt_exec_flg");
$sth->bind_param_inout (":n_status", \$return_status, 0);
$sth->bind_param_inout (":v_sqlerrm_pi", \$sqlerrm_pi, 'OK');
$sth->execute;
};
if( $@ ) {
warn "Execution of stored procedure failed
because:\n\t$DBI::errstr\n$@";
} else {
print "Status returned by Stored Procedure = %d\n", $return_status;
}
I am getting the following error:
DBD::Oracle::st execute failed: ORA-06550: line 3, column 4:
PLS-00306: wrong number or types of arguments in call to
'INIT_DELTA_SP'
ORA-06550: line 3, column 4:
PL/SQL: Statement ignored (DBD ERROR: error possibly near <*> indicator
at char 18 in '
BEGIN
<*>mdr_admin.build_source_delta_pkg.init_delta_sp
(
v_load_id_in => :v_load_id,
v_source_in => :v_source,
prnt_exec_flg_in => :prnt_exec_flg,
n_status_inout => :n_status,
v_sqlerrm_pi_inout => :v_sqlerrm_pi
);
END;
') [for Statement "
BEGIN
mdr_admin.build_source_delta_pkg.init_delta_sp
(
v_load_id_in => :v_load_id,
v_source_in => :v_source,
prnt_exec_flg_in => :prnt_exec_flg,
n_status_inout => :n_status,
v_sqlerrm_pi_inout => :v_sqlerrm_pi
);
END;
" with ParamValues: :n_status=undef, :v_sqlerrm_pi=undef,
:v_load_id=10, :v_source='WEBCRD', :prnt_exec_flg='0'] at dbaccess line
97.
Status returned by Stored Procedure = %d
Any help is appreciated to fix the problem.
Thanks,
Vaidy
.
- Prev by Date: RE: utf8 encoding problem
- Next by Date: Re: utf8 encoding problem
- Previous by thread: regarding installing dbd-oracle
- Next by thread: unknown number of bind values
- Index(es):
Relevant Pages
|