Solved

What command to activate inactive database link

Posted on 2001-06-07
5
1,446 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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need help with Oracle syntax 4 56
FRM-40735:KEY-COMMIT trigger raised unhandled exception ORA-01422 7 52
SQL Query 34 80
constraint check 2 0
Subquery in Oracle: Sub queries are one of advance queries in oracle. Types of advance queries: •      Sub Queries •      Hierarchical Queries •      Set Operators Sub queries are know as the query called from another query or another subquery. It can …
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…
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.
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.

912 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

16 Experts available now in Live!

Get 1:1 Help Now