Solved

ORA-12541 error with Toad

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
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…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
This video shows how to copy an entire tablespace from one database to another database using Transportable Tablespace functionality.

840 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