db_link

Hello,

I create a database link.

When I test it with the function of TOAD Context menu I get following result:


Link Name : “DB_LINK_TEST”

Connection : Successful

DB Name : TEST

DB Version : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production


whe I run SQL-Statement “select 1 from dual@DB_LINK_TEST” I get the error message “ORA-02019: Connection description for remote database not found.”

Why ?

There may be something after DB_LINK_TEST that is needed. Maybe it’s really DB_LINK_TEST. or soemthing.

Turn on spool SQL when you test the db link. Then you can see how Toad queries it, and you can use it the same way.

Did you use the DNS name in the description?

Whenever I have created a link, I have had to use the I.P. address, not the DNS name.

On Tue, Jun 13, 2017 at 8:06 AM, gregor.artmann bounce-gregorartmann@toadworld.com wrote:

db_link

Thread created by gregor.artmann
Hello,

I create a database link.

When I test it with the function of TOAD Context menu I get following result:


Link Name : "DB_LINK_TEST"

Connection : Successful

DB Name : TEST

DB Version : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production


whe I run SQL-Statement "select 1 from dual@DB_LINK_TEST" I get the error message "ORA-02019: Connection description for remote database not found."

Why ?

To reply, please reply-all to this email.

Stop receiving emails on this subject.

Or Unsubscribe from Toad for Oracle Forum notifications altogether.

Toad for Oracle - Discussion Forum

Flag this post as spam/abuse.

--
Gene L. Bradley Jr.

Systems Analyst

Office of Information Technology

Jackson State University

1400 J R Lynch Street

P.O. Box 17750

Jackson, MS 39217

ph 601.979.1042

fax 601.371.9146

email gbradley@jsums.edu

*In God we trust; all others bring data. * ~W.E. Deming

CONFIDENTIALITY STATEMENT

This electronic transmission is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone (601) 979-1042. Thank you.

Toad spool (12.11 latest beta):

SELECT ‘Link Name : “DB_LINK_TEST”’ || chr(13) || chr(10) ||
‘Connection : Successful’|| chr(13) || chr(10) ||
'DB Name : ’ || n.GLOBAL_NAME || chr(13) || chr(10) ||
'DB Version : ’ || v.banner info
FROM v$version@“DB_LINK_TEST” v, GLOBAL_NAME@“DB_LINK_TEST” n
WHERE ROWNUM = 1;

Unless you have a sqlnet.ora which defines names.default_domain with the same domain value (and have SQL Developer configured to recognise that), you will need to fully-quality the link name when you use it.

so if default, try to add “WORLD” in a way to change DB_LINK_TEST to DB_LINK_TEST.WORLD?

What I would always test is a way:

select * from dual@DB_LINK_TEST

What information is in the host column if you run

select *

from all_db_links

for the link you are referring to?

On Tue, Jun 13, 2017 at 8:06 AM, gregor.artmann bounce-gregorartmann@toadworld.com wrote:

db_link

Thread created by gregor.artmann
Hello,

I create a database link.

When I test it with the function of TOAD Context menu I get following result:


Link Name : "DB_LINK_TEST"

Connection : Successful

DB Name : TEST

DB Version : Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production


whe I run SQL-Statement "select 1 from dual@DB_LINK_TEST" I get the error message "ORA-02019: Connection description for remote database not found."

Why ?

To reply, please reply-all to this email.

Stop receiving emails on this subject.

Or Unsubscribe from Toad for Oracle Forum notifications altogether.

Toad for Oracle - Discussion Forum

Flag this post as spam/abuse.

--
Gene L. Bradley Jr.

Systems Analyst

Office of Information Technology

Jackson State University

1400 J R Lynch Street

P.O. Box 17750

Jackson, MS 39217

ph 601.979.1042

fax 601.371.9146

email gbradley@jsums.edu

*In God we trust; all others bring data. * ~W.E. Deming

CONFIDENTIALITY STATEMENT

This electronic transmission is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by telephone (601) 979-1042. Thank you.