Solved

OrclLanguage_StoredPrcoedure

Posted on 2011-02-18
6
333 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 73

Accepted Solution

by:
sdstuber earned 500 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 73

Expert Comment

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

Expert Comment

by:slightwv (䄆 Netminder)
ID: 34926940
You can also call External procedures written in Java and C++ from internal stored procedures.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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 73

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 76

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now