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. Web Development
  3. ASP.NET
  4. HELP!!! how can I connect to Oracle with this error?? [modified]

HELP!!! how can I connect to Oracle with this error?? [modified]

Scheduled Pinned Locked Moved ASP.NET
helpquestionoracle
4 Posts 3 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.
  • M Offline
    M Offline
    meki_2118
    wrote on last edited by
    #1

    I've been working my first web site and I'm trying to connect in my oracle with this code.. and i'm using Microsoft web developer 2008 Dim oraCommand As OracleCommand = New OracleCommand(strSQLRecords, oraConnection) Dim oraDataAdapter As OracleDataAdapter = New OracleDataAdapter(oraCommand) Dim oraDS As New Data.DataSet oraDataAdapter.Fill(oraDS) Return oraDS but I always get the error in the oraDataAdapter.Fill(oraDS) line "ORA-12154: TNS:could not resolve the connect identifier specified" hope you can help me with this problem.. thanks in advance :)

    modified on Wednesday, September 10, 2008 11:42 PM

    G R 2 Replies Last reply
    0
    • M meki_2118

      I've been working my first web site and I'm trying to connect in my oracle with this code.. and i'm using Microsoft web developer 2008 Dim oraCommand As OracleCommand = New OracleCommand(strSQLRecords, oraConnection) Dim oraDataAdapter As OracleDataAdapter = New OracleDataAdapter(oraCommand) Dim oraDS As New Data.DataSet oraDataAdapter.Fill(oraDS) Return oraDS but I always get the error in the oraDataAdapter.Fill(oraDS) line "ORA-12154: TNS:could not resolve the connect identifier specified" hope you can help me with this problem.. thanks in advance :)

      modified on Wednesday, September 10, 2008 11:42 PM

      G Offline
      G Offline
      Gamzun
      wrote on last edited by
      #2

      your tnsnames.ora is not configured correctly Click Here

      M 1 Reply Last reply
      0
      • G Gamzun

        your tnsnames.ora is not configured correctly Click Here

        M Offline
        M Offline
        meki_2118
        wrote on last edited by
        #3

        my tnsname is fine. and I've already re-installed the oracle 10g in my computer but it only producing the same error..

        1 Reply Last reply
        0
        • M meki_2118

          I've been working my first web site and I'm trying to connect in my oracle with this code.. and i'm using Microsoft web developer 2008 Dim oraCommand As OracleCommand = New OracleCommand(strSQLRecords, oraConnection) Dim oraDataAdapter As OracleDataAdapter = New OracleDataAdapter(oraCommand) Dim oraDS As New Data.DataSet oraDataAdapter.Fill(oraDS) Return oraDS but I always get the error in the oraDataAdapter.Fill(oraDS) line "ORA-12154: TNS:could not resolve the connect identifier specified" hope you can help me with this problem.. thanks in advance :)

          modified on Wednesday, September 10, 2008 11:42 PM

          R Offline
          R Offline
          Rich Edwards
          wrote on last edited by
          #4

          It does sound like your tnsnames.ora file is not configured correctly. Can you connect to the DB via tools such as SQL Tool or Toad. They can utilise the TNSNames file settings to connect to the relevant DB, as least with this way you can establish if the tns.ora file at fault or not. You can also try manually connecting to the DB using these tool to validate any credentials etc.. Other options are to check the listeners are configured correctly and will accept connections Hope these ideas help Rich

          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