Solved

ORA-12541 error with Toad

Posted on 2008-06-23
5
1,554 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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Row_number in SQL 6 58
Oracle Join issue. 3 48
Oracle Date add 9 35
ORACLE SQL DEVELOPER + Compare Tables 5 37
Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
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.  …
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

751 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