Skip to content
pvmehta.com

pvmehta.com

  • Home
  • About Me
  • Toggle search form
  • Mutating Table Error while using database trigger Oracle
  • exp syntax in oracle 10g Oracle
  • Parallel DML Oracle
  • runsql_once.ksh Linux/Unix
  • chk_space_SID.ksh Linux/Unix
  • purge_trc.sh Linux/Unix
  • oracle fast start failover best practice Oracle
  • find_du.ksh to find # of files, their sizes in current folder and its subdolder Linux/Unix
  • Windows based Command line mailing program like mailx (Sednmail for windows) PHP/MYSQL/Wordpress
  • Jai Shree Ram Linux/Unix
  • To see how much time or progress of long transaction Oracle
  • findx.sql /* Find Indexes on specified USER.TABLE_NAME */ Oracle
  • sql_doing_fts.sql Oracle
  • How does one SELECT a value from a table into a Unix variable? From SQL to Shell Linux/Unix
  • Drop specific SQL plan baseline – spm Oracle

EXTPROC

Posted on 23-Jul-2009 By Admin No Comments on EXTPROC

EXTPROC

Scope and Application

A list of the essential components for executing an external procedure is included below, along with a brief description of the role of each.

Database:

Responsible for storing any information required to locate and execute an external procedure (e.g. the location of shared library, number and types of arguments, etc.)

Initiates the call to the procedure via the listener and external procedure agent

Both the library alias and call specification are stored in the database.

Llistener:

Listens for external procedure requests from databases and starts external procedure agent processes (one per session)

External procedure agent:

Accepts information (arguments, shared library location, etc.) from the database, loads the shared library as required, and executes the corresponding function in some other language

Corresponds to the extproc executable which resides in $ORACLE_HOME/bin

User-provided shared library:

Contains the user-written function that implements the desired functionality

Library alias:

Records the location of the shared library within the database

Used in the PL/SQL call specification

External procedure call specification:

Provides a description of the procedure, including its PL/SQL name, arguments and types, and the name of the library alias and the function (written in another language) implementing the procedure, or libunit in the case of a Java class method

External Procedures – Troubleshooting ORA-28575 Errors

A Typical Sequence of Events

The following is a typical sequence of events:

The user invokes the call specification corresponding to an external procedure via PL/SQL or some other programmatic interface.

The database examines the call specification to find the name of the shared library implementing the function, as well as the name of the function and the number and type of the arguments.

The database uses the extproc_connection_data service name in the tnsnames.ora file to contact the external procedure listener.

Note: This step only occurs the first time the external procedure is invoked within a given session. After that, the existing external procedure agent can be contacted directly

The listener starts an external procedure agent process to service the external procedure execution request and returns the address of the new extproc agent to the requesting database.

The database sends the external procedure agent the name of the shared library, the name of the function to invoke, and after performing the required conversions from PL/SQL to another language datatypes, the actual arguments.

The external procedure agent loads the shared library, invokes the appropriate function, converts any returned data from another language datatypes to the corresponding PL/SQL types, and sends the data back to the database.

Oracle, SQL scripts

Post navigation

Previous Post: How to remove blank lines using vi editor command
Next Post: Alter procedure auditing

Related Posts

  • New OFA for 11g Oracle
  • Sending SQLPLUS output in HTML format Oracle
  • This is from Temi Oracle
  • Oracle 10g Wait Model Oracle
  • Find Multiple levels of object dependencies : depen.sql Oracle
  • DBMS_UTILITY PACKAGE Oracle

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Categories

  • Ansible (0)
  • AWS (2)
  • Azure (1)
  • Linux/Unix (149)
  • MYSQL (5)
  • Oracle (393)
  • PHP/MYSQL/Wordpress (10)
  • POSTGRESQL (0)
  • Power-BI (0)
  • Python/PySpark (7)
  • RAC (17)
  • rman-dataguard (26)
  • shell (149)
  • SQL scripts (342)
  • SQL Server (6)
  • Uncategorized (0)
  • Videos (0)

Recent Posts

  • Trace a SQL session from another session using ORADEBUG30-Sep-2025
  • SQL Server Vs Oracle Architecture difference25-Jul-2025
  • SQL Server: How to see historical transactions25-Jul-2025
  • SQL Server: How to see current transactions or requests25-Jul-2025
  • T-SQL Vs PL/SQL Syntax25-Jul-2025
  • Check SQL Server edition25-Jul-2025
  • Checking SQL Server Version25-Jul-2025
  • Oracle vs MYSQL Architecture differences (For DBAs)24-Jul-2025
  • V$INSTANCE of Oracle in MYSQL24-Jul-2025
  • Day to day MYSQL DBA operations (Compared with Oracle DBA)24-Jul-2025

Archives

  • 2025
  • 2024
  • 2023
  • 2010
  • 2009
  • 2008
  • 2007
  • 2006
  • 2005
  • scripts to take listener.log backup Linux/Unix
  • ORA-8031 issue and solution if it is occuring due to truncate. Oracle
  • Renaming the column name Oracle
  • Temporary Tablespsace Temp tablespace behaviour Oracle
  • PHP code to add WordPress posts in bulk programmatically PHP/MYSQL/Wordpress
  • Another export with Query Oracle
  • Oracle 10g for solaris 10 Oracle
  • Facts about SCN and Rollback Segment Oracle

Copyright © 2025 pvmehta.com.

Powered by PressBook News WordPress theme