External Procedure Agent

Hello!
Is It Possible To Call 32Bit Libraries Using External Procedure Agent Extproc On Windows 64Bit ?
Thanks a lot

Hi,
I am not sure of that, but I think you get Exceptions. If any document refernce you want the please find the link Oracle9i Application Developer's Guide - Fundamentals Release 2 (9.2)
http://download.oracle.com/docs/cd/B10501_01/appdev.920/a96590/adg11rtn.htm
Cheers
Pavan Kumar N

Similar Messages

  • ORA-28575: unable to open RPC connection to external procedure agent when trying to connect ORE.connect

    Hello,
    I had installed ore 1.3.1 windows server 2008 on top of Oracle DB 11.2.0.3 ,but when I connect the database,it didn't work.
    That is my code and error code.
    ore.connect(user = "rquser", sid = "db11g", host = "....", password = "....", all = TRUE)
    Got error as below:
    error.oci.GetQuery(conn, statement, data = data, prefetch = prefetch, :
    ORA-28575: unable to open RPC connection to external procedure agent
    ORA-06512: at "RQSYS.RQEVALIMPL", line 17
    ORA-06512: at "RQSYS.RQEVALIMPL", line 14
    ORA-06512: at line 4
    Also i have follwed the below link:
    ///ORE1.3-ore-server-win-x86_64-1.3,error ORA-28575: unable to open RPC connec
    But failed to resolve the problem.
    Below are the TNS and Listener file entry:
    # listener.ora Network Configuration File: F:\OracleDB\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = EXTPROC)
          (ORACLE_HOME = H:\ORA11G\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:H:\ORA11G\product\11.2.0\dbhome_1\bin\oraclr11.dll")
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.168.11.69)(PORT = 1521))
    ADR_BASE_LISTENER = H:\ORA11G
    -============================
    # tnsnames.ora Network Configuration File: F:\OracleDB\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
        (CONNECT_DATA =
          (SID = EXTPROC)
          (PRESENTATION = RO)
    DB11G = 
    (DESCRIPTION =   
      (ADDRESS_LIST=
       (ADDRESS = (PROTOCOL = TCP)(HOST = 10.168.11.69)(PORT = 1521)) 
      (CONNECT_DATA =   
        (SERVER = DEDICATED) 
        (SID = DB11G)
    ====================================================
    Thanks
    Sandy

    Hi Sandy,
    If you set EXTPROCS_DLLS=ANY in the listener and then restart the listener, does it fix the problem?
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = EXTPROC)
          (ORACLE_HOME = H:\ORA11G\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ANY")
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
          (ADDRESS = (PROTOCOL = TCP)(HOST = 10.168.11.69)(PORT = 1521))
    Sherry

  • Help me, please ORA-28576: lost RPC connection to external procedure agent

    when i call external program
    SQL>exec shell_all ('/bin/ls /oracle/product/10.2.0/',:result, 3) ;
    BEGIN shell_all ('/bin/ls /oracle/product/10.2.0/',:result, 3) ; END;
    ERROR at line 1:
    ORA-28576: lost RPC connection to external procedure agent
    ORA-06512: at "SYS.SHELL_ALL", line 1
    ORA-06512: at line 1
    and my configure
    #listener.ora
    SID_LIST_LISTENER_AADB02 =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /oracle/product/10.2.0/db)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ANY")
    LISTENER_AADB02 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = aadb02-vip)(PORT = 1521)(IP = FIRST))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 203.144.222.82)(PORT = 1521)(IP = FIRST))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = extproc))
    #tnsname.ora
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = extproc))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    Please tell me to resolve this problem

    Does not execl() and friends replace the current program with the one supplied as a parameter?
    The upshot of this would be as you suggest, viz:
    - Oracle call's your procedure (but doens't wait for a result due to the void return type?)
    - your program executes its code (cd /tmp)
    - it then replaces itself with *program
    - *program terminates
    Presumably, Oracle isn't expecting it to terminate but to continue waiting for subsequent requests.
    I'd check out fork() and see if that offers more appropriate semantics.
    d.

  • ORA-28575: unable to open RPC connection to external procedure agent

    Hi everybody,
    Could you please help me with this problem? I'm trying to configure Oracle XE 11g for external procedures, this because I have to access some procedures in a DLL made in Delphi 6.0, but even with the simplest of the dll I make, like a sum made in C, I can't get pass this error ORA-28575: unable to open RPC connection to external procedure agent.
    This is my listener.ora:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (ADDRESS = (PROTOCOL = TCP)(HOST = myPC)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    and this is my tnsnames.ora:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = myPC)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    Do you know what could be wrong? I'm out of ideas and google search...
    Also, is there any difference in a calling for a DLL made on VB and one made in Delphi??
    Thanks and Regards,

    Hello,
    This error could appear due to issues with configuration of your listener, database or with extproc. First check that the permissions on extproc in your Oracle_home specified in your listener.ora file are valid:
    Run the following ./extproc and it should display the banner.
    If above is ok, then check for the domain name. One probable reason could be that if default_domain is set and that domain is not appended to the service name in tnsnames.ora, the connection fails.
    regards
    fahdmirza.blogspot.com

  • Lost RPC Connection to external procedure agent....

    Hi,
    I have a sample.dll fil & i have created a library by the following command...
    create or replace library trend_lib as 'C:\oracle\product\10.2.0\db_1\BIN\sample.dll';
    'C:\oracle\product\10.2.0\db_1\BIN\sample.dll';------------this is the location where i keep the sample.dll file .
    Then i have created a package
    create or replace PACKAGE p1
    as
    FUNCTION trend( inp IN BINARY_INTEGER) return BINARY_INTEGER as
    LANGUAGE C
    LIBRARY trend_lib
    name "polynomial"
    PARAMETERS (inp INT);
    end;
    But when i am trying to execute the following query it shows the errror:::
    SQL> select p1.trend(6) from dual;
    select p1.trend(6) from dual
    ERROR at line 1:
    ORA-28576: lost RPC connection to external procedure agent......
    mine tnsnames.ora file configuration is :
    FIN11G_172.30.0.12 =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.30.0.12)(PORT = 1522))
    (CONNECT_DATA =
    (SID = fin11g)
    (SERVER = DEDICATED)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ALMDB =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.30.3.11)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = almdb)
    RSBI =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.30.0.12)(PORT = 1521))
    (CONNECT_DATA =
    (SID = rsbi)
    (SERVER = DEDICATED)
    And listener.ora file is....
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=ANY")
    (SID_DESC =
    (GLOBAL_DBNAME = ALMDB)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (SID_NAME = ALMDB)
    (ENVS = "EXTPROC_DLLS=ANY")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 01hw177387.fns.com.au)(PORT = 1521))
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    )

    Hi;
    please see below:
    ORA-28576 When Executing External Procedure [ID 295721.1]
    ORA-28576 Using External Procedures [ID 113179.1]
    External Procedure Fails With ORA-28576 [ID 468404.1]
    Also see:
    Problem calling dll using extproc
    Regard
    Helios

  • ORA-28576 lost RPC connection to external procedure agent

    Hello!
    NT 4.0, O9i 9.0 and 9.2
    Calling external DLL procedure produces the following error:
    "ORA-28576 lost RPC connection to external procedure agent"
    The external DLL is in the ORACLE_HOME/bin directory.
    The same application works fine on 8.1.7 !
    I didn't find any useful info in 9i docs (App. dev. fundamentals; Net guide...).
    Is there any significant difference in EXTPROC feature between 8.1.7 and 9.x ?
    Thanks for any useful info
    Laszlo
    # LISTENER.ORA Network Configuration File: D:\ORANT\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dljk1)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC0))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\ORANT)
    (PROGRAM = extproc)
    # TNSNAMES.ORA Network Configuration File: D:\ORANT\NETWORK\ADMIN\tnsnames.ora
    # Generated by Oracle configuration tools.
    ORCL =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = dljk1)(PORT = 1521))
    (CONNECT_DATA =
    (SERVICE_NAME = orcl.dljk)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (address = (protocol = ipc)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)

    I have the same problem using Windows kernel32.dll. It works fine with Oracle8 and Oracle8i on both Windows NT and Windows2000, but it does not work with Oracle9i on Windows2000. After long discussions, Oracle has admitted that it is a bug. If you have access to metalink then see TAR 2189019.995.
    Bo Pedersen

  • Getting "ORA-28576: lost RPC connection to external procedure agent" for R scripts.

    Hello,
    I am trying R integration with OBIEE. As part of this, I have created a simple R script for a scatter plot. Below is the R script
    begin
      sys.rqScriptCreate('randomRedDots',
                         'function()
                            res <- 1:10
                            plot(1:100, rnorm(100), pch=21, bg="red", cex=2)
                            res
    end;
    I am testing this script in SQL Developer by executing the below sql:
    select image
    from table(rqEval(NULL,
                      'PNG',
                      'randomRedDots')
    During these tests, very often, I get ORA-28576 error when I run the SQL. The complete error is:
    ORA-28576: lost RPC connection to external procedure agent
    ORA-06512: at "RQSYS.RQEVALIMPL", line 77
    ORA-06512: at "RQSYS.RQEVALIMPL", line 74
    28576. 00000 -  "lost RPC connection to external procedure agent"
    *Cause:    A fatal error occurred in either an RPC network connection,
               the extproc agent, or the invoked 3GL after communication had
               been established successfully.
    *Action:   First check the 3GL code you are invoking; the most likely
               cause of this error is abnormal termination of the
               invoked "C" routine. If this is not the case, check for
               network problems. Correct the problem if you find it. If all
               components appear to be normal but the problem persists, the
               problem could be an internal logic error in the RPC transfer
               code.  Contact your customer support representative.
    However, if I re-run the SQL, I do not get this message. This happens at random.
    Any pointers to why this error occurs?
    Thanks,
    Abhishek

    Abhishek,
    Please look for a core file in $ORACLE_HOME/hs/log and look for errors in the call stack associated with the core file.
    Examining the errors will help identify the cause of the intermittent ORA-29576 error.
    Thank you,
    Sherry

  • Cannot get external procedural call in Oracle RAC Environment

    Cannot get external procedure call to work in our test RAC env.
    We are able to get it to work in our DEV env which is a single instance
    LISTENER.ORA:
    NODE1:
    # listener.ora Network Configuration File: /opt/oracle/app/oracle/product/10.2.0/db_1/network/admin/listener.ora
    # Generated by Oracle configuration tools.
    LISTENER_SBLBGT01 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = sblbgt01-vip1)(PORT = 1521)(IP = FIRST))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.41.1.21)(PORT = 1521)(IP = FIRST))
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/oracle/app/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    (ENVS="EXTPROC_DLLS=ANY")
    NODE2:
    # listener.ora.sblbgt02 Network Configuration File: /opt/oracle/app/oracle/product/10.2.0/db_1/network/admin/listener.ora.sblbgt02
    # Generated by Oracle configuration tools.
    LISTENER_SBLBGT02 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = sblbgt02-vip2)(PORT = 1521)(IP = FIRST))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.41.1.22)(PORT = 1521)(IP = FIRST))
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /opt/oracle/app/oracle/product/10.2.0/db_1)
    (PROGRAM = extproc)
    (ENVS="EXTPROC_DLLS=ANY")
    2) ### If you are receiving errors, please list exact error messages and text: ###
    (cont 1.)
    tnsnames.ora (on both nodes):
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = extproc))
    (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO)))
    [opt/oracle/app/oracle/product/10.2.0/db_1/network/admin]> tnsping EXTPROC_CONNECTION_DATA
    TNS Ping Utility for Solaris: Version 10.2.0.3.0 - Production on 11-APR-2011 10:52:49
    Copyright (c) 1997, 2006, Oracle. All rights reserved.
    Used parameter files:
    /opt/oracle/app/oracle/product/10.2.0/db_1/network/admin/sqlnet.ora
    Used TNSNAMES adapter to resolve the alias
    Attempting to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = IPC)(KEY = extproc)) (CONNECT_DATA = (SID = PLSExtProc) (PRESENTATION = RO)))
    OK (0 msec)
    Calling External Procedure:
    SQL> execute ttran.shell('ls');
    BEGIN ttran.shell('ls'); END;
    ERROR at line 1:
    ORA-28575: unable to open RPC connection to external procedure agent
    ORA-06512: at "TTRAN.SHELL", line 1
    ORA-06512: at line 1

    Any Reply Please...
    would appreciate your help...

  • Rpc error calling an external procedure

    I'm having a problem calling an external procedure running on Linux. The setup works using NT and a DLL, but when the function has been converted to a .so library, I get get
    ORA-28575: unable to open RPC connection to external procedure agent
    Now this is probaly due to my listener config since when starting the listener I get an IPC error:
    Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=elvis))
    TNS-12224: TNS:no listener
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused
    Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=elvis)(Port=1521))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 8.0.5.0.0 - Production
    Start Date 20-NOV-00 18:06:42
    Uptime 0 days 0 hr. 0 min. 6 sec
    Trace Level admin
    Security OFF
    SNMP OFF
    Listener Parameter File /home/oracle/ora01/app/oracle/8.0.5/network/admin/listener.ora
    Listener Log File /home/oracle/ora01/app/oracle/8.0.5/network/log/listener.log
    Listener Trace File /home/oracle/ora01/app/oracle/8.0.5/network/trace/listener.trc
    Services Summary...
    elvis has 1 service handler(s)
    extproc has 1 service handler(s)
    The command completed successfully
    I'm using Oracle 8.0.5 and RedHat 6.0. The name of machine is elvis and the sid name is elvis as well. Any bright ideas are more than welcome
    Ben

    your listener.ora file has problem!
    it should look similiar to:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = elvis)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = <substitute with your oracle home>)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = elvis)
    (ORACLE_HOME = <substitute_with_your_oralce_home>)
    (SID_NAME = elvis)
    please verify with net8 admin guide. you also need to set up tnsnames.ora correctly at client side.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Benjamin Sigursteinsson ([email protected]):
    I'm having a problem calling an external procedure running on Linux. The setup works using NT and a DLL, but when the function has been converted to a .so library, I get get
    ORA-28575: unable to open RPC connection to external procedure agent
    Now this is probaly due to my listener config since when starting the listener I get an IPC error:
    Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=elvis))
    TNS-12224: TNS:no listener
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused
    Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=elvis)(Port=1521))
    STATUS of the LISTENER<HR></BLOCKQUOTE>
    null

  • Error Calling an external procedure

    I'm calling an external procedure (provided by a third party).
    When i invoke it from a client code, it functions.
    When I invoke it from PL/SQL code, it gives the following error:
    ORA-28576: lost RPC connection to external procedure agent.
    The solution in the help file states it could be a timeout problem.
    If so, what is the solution to the problem. (I cannot access the source of the DLL subroutine).

    your listener.ora file has problem!
    it should look similiar to:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = elvis)(PORT = 1521))
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = <substitute with your oracle home>)
    (PROGRAM = extproc)
    (SID_DESC =
    (GLOBAL_DBNAME = elvis)
    (ORACLE_HOME = <substitute_with_your_oralce_home>)
    (SID_NAME = elvis)
    please verify with net8 admin guide. you also need to set up tnsnames.ora correctly at client side.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Benjamin Sigursteinsson ([email protected]):
    I'm having a problem calling an external procedure running on Linux. The setup works using NT and a DLL, but when the function has been converted to a .so library, I get get
    ORA-28575: unable to open RPC connection to external procedure agent
    Now this is probaly due to my listener config since when starting the listener I get an IPC error:
    Connecting to (ADDRESS=(PROTOCOL=IPC)(KEY=elvis))
    TNS-12224: TNS:no listener
    TNS-12541: TNS:no listener
    TNS-12560: TNS:protocol adapter error
    TNS-00511: No listener
    Linux Error: 111: Connection refused
    Connecting to (ADDRESS=(PROTOCOL=TCP)(Host=elvis)(Port=1521))
    STATUS of the LISTENER<HR></BLOCKQUOTE>
    null

  • Error calling external procedure on remote server

    Hello
    I have written an external procedure that runs correctly when it is on the same machine as the database from which I call it. (Windows XP Professional/Oracle 9.2)
    When I try to call the procedure from a database on another machine (also Windows XP Professiona l/ Oracle 9.2) I get ORA - 28756 "lost RPC connection to external procedure agent" or ORA - 28758 "protocol error during callback from an external procedure". Using filemon I can see that the DLL is never searched for or called. The problem seems to lie in the communication between the two machines. When I observe network traffic the machines communicate on port 1521 (the listener) and then switch to the port that the listener returns. Shortly after that the connection is terminated with the above error reported in the PL/SQL routine.
    The Oracle Administrator's Guide (9.2) states that "the agent must reside on the same computer as the application making the external procedure call." However there are several entries on the internet that show how to do what I am want to accomplish - I suspect I am making some small mistake.
    Any help would be greatly appreciated!
    Here is the listener on the machine with the DLL.
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = jacxp01)(PORT = 1521))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\ora90)
    (PROGRAM = extproc)
    (ENVS = "EXTPROC_DLLS=C:\easydist\easydist\Debug\easydist.dll;C:\easydist\easydist\Release\easydist.dll")
    Here is the TNSnames.ora on the remote database machine: (I have also tried the commented lines with no more success)
    # TNSNAMES.ORA Network Configuration File: C:\oracle\ora92\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(Key = EXTPROC1))
    #(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.2.121)(PORT = 1521))
    (CONNECT_DATA =
    #(SERVICE_NAME = PLSExtProc)
    (SID = PLSExtProc)
    )

    Hi Long Le Hoang,
    I am running a shell script fromSM69 which call psexec.
    shell script runs fine but SM69 execution goes on hold.
    Can you please help me how to terminate SM69 execution.
    Alpa

  • External Procedure RPC Error

    In Oracle 8 for Solaris,
    I can RUN "External procedure Call" ...
    but When I Run "External procedure Call" in Oracle 8 for Linux
    the message is ....
    "unable to open RPC connection to external procedure agent"
    The listener.ora and tnsnames.ora files, I have checked,
    no problem!!
    Where is the problem ? is OS problem ?
    How to start RPC daemon in Linux ??.....
    I use Redhat 5.2 .......
    Thanks !
    null

    Dear Mark :
    I have followed your method, but not work for Linux ....
    I have succeeded for starting the external-procedure call by
    "oracle for Solaris" , no problem ....
    I think that "Linux RPC Daemon" is NOT running ...
    how to Start it ?
    I use Redhat 5.2 ....
    Thanks !
    -Franco-
    Mark Kirkwood (guest) wrote:
    : The listener config seems a little touchy under linux, and the
    : defualt files seem to not be sufficient.
    : I used the following setup...
    : listener.ora :
    : listener =
    : ( address_list =
    : ( address = (protocol=ipc)(key=extproc0)
    : sid_list_listener =
    : ( sid_list =
    : ( sid_desc =
    : ( sid_name = plsextproc )
    : ( oracle_home = /oracle/8.0.5 )
    : ( program = extproc )
    : tnsnames.ora :
    : extproc_connection_data =
    : ( description =
    : ( address = ( protocol = ipc ) ( key = extproc0 )
    : ( connect_data = ( sid = plsextproc ))
    : You can check that its going by trying
    : sqlplus /@extproc_connection_data
    : the result should be a "hanging" connection for sqlplus and a
    : create process plsextproc, visible from another window
    null

  • External Procedure Error: Ora-28575

    We are trying to set up external procedures in an HP/UX environment. However, we can not seem to get past the following error:
    ORA-28575: unable to open RPC connection to external procedure agent
    The following is our TNSNAMES.ORA set up:
    EXTPROC =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = extproc_key))
    (CONNECT_DATA =
    (SID = extproc_agent)
    The following is the listener.ora setup:
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ssi2)(PORT = 1521))
    (PROTOCOL_STACK =
    (PRESENTATION = TTC)
    (SESSION = NS)
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = extproc_key))
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = SDST.world)
    (ORACLE_HOME = /u001/app/oracle/product/SDST)
    (SID_NAME = SDST)
    (SID_DESC =
    (SID_NAME = extproc_agent)
    (ORACLE_HOME = /u001/app/oracle/product/SDST)
    (PROGRAM = extproc)
    The following is the SQLNET.ORA setup:
    SQLNET.EXPIRE_TIME = 0
    NAMES.DIRECTORY_PATH= (TNSNAMES)
    Does anyone have any ideas/help??? We're stuck. Thanks!

    Hi,
    I guess, it is happening in connection point only. Other wise It will give another error "RPC lost connection".
    I will give some tips.
    1.".so" path should match with oracle library path. For this one, u can query ur system tables and verify.
    2. When u create external procedure, be careful. Especially, when u give name of procedure and library. Pls. check this particular part.
    Pls. let me know the progress. U can directly contact me through the mails.
    With regards,
    Boby Jose Thekkanath,
    Dharma computers(P) Ltd.,
    Bangalore-India.
    www.dharma.com
    null

  • Problem with Oracle external procedures and Microsoft Active Directory

    Hi,
    Our server was recently updated to use Microsoft Active Directory. However, we noticed that all external procedure calls keeps on failing with ORA-28575: unable to open RPC connection external procedure agent. Everything was working fine before we migrated to Active Directory which is why we can say that the listener is configured correctly.
    Any idea on how we can make extproc calls with Active Directory?
    thanks.

    Michael,
    Oracle Forms does support Single Sign-On (SSO). Take a look at Oracle Containers for J2EE Security Guide: OC4J Java Single Sing-On. Also take a look at the Oracle Forms 10g Sample Code and scroll to the SSO demo under the Forms Services Demo section. There are also, numerous other documents available via Google. ;-)
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Remote external procedure call ORA-28576

    Hi,
    I have to call an external procedure (c program) which is in another(remote) host system.
    I have created a simple c program and when i call it from the same database host (Oracle 11.2.0.3 in linux 2.6.39) every thing work fine, but when i call it from another database found in a remote host (Oracle 11.2.0.3 HP-UX 11iv3) i receive these error "ORA-28576". The "extproc" program was started by the listener (i can see that in the listener logfile) but then the connection was aborted.
    So my question is can i call remote external proc program from a remote host ? if yes how can i do that ? thanks for help
    Configuration :
    listener.ora
    LISTENER =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = MYHOST)(PORT = 1521))
    SID_LIST_LISTENER =
        (SID_LIST=
            (SID_DESC= (SID_NAME=callout)
            (ORACLE_HOME=/app/oracle/11.2.0.3)
            (ENVS = 'EXTPROC_DLLS=/tmp/test.so')
            (PROGRAM=extproc)
    tnsnames.ora
    extproc_connection_data =
       (DESCRIPTION =
           (ADDRESS = (PROTOCOL=tcp)(host=MYHOST)(port=1521))
           (CONNECT_DATA=(SID=callout))
    test.c
    #include <stdio.h>
    int square(int x)
    return((x*x) + 1); //adds 1 to the return value
    PL/SQL code
    CREATE DATABASE LINK agent_link USING 'extproc_connection_data';
    CREATE OR REPLACE LIBRARY test_lib IS '/tmp/test.so' AGENT 'agent_link';
    CREATE OR REPLACE FUNCTION test_proc (X BINARY_INTEGER) RETURN BINARY_INTEGER
    AS
    EXTERNAL LIBRARY test_lib
    NAME "square"
    LANGUAGE C;
    CREATE OR REPLACE PROCEDURE EXTPROCTEST (X BINARY_INTEGER)
    AS
       RetValue   BINARY_INTEGER;
    BEGIN
       RetValue := test_proc (X);
       DBMS_OUTPUT.PUT_LINE (RetValue);
    END;
    SET SERVEROUTPUT ON
    EXECUTE EXTPROCTEST(10);

    Hi,
    I found the answare, it seem that for security reason the listener,extproc agent and the instance must be on the same host.
    Reference : (http://docs.oracle.com/cd/E11882_01/appdev.112/e10825/pc_07pls.htm#sthref1051)
    >
    The database server, the agent process, and the listener process that spawns the agent process must all reside on the same host.
    >
    >
    For security reasons, extproc, by default, loads only DLLs that are in directory $ORACLE_HOME/bin or $ORACLE_HOME/lib. Also, only local sessions—that is, Oracle Database client processes that run on the same system—are allowed to connect to extproc.

Maybe you are looking for

  • Error deploying a .ear file - Urgent

    Hi, I am trying to deploy an .ear file on the SAP J2EE engine.  I am getting a NoClassDefFound exception even though the particular jar (xml-apis.jar) file containing the class is in the additional-lib directory.  Also, the jar file has been added to

  • Issue in reading multiple time properties file

    Use Case: I have a page in which i have to show some Outage Messages on page. So I have configured outage message in properties files. This message should me rendered each time when it finds that properties file in class path or it finds the values w

  • Need To Clean Erase My Hard Drive And Re-Install OS and Factory Software

    I have a question. I am needing to erase then reinstall the OS and software that came with this Sep 2008 Macbook Pro. I am selling it and want to wipe out all my personal and work related data files I have created, and do a thorough erase. Then, with

  • Acrobat Pro 6.0

    I have Adobe Acrobat 6.0 Can I install it on my new computer? Must I upgrade to XI Pro?  Does XI Standard do what Pro 6.0 does? Can I change pagination with XI Standard? How much is the upgrade to XI Pro?

  • My Mac Mini OS X 10.6.8 cd/dvd drive (optical) has quit working

    Is this optical  drive repairable in a Mac Mini pre- 2005/2006?