Solved

What command to activate inactive database link

Posted on 2001-06-07
5
1,419 Views
Last Modified: 2008-03-17
I created a db link on oracle 7.3 to enable a remote query.  Sql plus says cannot resolve service name.  
oracle enterprise manager says link is inactive. I am almost giving up on this facility. Help
0
Comment
Question by:llodza
5 Comments
 
LVL 3

Expert Comment

by:arun04
ID: 6163167
there is problem with the connection parameters that you have specified, check the service name and the port of the remote server.
0
 

Accepted Solution

by:
rajugeor earned 200 total points
ID: 6163477
For the Database Link, Oracle uses the TnsNames.Ora from the Server, not from the Client PC. So you need to add the Connection parameters in tnsnames.ora in the Oracle Serevr.
Path is /Oracle_Home/Network/Admin/
      Or /Oracle_Home/Net80/Admin/

Add your connection string to this file, or you can use Net8 Easy configuration from the menu on the Server.

Then you try to create the Database link, It will work..

0
 

Author Comment

by:llodza
ID: 6163741
I have not tried it yet but I believe it will work
0
 
LVL 1

Expert Comment

by:ashokskumar
ID: 6165910
Hi,

Check the service you have included in tnsnames.ora using
tnsping or tnsping80 utility.

tnsping <service name>

You should get response, else you need check connectivity between the system(if client and server are different machine).  Ensure listener is up at the server side.  If any error in starting listener you should update the listener.ora at server side.

If tnsping responds well, you may create dblink using the service.

Ashok.
0
 

Author Comment

by:llodza
ID: 6167186
Good. I was working from the client tnsnames.  But why does
oracle do that.  Documentation is not friendly or unavailable.
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

Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

707 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

15 Experts available now in Live!

Get 1:1 Help Now