Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. oracle Client

oracle Client

Scheduled Pinned Locked Moved C#
csharphelpdatabaseoraclequestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    shereem khaleel
    wrote on last edited by
    #1

    Hi i have a C# 2005 and oracle 9i database i was install client component for the .NET from oracle 9i but when i try to run the program he give me an error message "Need Client Component version x.x.x" where x is some number i do not remember it then i was install client component for the .NET from oracle 10g but he give me an error message "Can not Resolove TNS name" ? how i can solve this problem ?????

    R 1 Reply Last reply
    0
    • S shereem khaleel

      Hi i have a C# 2005 and oracle 9i database i was install client component for the .NET from oracle 9i but when i try to run the program he give me an error message "Need Client Component version x.x.x" where x is some number i do not remember it then i was install client component for the .NET from oracle 10g but he give me an error message "Can not Resolove TNS name" ? how i can solve this problem ?????

      R Offline
      R Offline
      Rick van Woudenberg
      wrote on last edited by
      #2

      Hey there, slightly puzzled here. You mention two errors. "Need component ... " and "TNS resolving .. " There reason why I'm confused is that the TNS resolution error cannot occur unless you've established a proper connection to the host, regardless it's local or remote. And to establish a successful connection you need the Oracle Client Binary referenced in your code. If you've referenced the Oracle Client , the DataAdapter will then use that particular Library. I cannot comment on why it would give the "Need Client .." error, as it seems almost impossible to me. Basically all you need to do is copy the Oracle DLL to your /Release or /Debug directory and add that DLL as a reference. As for your "Cannot resolve TNS name" you need to know a little bit about how Oracle works. An Oracle TNS name is basically an entry pointing in the TNSNAMES.ORA file that points to a particular oracle database instance. You might want to check that and set it up. Once this configuration is done you can use the ODBC Administrator to add an Oracle DSN. In the Oracle ODBC Driver Configuration window, in the TNS Name Service text box, you can enter the net service name as you entered it in the setup , or you can enter the fully qualified net service name as it appears in the tnsnames.ora file. I personally think it's not really an error in your code but merely a configuration mistake in setting up Oracle or the DSN. Hope this helped. Cheers

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups