Solved

tnanames.ora

Posted on 2004-04-14
16
592 Views
Last Modified: 2013-12-12
Hi,

I intalled desktop version of Oracle9i.
I am not able to connect to oracle Database through connection (name in tnsnames.ora), from 3rd party application tool.
How to access the oracle database?

thanks
0
Comment
Question by:yr_k
  • 5
  • 2
  • 2
  • +5
16 Comments
 
LVL 6

Expert Comment

by:musdu
Comment Utility
Hi,

which tool do you use? Can you connect to database using sql plus? to check accessibility of database use tnsping.exe. (it's under \bin folder)

tnsping yourdatabase

0
 
LVL 8

Expert Comment

by:annamalai77
Comment Utility
hi there

if ur trying to connect to oracle thru 3 rd part tool say thru ur VB or access, then create a system dsn.

remember to install the oracle ODBC driver. try to download it from www.oracle.com and then install it for the specific version of ur OS.

then create the dsn. find the connect string and use it to connect to ur oracle database.

regards
annamalai
0
 
LVL 4

Expert Comment

by:andertst
Comment Utility
In Windows, use the Network Assistant (or whatever they are calling it these days) to test connectivity to your database.  You need to have your listener running and know a username and password to test connectivity.

Stephen
0
 
LVL 3

Accepted Solution

by:
aalapsharma earned 25 total points
Comment Utility
Hello yr_k,

To connect to any database from Oracle 9i, you need to have one entry in tnsnames.ora.

Example:

# TNSNAMES.ORA Network Configuration File: E:\oracle\ora92\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.

<connection_name> =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = <SERVER_IP>)(PORT = <SERVER_PORT>))
    )
    (CONNECT_DATA =
      (SERVICE_NAME = <SERVICE _NAME>/<SID>)
    )
  )

Aalap Sharma
0
 

Expert Comment

by:tonster081498
Comment Utility
Try patching your third party application tool...
0
 

Author Comment

by:yr_k
Comment Utility
Hi,

entry in my tnsnames.ora is as follows.

ORCL =
  (DESCRIPTION =
    (ADDRESS_LIST =
      (ADDRESS = (PROTOCOL = TCP)(HOST = toshiba-user)(PORT = 1521))
    )
    (CONNECT_DATA =
      (SERVER = DEDICATED)

I am able to connect to Oracle through SQL*Plus by using the connection name ORCL.

I want to connect through Bussiness Objects, which i can not able to.

0
 
LVL 3

Expert Comment

by:aalapsharma
Comment Utility
Hello yr_k,

It might be possible that the third party application that you are using, is looking for the file tnsnames.ora at some different location.
You configure the application to search at the place where the file resides i.e.,
                            c:\oracle\ora92\network\admin\tnsnames.ora

Follow the rules of the application. Read the manual carefully for connection.

Aalap Sharma :)

0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 4

Expert Comment

by:andertst
Comment Utility
Look for all copies of your tnsnames.ora on your hard drive.  Rename all of them to .old and put a copy of your "known good" tnsnames.ora in all those places.

Stephen
0
 

Expert Comment

by:Ktoshni
Comment Utility
Hi, have you set up Business Objects tool to access Oracle? Do u have the license to access Oracle? How are you trying to access the database? Directly through free hand sql? Or through a universe?
0
 

Expert Comment

by:tonster081498
Comment Utility
I'm actually you can connect using that connect string in your tnsnames.ora file?

    (CONNECT_DATA =
      (SERVICE_NAME = SID
      SERVER = DEDICATED)
    )

You should probably be including the SERVICE_NAME paramater in the CONNECT_DATA area.  Also, you're missing closing brackets.

Also, try removing the SERVER=DEDICATED option.  It adds complication...
0
 
LVL 4

Expert Comment

by:andertst
Comment Utility
IMHO,

SERVER = DEDICATED might be a good idea if the DB is setup for MTS (Multi-Threaded Server) as that will rule
out MTS problems.

How many tnsnames.ora files did you find on yout hard drive?
0
 
LVL 4

Expert Comment

by:andertst
Comment Utility
What makes the difference between a moderator recommending an answer or answer split and recommending No Refund?  I think aalapsharma, annamalai77 and myself all pointed this user in the right direction.

Just wondering...
0
 

Author Comment

by:yr_k
Comment Utility
Hi,

Actually there is no near by answer. I got the solution from my friends.
The solution is
1. Create Scheme in Oracle
2. Create Repository in Bussiness Objects
3. Connect through that connection name created while creating repository.

Anyhow thanks all for your efforts

regards

Ravi
0
 
LVL 22

Expert Comment

by:Helena Marková
Comment Utility
0
 
LVL 4

Expert Comment

by:andertst
Comment Utility
Henka,

Thanks.  I had not read that before.  That is a useful page.

Stephen
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now