[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference orarep::nomahs::dbstars

Title:DBSTARS Conference
Moderator:BROKE::BASTINE
Created:Wed Feb 02 1994
Last Modified:Thu Jun 05 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:791
Total number of notes:1521

485.0. "Example of COBOL ext function in Rdb" by BROKE::BITHER () Tue Jul 18 1995 22:38

T.RTitleUserPersonal
Name
DateLines
485.1link/share options diff for axp (ext function)BROKE::BITHERWed Jul 19 1995 13:3218
485.2cobol programBROKE::BITHERTue Mar 25 1997 16:4419
Copy of cobol program odbctest.cob used in base note.
----------------------------------------------------
IDENTIFICATION DIVISION.
PROGRAM-ID.	ODBCTEST.
AUTHOR.	    	BILBO BAGGINS.
DATE-WRITTEN.    TODAY.
DATE-COMPILED.
ENVIRONMENT	DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER.	VAX.
OBJECT-COMPUTER.	VAX.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 TST-STRING 		PIC S9(4) COMP VALUE 9999.
PROCEDURE DIVISION GIVING TST-STRING.
START-PROGRAM.
EXIT-PROGRAM.
	EXIT PROGRAM.
	STOP RUN.
485.3Sent to Marilyn 4/1/97BROKE::BITHERTue Apr 01 1997 15:5871
From:	BROKE::BITHER       "Please reply to dbither@us.oracle.com"  1-APR-1997 11:59:52.12
To:	M5::MGULLIKS
CC:	BITHER
Subj:	New STARS Article - thanks, Diane

TITLE:      RDMS-E-NORTNENTRY, Can Not Find Entry Point for the Routine

PRODUCT:    Oracle Rdb

OP/SYS:     OpenVMS VAX, OpenVMS AXP

SOURCE:     Oracle Worldwide Customer Support


PROBLEM:

An external function call that activates an external routine results in the
following error:

SQL> select odbctest() from rdb$database;
%RDB-E-EXTFUN_FAIL, external routine failed to compile or execute successfully
-RDMS-E-INVRTNUSE, routine ODBCTEST can not be used in this request - image 
 sys$common:[sqluser61.coda]odbctest.exe not activated
-RDMS-E-NORTNENTRY, can not find entry point for the routine ODBCTEST


PROBLEM CAUSE:

The shareable image ODBCTEST.EXE has been linked without specifying the
external routine name as a universal symbol on a VAX or as a symbol
vector on an AXP.


SOLUTION:

On a VAX:

  $ link/share odbctest, sys$input/opt
  universal = odbctest      ! where odbctest is the routinename
  (Ctrl-Z)

  OR

  Create options file odbctest.opt which contains the line:
  universal = odbctest

  $ link/share odbctest, odbctest.opt/opt


On an AXP:

  $ link/share odbctestaxp, sys$input/opt
  symbol_vector = (odbctest = procedure)  ! where odbctest is the routinename
  (Ctrl-Z)

  OR

  Create options file odbctest.opt which contains the line:
  symbol_vector = (odbctest = procedure)

  $ link/share odbctest, odbctest.opt/opt


See the Oracle Rdb7 Guide to SQL Programming, Chapter 14 "Using External 
Routines," section 14.6 "Creating Shareable Images for External Routines"
for more information.  

\
\ CONTRIBUTORS:
\
\       Technical: Diane Bither