"PCC-F-02104, Unable to connect to Oracle" When precompiling with Pro*C

(Doc ID 1052136.1)

Last updated on JULY 05, 2017

Applies to:

Precompilers - Version and later
Information in this document applies to any platform.
***Checked for relevance on 31st Mar 2017***


Attempting  to precompile code that requires a database connection will fail with an error if the information provided as part of the "userid" parameter contains a connect string.

> make -f demo_proc.mk build EXE=myApp OBJS=myFile.o PROCFLAGS="sqlcheck=semantics userid=scott@myDB"

The error returned is:

PCC-F-02104, Unable to connect to Oracle

Using the "myDB" database alias produces the error, but connecting without the alias works and using the same string "scott@myDB" does work for SQL*Plus.

> sqlplus scott@myDB
SQL*Plus: Release - Production on Tue Jan 19 12:04:38 2010
Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
Enter password:
Connected to:
Oracle Database 10g Enterprise Edition Release - 64bit Production
With the Partitioning, OLAP and Data Mining options


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms