ExamNotes.net  -  IT certification portal

ForumsCertResearchTop sitesNewslettersFree email
HomeRegister
Exams Notes
Practice exams
Exam games
Questions by email
Online training
Training videos
College degrees
Boot camps
Book store
Links directory
Tell a friend
For webmasters

CompTIA Exam Vouchers
Save money on CompTIA exams
Question of the day
Sign up to receive
interactive practice questions
for MCSE, CompTIA
Cisco and other exams
TestKing
Get MCSE, MCSD, CCNA, CCNP,A+, N+ and many more

* ExamSheets *
Guide for Success!
Actual Questions & Answers
MCSE, MCSD, A+ ,CCNA, CCNP
Oracle 8i, Oracle 9i

Online practice tests

Certification sites

Online university

Online college

Online education

Distance learning

Software forum

Server administration forum

Programming resources






This is interesting: Free IT Magazines | Databases help forum



Other IT certifications > Oracle certifications > Oracle ODBC on Win98 - pls help

Show a Printable Version
Email This Page to Someone!
Receive updates to this thread




Click here for list of Oracle DBA study guides and order yours now!



Author Oracle ODBC on Win98 - pls help
jimzx
Junior Member




Registered: Jan 2002
Location:
Country: Christmas Island
State:
Certifications:
Working on:

Total Posts: 3
Oracle ODBC on Win98 - pls help

I can't connect to my local 8i server, pls help

scenario:
1. formatted 40 GB drive, fresh Win98SE installation, computer hostname: PQR, complete hostname: PQR.XYZ.COM (XYZ.COM is my cable ISP), no LAN, standard DHCP-based cablemodem connection to the 'net

2. fresh Oracle 8i personal edition for Win98 installation (no errors, install OK)

3. fresh Oracle Developer Forms 6i installation (no errors, install OK)

4. I can start the database (SID=JOHN), OK, and using SQLPLUS: create some tables, insert rows, etc. OK

5. I want to connect to this 8i server using
Forms 6i, but first, I should test the ODBC stuff

6. Control Panel--->ODBC--->System DSN
ADD new DSN, Oracle ODBC, data source name: JANE, description: (blank), service name: PETER, userID: (blank)

7. OK, I have the "JANE" Oracle DSN with service name "PETER"

8. Net8 Assistant control panel, selected: TNSNAMES,ONAMES,HOSTNAME, services: PETER, SID=(blank), connection: default, TCP, hostname: PQR, port: 1521. Listeners: only 1 listener: hostname: PQR, port: 1521

9. OK, save config, apply new config, using Oracle ODBC TEST program, connect to DSN: JANE, service name: PETER, user: SYSTEM, password: manager ..........................
ERROR!!!!!!!!!! ORA-12154 TNS:could not resolve service name

Cause: The service name specified is not defined correctly in the TNSNAMES.ORA file. Action: Make the following checks and correct the error: Verify that a TNSNAMES.ORA file exists and is in the proper place and accessible. See the operating system specific manual for details on the required name and location. Check to see that the service name exists in one of the TNSNAMES.ORA files and add it if necessary. Make sure there are no syntax errors anywhere in the file. Particularly look for unmatched parentheses or stray characters. Any error in a TNSNAMES.ORA file makes it unusable. See the SQL*Net V2 Administrator's Guide. If possible, regenerate the configuration files using the Oracle Network Manager.


How to fix this error ?


I think it could be the "PQR" hostname, should I try "127.0.0.1" or "localhost" (default value after install was "PQR" and yes this computer is PQR.XYZ.COM) --------> no, same error message

Oracle 8i database with SID=JOHN is installed OK because I can create tables, insert data, commit, etc.

Last edited by jimzx on 01-28-02 at 01:32 PM

Report this post to a moderator

Old Post 01-28-02 01:27 PM
jimzx is offline Click Here to See the Profile for jimzx Click here to Send jimzx a Private Message Add jimzx to your buddy list Find more posts by jimzx Reply w/Quote Edit/Delete Message IP: Logged
laloca
Senior Member
F




Registered: Oct 2001
Location: Vienna
Country: Austria
State:
Certifications: OCP DBA 8i + 9i
Working on:

Total Posts: 209

Hi jimzx,

Oracle 8i and Forms 6i use different Oracle homes, you must have 2 tnsnames.ora on your machine (somewhere in $ORACLE_HOME\Network or Net80\Admin).

Copy that one containing your service name in the other directory or use the other (2.) NetEasyConfig or NetAssistant tool to add your service name.

Good luck,

__________________
laLocA

Report this post to a moderator

Old Post 01-28-02 05:56 PM
laloca is offline Click Here to See the Profile for laloca Click here to Send laloca a Private Message Add laloca to your buddy list Find more posts by laloca    laloca's ICQ status    Reply w/Quote Edit/Delete Message IP: Logged
laloca
Senior Member
F




Registered: Oct 2001
Location: Vienna
Country: Austria
State:
Certifications: OCP DBA 8i + 9i
Working on:

Total Posts: 209

BTW: you don't need to use an ODBC driver to connect from Forms to your database. A simple connect with username/password and SID will work too ...

(if you set up your tnsnames.ora correct)

__________________
laLocA

Report this post to a moderator

Old Post 01-28-02 05:58 PM
laloca is offline Click Here to See the Profile for laloca Click here to Send laloca a Private Message Add laloca to your buddy list Find more posts by laloca    laloca's ICQ status    Reply w/Quote Edit/Delete Message IP: Logged
All times are GMT.
Post new thread   Post reply

Oracle exam notes



Forum Jump:
Rate This Thread:
Forum Rules:
Who Can Read The Forum? Any registered user or guest.
Who Can Post New Topics? Any registered user.
Who Can Post Replies? Any registered user.
Changes: Messages can be edited by their author.
Posts: HTML code is OFF. Smilies are ON. vB code is ON. [IMG] code is ON.
 

ExamNotes forum archive


Powered by: vBulletin 2.2.8
Copyright ©2000, Jelsoft Enterprises Limited.

  Free Braindumps | mcse braindumps