----------------------------------------------------------------------------------------------------------
For environments where the configuration files have been overwritten,
edit the LISTENER.ORA and TNSNAMES.ORA files as
follows:
1.Add a system identifier (SID) name and a program name
for EXTPROC in the server's LISTENER.ORA file (entries are
shown in boldface text):
LISTENER =
(ADDRESS_LIST =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = INVENTORY)
)
(ADDRESS =
(PROTOCOL = IPC)
(KEY = ORCL)
)
(ADDRESS =
(PROTOCOL = IPC)
(KEY = extproc)
)
(ADDRESS =
(PROTOCOL = TCP)
(Host = INVENTORY)
(PORT = 1521)
)
)
STARTUP_WAIT_TIME_LISTENER = 0
CONNECT_TIMEOUT_LISTENER = 10
TRACE_LEVEL_LISTENER = ADMIN
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = ORCL)
)
(SID_DESC =
(SID_NAME = extproc)
(PROGRAM = extproc)
)
)
2.Add a service name entry for EXTPROC in the server's TNSNAMES.ORA file (entries are shown in boldface text):
INVENTORYDB.WORLD =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)
(Host = INVENTORY)
(PORT = 1521)
)
(CONNECT_DATA = (SID = ORCL)) )
extproc_connection_data.world =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = IPC)
(KEY = ORCL)
)
(CONNECT_DATA = (SID=extproc))
)
Please note that the value for KEY must match the KEY value specified
in the LISTENER.ORA file. In order to support a
multiple Oracle home environment, the Oracle Installer automatically
creates unique keys for the external procedures in different
Oracle homes.
---------------------------------------------------------------------------------------------------
Correct me if I'm wrong but it says that the value for KEY in tnsnames.ora
must match
the value for KEY in listener.ora. In their example, the KEY in tnsnames.ora
is
ORCL, and in listener.ora it's extproc, no? Do they really
mean the SID? Or is
this just a bad example on how to do it? (are these things case
sensitive by the way).
- Thanks,
Dc.
Doug Cowles <dco...@bigfoot.com> wrote in message news:37937918...@bigfoot.com...
Yass Khogaly wrote:
Description
===========
{
OCIExtProcRaiseExcpWithMsg(context, 20001, error_msg, 0);
file_handle = fopen(path, filemode);
i = 0;
while (i < len)
{
i++;
i++;
}
/* fwrite(message,len,1,file_handle); */
Regards
Doug Cowles <dco...@bigfoot.com> wrote in message news:37937918...@bigfoot.com...I'm trying to set up a database so that external procedures can be used.
- Dc.
Pete Sharman wrote:
DougI only have 8.1 installed, but for that the make.bat file is simply:
REM USAGE: just type MAKE
cl -I. /LD -Zi extern.c /link msvcrt.lib /nod:libcmt /DLLCouldn't find the other .bat file Yass mentioned at all.
HTH.
Pete
--
RegardsPete