Re: OCIServerAttach returns ORA-12514
- From: "Matthias Hoys" <anti@xxxxxxxx>
- Date: Sun, 13 Aug 2006 21:29:54 +0200
"Paul" <paul.flew@xxxxxxxxxxxxxxxxx> wrote in message
news:1155491394.373445.98770@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi
I have a small C application which connects to an Oracle database using
OCI. Please find a code snippet below. I currently have a problem that
the code works when connecting to certain database instances but not to
others (its all the same server version of Oracle). I have verified
that the connection details are correct, and other applications are
able to connect to the instance that my C program cannot.
The error I get returned from OCIServerAttach is ORA-12512:
TNS:listener does not currently know of the service requested in
connect descriptor.
You are probably using an incorrect service name in your tnsnames.ora file.
But you say that "other applications are able to connect" ? What other
applications ? How do they connect ? Do they use the same tnsnames.ora file
as the C application ? Have you tried connecting to the instance with
sql*plus ?
$ sqlplus username/password@connect_identifier
.
- Follow-Ups:
- Re: OCIServerAttach returns ORA-12514
- From: Paul
- Re: OCIServerAttach returns ORA-12514
- References:
- OCIServerAttach returns ORA-12514
- From: Paul
- OCIServerAttach returns ORA-12514
- Prev by Date: Re: Specifying the CLOBs in SQLLOADER control files
- Next by Date: Re: does unique constraints hurt insert performance
- Previous by thread: Re: OCIServerAttach returns ORA-12514
- Next by thread: Re: OCIServerAttach returns ORA-12514
- Index(es):
Relevant Pages
|