Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Problem querying remote table through a synonym

Problem querying remote table through a synonym

From: Nelson, Allan <anelson_at_midf.com>
Date: Thu, 04 Sep 2003 09:19:25 -0800
Message-ID: <F001.005CECA9.20030904091925@fatcity.com>


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>
>
>
>



This email is intended solely for the person or entity to which it is addressed and may contain confidential and/or privileged information. Copying, forwarding or distributing this message by persons or entities other than the addressee is prohibited. If you have received this email in error, please contact the sender immediately and delete the material from any computer. This email may have been monitored for policy compliance. [021216]
-- 
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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US