473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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.cascade_update('TABLE','COLUMN','$oldv alue','$nevalue')";
$package_query = oci_parse($db,$query);
$r=oci_execute($package_query);

And also, oci_statement_type($package_query) 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.
Mar 10 '08 #1
1 2229
On 10 Mar, 12:18, Flyzone <flyz...@technologist.comwrote:
"ORA-00900: invalid SQL statement"
Solved by my DBA, the exec cannot be called like in sqlplus, but with:
$query="BEGIN
ddl_actions.cascade_update('TABLE','COLUMN','$oldv alue','$newvalue');
END;";
Mar 10 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tonguç Yumruk | last post by:
Hi, I'm writing a plugin based application with python 2.1 but I really have some trouble with creating a package. My directory structure is: Skib/Server/Python/: skib skibserver
1
by: waucoin | last post by:
When I created an application in VB6 on a XP Pro machine, I used the Package Deployment Wizard to create a setup program. When installing on it on another XP PRO machine, the message says that...
1
by: Steinar | last post by:
I created an Access 2003 mdb on my computer and used the Access Package Wizard to create an installation package, including the Access 2003 Runtime This installs fine on my second computer running...
0
by: John | last post by:
Hi When I try to run package wizard under Microsoft Office Access 2003 Developer Extensions, I get a *blank* 'Custom Startup' dialog with Next/Prev button. Nothing happens when I press next....
0
by: Barb | last post by:
Hello again, I had posted over the past couple of days regarding a connection issue I was having to my production database from an Access project. I sorted that out by using integrated Windows...
1
by: Neal | last post by:
Hi All, I have deployed a web site to a hosting site (ix), but some really strange incomplete execution hassles. The app is Frameset based, 2 of the aspx pages for 2 of the 4 frames, don't...
0
by: deodic | last post by:
Hi, I'm trying to fire a stored proc from within a DTS package. The stored proc makes use of # tables and this seems to be a problem when executing the DTS package. How do overcome this? I get...
2
by: EuGeNe Van den Bulke | last post by:
Hi there, I have a "problem" which could be a bad design on my behalf but I am not sure so ... I have a package WMI which contains a module hauteur.py which, when imported, load data from a...
0
by: Steven Samuel Cole | last post by:
Hi Stephane, thanks for your reply! :-) I do not get any notification or warning or whatever from dpkg, all output I get when running # sudo dpkg -i python-<package name>_0.0.1-4927-1_all.deb...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.