Link to home
Start Free TrialLog in
Avatar of finance_teacher
finance_teacher

asked on

VS 2008 -- ORACLE -- TNSNAMES Connection

I created the below VS 2008 .net 3.5 Windows (non-web) Oracle APP, installed the .EXE on my machine accessing the remote DB and it worked.  I then upgraded my coworker's machine to .net 3.5, rebooted, installed the OracleClient, configured the TNSNAMES file to be the same as my file, installed the APP, and get the following error when running the app:

ORA-12514: TNS:listener could not resolve SERVICE_NAME given in connect descriptor

What else do I need to install or fix ?
---------------------------------------------------
Setup
 1. drop FMFORMULA gridView onto form
 2. drag FMENTITY gridView next to FMFORMULA
    gridView & delete FMENTITY gridView
     ** gets FMENTITY BindingSource
        and TableAdapter onto page
 3. edit FMFORMULA gridView COLUMNS
     ** FMENTITYID column
          a. READONLY = True
          b. ColumnType = ComboBox
          c. DataSource = fMENTITYBindingSource
          d. DisplayMember = FMENTITYNAME
          e. ValueMember = FMENTITYOBJECTID
          f. HeaderText = ENTITY
          g. DisplayStyle = Nothing
     ** FMCODE column
          a. READONLY = True
     ** FMVERSION column
          a. READONLY = keep "False"
     ** other columns
          a. Delete
 4. create gridView "DataError" EVENT
    messagebox ("Please enter numbers")
 5. add "order by FMCODE, FMENTITYID, FMVERSION"
    to DataSet1.xsd FMFORMULATableAdapter "FILL"
Adding Search
 6. rightClick DataSet1.xsd FMFORMULATableAdapter
      ** Add, Query, Select
      ** WHERE FMCODE = :FMCODE
           ** don't use "WHERE FMCODE = @FMCODE" like MSSQL uses
      ** add "order by FMCODE, FMENTITYID, FMVERSION"
         to DataSet1.xsd FMFORMULATableAdapter if needed
      ** Fill METHOD NAME = FillBy
      ** Return METHOD NAME = GetDataBy
 7. add below CONTROLS to existing Form1.cs "ToolStrip"
     ** Sepeartor
     ** Label
          a. TEXT = Search By Formula
     ** Textbox
          a. NAME = txt_FormulaCode
     ** Button
          a. DisplayStyle = Text
          b. Text = SUBMIT
          c. Click EVENT = toolStripButton1_Click
               ** this.fMFORMULATableAdapter.FillBy(this.dataSet1.FMFORMULA,this.txt_FormulaCode.Text);
     ** Button
          a. DisplayStyle = Text
          b. Text = CLEAR
          c. Click EVENT = toolStripButton2_Click
               ** this.fMFORMULATableAdapter.Fill(this.dataSet1.FMFORMULA);
 8. test by doing above "Summary" section, WORKS
Avatar of mrjoltcola
mrjoltcola
Flag of United States of America image

From his machine, try tnsping <SERVICE NAME>

Your listener must be reachable from his PC.

Is there a firewall?
Avatar of finance_teacher
finance_teacher

ASKER

Steps I did
 1. made sure .net 3.5 was working
 2. made sure "tnsping DB..." worked

What other things should I check ?
ASKER CERTIFIED SOLUTION
Avatar of it-rex
it-rex

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial