Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

OrclLanguage_StoredPrcoedure

Posted on 2011-02-18
6
Medium Priority
?
345 Views
Last Modified: 2012-05-11
just want to confirm something.

Is it possible to have a stored procedure in oracle 9i/11g using PHP.

My understanding is it only supports PL/SQL or Java stored procedure.

PHP can exist on the 10g app server.
0
Comment
Question by:sam15
  • 3
  • 2
6 Comments
 
LVL 74

Accepted Solution

by:
sdstuber earned 2000 total points
ID: 34926895
PL/SQL and java are the only languages supported for stored procedures on most platforms.

Windows is the exception because it allows for .NET CLR integration, so you can write stored procedures in .NET languages.
0
 
LVL 74

Expert Comment

by:sdstuber
ID: 34926907
Windows does allow for pl/sql and java stored procedures as well
0
 
LVL 78

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34926940
You can also call External procedures written in Java and C++ from internal stored procedures.
0
Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

 

Author Comment

by:sam15
ID: 34927027
interesting i did not realie yo ucan write .NET SP for windows.

so PHP script needs PHP engine which can be installed on the oracle Application server. then PHP can call an SP and right?
0
 
LVL 74

Expert Comment

by:sdstuber
ID: 34927111
yes, PHP can call a stored procedure

It's not really my area, but it might look something like this...


$conn = oci_connect("youruser", "yourpassword", "yourdb");
$callproc = oci_parse($conn, "begin yourproc(:param1, :param2, :param3); end;");
0
 
LVL 78

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34927130
>> supports PL/SQL or Java stored procedure.

Calling a stored procedure externally is different than writing a stored procedure.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses four methods for overlaying images in a container on a web page
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

877 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question