Join on all_synonyms and all_objects stalls

I have used this query for many years to see what synonyms can access tables and views within a user account. It has worked through Oracle 8 up to Oracle 11.2.0.3.0 Now, on one database, Oracle 11.2.0.3.0, this select stalls:
Select 'S' IND from dual where exists
  (select null from all_synonyms s, all_objects o
   where :b1_owner in(s.owner,s.table_owner)
     and s.table_owner=o.owner
     and s.table_name=o.object_name
     and o.object_type in('TABLE','VIEW'));I tried this select, and it stalls too:
Select s.table_owner,s.table_name
  from all_synonyms s
  where :b1_owner in(s.owner,s.table_owner)
   and (s.table_owner, s.table_name)
     in(select o.owner,o.object_name
       from all_objects o
       where  o.object_type in('TABLE','VIEW')
         and o.owner not in('SYS','SYSTEM') );The same select works on a different instance, same version of the database, 11.2.0.3.0
One version is considered "production", the other "development".
Here is the SQL Plus script that works:
connect abc_def/pppwwwwddd@example88
VARIABLE B1_OWNER VARCHAR2(30)
Exec :B1_OWNER := 'ABC_DEF';
select count(*)
    from all_synonyms s
    where :b1_owner in(s.owner,s.table_owner);
  COUNT(*)
         0
select count(*)
    from all_objects o
    where  o.object_type in('TABLE','VIEW')
    and o.owner not in('SYS','SYSTEM');
  COUNT(*)
      5814Any ideas why it would stall when joined? ...and only on the one database?

Scott-
Now this is a bit strange. I just checked and APPUSER has select, insert, update and delete directly on tables (not through a role) and has private synonyms for the tables. I realize that left out some details, like we are using APEX 2.2.1 (planning on upgrading to 3.1 "soon") and running on a 9.2.0.7 database. Are there any issues/limitations with 2.2.1 or our 9i database?
Greg

Similar Messages

  • I bought yesterday my macbook pro and I want to join the FaceTime and I just can´t... It said that is not working and try it later... but since yesterday said that .. What should I do?

    I bought yesterday my macbook pro and I want to join the FaceTime and I just can´t... It said that is not working and try it later... but since yesterday said that .. What should I do?

    Here's a previous discussions that seems to have solved a similar issue in the past:
    https://discussions.apple.com/message/12209861#12209861

  • Where is iTunes Match content stored on apple TV? I recently joined itunes match and it is working on my ios devices, but I can't find my music on Apple TV

    Where is iTunes Match content stored on apple TV? I recently joined itunes match and it is working on my ios devices, but I can't find my uploaded music on Apple TV

    It isn't actually stored anywhere, it needs to be downloaded from the internet before any content can be played.
    iTunes Match content is accessed through the 'Music' icon on the main screen though, it needs turning on though in settings first.

  • Trying to restore iphone 4 on Windows 7, 64-bit. It goes so far and then stalls. Have updated itunes, unplugged other USBs. this is my fourth attempt. Any suggestions?

    Trying to restore iphone 4 on Windows 7, 64-bit. It goes so far and then stalls. Have updated itunes, unplugged other USBs. this is my fourth attempt. Any suggestions?

    Disable your firewall and antivirus.

  • Error message: itunes library .itl cannot be read because  it was created by a newer version.  I downloaded and in stalled the latest version of itunes and it did not help.  What now?

    error message: itunes library .itl cannot be read because  it was created by a newer version.  I downloaded and in stalled the latest version of itunes and it did not help.  What now?

    Perhaps check to see if you're accidentally running two different versions of iTunes. There's some information on troubleshooting that in the Opening iTunes section of the following document:
    Troubleshooting iTunes installation on Mac OS X

  • Urgent - How to join multiple facts and dimensions in OBIEE rpd??

    Hi,
    In my RPD I have 3 facts and 4 dimensions and the joins defined are as below
    Physical layer - All joins are FK and inner (1:N)
    FACTA-------------- DIM_TIME, DIM_CUST,DIM_CAL
    FACTB-------------- DIM_TIME, DIM_CUST,DIM_CAL
    FACTC-------------- DIM_TIME, DIM_CUST,DIM_CAL, DIM_XYZ
    BM layer - All joins are complex, inner
    The logical table F1 pulls columns from FACTA, FACTB and FACTC . Complex join exists between all 4 dimensions DIM_TIME, DIM_CUST,DIM_CAL, DIM_XYZ to logical table F1.
    Issue: I need to build a report with $ column from FACTA, FACTB and FACTC and need to add filter conditions using columns from DIM_TIME, DIM_CUST,DIM_CAL, DIM_XYZ.
    However when ever I add a filter condition from DIM_XYZ the physical query generated is not generating code to access data from FACTA and FACTB. Instead it is subsituting a NULL and just pulls data frm FACTC.
    My Questions: What is the best way to build the physical and BMM layer using FACTA, FACTB,FACTC, DIM_TIME, DIM_CUST,DIM_CAL and DIM_XYZ??
    I need to resolve this issue ASAP so any help is appreciated. Thanks
    Edited by: user11935561 on Feb 10, 2010 6:27 AM
    Edited by: user11935561 on Feb 10, 2010 6:28 AM

    You can find the same issue in
    Logic of queries in OBIEE
    or
    Connection between 2 fact tables
    Follow the link
    http://there-n-back-again.blogspot.com/2009/04/oracle-analytics-how-to-report-over-non.html
    Put 'All' or 'Total' at levels for dim_xxx for those facts you need in your report from facta and factb
    Regards
    Nicolae

  • Joining DB VIEW and Command result in cartesian product

    hello,
    My SQL query is joining a DB view and a Command(=ad hoc query).
    Nonetheless from the results it appears that CR didn't join the views correctly, it returns a cartesian product.
    Any idea what the issue could be, I'm using very simple queries.
    Thanks in advance

    #1  make sure you are linking everything together properly in the "Links" tab of the Database Expert
    #2  In my experience, it's just a bad idea to join SQL commands and other tables.  I had poor performance issues in my case.  (It prevents server side filtering and grouping)  My suggestion is to write out the entire thing in the command.  If you are pulling from multiple database, write a separate command for each database and link them.

  • TS3991 I organazied my contacts by the address of my tenants. I just joined to Icloud and I am not able to find my tenants in the directory in the computer at all. I could search when I am using my phone but they do not show at first.how can correct this?

    I am a landlord and I organazied my contacts by the address of my tenants. I just joined to Icloud and I am not able to find my tenants in the directory in the computer at all. I could search when I am using my phone but they do not show at first.how can correct this? as an example 37 31 1 and when i type this nothing is showing.

    I am a landlord and I organazied my contacts by the address of my tenants. I just joined to Icloud and I am not able to find my tenants in the directory in the computer at all. I could search when I am using my phone but they do not show at first.how can correct this? as an example 37 31 1 and when i type this nothing is showing.

  • JOIN two tables and creat a new one

    dear all,
    as a newbie in Bw i have a question.
    I worked already with other etl tools (powercenter) where there are objects to join 2 tables and create a new one to create a total transforming process to load a fact table.
    In BW an INFOSET is the only thing to join 2 odssen. On this a query can be created.
    BUT HOW TO JOIN 2 TABLES (= only ODS object?) AND CREATE A NEW TABLE FOR FUTHER PROCESSING ????
    Regards,
    Herman

    hi jacobs, refer to these links particularly second one
    http://help.sap.com/saphelp_erp2004/helpdata/en/92/43ec39d0383f09e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/f1/713c3b
    35703079e10000000a114084/content.htm
    hope this clears ur doubt
    Assigning points is the way of saying thanks in sdn
    ravi

  • Join Between W_PERSON_F and W_POSITION_D

    Hi,
    I want to join W_PERSON_F fact table and W_POSITION_D dimension table. Database: Siebel DB.
    Is there any direct join or we want to join through some other table?
    Thanks,
    Satheesh

    As per my knowledge there is no direct join between w_person_f and w_position_d
    but you can create an alisa of w_person_d as contact(w_person_d) and join with w_person_f
    as below
    contact(w_person_d).row_wid = w_person_f.contact_wid
    please mark the ans if it is correct.
    Thanks

  • Inner join on bkpf and bsid

    Hi Experts ,
    I want to do an inner join on bsid and bkpf tables in the select query . I want to order the result on the basis of cputm field in bkpf , that is why inner join on bkpf is req , rest all the fields are from bsid . But the requirement  is that we should not select the cputm field in the select , it is only to be used for sorting the result of the select query . we are also using select * from bsid where ......  endselect . and not specific fields from bsid currently . Kindly let me know how to use the inner join on bkpf and bsid in this case .
    Would reward all helpful answers .
    Thanks

    Hi Ankit,
    First make a structure of the required fields.
    TABLES : bkpf,bsid.
    TYPES : BEGIN OF x_tab,
              belnr like bkpf-belnr,
              kunnr like bsid-kunnr,
              bldat like bsid-bldat,
              budat like bsid-budat,
              waers like bsid-waers,
          END OF x_tab.
    DATA :  itab type STANDARD TABLE OF x_tab,
            wa_itab TYPE x_tab.
    start-of-SELECTION.
    SELECT bkpfbelnr bsidkunnr bsidbldat bsidbudat bsid~waers into table itab
       FROM bkpf INNER JOIN bsid on bkpfbelnr = bsidbelnr and
                                    bkpfbukrs = bsidbukrs and
                                    bkpfgjahr = bsidgjahr.
    Rewards Points, if useful.
    Regards
    Manoj Kumar
    Edited by: Manoj Kumar on Dec 26, 2007 2:36 PM

  • Unable to verify burn, and DU stalling?

    Heres my problem(s). (semi related).
    I wanted to install XP on my 2007(8)? Mac mini. and i have done so before. But now here is my problem.
    I have a XP iso. So i tried to use DU to burn it to a cd. Well, all was fine until it was done verifying, at this point, it said it was unable to verify (don't remember error, sorry) So, i tried to burn via my New MBP, burned just fine.
    Next, i went into boot camp, pert. the drive. gave it 30gigs. When i rebooted, the screen was all black, with a white dash, blinking.
    I google this. And people are saying I need to repair permissions. SO i verify permissions and sure enough, need to repair. So, i'm repairing right now, and the progress bar is stalled at 1 min left, (right under the 'i' in 'disk'.) , and its stalled on:
    Well, never mind. It was stalled on a warning, but now its log moved, but bar is still stalled. guess ill wait more. but i do have 1 more question.
    Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired.
    i can has fix?
    (incase you don't want to re-read/read)
    1. Possible reasons my Mac mini cant burn anymore? Will not verify and Will not read disk after.
    2. When i boot from my XP cd, the screen is black, with a white dash.
    3. Mysterious DU warning? (see above)
    Any help is welcome <3
    Edit: THe repair just finished....:s dont laugh.
    Message was edited by: DeeJaayMac

    Heres my problem(s). (semi related).
    I wanted to install XP on my 2007(8)? Mac mini. and i have done so before. But now here is my problem.
    I have a XP iso. So i tried to use DU to burn it to a cd. Well, all was fine until it was done verifying, at this point, it said it was unable to verify (don't remember error, sorry) So, i tried to burn via my New MBP, burned just fine.
    Next, i went into boot camp, pert. the drive. gave it 30gigs. When i rebooted, the screen was all black, with a white dash, blinking.
    I google this. And people are saying I need to repair permissions. SO i verify permissions and sure enough, need to repair. So, i'm repairing right now, and the progress bar is stalled at 1 min left, (right under the 'i' in 'disk'.) , and its stalled on:
    Well, never mind. It was stalled on a warning, but now its log moved, but bar is still stalled. guess ill wait more. but i do have 1 more question.
    Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired.
    i can has fix?
    (incase you don't want to re-read/read)
    1. Possible reasons my Mac mini cant burn anymore? Will not verify and Will not read disk after.
    2. When i boot from my XP cd, the screen is black, with a white dash.
    3. Mysterious DU warning? (see above)
    Any help is welcome <3
    Edit: THe repair just finished....:s dont laugh.
    Message was edited by: DeeJaayMac

  • After getting 4G with AT&T I am unable to join my network and get the error message: Unable to  join the network "Jude". How do I fix this? Thank you

    After getting 4G with AT&T I am unable to join my network and get the error message: Unable to  join the network "Jude". How do I fix this? Thank yo

    Try power-cycling your wireless router (unplg for 30 seconds, plug back in).  Here's a longer list of troubleshooting steps: http://support.apple.com/kb/TS1398.

  • HT4623 I am trying to complete the iOS7 update and it stalls on the updating of iCloud settings....if I skip this step what will happen?

    I am trying to complete the iOS7 update and it stalls on the updating of the iCloud settings, if I skip this step what will happen?

    Same issue here....somebody help?

  • Hello, I've just purchase a mac mini 10.9 it doest have a cd drive and so I can't install my Photoshop Elements 4.0.  How can I update/upgrade Adobe and in stall in my computer?

    Hello, I've just purchase a mac mini 10.9 it doest have a cd drive and so I can't install my Photoshop Elements 4.0.  How can I update/upgrade Adobe and in stall in my computer?

    that's no longer available for download.  in addition, it's unlikely it would work on your mavericks os.
    you could purchase pse 12 upgrade, Adobe Photoshop Elements 12 - Buying guide

Maybe you are looking for

  • PDF Form Takes More Time To Open when using designer 7.1.3129.1.296948

    Hi All, Adobe Reader Version :  8 and above. designer                     : 7.1.3129.1.296948 When i am devloping the adobe interactive form Using designer 7.1.3129.1.296948, When I open the same in the adobe reader 8.1.2 and 9.1 its take more time (

  • Splitting and migrating LMS

    Due to growth of the network, I need to split a single LMS 3.2 server into two seperate machines (master-slave). I've prepared two new (virtualized) window servers. installed a clean LMS 3.2 server1 (RME, CM) server 2 (DFM, IPM and HUM) I've restored

  • Moving SPL in small values, how to ?

    Hi Forum How to get my SPL to move in the from transport set value? I can only get it to move in bars!! It seems to be a keyboard layout problem maybe only concerning foreigners using different keyboard layouts ?! yours fan Bo

  • Reject files in Bridge

    Bridge wont "show reject files only" in both PS4 and PSCC on my iMac?  It works completely fine in PS5 on my Macbook Pro, so I'm a bit perplexed why its not working on my iMac?? Any ideas on how I can fix this? Thanks in advance!

  • Oracle procedure take too long to finish

    Dear all, please find below procedure taking long time to finish execution, please let me know how to fine tune this CREATE OR REPLACE PROCEDURE REMS.Fill_Stock_Trx_View IS CURSOR ST_CUR_DECLARE IS      SELECT               sth_num,                st