• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 346
  • Last Modified:

OrclLanguage_StoredPrcoedure

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
sam15
Asked:
sam15
  • 3
  • 2
1 Solution
 
sdstuberCommented:
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
 
sdstuberCommented:
Windows does allow for pl/sql and java stored procedures as well
0
 
slightwv (䄆 Netminder) Commented:
You can also call External procedures written in Java and C++ from internal stored procedures.
0
Managing Security Policy in a Changing Environment

The enterprise network environment is evolving rapidly as companies extend their physical data centers to embrace cloud computing and software-defined networking. This new reality means that the challenge of managing the security policy is much more dynamic and complex.

 
sam15Author Commented:
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
 
sdstuberCommented:
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
 
slightwv (䄆 Netminder) Commented:
>> supports PL/SQL or Java stored procedure.

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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now