Jump to content

oci8 set serveroutput


jmurch

Recommended Posts

Does anyone know of a way to do this? I am not getting any of my OUT parameters when calling a stored procedure thru OCI8.  Besides serveroutput is there anywhere else that may preventing my getting the OUT values?

 

<?

$c = oci_connect("jeffm", "welcome1", "10.2.1.25:1524/cdba");

 

$sql = 'BEGIN apps.sayHello(:name, :message); END;';

 

$stmt = oci_parse($conn,$sql);

 

//  Bind the input parameter

oci_bind_by_name($stmt,':name',$name,32);

 

// Bind the output parameter

oci_bind_by_name($stmt,':message',$message,32);

 

// Assign a value to the input

$name = 'Jeff';

 

oci_execute($stmt);

 

// $message is now populated with the output value

print "$message\n";

?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.