Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

PHP using PDO driver cant insert long CLOB data in oracle What is the correct way?

ddf75cc0-fca8-4149-9696-8a84886851d3Apr 10 2016 — edited Jun 24 2016

$idusr=1;
$datafilters = '... Esto es un string JSON muy largo mayor de 4k....';
$stm = $db->prepare("Insert into " . $this->table . " (idusr, datafilters) Values (:idusr,EMPTY_CLOB()) RETURNING datafilters INTO :datafilters");
$isformsended = $data->formsended?1:0; 
$stm->bindParam(':idusr', $idusr); 
$stm->bindParam(':datafilters', $datafilters, PDO::PARAM_LOB);  
if (!$stm) { echo "\n 1 PDO::errorInfo():\n"; print_r($db->errorInfo()); }  
$db->beginTransaction();  
$stm->execute();  
$db->commit();  
echo "\n ERROR :\n"; print_r($db->errorInfo());


This is my code and still do not work, could it be because Im using windows, Don't know what I am doing bad.

Im using PHP in WINDOWS usin XAMPP and DB is ORACLE.

Please help, thanks in advance.

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on May 9 2016
Added on Apr 10 2016
1 comment
2,976 views