Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to connect oracle 12c database in vc++ visual form?

3134802Dec 7 2015 — edited Dec 10 2015

I have been through serverExplorer>addconnection>oracleDatabase

but its still giving me this error

ora-12154: TNS:could not resolve the connect identifier specified

I'm using VS 2013 and oracle 12c.

My question is : Is it possible to connect oracle 12c database with visual? is so can someone please help me out?

I'm trying to make windows form (c++) connection with oracle 12c database

i have tested:

RUN>tnsping bu

which game me an ERROR: INS-03505: Failed to resolve name

here is my TNSnames.ora

BU =

  (DESCRIPTION =

    (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))

    (CONNECT_DATA =

      (SERVER = DEDICATED)

      (SERVICE_NAME = BU)

    )

  )

LISTENER_BU =

  (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))

ORACLR_CONNECTION_DATA =

  (DESCRIPTION =

    (ADDRESS_LIST =

      (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))

    )

    (CONNECT_DATA =

      (SID = CLRExtProc)

      (PRESENTATION = RO)

    )

  )

here is my sqlnet.ora

SQLNET.AUTHENTICATION_SERVICES= (NTS)

NAMES.DIRECTORY_PATH= (TNSNAMES, EZCONNECT)

Message was edited by: 3134802

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 7 2016
Added on Dec 7 2015
39 comments
1,081 views