O'Reilly logo

Oracle Advanced PL/SQL Developer Professional Guide by Saurabh Gupta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Executing external C programs from PL/SQL

Oracle extends the architectural support to the external programs in C, C++, Java, or the one whose library is interpretable by C. In the external procedure architecture, we saw the processing steps of an external program. Now, we will list the development steps to run a C program from PL/SQL:

  1. Write a C program and compile it.
  2. Copy the C program's code file in the $ORACLE_HOME\bin\ directory. Generate the DLL using a hardware supported native C compiler.

    Tip

    For demonstration purposes, we will use the MingW (Minimal GNU for Windows) compiler to compile C program and generate the DLLs.

    It can be downloaded from http://www.mingw.org/wiki/Getting_Started.

  3. Configure the Oracle Net service.
  4. Create a PL/SQL library ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required