Jag antar att du måste göra detta i RAW-format:
$val1 = 20;
$result = DB::connection('ora_db')->select(
DB::raw("exec PRW_GENERA_FACTURA(:val1)"), array ('val1' => $val1)
);
return $result;
detta med php i styrenheten:
$conn = oci_connect('apxjfdev01', 'x....' ,'x...');
if (!$conn) {
$e = oci_error(); trigger_error(htmlentities($e['message'], ENT_QUOTES),
E_USER_ERROR);
}
$sql = ' BEGIN PRW_GENERA_FACTURA( :PNRO, :PMSJ ); END; '; $sql =
oci_parse($conn,$sql); oci_bind_by_name($sql, ":PNRO", $val1, 32);
oci_bind_by_name($sql, ":PMSJ", $val2, 32);
$val1 = $id_f;
oci_execute($sql);