Re: PRO*C and SQL CONNECT

From: David Crowson <zdxc0d_at_amoco.com>
Date: Fri, 13 Aug 1993 04:05:24 CDT
Message-ID: <1993Aug13.040524.11963_at_amoco.com>


In article kvo_at_bigguy.eng.ufl.edu, bvd_at_mis.engnet.ufl.edu (Bruce Van Dotten) writes:
-->I wish to write a C executable program that performs a simple operation of
-->connecting to the database and running a select statement. My problem is PRO*C and
[stuff deleted]
-->
-->I compile with the standard proc.mk (i.e. 'make -f proc.mk programc ') and
-->then run the program. However, I receive the error message:
--> ERROR during Connect - ORA 6105.
-->
-->What's going wrong!!!
-->NOTE: I print out the contents of :userid with no problem.
--> I use the same CONNECT syntax with sqlplus with no problem.
If you type 'oerr ora 6105' you get the following from the error message program......

% oerr ora 6105
06105, 00000, "NETTCP: remote host is unknown" // *Cause: Host name specified in the login (connect) string is unknown. // *Action: Check spelling; make sure name is in the TCP/IP HOST file.  

I think this might be a help to you!

---
*******************************************************************************
*  David Crowson        *  "It's a small world but a damn big planet!"        *
*  DBA (Oracle 4,5,6,7) *  "You can't have my shiny thing.If you try and      *
*  Amoco Exploration    *   take it I may have to eat you.It's my all-time    *
*  (UK) Ltd             *   bestest luckiest find I ever found in the whole   *
*  Hanger Lane          *   today!. ...And it does two amazing things.."      *
*  Ealing               *                                                     *
*  London               *                                                     *
*  dcrowson_at_amoco.com   *   "If God is Infinite and the Universe is Finite -  *
*  My views not Amoex's *      Would you like some Toast?"                    *
*******************************************************************************
Received on Fri Aug 13 1993 - 11:05:24 CEST

Original text of this message