Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Problem querying remote table through a synonym
I'm confused, has anyone ever seen something like this before?
This query works as you can see:
select count(*)
from markview.mv_user_enabled_doc_type_privs_at_mv_apps2sup_mi.world;
COUNT(*)
275375
We execute the following DDL:
DROP SYNONYM MV_USER_ENABLED_DOC_TYPE_PRIVS;
CREATE SYNONYM MV_USER_ENABLED_DOC_TYPE_PRIVS
FOR MARKVIEW.MV_USER_ENABLED_DOC_TYPE_PRIVS_at_MV_APPS2SUP_MI.WORLD;
We run the following query:
select count(*)
from mv_user_enabled_doc_type_privs;
The query hangs for over an hour before being killed. When traced it shows it is waiting for the other side to respond.
On the other hand, if I do this you can see it works!
1* select count(*) from user_tables_at_mv_apps2sup_mi.world SQL> / COUNT(*)
0
SQL> create synonym mine for user_tables_at_mv_apps2sup_mi.world;
Synonym created.
SQL> select count(*) from mine;
COUNT(*)
0
The hanging behavior is true for every table in the markview schema.
> Allan L. Nelson
> Oracle DBA
> M-I L.L.C.
> (832) 295-2238 office
> (832) 351-4180 fax
> anelson_at_midf.com <mailto:anelson_at_midf.com>
>
>
>
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Nelson, Allan INET: anelson_at_midf.com Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services --------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Thu Sep 04 2003 - 12:19:25 CDT