Solved

ORA-12541 error with Toad

Posted on 2008-06-23
5
1,557 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 48

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 48

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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 1) Part 2: http://www.e-e.com/A_9074.html So, you upgraded to a shiny new 11g database and all of a sudden every program that used UTL_MAIL, UTL_SMTP, UTL_TCP, UTL_HTTP or any oth…
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…
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video explains what a user managed backup is and shows how to take one, providing a couple of simple example scripts.
Suggested Courses

623 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