Weird query problem after upgrade to 10g

After upgrading from 9i to 10g I've noticed that one query slowed down drastically (from 100[ms] to 30[s])
SELECT ... FROM first_table LEFT OUTER JOIN second_table ON ...
WHERE first_table.number_column = '453' ...
What's weird is the redundant apostrophes around number in WHERE clause. The same query without those apostrophes executes in 100[ms].
I know it doesn't make any sense to put numbers inside apostrophes but it results from the application structure. Since I can't change the application I need the way to improve this query from the database level.
I tested this query with other databases (9i and 10g) and there is no differences whether the number is in apostrophes or not.
What does it depend on?
Any ideas how to speed-up this query?
Thanks in advance
Kunta

Hi Gerard,
When the query window comes from a table Oracle always recommends:
1) Use the /*+ ordered */ hint
2) Put the table the quiery window comes from (geometry-2 in the query) first in the from clause
However, your query is also written very strange. Do you know about SDO_WITHIN_DISTANCE? Or are you trying to do SDO_ANYINTERACT (since the distance is 0)?
So I would write the query you have as:
SELECT s.ROWNUM
from NOMINATIONS O, COUNTIES s
where sdo_relate(S.GEOM,o.geom, 'querytype=WINDOW mask=anyinteract')='TRUE';
or in Oracle10g:
SELECT s.ROWNUM
from NOMINATIONS O, COUNTIES s
where sdo_anyinteract(S.GEOM,o.geom)='TRUE';

Similar Messages

  • Spatial query performance problem after upgrade to 10G

    I am in the process of converting my database from a 9i box to a new 10G 64-bit box. But I have found a problem which is causing some reports to be slower on the new box. I have simplified the queries down to having the user_sdo_geom_metadata table joined to use the diminfo in the queries (I know that I am not using them in these queries, but I simplified for testing purposes...)
    If I run the following I get and look at the explain plan I get full table scans for both spatial tables and index lookups for the user_sdo_geom_metadata table queries and runs for about 14 seconds.
    SELECT ROWNUM
    from COUNTIES s,
    NOMINATIONS O,
    (select diminfo from user_sdo_geom_metadata where table_name='COUNTIES') S_DIM,
    (select diminfo from user_sdo_geom_metadata where table_name='NOMINATIONS') O_DIM
    where sdo_filter(S.GEOM,o.geom, 'querytype=WINDOW')='TRUE'
    and sdo_geom.within_distance(o.geom,0,S.GEOM,.5)='TRUE';
    If I just remove the two user_sdo_geom_metadata joins, I get spatial index usage on COUNTIES and the whole thing runs in less that a second.
    SELECT ROWNUM
    from COUNTIES s,
    NOMINATIONS O
    where sdo_filter(S.GEOM,o.geom, 'querytype=WINDOW')='TRUE'
    and sdo_geom.within_distance(o.geom,0,S.GEOM,.5)='TRUE';
    I have rebuilt the indexes, gathered stats, and tried hints to force the first query to use the spatial index. None of which made any change.
    Has anyone else seen this?
    Gerard Vidrine

    Hi Gerard,
    When the query window comes from a table Oracle always recommends:
    1) Use the /*+ ordered */ hint
    2) Put the table the quiery window comes from (geometry-2 in the query) first in the from clause
    However, your query is also written very strange. Do you know about SDO_WITHIN_DISTANCE? Or are you trying to do SDO_ANYINTERACT (since the distance is 0)?
    So I would write the query you have as:
    SELECT s.ROWNUM
    from NOMINATIONS O, COUNTIES s
    where sdo_relate(S.GEOM,o.geom, 'querytype=WINDOW mask=anyinteract')='TRUE';
    or in Oracle10g:
    SELECT s.ROWNUM
    from NOMINATIONS O, COUNTIES s
    where sdo_anyinteract(S.GEOM,o.geom)='TRUE';

  • A tough performance problem after upgrade to 10g

    A stored procedure is running fine (returns in 2 min) against SQLPLUS. But when it is called from the application interface, it will take 40 min to return. I have traced the session and found there is one query takes most of the time waiting on 'db file sequential read', 'gc cr grant 2-way', 'gc cr block 2-way', etc. Is there something needs to be tuned from the database point of view. I cannot explain why it's running perfect in SQLPLUS.

    Are the query plans the same when the procedure is called from SQL*Plus and when it is called from the application?
    What proportion of the wait time is attribued to the "gc cr grant 2-way" and "gc cr block 2-way" events? Those are events caused by cache fusion in Oracle RAC-- is it possible that the application is running on a different node than your SQL*Plus session? If those events are a significant fraction of the overall wait time, that implies that some other instance has the block pinned. Do you have a handful of hot blocks that have to get sent between different instances constantly?
    Justin

  • Problem with Java Application after upgrade to 10g

    after upgrading to 10g if I enable coloumn of varchar255 to load into memory of my middleware orm following error is thrown,
    javax.servlet.jsp.JspException     at jsp.viewsinglerecord.throwError(_viewsinglerecord.java:31)     [SRC:/jsp/standardinclude.jsp:84]     at jsp.viewsinglerecord._jspService(_viewsinglerecord.java:1185)     [SRC:/jsp/displaymultiplerecords.jsp:461]     at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:356)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:835)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:341)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:230)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:257)     at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)     at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:835)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:341)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:816)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:231)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:136)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)     at java.lang.Thread.run(Thread.java:534)
    Any lights on this issue ?

    after upgrading to 10g if I enable coloumn of varchar255 to load into memory of my middleware orm following error is thrown,
    javax.servlet.jsp.JspException     at jsp.viewsinglerecord.throwError(_viewsinglerecord.java:31)     [SRC:/jsp/standardinclude.jsp:84]     at jsp.viewsinglerecord._jspService(_viewsinglerecord.java:1185)     [SRC:/jsp/displaymultiplerecords.jsp:461]     at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:356)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:835)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:341)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:230)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:257)     at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)     at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)     at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)     at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)     at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:835)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:341)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:816)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:231)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:136)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)     at java.lang.Thread.run(Thread.java:534)
    Any lights on this issue ?

  • Problems after upgrade: Leopard to Leopard no longer works

    My sister upgraded to Leopard on her iMac(c2d) to Leopard yesterday. Earlier in the day we were able to do video chats with a number of people(her machine Tiger to Fathers machine Leopard). However, since upgrading, we've experienced weird behavior for video chats. Basically in her window she won't see her image(the small one), and I don't see her at all. We've tested this out with a number of other iChat accounts and get the same results. Btw, all machines that are chatting with her are using Leopard. Also, all other forms/capabilities work: screen sharing, sharing of pictures, audio chats.
    Anyone out there have similar problems after upgrading from Tiger to Leopard? I have done the usual adjustments of bandwidth and QT settings, as well as restarts. What else should I try?
    tia,
    n

    I finally resolved this problem: I think the issues/steps would be helpful for anyone who experiences iSight off or not working problems after upgrading to Leopard(then to 10.5.1) on a intel 20" iMac :
    Problem:
    -If you have an internal iSight on an iMac and your camera works fine in Tiger
    -If you upgrade to Leopard
    -If Chat camera doesn't show your image (iSight off) even though the green light is on
    -You can see the other persons video on iChat
    -Your friends can here you and you can share screens, files, etc.....everything but have them see you
    These are the initial steps I took:
    - Deleted the pLists(or stored preferences for the Application) described at the top of this thread
    - Was told it might be slow internet connection so did various things: disconnected other computers, changed wireless to "G" only
    - Specifically Opened of ports spec'd for Leopard on router (even though I hadn't needed to do this under Tiger)
    - Tried chats with various people on various fast/slow networks
    - Restarted all aspects of the network: router, wireless access point, computer
    - Checked to see if the iSight was shown in 'System Profiler'. It was found in 'About This Mac->More Info->System Profiler->USB'
    - Clicked Video icon in iChat Buddies window(to the right of your name) and coudn't see my image
    - Opened 'PhotoBooth' and coudn't see my image(black screen)
    - Opened iMovie and couldn't capture video via the iSight(black screen)
    - Opened iChat->Preferences->Video and couldn't see my image
    - Validated that 'Camera is Enabled' in iChat->Video->Camera is Enabled
    If you are experiencing a similar problem with you built-in iSight, I would probably focus on the last 5 things that I did. What they showed me was that the iSight was just not capturing video even though it was capturing sound in 3 different applications.
    The solution to iSight Off or iSight Not Responding or No Video is......reset your computer! I had thought my sister performed this but it turns out she hadn't. Here's the link to this procedure:
    http://docs.info.apple.com/article.html?artnum=303446
    Very easy to do though: Power off computer and unplug all cables, including power cable for at least 15 seconds. Plug everything back in and power up the computer and retry clicking on the 'Video' icon next to your login name. If you see yourself then...problem is solved.
    While I eventually found posts in several other forums, it took me the better part of a week. To try this simple step. I wish I had done so straight away. Oy. I guess I learned a lot about ports, speed etc.
    I hope this helps.

  • Problems after upgrading to iTunes version 6

    Hello,
    I've been going through the threads a lot since I have had problems after upgrading to iTunes v. 6. It looks like a lot of people have had the same issues, and I have tried some things that were recommended. After I upgraded, iTunes would not open. I tried:
    1. deleting sidb file
    2. doing the msconfig thing suggested in discussion boards
    3. going into safe mode and deleting 4 and 6 letter weird files in DOS - I found 3 that I deleted
    iTunes worked after this -- then I bought a song and it said my computer was not authorized, after I authorized computer (that never happened before), iTunes worked for about 15 more minutes and then closed down abruptly. I haven't been able to open it since.
    I also downloaded Spybot search & destroy and that did not find anything. I am using McAfee, and have scanned for viruses with McAfee and AdAware.
    Now, when I restart my computer, a bunch of windows pop up with Chinese/Japanese looking characters and say that device (I think) was not found. I seem to be able to use everything except iTunes and Quicktime. When I open the Task Manager, iPodService.exe and iTunesHelper.exe and qttask.exe are there, but when I click on Quicktime or iTunes the file flashes in Task Manager and then disappears.
    I'm not sure where to go from here.
    Any help would be apppreciated -- I'd like to be able to open iTunes!

    Hello,
    I used Nickroo's post:
    I was able to get iTunes launched (with the help of Tech Support) in a very unsafe environment. I owe it to those who may need this after me. It will get you going, but you will be extremely vulnerable to internet virus assaults. Please do not use this approach, until you have exhausted every other available solution for your issue in the KB.
    There are three Steps 1) Uninstall 2) Disble and 3) Reinstall.
    UNISTALL Uninstall iTunes using Windows utility Add Remove Program available in Control Panel.
    DISABLE Disable all third party System Services and Startup Items using using MSCONFIG utility as described in Service Document http://docs.info.apple.com/article.html?artnum=302538
    RE-INSTALL Re-install iTunes6 + QT7. Launch it under the Selective Startup Option.
    It worked ! You realize among other things at this point you have your Antivirus and Firewall disabled. When I started my computer in the Normal Startup Option, iTunes fails to work again. So I have ahead of me the long and ardous task of ruling out the service that is causing conflict with iTunes6. Then work with the software vendor to arrive at a solution.
    This seems to have worked so far- I haven't started to go through ruling out what made iTunes not work; I also haven't tried to connect my iPod or burn a CD, so we'll see.
    Windows XP

  • Query slowness after upgrading to 10.2.0.4

    Is anyone else having spatial query problems after applying the 10.2.0.4 patch? We applied it to our DEV and QA environments last weekend and we are now seeing a degragation of spatial queries.
    On the database we upgaded a query that has been running fine for years now takes 5.5 hours to complete. The same query on a database that has not been upgraded takes 5 minutes.
    Both databases are on servers with the same hardware and operating system (Solaris 10 64bit), the only difference is the database version.
    We have an SR open, but we aren't feeling the love yet.

    Hi Robenour,
    7003151 is not just for Linux, it's for all platforms, and will definitely help 10.2.0.4 and 11.1.0.6 spatial performance.
    Below is the current list of Oracle Locator/Spatial/MapViewer patches I recommend.
    The only one specific to Solaris is 5888136 for 10.2.0.3.
    I recommend all the other patches for all hardware platforms.
    Most of the following patches are available on Metalink.
    If the patch is not there for your hardware platform/database release, please log a SR with Oracle support and request a backport.
    Hope this helps. Thanks.
    Dan
    For Oracle 10.2.0.3, patches:
    · 6980648 - Bug fixes and improved performance
    · 6329260 - Bug fixes and improved performance
    · 5888136 - Only if you are running Solaris - improved performance
    · 6956194 - Bug fix if working with geodetic data
    For Oracle 10.2.0.4, patches:
    · 7003151 - Bug fixes and improved performance
    · 6989483 - Improved performance
    · 7046751 - Apply this patch if you applied patch 6989483 (necessary for some GIS software to work)
    · 7237687 - Bug fix if working with geodetic data
    · 6956194 - Bug fix if working with geodetic data
    · 7276032 - Bug fix if working with geodetic data
    For Oracle 11.1.0.6, patches:
    · 7003151 - Bug fixes and improved performance
    · 6989483 - Improved performance
    · 7046751 - Apply this patch if you applied patch 6989483 (necessary for some GIS software to work)
    · 6956194 - If working with geodetic data
    For MapViewer 10.1.3.1
    · 7195504 - Bug fixes and improved performance

  • Select after upgrade 9i - 10g runs slowly thousand times - urgent

    I have select which runs around one second on Oracle 9. After upgrade to 10g this select runs more than two hours. I compute statistics on all tables, all columns and all indexes. This select consist from two parts - every part run on oracle 10g around 0.5 second but together more than 2 hours. When I rewrite it using WITH clausule, it runs 2 second. But I don't want to rewrite selects .. I want to find why it runs slow on 10g.
    Below are original and rewrited select with their execution plans.
    Any idea or recomendation?
    Select:
    SELECT * FROM (
    SELECT DISTINCT from_fix_ident ident, from_ident_icao icao
         , latitude1 latitude, longitude1 longitude, from_fix_fea_pk src
         , -1 mslink
      FROM l_sky_airway, l_dgn_airway
    WHERE l_sky_airway.mslink=l_dgn_airway.mslink
    UNION ALL
    SELECT DISTINCT to_fix_ident ident, to_ident_icao icao
         , latitude2 latitude, longitude2 longitude, to_fix_fea_pk src
         , -2 mslink
      FROM l_sky_airway, l_dgn_airway
    WHERE l_sky_airway.mslink=l_dgn_airway.mslink
    UNION ALL
    SELECT ident, icao, latitude, longitude, 5 src, mslink FROM l_sky_navaid
    UNION ALL
    SELECT ident, icao, latitude, longitude, 6 src, mslink FROM l_sky_waypoint)
    WHERE ident||';'||icao||';'||src IN (
    SELECT ident||';'||icao||';'||src FROM (
    SELECT from_fix_ident ident
         , from_ident_icao icao
         , latitude1 latitude
         , longitude1 longitude
         , from_fix_fea_pk src
      FROM l_sky_airway, l_dgn_airway
    WHERE l_sky_airway.mslink = l_dgn_airway.mslink
    UNION ALL
    SELECT to_fix_ident ident
         , to_ident_icao icao
         , latitude2 latitude
         , longitude2 longitude
         , to_fix_fea_pk src
      FROM l_sky_airway, l_dgn_airway
    WHERE l_sky_airway.mslink = l_dgn_airway.mslink
    MINUS
    SELECT ident
         , icao
         , latitude
         , longitude
         , 5 src
      FROM l_sky_navaid
    MINUS
    SELECT ident
         , icao
         , latitude
         , longitude
         , 6 src
      FROM l_sky_waypoint
    ORDER BY ident, icao, src, mslink, latitude, longitude;Execution plan:
    Plan
    SELECT STATEMENT  ALL_ROWSCost: 2 003  Bytes: 1 572 402 240  Cardinality: 24 568 785                                               
         29 SORT ORDER BY  Cost: 2 003  Bytes: 1 572 402 240  Cardinality: 24 568 785                                          
              28 FILTER                                     
                   12 VIEW EUS. Cost: 825  Bytes: 3 522 880  Cardinality: 55 045                                
                        11 UNION-ALL                           
                             4 HASH UNIQUE  Cost: 398  Bytes: 981 948  Cardinality: 22 317                      
                                  3 HASH JOIN  Cost: 142  Bytes: 981 948  Cardinality: 22 317                 
                                       1 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 85  Bytes: 290 121  Cardinality: 22 317            
                                       2 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56  Bytes: 691 827  Cardinality: 22 317            
                             8 HASH UNIQUE  Cost: 398  Bytes: 981 948  Cardinality: 22 317                      
                                  7 HASH JOIN  Cost: 143  Bytes: 981 948  Cardinality: 22 317                 
                                       5 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 85  Bytes: 290 121  Cardinality: 22 317            
                                       6 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56  Bytes: 691 827  Cardinality: 22 317            
                             9 TABLE ACCESS FULL TABLE EUS.L_SKY_NAVAID Cost: 6  Bytes: 57 225  Cardinality: 1 635                      
                             10 TABLE ACCESS FULL TABLE EUS.L_SKY_WAYPOINT Cost: 22  Bytes: 324 712  Cardinality: 8 776                      
                   27 VIEW EUS. Cost: 325  Bytes: 12 042  Cardinality: 446                                
                        26 MINUS                           
                             23 MINUS                      
                                  20 SORT UNIQUE  Cost: 325  Bytes: 23 128  Cardinality: 446                 
                                       19 UNION-ALL            
                                            15 HASH JOIN  Cost: 145  Bytes: 9 812  Cardinality: 223       
                                                 13 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 89  Bytes: 2 899  Cardinality: 223 
                                                 14 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56  Bytes: 691 827  Cardinality: 22 317 
                                            18 HASH JOIN  Cost: 146  Bytes: 9 812  Cardinality: 223       
                                                 16 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 89  Bytes: 2 899  Cardinality: 223 
                                                 17 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56  Bytes: 691 827  Cardinality: 22 317 
                                  22 SORT UNIQUE  Bytes: 512  Cardinality: 16                 
                                       21 TABLE ACCESS FULL TABLE EUS.L_SKY_NAVAID Cost: 6  Bytes: 512  Cardinality: 16            
                             25 SORT UNIQUE  Bytes: 2 992  Cardinality: 88                      
                                  24 TABLE ACCESS FULL TABLE EUS.L_SKY_WAYPOINT Cost: 24  Bytes: 2 992  Cardinality: 88                 Rewrited select which run fast:
    WITH inselect AS
         (SELECT ident || ';' || icao || ';' || src
            FROM (SELECT from_fix_ident ident, from_ident_icao icao,
                         latitude1 latitude, longitude1 longitude,
                         from_fix_fea_pk src
                    FROM l_sky_airway, l_dgn_airway
                   WHERE l_sky_airway.mslink = l_dgn_airway.mslink
                  UNION ALL
                  SELECT to_fix_ident ident, to_ident_icao icao,
                         latitude2 latitude, longitude2 longitude,
                         to_fix_fea_pk src
                    FROM l_sky_airway, l_dgn_airway
                   WHERE l_sky_airway.mslink = l_dgn_airway.mslink
                  MINUS
                  SELECT ident, icao, latitude, longitude, 5 src
                    FROM l_sky_navaid
                  MINUS
                  SELECT ident, icao, latitude, longitude, 6 src
                    FROM l_sky_waypoint)),
         mainselect AS
         (SELECT DISTINCT from_fix_ident ident, from_ident_icao icao,
                          latitude1 latitude, longitude1 longitude,
                          from_fix_fea_pk src, -1 mslink
                     FROM l_sky_airway, l_dgn_airway
                    WHERE l_sky_airway.mslink = l_dgn_airway.mslink
          UNION ALL
          SELECT DISTINCT to_fix_ident ident, to_ident_icao icao,
                          latitude2 latitude, longitude2 longitude,
                          to_fix_fea_pk src, -2 mslink
                     FROM l_sky_airway, l_dgn_airway
                    WHERE l_sky_airway.mslink = l_dgn_airway.mslink
          UNION ALL
          SELECT ident, icao, latitude, longitude, 5 src, mslink
            FROM l_sky_navaid
          UNION ALL
          SELECT ident, icao, latitude, longitude, 6 src, mslink
            FROM l_sky_waypoint)
    SELECT   *
        FROM mainselect
       WHERE ident || ';' || icao || ';' || src IN (SELECT *
                                                      FROM inselect)
    ORDER BY ident, icao, src, mslink, latitude, longitude;
    Plan
    SELECT STATEMENT  ALL_ROWSCost: 550 336  Bytes: 2 383 172 145  Cardinality: 24 568 785                                             
        31 SORT ORDER BY  Cost: 550 336  Bytes: 2 383 172 145  Cardinality: 24 568 785                                         
            30 HASH JOIN  Cost: 2 647  Bytes: 2 383 172 145  Cardinality: 24 568 785                                     
                17 VIEW VIEW SYS.VW_NSO_1 Cost: 1 173  Bytes: 1 472 922  Cardinality: 44 634                                 
                    16 HASH UNIQUE  Cost: 1 173  Bytes: 1 205 118  Cardinality: 44 634                             
                        15 VIEW EUS. Cost: 828  Bytes: 1 205 118  Cardinality: 44 634                         
                            14 MINUS                     
                                11 MINUS                 
                                    8 SORT UNIQUE  Cost: 828  Bytes: 2 314 600  Cardinality: 44 634             
                                        7 UNION-ALL         
                                            3 HASH JOIN  Cost: 142  Bytes: 981 948  Cardinality: 22 317     
                                                1 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 85  Bytes: 290 121  Cardinality: 22 317 
                                                2 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56  Bytes: 691 827  Cardinality: 22 317 
                                            6 HASH JOIN  Cost: 143  Bytes: 981 948  Cardinality: 22 317     
                                                4 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 85  Bytes: 290 121  Cardinality: 22 317 
                                                5 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56  Bytes: 691 827  Cardinality: 22 317 
                                    10 SORT UNIQUE  Bytes: 52 320  Cardinality: 1 635             
                                        9 TABLE ACCESS FULL TABLE EUS.L_SKY_NAVAID Cost: 6  Bytes: 52 320  Cardinality: 1 635         
                                13 SORT UNIQUE  Bytes: 298 384  Cardinality: 8 776                 
                                    12 TABLE ACCESS FULL TABLE EUS.L_SKY_WAYPOINT Cost: 22  Bytes: 298 384  Cardinality: 8 776             
                29 VIEW EUS. Cost: 825  Bytes: 3 522 880  Cardinality: 55 045                                 
                    28 UNION-ALL                             
                        21 HASH UNIQUE  Cost: 398  Bytes: 981 948  Cardinality: 22 317                         
                            20 HASH JOIN  Cost: 142  Bytes: 981 948  Cardinality: 22 317                     
                                18 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 85  Bytes: 290 121  Cardinality: 22 317                 
                                19 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56  Bytes: 691 827  Cardinality: 22 317                 
                        25 HASH UNIQUE  Cost: 398  Bytes: 981 948  Cardinality: 22 317                         
                            24 HASH JOIN  Cost: 143  Bytes: 981 948  Cardinality: 22 317                     
                                22 TABLE ACCESS FULL TABLE EUS.L_SKY_AIRWAY Cost: 85  Bytes: 290 121  Cardinality: 22 317                 
                                23 TABLE ACCESS FULL TABLE EUS.L_DGN_AIRWAY Cost: 56  Bytes: 691 827  Cardinality: 22 317                 
                        26 TABLE ACCESS FULL TABLE EUS.L_SKY_NAVAID Cost: 6  Bytes: 57 225  Cardinality: 1 635                         
                        27 TABLE ACCESS FULL TABLE EUS.L_SKY_WAYPOINT Cost: 22  Bytes: 324 712  Cardinality: 8 776                          Reformated
    Message was edited by:
    Vlada
    Message was edited by:
    Vlada

    Vlada,
    could you please post an properly formatted explain plan output using DBMS_XPLAN.DISPLAY including the "Predicate Information" section below the plan to provide more details regarding your statement. Please use the \[code\] and \[code\] tags to enhance readability of the output provided:
    In SQL*Plus:
    SET LINESIZE 130
    EXPLAIN PLAN FOR <your statement>;
    SELECT * FROM TABLE(DBMS_XPLAN.DISPLAY);In order to get a better understanding where your statement spends the time you might want to turn on SQL trace as described here:
    [When your query takes too long|http://forums.oracle.com/forums/thread.jspa?threadID=501834]
    and post the "tkprof" output here, too.
    Could you also provide the information which version of 10g you're currently using? (4-digit version number). Note that 10g introduced a couple of significant changes including CPU costing enabled by default and a different default setting of DBMS_STATS regarding column histograms.
    So you might want to re-gather the statistics using the method_opt parameter of the DBMS_STATS.GATHER__STATS procedures explicitly defined as "FOR ALL COLUMNS SIZE 1" to mimic the 9i behaviour.
    You also might want to try the "OPTIMIZER_FEATURES_ENABLE" session setting set to "9.2.0" in order to find out if any of the new optimizer features could be causing the issue if re-gathering the statistics as suggested above doesn't make a difference.
    Do you know if the tables/indexes in your 9i database also had reasonable statistics?
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle:
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/
    Edited by: Randolf Geist on Sep 8, 2008 9:32 AM
    Added some specific suggestions

  • Problems after upgrade bios to v4.3 - P67A-GD65

    Hi to everybody,
    I was having a problems after upgrade bios to v4.3 of my mainboard P67A-GD65.
    After upgraded bios version (FW) its interface was changed and seemed better. also some specifiactions upgraded that i am now able to follow information of bios in my windows. with Control Center.
    1) first of all after bios upgrade XMP memory section can only be enable şf ş choose OC geniue on. but with this my cpu warm till 98C degree. because i have only stock cpu cooler of intel.
    in normal mode xmp can not be activated so that my memory that corsair vengeance dd3 1600mhz works at 1333mhz only.
    Also there was information about what is new in this version of bios fw as:
    - Enhanced PCI-E display card performance.
    - Improved memory compatibility.
    2) second problem that i have i wanted to turn cpu leds which were located above cpu slot blue leds. once i turn them off and it is ok. but when shutdown computer and restart it turn on itself.
    so may be there have benn occured a problem that mb can not save edited settings correctly?
    3) For last i could not find Winki 3 OS/linuz anywhere is there a link to it to integrate to my mb?
    Thanks for your replies from now on.
    Greetings.

    Quote from: momosala on 02-April-13, 17:54:22
    I think you had better to flash back to beta 4.39 bios, here : https://forum-en.msi.com/index.php?topic=164135.msg1214789#msg1214789
    And use and install on USB key MSI Forum HQ USB flashing tool from here : https://forum-en.msi.com/index.php?topic=108079.msg800577#msg800577
    Flash using method 1.
    And tell us if that works.
    thank you for reply that fast i will try asap and tell here.
    Btw, have you ever face a problem as i wrote above?

  • Permission problems after upgrade to 10.5 on early Power PC G5 Tower

    Permissions problems after upgrading to 10.5 on a client power PC (early) G5 tower.
    Problems include folders that are created on XServe via this client do not allow any one else including this client to access. All other clients running 10.5, which happen to be newer Intel machines do not have this problem. Repairing permissions, updating to 10.5.1, try to manually correct permissions have all failed to repair the situation. All clients log onto the XServe with the same user/password. This client has since been downgraded back to 10.4.9 and has no issues.
    The Xserve runs 10.3.9, any help would be greatly appreciated.
    We have read through the forums regarding permission problems after upgrading and even tried some tips found here.

    You really should check things out first before speaking.
    Here are the requirements for 10.5;
    Mac OS X v10.5 Leopard requires:
    A Mac computer with an Intel, PowerPC G5, or Power PC G4 (867 MHz or faster) processor
    512 MB memory or more
    A DVD drive for installation
    9 GB of available disk space or more
    Some features require a compatible Internet service provider, fees may apply.
    Some features require Apple's MobileMe service; fees apply.
    Allan

  • Layouts problem after upgrade

    Hello, I have a problem after upgrade from 2007 to 8.81 PL 05.
    Since we upgrade SAP, the layout changed.
    For example, in a credit note if it has 3 lines, in the layout will appear 2 lines in a page and 1 in other page.
    if the credit note has 4 lines, in the layout will appear 3 lines in a page and 1 in other page.
    What could it be?
    Thanks in advance.

    Hi!
    lines are not duplicated, they just printed on different pages:
    - if doc has just 2 lines  -  printed form is good
    - if doc has 3 items, two of them are printed on the first page, 3d - on the second page
    - if doc has 4 items, 3 of them are printed on the first page, 4th - on the second page
    When we are printing directly from the server everything is working fine. But printing from all Clients gives us this issue that is described above.
    SAP re-installation  for all users will take too much time. May be exist any other option that we can try?
    we really appreciate your help
    Natalia

  • Problem after upgrading to ICS 4.0.4

    i have different problem after upgrading my SE Live with Walkman to ICS 4.0. After upgrading, my sd card always full. I have try to remove some files but after that it full again. Finaly i found that there are tumbnail file with size precisely same with my empty space. I delete that file, but the empty space not recover, its only recover after unmounting sd card. But its not hold for long time, after one minutes its happen again, my sd card is back fully again, and the same file is back to exist. Please help me, is that a virus or bugs from ICS?? i very frustation with this case
    thanx for your help

    Do you have many pictures?
    Have your tried to reinstall the phone software using SUS to check if the problem remains?
    http://www.sonymobile.com/gb/tools/update-service/
     - Community Manager Sony Xperia Support Forum
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Several problems after upgrading to iO6

    My iphone is with multiple problems after upgrading to iOS 6. Applications are closing alone, the screen goes black and then back to the home screen. does not connect to internet (3G and Wi-Fi) connections as cutting. Throw another quick update to fix this, or do I have to change to the Galaxy SIII; Iphone is Terrible!!

    Try the Padma extension.
    *Padma: https://addons.mozilla.org/firefox/addon/padma/

  • Login problem after upgrade to mavericks

    Hi, i have login problem after upgrade from mountain lion to movericks in imac, I did enter the correct password But back to the login page again.

    Hi cpuman8,
    Thanks for visiting Apple Support Communities.
    If you're not able to log in to your user account after upgrading, try resetting your password using the method in this article:
    Resetting the original administrator account password
    In OS X Lion or later, you can reset your user password with your Apple ID.
    OS X: Changing or resetting an account password
    http://support.apple.com/kb/ht1274
    Best Regards,
    Jeremy

  • Apple TV problem after upgrading to iTunes 7.5

    PROBLEM: After upgrading to 7.5, Apple TV no longer recognized iTunes and vice versa.
    ATTEMPTED SOLUTIONS: Removed and reinstalled iTunes 7.5 from scratch. Reset @TV to Factory Defaults and reconfigured. Removed Apple TV from iTunes Preferences/Apple TV/Remove Apple TV.
    iTunes no longer finds @TV, either in the Preferences/Apple TV pane, or in the Device List. Everything worked perfectly before the 7.5 upgrade. All other features and devices working fine. Have reviewed all postings and eliminated the possibility of firewall or port problems.
    Suggestions welcome! Thanks.

    I have partially resolved the problem. Something with the 7.5 upgrade changed the network protocols being used by the Apple TV... switching to a wired network from end to end with a full shut down and reboot has the @TV back online... I am still working on trying to solve the wireless side of the equation.

Maybe you are looking for

  • GL cost batch informations

    Hi Cost batches are posted into GL, Now we have a requirement to find all individual transactions information which are in cost batche. Regards Kishore S

  • I cant read Gmail after upgrading IOS 7

    Good afthernoon, I cant read my gmail mailbox after upgrading to ios 7 on my iphone 5. I remove it, restarted the phone and reconfigure my gmail account, update to IOS 7.0.2 but the problem persist. Almost of time, the mailbox of Gmail is grey and th

  • App download notification on another Apple ID?

    Hey guys! I'm just wondering, Iread over the new App Store terms and conditions, and I think I may have misread something. When you download an app (free or paid) on another Apple ID, does it send a notification to the email associated with the accou

  • Gettting rid of the bookmarks section under url bar??

    hey guys i want to keep all my bookmarks, but only access them buy going to the bookmarks tab at the very top of the computer screen (in between history and window) under the url and google bar and refresh button there is that whole bar with the quic

  • Sqlplus is not recognized

    hi, When I connect to database from client it says sqlplus is not recognized as internal or external command. The Path is set to correct directory though Client 10.2.0.3 on Windows 2003 Thanks Message was edited by: user604101 Message was edited by: