oci_execute and package executing problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Flyzone

    #1

    oci_execute and package executing problem

    Hi,
    i'm trying to execute a package from php with oci_execute.
    The package works perfectly from sqlplus, but the same string give me
    this result:
    "ORA-00900: invalid SQL statement"

    The string executed is:
    $query="execute
    ddl_actions.cas cade_update('TA BLE','COLUMN',' $oldvalue','$ne value')";
    $package_query = oci_parse($db,$ query);
    $r=oci_execute( $package_query) ;

    And also, oci_statement_t ype($package_qu ery) give me as result:
    UNKNOW.

    What is wrong in the call? All the other query works also in php with
    oci_execute, but the call of a package not.

    Hope someone could help me.
    Thanks in advance.
  • Flyzone

    #2
    Re: oci_execute and package executing problem

    On 10 Mar, 12:18, Flyzone <flyz...@techno logist.comwrote :
    "ORA-00900: invalid SQL statement"
    Solved by my DBA, the exec cannot be called like in sqlplus, but with:
    $query="BEGIN
    ddl_actions.cas cade_update('TA BLE','COLUMN',' $oldvalue','$ne wvalue');
    END;";

    Comment

    Working...