Solved

ORA-12541 error with Toad

Posted on 2008-06-23
5
1,534 Views
Last Modified: 2010-04-21
I'm trying to compare data from 2 remote tables.

I have Toad for Oracle Version 9.6.1.1 and can connect to these remote servers fine. I am trying to create a datbase link but i'm recieving the following error.

Error : ORA-12541: TNS:no listener

I've read that you need to run lsnrctl, but this isn't installed on my machine.
0
Comment
Question by:CurtinProp
  • 2
  • 2
5 Comments
 
LVL 47

Expert Comment

by:schwertner
ID: 21852978
They mean the listener on the remote machine where the server resides,
not at the client machine where TOAD resides.
To use TOAD you have to have installed Oracle client.
In the    \network\admin subdirectory find the file
tnsnames.ora file and add entry for the remote instance.
Check if you can connect to the remote instance using SQL*Plus.

After that TOAD will be able to connect.

On the remote instance you can investiogate the Listener:

%  lsnrctl status
% lsnrctl services

Eventually you start it:

% lsnrctl start
0
 
LVL 2

Author Comment

by:CurtinProp
ID: 21853138
So just to clarify, I already have the Oracle client installed and toad is working but not with database links. To get this working I have to get the listener working on the remote server?

On a side note I have oracle 9 installed and it isn't installed to the network/admin sub directory.
0
 
LVL 47

Accepted Solution

by:
schwertner earned 500 total points
ID: 21853211
Database links are defined on the database not in TOAD.
TOAD uses it if it is defined in the DB to which are it connected.

How to create DBLINK:

On MAIN instance:

grant create database link to lsmedical (from OEM!!!)

connect lsmedical/lsmedical@main

drop database link bugf;

create database link bugf
connect to lsmedical identified by lsmedical
using 'bugfix';

/* alias 'bugfix' shoud exist in tnsnames.ora */

insert into usermedbasic_current@bugf select * from usermedbasic_current;
  1164 rows created.

commit;
0
 
LVL 7

Expert Comment

by:Dauhee
ID: 21853289
the tnsnames.ora on the database needs to have the link target database entry.

You can then retest the link you have created in toad. If you can connect to the remote databases with toad, then the database listeners are ok and DONT need changing :)
0
 
LVL 2

Author Closing Comment

by:CurtinProp
ID: 31470052
thanks
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

Suggested Solutions

Title # Comments Views Activity
Salary Amount Format 13 56
Identify records which do NOT qualify for a view 9 30
Oracle Database Upgrade 13 43
sql query 5 53
How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Configuring and using Oracle Database Gateway for ODBC Introduction First, a brief summary of what a Database Gateway is.  A Gateway is a set of driver agents and configurations that allow an Oracle database to communicate with other platforms…
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 Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.

743 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

13 Experts available now in Live!

Get 1:1 Help Now