Query goes from 3.5 min to 150 min after switch to 64 bit

I had Oracle 10.1.0.3.0 (32 bit) on Linux running a simple query, once per weekday, accessing tables in DB2 v8 on AIX M/F via Oracle Transparent Gateway (OTG) 9.2. The query took ~ 3.5 minutes to complete.
We have moved to Oracle 10.2.0.1.0 (64 bit) on 64 bit Linux. Now the same query takes ~ 150 min to complete. There are no errors or message I can find that tell me something is wrong. We fired the older 32 bit box back up and ran the query. It completed in 3 min 24 sec.
I suspect a compatibility issue between 64 bit Oracle and the older OTG but I don't even know where to start to look for that. Anyone have a suggestion or a similar tale of woe?

Thanks for the tip. I did get to the explain plans for both of these machines and while the order of execution was slightly different on each machine, I did not see where the CPU cost was different or where things were hanging up. I have included the reports for your perusal. The report for each box begins with the machine name, DT09FU04, DT09FU02 respectively:
DT09FU04 - over 3 hours to run
SQL> explain plan into mdm.plan_table
  2  for (
  3  SELECT
  4                      sidr_prdcr_id prod_id,
  5            agql_latitude latitude,
  6            agql_longitude longitude,
  7            s.sidr_inspctn_type,
  8            insp_last_name,
  9            insp_first_name,
10            insp_ph_num,
11            insp_dist,
12                      sidr_actl_cmp_date cmpdate,
13                      sidr_tst_rslt result,
14                      prdr_full_name full_name,
15                      prdr_lcl_name lcl_name,
16                      prdr_legal_desc legal,
17                      agql_smplid cms_id,
18                      agql_ft_snd_ratio snd,
19                      agql_kt6i_spgv_dy p1_dry,
20                      agql_kt6i_spgv_st p1_sat,
21                      agql_kt6i_spgv_ap p1_app,
22                      agql_kt6i_abs p1_abs,
23                      agql_kt6ii_spgv_dy p2_dry,
24                      agql_kt6ii_spgv_st p2_sat,
25                      agql_kt6ii_spgv_ap p2_app,
26                      agql_kt6ii_abs p2_abs,
27                      agql_kt6iii_wear wear,
28                      agql_rmrks_01 rmk1,
29                      agql_rmrks_02 rmk2,
30                      agql_rmrks_03 rmk3,
31                      agql_rmrks_04 rmk4,
32                      agql_rmrks_05 rmk5,
33                      sidr_rmrks srmk,
34                      sidr_rmrks2 srmk2,
35                      sidr_rmrks3 srmk3,
36            sysdate datestamp
37                    FROM
38                      dtcmspd.t_magql@cmscpms_p q,
39                      dtcmspd.t_msidr@cmscpms_p s,
40                      dtcmspd.t_mprdr@cmscpms_p p,
41                      dtcmspd.t_minsp@cmscpms_p i,
42            dual
43                    WHERE
44                      q.agql_smplid = s.sidr_smpl_id AND
45                      i.insp_id_num = s.sidr_inspctr_id AND
46                      p.prdr_prdcr_id = s.sidr_prdcr_id)
47  /
Explained.
SQL> select * from table(dbms_xplan.display);Plan hash value: 2317258752
| Id  | Operation        | Name    | Rows  | Bytes | Cost (%CPU)| Time     | Inst   |IN-OUT|
|   0 | SELECT STATEMENT |         |  2000 |  1794K|   213   (2)| 00:00:03 |        |      |
|*  1 |  HASH JOIN       |         |  2000 |  1794K|   213   (2)| 00:00:03 |        |      |
|   2 |   REMOTE         | T_MPRDR |  2000 |   210K|    52   (0)| 00:00:01 | CMSCP~ | R->S |
|*  3 |   HASH JOIN      |         |  2000 |  1583K|   160   (2)| 00:00:02 |        |      |
|*  4 |    HASH JOIN     |         |  2000 |   603K|   107   (1)| 00:00:02 |        |      |
|   5 |     NESTED LOOPS |         |  2000 |   109K|    61  (12)| 00:00:01 |        |      |
|   6 |      FAST DUAL   |         |     1 |       |     2   (0)| 00:00:01 |        |      |
|   7 |      REMOTE      | T_MINSP |  2000 |   109K|    52   (0)| 00:00:01 | CMSCP~ | R->S |
|   8 |     REMOTE       | T_MSIDR |  2000 |   494K|    52   (0)| 00:00:01 | CMSCP~ | R->S |
|   9 |    REMOTE        | T_MAGQL |  2000 |   980K|    52   (0)| 00:00:01 | CMSCP~ | R->S |
Predicate Information (identified by operation id):
   1 - access("P"."PRDR_PRDCR_ID"="S"."SIDR_PRDCR_ID")
   3 - access("Q"."AGQL_SMPLID"="S"."SIDR_SMPL_ID")
   4 - access("I"."INSP_ID_NUM"="S"."SIDR_INSPCTR_ID")
Remote SQL Information (identified by operation id):
   2 - SELECT "PRDR_PRDCR_ID", "PRDR_FULL_NAME", "PRDR_LCL_NAME", "PRDR_LEGAL_DESC"
       FROM "DTCMSPD"."T_MPRDR" (accessing 'CMSCPMS_P.REGRESS.RDBMS.DEV.US.ORACLE.COM' )
   7 - SELECT "INSP_ID_NUM", "INSP_LAST_NAME", "INSP_FIRST_NAME", "INSP_PH_NUM",
       "INSP_DIST" FROM "DTCMSPD"."T_MINSP" (accessing
       'CMSCPMS_P.REGRESS.RDBMS.DEV.US.ORACLE.COM' )
   8 - SELECT "SIDR_SMPL_ID", "SIDR_INSPCTR_ID", "SIDR_INSPCTN_TYPE",
       "SIDR_PRDCR_ID", "SIDR_ACTL_CMP_DATE", "SIDR_TST_RSLT", "SIDR_RMRKS",
       "SIDR_RMRKS2", "SIDR_RMRKS3" FROM "DTCMSPD"."T_MSIDR" (accessing
       'CMSCPMS_P.REGRESS.RDBMS.DEV.US.ORACLE.COM' )
   9 - SELECT "AGQL_SMPLID", "AGQL_LATITUDE", "AGQL_LONGITUDE",
       "AGQL_FT_SND_RATIO", "AGQL_KT6I_SPGV_DY", "AGQL_KT6I_SPGV_ST", "AGQL_KT6I_SPGV_AP",
       "AGQL_KT6I_ABS", "AGQL_KT6II_SPGV_DY", "AGQL_KT6II_SPGV_ST", "AGQL_KT6II_SPGV_AP",
       "AGQL_KT6II_ABS", "AGQL_KT6III_WEAR", "AGQL_RMRKS_01", "AGQL_RMRKS_02",
       "AGQL_RMRKS_03", "AGQL_RMRKS_04", "AGQL_RMRKS_05" FROM "DTCMSPD"."T_MAGQL"
       (accessing 'CMSCPMS_P.REGRESS.RDBMS.DEV.US.ORACLE.COM' )
46 rows selected.
DT09FU02 - 3 min. 24 sec.
SQL> explain plan into mdm.plan_table
  2  for (
  3  SELECT
  4                      sidr_prdcr_id prod_id,
  5            agql_latitude latitude,
  6            agql_longitude longitude,
  7            s.sidr_inspctn_type,
  8            insp_last_name,
  9            insp_first_name,
10            insp_ph_num,
11            insp_dist,
12                      sidr_actl_cmp_date cmpdate,
13                      sidr_tst_rslt result,
14                      prdr_full_name full_name,
15                      prdr_lcl_name lcl_name,
16                      prdr_legal_desc legal,
17                      agql_smplid cms_id,
18                      agql_ft_snd_ratio snd,
19                      agql_kt6i_spgv_dy p1_dry,
20                      agql_kt6i_spgv_st p1_sat,
21                      agql_kt6i_spgv_ap p1_app,
22                      agql_kt6i_abs p1_abs,
23                      agql_kt6ii_spgv_dy p2_dry,
24                      agql_kt6ii_spgv_st p2_sat,
25                      agql_kt6ii_spgv_ap p2_app,
26                      agql_kt6ii_abs p2_abs,
27                      agql_kt6iii_wear wear,
28                      agql_rmrks_01 rmk1,
29                      agql_rmrks_02 rmk2,
30                      agql_rmrks_03 rmk3,
31                      agql_rmrks_04 rmk4,
32                      agql_rmrks_05 rmk5,
33                      sidr_rmrks srmk,
34                      sidr_rmrks2 srmk2,
35                      sidr_rmrks3 srmk3,
36            sysdate datestamp
37                    FROM
38                      dtcmspd.t_magql@cmscpms_p q,
39                      dtcmspd.t_msidr@cmscpms_p s,
40                      dtcmspd.t_mprdr@cmscpms_p p,
41                      dtcmspd.t_minsp@cmscpms_p i,
42            dual
43                    WHERE
44                      q.agql_smplid = s.sidr_smpl_id AND
45                      i.insp_id_num = s.sidr_inspctr_id AND
46                      p.prdr_prdcr_id = s.sidr_prdcr_id)
47  /
Explained.
SQL> select * from table(dbms_xplan.display);
Plan hash value: 3130898149
| Id  | Operation               | Name | Rows  | Bytes | Cost (%CPU)| Time     | Inst   |IN-OUT|
|   0 | SELECT STATEMENT        |      |  2000 |   695K|   213   (2)| 00:00:03 |        |      |
|*  1 |  HASH JOIN              |      |  2000 |   695K|   213   (2)| 00:00:03 |        |      |
|   2 |   REMOTE                |      |  2000 |   195K|    52   (0)| 00:00:01 | CMSCP~ | R->S |
|*  3 |   HASH JOIN             |      |  2000 |   500K|   160   (2)| 00:00:02 |        |      |
|   4 |    REMOTE               |      |  2000 |   195K|    52   (0)| 00:00:01 | CMSCP~ | R->S |
|*  5 |    HASH JOIN            |      |  2000 |   304K|   107   (1)| 00:00:02 |        |      |
|   6 |     MERGE JOIN CARTESIAN|      |  2000 |   109K|    61  (12)| 00:00:01 |        |      |
|   7 |      FAST DUAL          |      |     1 |       |     2   (0)| 00:00:01 |        |      |
|   8 |      REMOTE             |      |  2000 |   109K|    52   (0)| 00:00:01 | CMSCP~ | R->S |
|   9 |     REMOTE              |      |  2000 |   195K|    52   (0)| 00:00:01 | CMSCP~ | R->S |
Predicate Information (identified by operation id):
   1 - access("P"."PRDR_PRDCR_ID"="S"."SIDR_PRDCR_ID")
   3 - access("Q"."AGQL_SMPLID"="S"."SIDR_SMPL_ID")
   5 - access("I"."INSP_ID_NUM"="S"."SIDR_INSPCTR_ID")23 rows selected.

Similar Messages

  • I can't access the itunes store from my ipad mini after the iOS7 update

    I can't access the itunes store from my ipad mini after updating the latest iOS7. Does anyone have answers to solving this?

    Ive been through various threads on here.
    There has been quite a few things said and some people are having luck with.
    Reset all your settings works, but only once. when you shut down and open back up same problem.
    Ive tried changing how my cookies respond, this doesnt work either.
    My app store loads in a second, fastest its ever been.
    Ive noticed that when your in settings and click on something eles it takes maybe a second or two before it changes to the next screen something thats never happened on 6
    it seems very laggy and slow on somethings and super fast on others
    Come on Apple get yer finger out and sort this out soon, its you thats loosing my cash as I cant buy any music!!!
    I have an Ipad mini.

  • My page goes from top to bottom quickly and unevenly after I removed cookies.

    This has happened more than once,using different versions of firefox.I am fairly new at this,and this led me back to another
    browser twice.
    But I like firefox.
    Am using the newest version,the beta.
    But my browser window moves unevenly,up and down the page,not letting me read.
    How can I fix this?

    Hello Mark,
    It's going to mean a lot of reading but you should study the 'More like this' legend to your post's immediate right.  >>>>>>>>   plus some of the links within each.
    The problem is well explored with much guidance on what to do and where to go.

  • When i open cellular data from iPhone..it goes from 4g to 3g instantly an then after a while it goes to 4g..and the same thing again when i turn it back on..that didn't occured with ios7..does anyone have this issue?

    I don't think it's normal because it connects to 4g without data on and then when it's on it goes to 3g until it reconnects to 4g..i don't know what to do!

    No. You have no alternative but to plug it into a computer running iTunes and restore it.

  • No audio or sound from my ipad mini after update or any apps used? What should i do please help?

    my problem is i can't hear the sounds from my ipad especially when i am playing a music or video from youtube or any game up. This happen after an update? I thought it was just an auto silent mode but unfortunately the volume limit is on full and there is no head phones attached. Please help me enable the sounds of my ipad.

    Is it all browsers that you are having problems with, or is just Safari (and I assume that your last post means that other apps are ok) ?
    If only Safari then try clearing its cache : Settings > Safari > Clear History And Website Data (Clear Cookies And Data on iOS 5, 6, 7 and also Clear History)
    Close Safari via the iPad's taskbar (I'm assuming that your iPad is on iOS 7+) : double-click the home button to open the taskbar and then swipe or drag the Safari app's 'screen' up and off the top of the screen to close it, and click the home button to close the taskbar.
    And do a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.
    And then retry playing the videos.

  • Cannot connect to iTunes Store from my iPad mini

    I can't connect to iTune store from my iPad mini after upgraded to IOS7.

    Thanks this worked for me.  Only mine was already set to "From third parties and advertisers".  I just switched it to "never".  Then I opened itunes and it worked.  So I went back and changed it to "From third parties and advertisers" and all is well.  iTunes works fine!
    I was hesitant to restore to factory settings and install from a back up as other people advised online.

  • "Class Not Registered​" after switching from 32-bit to 64-bit LabVIEW.

    I recently upgraded LabVIEW 2012 from 32-bit to 64-bit.  Now I'm getting an error that says "Class not Registered".  It still works just fine with the 32-bit version. 

    Thank you Nathan and Sunshine.  The problem is I didn't build the program - it came with the instrument.  As far as I can tell this is what's going on:  The vi's are replete with these activeX objects - all communication with the instruments is done through invoke and property nodes.  After switching to 64-bit the very first sub vi has an error at the very first command (Err (-2147221164)). It's a reference (seemingly to a class but I actually have no idea what that means) passed to the "Open Automation Function".  I'll attach a screen shot for the sake of overkill.  
    Attachments:
    labviewerror.png ‏20 KB

  • My iphone battery goes from 90% to 1% in 10-15 min  sometimes even without using it

    My iphone battery goes from 90% to 1% very quickly sometimes in 10-15min, sometimes even if im not using my phone!
    I may have 50% left at times and the phone will shut down and I won't be able to turn it in again until I charge it. When i charge it it turns back on with 50% battery! I don't get it.
    I tried doing a reset and it didmnt help.
    please help!
    thanks

    It sounds as if a process is locked. Since the reset did not work, then try a restore. First restore from a backup, and if that does not work, then restore as new. If a restore as new does not work, then make an appointment at the Genius Bar or Authorized Apple Service provider, depending on your location, and have the hardware checked.

  • How to get the query values from the url in a servlet and pass them to jsp

    ok..this is the situation...
    all applications are routed through a login page...
    so if we have a url like www.abc.com/appA/login?param1=A&param2=B , the query string must be passed onto a servlet(which is invoked before the login page is displayed)..the servlet must process the query string and then should pass all those values(as hidden values) to the login jsp..then user enters username and pswd, then there should be another servlet which takes all the hidden values of jsp and also username and pswd, authenticates the user and sends the control back to that particular application along with the hidden values...
    so i need help on how to parse the query string from the original url in the servlet, pass it out to jsp, and then pass it back to the servlet and back to the original application...damnn...any help would be greatly appreciated...thanks

    ok..this is the situation...Sounds like you have a bad design on your hands.
    You're going to send passwords in a GET request as clear text? Nice security there.
    Why not start with basic security and work your way up?
    %

  • Delete WorkBook and Query file from Server .

    Dear All Experts .
    I dun know i posted in correct places or not .. (correct me if i m wrong) .. i want to ask about the BW Workbook and query.
    How we going to remove the remove the workbook or query files from Server ? bc i tried to delete from Analyzer(excel 2007), the file is deleted from the view , but havent delete from the server... So how i going to remove the file from server ?
    Thank.

    Hello I have the same problem. Can you please tell me how you finaly manage to delete the workbook.
    thank's you for advance,
    Akiba

  • How can I print to a brother MFC440N from my iPad mini

    I am having trouble trying to print from my iPad mini. I don't know whether my brother MFC440N is AirPrint compatible or not, but if not does anyone know if there is an app I can use to get round this. The printer is connected to the wireless network & is accessible from any of the other laptops used in the house. I don't think my dad wants to buy a new printer if he doesn't have to. Can anyone help please?

    It looks as though you need a netgear router to use this and we have a btinternet router so it won't work
    The word is that this suggestion will work with any router.
    I did not see the brother printer listed.
    List of supported AirPrinters.
       http://support.apple.com/kb/HT4356
    printing to a non-airprinter from an iPad
    To print from the iPad, your going to have to install some more software:
    -- install a printer app on the ipad. many printer makers have iPad applications for their printers.  Look in the app store
    -- install enabling software on a computer which you have connected the printer
    For a comprehensive list of links, see Texas Mac Man list:
    https://discussions.apple.com/message/21291967#21291967
    iPad Print Applications supplied by printer manufactures -- usually free:
    Brother iPrint&Scan
        http://itunes.apple.com/us/app/brother-iprint-scan/id382775642
    Helper app -- /print n share
    Print directly to the widest range of network or WiFi printers available in any app. Alternatively print via your computer to ALL printers including USB & Bluetooth printers. View read and display large PDF, Office & iWork files. Easily transfer & store files from the Cloud or your computer.
    https://itunes.apple.com/us/app/print-n-share/id301656026?mt=8
    Software for your computer's printer:
    Mac and Windows
      FingerPrint
        http://reviews.cnet.com/8301-19512_7-57368414-233/fingerprint-turns-any-printer- into-an-airprint-printer/

  • SSAS Tabular : MDX query goes OutOfMemory for a larger dataset

    Hello all,
    I am using SSAS 2012 Tabular to build the cube to support the organizational reporting requirements. Right now the server is Windows 2008 x64 with 16GB of Ram installed. I have the following MDX query. What this query does is get the member caption of the
    “OrderGroupNumber” non-key attribute as a measure where order group numbers pertain to a specific day and which occurs in specific seconds of a day. As I want to find in which second I have order group numbers, I cross the time dimension’s members with a specific
    day and filter the tuples using the transaction count. The transaction count is a non-zero value if an Order Group Number occurs within a specific second of a selected day.
    At present “TransactionsInflight].[OrderGroupNumber].[OrderGroupNumber]” has 170+ million members (Potentially this could grow rapidly) and time dimension has 86400 members.
    WITH
    MEMBER [Measures].[OrderGroupNumber]
    AS IIF([Measures].[Transaction Count] > 0, [TransactionsInflight].[OrderGroupNumber].CURRENTMEMBER.MEMBER_CAPTION,
    NULL)
    SELECT
    NON EMPTY{[TransactionsInflight].[OrderGroupNumber].[OrderGroupNumber].MEMBERS}
    ON COLUMNS,
    {FILTER(([Date].[Calendar Hierarchy].[Date].&[2012-07-05T00:00:00], [Time].[Time].[Time].MEMBERS),
    [Measures].[Transaction Count] > 0) } ON
    ROWS
    FROM [OrgDataCube]
    WHERE [Measures].[OrderGroupNumber]
    After I run this query it reaches to a dead-end and freezes the server (Sometimes SSAS server throws OutOfMemory exception but sometimes it does not). Even though I have 16GB of memory it uses all the memory and doing nothing. I have to do a hard-reset against
    the server to get the server online. Even I limit the time members using the “:” range operator still the machine freeze. I have run out of solutions to fine-tune the design. Could you guys provide me some guidelines to optimize this query? I am willing to
    do a design change if it is necessary.
    Thanks and best regards,
    Chandima

    Hi Greg,
    Finally I found the problem why the query goes out of memory in tabular mode. I guess this information will helpful for others and I am posting my findings.
    Some of the non-key attribute columns in the tabular model tables (mainly the tables which form dimensions) do not contain pretty names. So for the non-key attribute columns which I need to provide pretty names I renamed the columns to something else.
    For an example, in my date dimension there is a non-key attribute named “DateAltKey”. This is the date column which I am using. As this is not pretty to the client tools I renamed this column as “Date” inside the designer (Dimension
    design screen). I deployed the cube, processed the cube and no problem.
    Now here comes the fun part. For every table, inside the Tables node (Tabular SSAS Database > Tables) you can view the partition details. You have single partition per dimension table if you do not create extra partitions. I opened the partitions screen
    and clicked on the “Edit” icon and performed a Syntax Check. Surprisingly it failed. It complains about the renamed column. It complained “Date” cannot be found in source. So I realized that I cannot simply rename the columns like that.
    After that I created calculated columns (with a pretty name) for all the columns which complained and all the source columns to the calculated columns were hid from the client tools. I deployed the cube, processed the cube and performed a
    syntax check. No errors and everything were perfect.
    I ran the query which gave me trouble and guess what... it executed within 5 seconds. My problem is solved. I really do not know who did this improve the performance but the trick worked for me.
    Thanks a lot for your support.
    Chandima

  • Hi to All, My wife still has ios 6 on her ipad (she likes the look). I will do the 7.1 upgrade when it is released. Should there be any issues going from 6 directly to 7.1? Thanks!

    Hi to All, My wife still has ios 6 on her ipad (she likes the look). I will do the 7.1 upgrade when it is released. Should there be any issues going from 6 directly to 7.1? Thanks!

    There shouldn't be. I went from iOS5.whatever to iOS6.1 with no issues.
    Just make sure to back everything up before you do it, just in case all doesn't go as planned.
    I always do mine the old fashioned way, download the full OS via iTunes so if you've already got it linked to a computer and been using iTunes to do updates/syncing that's how I'd suggest you do it.

  • Shortcut for going from Tab to Tab in Safari 4.0.3?

    Hello folks,
    Is there a shortcut to use for quickly going from open tab to open tab in Safari 4.0.3 without using the mouse to click on the open tab?
    Thanks

    You're welcome. This tip has nothing to do with the keyboard, but its graphic effect is kind of neat:
    To open a tab in a different Safari window, place the pointer over the tab and drag it to another Safari window or to the desktop.
    ...So a tab can be removed from a Safari window by dragging it out — and then later, in the same way (by first dragging it out of its new Safari window), put back into its original Safari window.
    See halfway thru this video (not mine):
    http://www.youtube.com/watch?v=MidBLWS7Yag

  • Query transaction that is 10 mins apart

    How do I query transactions that is 10 mins apart. These
    transactions are timestamped as they were entered

    chris,
    I dont know how far this query helps you but the below query gives you the time which is 10min before the sysdate.
    select to_char(sysdate -0.00694,'DD-MON-YY HH24:MI') from dual;
    =Murali Mohan=

Maybe you are looking for

  • WebService/SOAP Adapter

    Currently we have some customers who send us a file through the HTTP. It is now a requirement that they send us the same file through a webservice. A. Is it possible to Attach an XML file through a webservice? B. Where do I or How do I develop such a

  • FF Mac Desktop Addon and links download errors after upgrade to 35.0.1

    My problem started when FF was repeatedly trying to automatically upgrade to 35.0.1. It repeatedly failed the incremental upgrade and said I should download from Mozilla.org. However, after doing that and installing 35.0.1 both addons and application

  • 6110 All-in-one sometimes will not print multiple copies

    I have had this problem for sometime now. I searched the forum and found the Mopier solution for laserjets, but the 6110 does not have this setting.  The same question regarding the 6110 went unanswered in the only post I found for it. I am using the

  • UDO type Document, Add lines

    Hi All, I have a problem with a User Defined Object of type Document/Document Lines. I have a custom form for the UDO. I can add new Documents with one or more Document Lines. These are stored in the database as expected, both Father table and Child

  • Seeburger AS2: FileStore access error

    Hello all, we have follow error in our adapter which we try to send it out to our partner: Delivering the message to the application using connection AS2_http://seeburger.com/xi failed, due to: com.sap.engine.interfaces.messaging.api.exception.Messag