Function in Query causes code to run slow

Hi,
I have code which has a function in the WHERE statement, ie
SELECT col1, col, col2
FROM tab1, tab2, tab3, tab4, tab5
WHERE tab1.end_date between :date_from and :date_to
tab1.col1=tab2.col1
and tab1.end_date between tab2.start_date and tab2.end_date
AND tab2.col2=tab3.col1
and tab1.end_date between tab3.start_date and tab3.end_date
AND tab3.col2=tab4.col1
and tab1.end_date between tab4.start_date and tab4.end_date
AND tab4.col2=tab5.col1
and tab1.end_date between tab5.start_date and tab5.end_date
AND myfunction(tab2.col2)='&input_param'
This code runs fine via SqlPlus in about 8 secs, but in reports takes
over 20 minutes. If I remove the function then report works fine.
I have other reports which use this but has a different date selection that work okay.
Any ideas?
Cheers.

Just to close this.Script is now working by tuning.
I found a very similar report script that worked immediately both in sql and in reports and compared the Explain Plans. This highlighted which indexes were preferable. I put a trunc() round a date to stop that index from being used and all was well.
Still not 100% sure why a script that ran in 8 secs in SQL but took 40 minutes in Reports. Well - hey-ho - All I wanted to do was to get the report to run quickly regardless of which parameters were supplied (relating to user functions in the WHERE statement).
In that matter I succeeded.

Similar Messages

  • I am having trouble deleting Rimalbumartdaemo - causing mac to run slow

    I am having trouble deleting rimalbumartdaemo - which is causing Mac to run slow

    Here are a couple of things:
    Frame 0: the pane properties are saved with the file, so once they are set you never need to set them again. Delete the property node and associated constants.
    Frame 1:
    Shouldn't "Serial#" be a control (and an integer)? You do a complex song and dance to add leading zeroes. Simply format your serial number with format "%04d"
    Shouldn't "Operator" be a control?
    Frame 2: That loop needs a small wait statement. Since STOP is always true when the loop ends, the later case structure seems unneeded.
    Frame 3:
    the STOP function seems unneeded. the VI will stop anyway since there is no code left.
    never use default tunnels for references.
    All your error outputs are "disconnected" and write to the same indicator. Mist likely you'll loose intermediary errors.
    Overall, you should use a state machine architecture instead of sequences. It will be much more flexible and will take even less diagram space. The indicators can be outside the state case, so all states can write to them. No locals needed.
    LabVIEW Champion . Do more with less code and in less time .

  • Yosemite causing mac to run slow online???? why???

    i installed yosemite and it doesn't read my ex drive could this be why my safari runs slow now?

    Try these in order testing your system after each to see if it's back to normal:
    1. a. Resetting your Mac's PRAM and NVRAM
        b. Intel-based Macs: Resetting the System Management Controller (SMC)
    2. Restart the computer in Safe Mode, then restart again, normally. If this doesn't help, then:
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the
         computer and after the chime press and hold down the OPTION key until the boot manager
         screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    3. Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    4. Reinstall Yosemite: Reboot from the Recovery HD. Select Reinstall OS X from the Utilities menu, and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • Why does ext HDD / time machine run slow?

    Apologies if this is answered else where, but I can't find any answers.
    I have a MBP running OSX 10.6.8. Connected to it as a Time Machine is a Freecom 400GB 28147 uk, external hardrive connected over USB 2.0. I also have a Mac Mini running 10.6.8.
    When connected to my MBP, I have found that it is extremely slow to read files. I gave up using it for Time Machine a while ago as I thought there was a problem Time Machine software causing it to run slow. I have also tried to read the time machine backups through finder and they are still slow to read.
    Today (don't know why i didn't do it before now) I plugged it in to my Mac Mini with USB 2.0 and found that I can read all the time machine files at lightning speed, far quicker than my MBP which can take 2-3 mins to open a folder. I have noticed that the hard drive doesn't make its usual whurring noise when im trying to open a folder using the MBP, right up until the last minute before the folder opens.
    Does any one have any idea about what might be causing the problem when the the ext HDD is connected to my MBP?
    Any thoughts or suggestions greatly appreciated.

    larryfromjackson wrote:
    I'm backing up to a Drobo with four 2-Gig drives.
    How are you connected to it? Network problems could explain at least some of what you're seeing.
    More often then not I don't know how long the backups take because when it becomes to annoying I stop the backup.
    That guarantees that Time Machine will have to do a "deep scan" the next time, comparing everything on your system to the backups.   That does take a while, but if there are no other problems shouldn't have a major impact on performance.
    All of that said, I can't say for certain that there isn't something else going on.  Generally the way I notice the slowdown is when my keyboard inputs come out screwy -- ingB instead of Bring, pplAication for Applicaton for example.  When I know that this is happening I can work "around" it by typing the first letter, pausing for a second or two, then typing the remander.  Does any of this ring an bells?
    I've not heard of that specifically, but if you're connected to the Drobo wirelessly, and using a Bluetooth keyboard, there are reports of interference between the two. Try a wired keyboard temporarily, and/or different WIFI channels.

  • Parallel hint causes a query to run slower?

    I have an insert...select query where the select is a join between a table with one billion rows (although there is a where clause on an indexed column that restricts it to "only" 300 million), a table with 30 million rows, and a table with about 100,000 rows, where the result is about 20 rows. When I first ran it, it took about 2 hours. I added a Parallel hint, and explain plan showed that it was being used (and v$session showed that I had about 30 additional connections while it ran). but not it takes four hours.
    Is there a reason parallel processing would cause a query to run slower?
    insert /*+ append */ into employees_by_age_group
      pay_plan
    , age_range
    , pay_level
    , fy
    , employee_count
    select /*+ parallel */
           emp.pay_plan
         , to_char(d.min_age) || '-' || to_char(d.max_age) as age_range
         , emp.pay_level
         , pay.fy
         , count(pay.employee_id) as employee_count
    from
      select /*+ index(pay_info pay_info_index_on_site) */
             employee_id
           , extract(year from (dte_ppe_end + 92)) as fy
           , count(employee_id) as num_recs
      from pay_info
      where extract(month from dte_ppe_end) = 10
      and   extract(day from dte_ppe_end) between 14 and 27
      and   substr(pay_type, 1, 1) IN ('A', 'B', 'C')
      and   site like 'Z%'
      group by employee_id, extract(year from (dte_ppe_end + 92))
    ) pay
    join
      select employee_id
           , pay_plan
           , pay_grade
           , pay_step
           , file_date
      from
        select /*+ index(employee_info employee_info_index_on_site) */
               employee_id
             , pay_level
             , file_date
             , max(file_date)
               over (partition by extract(year from (file_date + 61)))
               as last_file_date
        from employee_info
        where site like 'Z%'
      where file_date = last_file_date
    ) emp
    on (
         emp.employee_id = pay.employee_id
         and extract(year from emp.file_date) = pay.fy - 1
    join (
           select employee_id
                , dob
           from (
                  select employee_id
                       , date_birth
                       , row_number() over (partition by employee_id order by date_file desc) as r
                  from employee_birthdates
                  where site like 'Z%'
           where r = 1
         ) dob
    on dob.employee_id = pay.employee_id
    join
                select 20 as min_age, 24 as max_age from dual
      union all select 25 as min_age, 29 as max_age from dual
      union all select 30 as min_age, 34 as max_age from dual
      union all select 35 as min_age, 39 as max_age from dual
      union all select 40 as min_age, 44 as max_age from dual
      union all select 45 as min_age, 49 as max_age from dual
      union all select 50 as min_age, 54 as max_age from dual
      union all select 55 as min_age, 59 as max_age from dual
      union all select 60 as min_age, 64 as max_age from dual
      union all select 65 as min_age, 69 as max_age from dual
      union all select 70 as min_age, 74 as max_age from dual
      union all select 75 as min_age, 79 as max_age from dual
      union all select 80 as min_age, 84 as max_age from dual
      union all select 85 as min_age, 89 as max_age from dual
      union all select 90 as min_age, 94 as max_age from dual
      union all select 95 as min_age, 99 as max_age from dual
    ) d
    group by emp.pay_plan, d.min_age, d.max_age, emp.pay_level, pay.fy;

    Paul - here are three different explain plans
    First, the original one (without the parallel hint):
    INSERT STATEMENT  ALL_ROWS                                              Cost: 26,684,255  Bytes: 114  Cardinality: 1                     
      35 LOAD AS SELECT EMPLOYEES_BY_AGE_GROUP                  
        34 HASH GROUP BY                                                    Cost: 26,684,255  Bytes: 114  Cardinality: 1                 
          33 NESTED LOOPS                                                   Cost: 26,684,254  Bytes: 114  Cardinality: 1               
            14 HASH JOIN                                                    Cost: 26,684,222  Bytes: 108  Cardinality: 1             
              9 MERGE JOIN                                                  Cost: 4,408,803  Bytes: 8,322  Cardinality: 146           
                3 VIEW DONBOT_DBA.                                          Cost: 114,863  Bytes: 29,625,180  Cardinality: 987,506         
                  2 WINDOW SORT PUSHED RANK                                 Cost: 114,863  Bytes: 35,550,216  Cardinality: 987,506       
                    1 TABLE ACCESS FULL TABLE EMPLOYEE_BIRTHDATES           Cost: 108,983  Bytes: 35,550,216  Cardinality: 987,506     
                8 SORT JOIN                                                 Cost: 4,293,940  Bytes: 3,645  Cardinality: 135         
                  7 VIEW DONBOT_DBA.                                        Cost: 4,293,939  Bytes: 3,645  Cardinality: 135       
                    6 SORT GROUP BY                                         Cost: 4,293,939  Bytes: 4,185  Cardinality: 135     
                      5 TABLE ACCESS BY INDEX ROWID TABLE PAY_INFO          Cost: 4,293,938  Bytes: 4,185  Cardinality: 135   
                        4 INDEX RANGE SCAN INDEX PAY_INFO_INDEX_ON_SITE     Cost: 487,124  Cardinality: 402,683,034 
              13 VIEW DONBOT_DBA                                            Cost: 22,275,300  Bytes: 1,160,143,257  Cardinality: 22,747,907           
                12 WINDOW SORT                                              Cost: 22,275,300  Bytes: 841,672,559  Cardinality: 22,747,907         
                  11 TABLE ACCESS BY INDEX ROWID TABLE EMPLOYEE_INFO        Cost: 22,137,046  Bytes: 841,672,559  Cardinality: 22,747,907       
                    10 INDEX RANGE SCAN INDEX EMPLOYEE_INFO_INDEX_ON_SITE   Cost: 50,419  Cardinality: 38,019,281     
            32 VIEW DONBOT_DBA
              31 UNION-ALL           
                15 FAST DUAL  Cost: 2  Cardinality: 1         
                16 FAST DUAL  Cost: 2  Cardinality: 1         
                17 FAST DUAL  Cost: 2  Cardinality: 1         
                18 FAST DUAL  Cost: 2  Cardinality: 1         
                19 FAST DUAL  Cost: 2  Cardinality: 1         
                20 FAST DUAL  Cost: 2  Cardinality: 1         
                21 FAST DUAL  Cost: 2  Cardinality: 1         
                22 FAST DUAL  Cost: 2  Cardinality: 1         
                23 FAST DUAL  Cost: 2  Cardinality: 1         
                24 FAST DUAL  Cost: 2  Cardinality: 1         
                25 FAST DUAL  Cost: 2  Cardinality: 1         
                26 FAST DUAL  Cost: 2  Cardinality: 1         
                27 FAST DUAL  Cost: 2  Cardinality: 1         
                28 FAST DUAL  Cost: 2  Cardinality: 1         
                29 FAST DUAL  Cost: 2  Cardinality: 1         
                30 FAST DUAL  Cost: 2  Cardinality: 1          Next, one with the parallel hint:
    INSERT STATEMENT  ALL_ROWS                                                                              Cost: 26,507,111  Bytes: 114  Cardinality: 1                                       
      51 LOAD AS SELECT EMPLOYEES_BY_AGE_GROUP
        50 PX COORDINATOR                                          
          49 PX SEND QC (RANDOM) PARALLEL_TO_SERIAL SYS.:TQ10005 :Q1005                                     Cost: 26,507,111  Bytes: 114  Cardinality: 1                                 
            48 HASH GROUP BY PARALLEL_COMBINED_WITH_PARENT :Q1005                                           Cost: 26,507,111  Bytes: 114  Cardinality: 1                               
              47 PX RECEIVE PARALLEL_COMBINED_WITH_PARENT :Q1005                                            Cost: 26,507,111  Bytes: 114  Cardinality: 1                             
                46 PX SEND HASH PARALLEL_TO_PARALLEL SYS.:TQ10004 :Q1004                                    Cost: 26,507,111  Bytes: 114  Cardinality: 1                           
                  45 HASH GROUP BY PARALLEL_COMBINED_WITH_PARENT :Q1004                                     Cost: 26,507,111  Bytes: 114  Cardinality: 1                         
                    44 NESTED LOOPS PARALLEL_COMBINED_WITH_PARENT :Q1004                                    Cost: 26,507,111  Bytes: 114  Cardinality: 1                       
                      25 HASH JOIN PARALLEL_COMBINED_WITH_PARENT :Q1004                                     Cost: 26,507,109  Bytes: 108  Cardinality: 1                     
                        17 PX RECEIVE PARALLEL_COMBINED_WITH_PARENT :Q1004                                  Cost: 4,301,500  Bytes: 4,104  Cardinality: 72                   
                          16 PX SEND HASH PARALLEL_TO_PARALLEL SYS.:TQ10003 :Q1003                          Cost: 4,301,500  Bytes: 4,104  Cardinality: 72                 
                            15 HASH JOIN PARALLEL_COMBINED_WITH_PARENT :Q1003                               Cost: 4,301,500  Bytes: 4,104  Cardinality: 72               
                              7 BUFFER SORT PARALLEL_COMBINED_WITH_CHILD :Q1003           
                                6 PX RECEIVE PARALLEL_COMBINED_WITH_PARENT :Q1003                           Cost: 4,293,939  Bytes: 1,809  Cardinality: 67           
                                  5 PX SEND BROADCAST PARALLEL_FROM_SERIAL SYS.:TQ10000                     Cost: 4,293,939  Bytes: 1,809  Cardinality: 67         
                                    4 VIEW DONBOT_DBA.                                                      Cost: 4,293,939  Bytes: 1,809  Cardinality: 67       
                                      3 SORT GROUP BY                                                       Cost: 4,293,939  Bytes: 2,077  Cardinality: 67     
                                        2 TABLE ACCESS BY INDEX ROWID TABLE PAY_INFO                        Cost: 4,293,938  Bytes: 2,077  Cardinality: 67   
                                          1 INDEX RANGE SCAN INDEX PAY_INFO_INDEX_ON_SITE                   Cost: 487,124  Cardinality: 199,756,151 
                              14 VIEW PARALLEL_COMBINED_WITH_PARENT DONBOT_DBA. :Q1003                      Cost: 7,561  Bytes: 29,625,180  Cardinality: 987,506             
                                13 WINDOW SORT PUSHED RANK PARALLEL_COMBINED_WITH_PARENT :Q1003             Cost: 7,561  Bytes: 35,550,216  Cardinality: 987,506           
                                  12 PX RECEIVE PARALLEL_COMBINED_WITH_PARENT :Q1003                        Cost: 7,561  Bytes: 35,550,216  Cardinality: 987,506         
                                    11 PX SEND HASH PARALLEL_TO_PARALLEL SYS.:TQ10002 :Q1002                Cost: 7,561  Bytes: 35,550,216  Cardinality: 987,506       
                                      10 WINDOW CHILD PUSHED RANK PARALLEL_COMBINED_WITH_PARENT :Q1002      Cost: 7,561  Bytes: 35,550,216  Cardinality: 987,506     
                                        9 PX BLOCK ITERATOR PARALLEL_COMBINED_WITH_CHILD :Q1002             Cost: 7,557  Bytes: 35,550,216  Cardinality: 987,506   
                                          8 TABLE ACCESS FULL TABLE PARALLEL_COMBINED_WITH_PARENT EMPLOYEE_BIRTHDATES :Q1002     Cost: 7,557  Bytes: 35,550,216  Cardinality: 987,506 
                        24 BUFFER SORT PARALLEL_COMBINED_WITH_CHILD :Q1004                 
                          23 PX RECEIVE PARALLEL_COMBINED_WITH_PARENT :Q1004                                Cost: 22,205,605  Bytes: 575,504,145  Cardinality: 11,284,395                 
                            22 PX SEND HASH PARALLEL_FROM_SERIAL SYS.:TQ10001                               Cost: 22,205,605  Bytes: 575,504,145  Cardinality: 11,284,395               
                              21 VIEW DONBOT_DBA.                                                           Cost: 22,205,605  Bytes: 575,504,145  Cardinality: 11,284,395             
                                20 WINDOW SORT                                                              Cost: 22,205,605  Bytes: 417,522,615  Cardinality: 11,284,395           
                                  19 TABLE ACCESS BY INDEX ROWID TABLE EMPLOYEE_INFO                        Cost: 22,137,046  Bytes: 417,522,615  Cardinality: 11,284,395         
                                    18 INDEX RANGE SCAN INDEX EMPLOYEE_INFO_INDEX_ON_SITE                   Cost: 50,419  Cardinality: 18,859,958       
                      43 VIEW PARALLEL_COMBINED_WITH_PARENT DONBOT_DBA. :Q1004                              Cost: 32  Bytes: 6  Cardinality: 1                     
                        42 UNION-ALL PARALLEL_COMBINED_WITH_PARENT :Q1004                 
                          26 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          27 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          28 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          29 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          30 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          31 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          32 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          33 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          34 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          35 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          36 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          37 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          38 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          39 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          40 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                 
                          41 FAST DUAL PARALLEL_COMBINED_WITH_PARENT :Q1004         Cost: 2  Cardinality: 1                  Finally, one without the parallel hint, and without the index hint on PAY_TABLE:
    INSERT STATEMENT  ALL_ROWS                                              Cost: 23,348,654  Bytes: 114  Cardinality: 1                   
      34 LOAD AS SELECT ARMYMP.EMPLOYEES_BY_AGE                
        33 HASH GROUP BY                                                    Cost: 23,348,654  Bytes: 114  Cardinality: 1               
          32 NESTED LOOPS                                                   Cost: 23,348,653  Bytes: 114  Cardinality: 1             
            13 HASH JOIN                                                    Cost: 23,348,621  Bytes: 108  Cardinality: 1           
              8 MERGE JOIN                                                  Cost: 1,073,202  Bytes: 8,322  Cardinality: 146         
                3 VIEW DONBOT_DBA.                                          Cost: 114,863  Bytes: 29,625,180  Cardinality: 987,506       
                  2 WINDOW SORT PUSHED RANK                                 Cost: 114,863  Bytes: 35,550,216  Cardinality: 987,506     
                    1 TABLE ACCESS FULL TABLE EMPLOYEE_BIRTHDATES           Cost: 108,983  Bytes: 35,550,216  Cardinality: 987,506   
                7 SORT JOIN                                                 Cost: 958,339  Bytes: 3,645  Cardinality: 135       
                  6 VIEW DONBOT_DBA.                                        Cost: 958,338  Bytes: 3,645  Cardinality: 135     
                    5 SORT GROUP BY                                         Cost: 958,338  Bytes: 4,185  Cardinality: 135   
                      4 TABLE ACCESS FULL TABLE PAY_INFO                    Cost: 958,337  Bytes: 4,185  Cardinality: 135 
              12 VIEW DONBOT_DBA.                                           Cost: 22,275,300  Bytes: 1,160,143,257  Cardinality: 22,747,907         
                11 WINDOW SORT                                              Cost: 22,275,300  Bytes: 841,672,559  Cardinality: 22,747,907       
                  10 TABLE ACCESS BY INDEX ROWID TABLE EMPLOYEE_INFO        Cost: 22,137,046  Bytes: 841,672,559  Cardinality: 22,747,907     
                    9 INDEX RANGE SCAN INDEX EMPLOYEE_INFO_UIC              Cost: 50,419  Cardinality: 38,019,281   
            31 VIEW DONBOT_DBA.                                             Cost: 32  Bytes: 6  Cardinality: 1           
              30 UNION-ALL         
                14 FAST DUAL  Cost: 2  Cardinality: 1       
                15 FAST DUAL  Cost: 2  Cardinality: 1       
                16 FAST DUAL  Cost: 2  Cardinality: 1       
                17 FAST DUAL  Cost: 2  Cardinality: 1       
                18 FAST DUAL  Cost: 2  Cardinality: 1       
                19 FAST DUAL  Cost: 2  Cardinality: 1       
                20 FAST DUAL  Cost: 2  Cardinality: 1       
                21 FAST DUAL  Cost: 2  Cardinality: 1       
                22 FAST DUAL  Cost: 2  Cardinality: 1       
                23 FAST DUAL  Cost: 2  Cardinality: 1       
                24 FAST DUAL  Cost: 2  Cardinality: 1       
                25 FAST DUAL  Cost: 2  Cardinality: 1       
                26 FAST DUAL  Cost: 2  Cardinality: 1       
                27 FAST DUAL  Cost: 2  Cardinality: 1       
                28 FAST DUAL  Cost: 2  Cardinality: 1       
                29 FAST DUAL  Cost: 2  Cardinality: 1        I am surprised the cost without the index is less than the cost with it, considering that it is replacing a Table Access By Index Rowid with a Table Access Full on a table with 1 billion (1000 million) records.
    Igor - two questions:
    One - I cannot find "Materialize" in the hints in the SQL Reference anywhere. What does it do?
    Two - does replacing subqueries with With clauses make that much of a difference?

  • Query runs slower in function

    Why is it that a query takes more than 15 seconds to run in a function, but only one second when run separately in a query editor window in Toad? Here's the query, where piSiteID, piProtocolID, DrugType1 and DrugType2 are all parameters and v_drug_packs_dispensable is a view that loads almost instantly. I have added all the necessary indexes (or at least I think so).
    SELECT MIN(DRUG_EXPIRE_DT) INTO ExpDate
    FROM V_DRUG_PACKS_DISPENSABLE dp
    WHERE SITE_ID = piSiteID
    AND PROTOCOL_ID = piProtocolID
    and drug_type_id = DrugType1 or drug_type_id = DrugType2;
    If you take this same function and put it in an Editor window and fill in the parameters, it executes immediately.

    Toadthat's the answer.... Toad tends to only show the first x rows, try to get the last row in Toad and you'll notice it takes more time (comparable to the function). Toad does a first-rows optimalization.

  • Function in a query causing a problem ................

    Hello Gurus
    I have a problem with my select statement which contains 2 function in it. These functions cause the query to run slow. I have cross checked with all the indexes, statistics and index used within the function they are all correct.
    Please some one tell me why is this happening. There was a database crash since then this has started to happen. I have revalidated the fucntions and indexes, still it does not help any.
    A questions comes to my mind will it be solved by pinning these functions in memory? and how that could be done.
    Please help me at the earliest.
    Thanks

    first function
    =========
    function CS_GET_AGENT_TRACK_DATA (
    v_ACCOUNT_NUM VARCHAR ,
    v_USER_ID VARCHAR,
    v_OEM_ID NUMBER
    return VARCHAR
    is
    L_INFO VARCHAR(2000) := '';
    L_EMPTY_INFO VARCHAR(2000) :='N' || CHR(2) || 'N' || CHR(2) || '0' || CHR(2) ||
    cursor get_AGENT_TRACK_DATA (P_ACCOUNT_NUM VARCHAR,P_USER_ID VARCHAR, P_OEM_ID N
    UMBER) is
    select
    NVL(IN_OUT_FLAG,'N') || CHR(2) ||
    NVL(AVAILABLE_FLAG,'N') || CHR(2) ||
    NVL(AGENT_INCIDENT_LOAD,0) || CHR(2) ||
    ASSIST_LIST
    from
    WEBTEL.CS_AGENT_TRACK
    where
    AGENT_ACCOUNT_NUM = P_ACCOUNT_NUM and
    AGENT_USER_ID = P_USER_ID and
    OEM_ID = P_OEM_ID ;
    --cursor get_LAST_ACTIVITY_DATE (P_ACCOUNT_NUM VARCHAR,P_USER_ID VARCHAR) is
    -- select
    -- NVL(IN_OUT_FLAG,'N') || CHR(2) ||
    -- NVL(AVAILABLE_FLAG,'N') || CHR(2) ||
    -- NVL(AGENT_INCIDENT_LOAD,0) || CHR(2) ||
    -- ASSIST_LIST
    -- from
    -- WEBTEL.CS_AGENT_TRACK
    -- where
    -- AGENT_ACCOUNT_NUM = P_ACCOUNT_NUM and
    -- AGENT_USER_ID = P_USER_ID and
    -- OEM_ID = P_OEM_ID ;
    BEGIN
    OPEN get_AGENT_TRACK_DATA (v_ACCOUNT_NUM, v_USER_ID, v_OEM_ID);
    FETCH get_AGENT_TRACK_DATA into L_INFO;
    IF (get_AGENT_TRACK_DATA%NOTFOUND) THEN
    L_INFO := L_EMPTY_INFO;
    END IF;
    CLOSE get_AGENT_TRACK_DATA;
    IF ((LENGTH(L_INFO) <= 0) or (L_INFO IS NULL)) THEN
    L_INFO := L_EMPTY_INFO;
    END IF;
    RETURN L_INFO;
    EXCEPTION WHEN OTHERS THEN RETURN L_EMPTY_INFO;
    END;
    second function
    ============
    function CS_GET_AGENT_OPEN_COUNT (
    v_ACCOUNT_NUM VARCHAR ,
    v_USER_ID VARCHAR,
    v_ADD_HANDICAP NUMBER default NULL,
    v_HANDICAP_OEM NUMBER default NULL
    return NUMBER
    is
    L_INFO NUMBER := 0;
    L_RET_VAL NUMBER := 0;
    L_USING_AGENT_TRACK NUMBER := 0;
    cursor get_AGENT_OPEN_COUNT (P_ACCOUNT_NUM VARCHAR,P_USER_ID VARCHAR) is
    select /*+ INDEX_COMBINE(CS_INCIDENT_TABLE) */
    count(*)
    from
    WEBTEL.CS_INCIDENT_TABLE
    where
    AGENT_ACCOUNT_NUM = P_ACCOUNT_NUM and
    AGENT_USER_ID = P_USER_ID and
    INCIDENT_STATE < 2 ;
    cursor get_HANDICAP_COUNT (P_ACCOUNT_NUM VARCHAR,P_USER_ID VARCHAR, P_OEM_ID NUM
    BER) is
    select
    NVL(AGENT_INCIDENT_LOAD,0)
    from
    CS_AGENT_TRACK
    where
    AGENT_ACCOUNT_NUM = P_ACCOUNT_NUM and
    AGENT_USER_ID = P_USER_ID and
    OEM_ID = P_OEM_ID ;
    BEGIN
    OPEN get_AGENT_OPEN_COUNT (v_ACCOUNT_NUM, v_USER_ID);
    FETCH get_AGENT_OPEN_COUNT into L_INFO;
    IF (get_AGENT_OPEN_COUNT%NOTFOUND) THEN
    L_INFO := 0;
    END IF;
    CLOSE get_AGENT_OPEN_COUNT;
    L_RET_VAL := L_INFO;
    IF ((v_ADD_HANDICAP is not null and length(v_ADD_HANDICAP) > 0) AND
    (v_HANDICAP_OEM is not null and v_HANDICAP_OEM > 0)) THEN
    L_USING_AGENT_TRACK := WEBTEL.IS_SITE_CONFIG_ON('AGENT_TRACKING_ENABLED',v_HAN
    DICAP_OEM);
    IF (L_USING_AGENT_TRACK > 0) THEN
    OPEN get_HANDICAP_COUNT (v_ACCOUNT_NUM, v_USER_ID, v_HANDICAP_OEM);
    FETCH get_HANDICAP_COUNT into L_INFO;
    IF (get_HANDICAP_COUNT%NOTFOUND) THEN
    L_INFO := 0;
    END IF;
    CLOSE get_HANDICAP_COUNT;
    L_RET_VAL := L_RET_VAL + L_INFO;
    END IF;
    END IF;
    RETURN L_RET_VAL;
    EXCEPTION WHEN OTHERS THEN RETURN 0;
    END;
    These are the two functions
    thanks

  • Query of query - running slower on 64 bit CF than 32 bit CF

    Greetings...
    I am seeing behavior where pages that use query-of-query run slower on 64-bit Coldfusion 9.01 than on 32-bit Coldfusion 9.01.
    My server specs are : dual processer virtual machine, 4 GIG ram, Windows 2008 Datacenter Server r2 64-bit, Coldfusion 9.01. Note that the coldfusion is literally "straight out of the box", and is using all default settings - the only thing I configured in CF is a single datasource.
    The script I am using to benchmark this runs a query that returns 20,000 rows with fields id, firstname, lastname, email, city, datecreated. I then loop through all 20,000 records, and for each record, I do a query-of-query (on the same master query) to find any other record where the lastname matches that of the record I'm currently on. Note that I'm only interested in using this process for comparative benchmarking purposes, and I know that the process could be written more efficiently.
    Here are my observed execution times for both 64-bit and 32-bit Coldfusion (in seconds) on the same machine.
    64 bit CF 9.01: 63,49,52,52,52,48,50,49,54 (avg=52 seconds)
    32 bit CF 9.01: 47,45,43,43,45,41,44,42,46 (avg=44 seconds)
    It appears from this that 64-bit CF performs worse than 32-bit CF when doing query-of-query operations. Has anyone made similar observations, and is there any way I can tune the environment to improve 64 bit performance?
    Thanks for any help you can provide!
    By the way, here's the code that is generating these results:
    <!--- Allrecs query returns 20000 rows --->
    <CFQUERY NAME="ALLRECS" DATASOURCE="MyDsn">
        SELECT * FROM MyTBL
    </CFQUERY>
    <CFLOOP QUERY="ALLRECS">
        <CFQUERY NAME="SAMELASTNAME" DBTYPE="QUERY">
            SELECT * FROM ALLRECS
            WHERE LN=<CFQUERYPARAM VALUE="#ALLRECS.LN#" CFSQLTYPE="CF_SQL_VARCHAR">
            AND ID<><CFQUERYPARAM VALUE="#AllRecs.ID#" CFSQLTYPE="CF_SQL_INTEGER">
        </CFQUERY>
        <CFIF SameLastName.RecordCount GT 20>
            #AllRecs.LN#, #AllRecs.FN# : #SameLastName.RecordCount# other records with same lastname<BR>
        </CFIF>
    </CFLOOP>

    BoBear2681 wrote:
    ..follow-up: ..Thanks for the follow-up. I'll be interested to hear the progress (or otherwise, as the case may be).
    As an aside. I got sick of trying to deal with Clip because it could only handle very small Clip sizes. AFAIR it was 1 second of 44.1 KHz stereo. From that point, I developed BigClip.
    Unfortunately BigClip as it stands is even less able to fulfil your functional requirement than Clip, in that only one BigClip can be playing at a time. Further, it can be blocked by other sound applications (e.g. VLC Media Player, Flash in a web page..) or vice-versa.

  • Older but upgraded MBP running slow... no obvious cause.

    Hello all and thanks in advance for anything you have to share.
    My mid-2007 15" MBP has gotten slow in basic finder functions and opening/switching/closing programs with no obvious bottleneck.  I use Activity Monitor regularly, and there is often a very low CPU load, never any RAM pressure (which I find suspicious, but I do have 6 GB installed), and I'm not running any particularly high demand software (usually Safari with a few tabs open, mail, Word or maybe Excel).
    I'm considering doing a clean install of Yosemite (currently running Mav), but I wish I knew if there were anything else causing a particular bottleneck at the moment.  If you can tell me exactly what/why I'm running slow (i.e. some hardware issue that will force me to upgrade), that's fine, I just want to know what it is.  Even as I'm typing these letters, I'm typing 2 or 3 words faster than the text appears on the screen, yet the CPU is running around 20% and RAM indicates 3.6 out of 6 GB used.
    System profile below from EtreCheck.  Thanks in advance for any help!
    Problem description:
    General slowness and lag opening programs, switching windows/programs, etc.  Not related to download speeds.  No obvious cause, processor usage and memory pressure (RAM) both appear fine/low most of the time, yet computer is just slow.
    EtreCheck version: 2.1.8 (121)
    Report generated February 15, 2015 at 10:18:22 PM EST
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        MacBook Pro (15-inch  2.4/2.2GHz) (Verified)
        MacBook Pro - model: MacBookPro3,1
        1 2.4 GHz Intel Core 2 Duo CPU: 2-core
        6 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR2 SDRAM 667 MHz ok
            BANK 1/DIMM1
                4 GB DDR2 SDRAM 667 MHz ok
        Bluetooth: Old - Handoff/Airdrop2 not supported
        Wireless:  en1: 802.11 a/b/g/n
        Battery Health: Normal - Cycle count 155
    Video Information: ℹ️
        GeForce 8600M GT     - VRAM: 256 MB
            Color LCD 1440 x 900
    System Software: ℹ️
        OS X 10.9.5 (13F34) - Time since boot: 4:44:45
    Disk Information: ℹ️
        ST9500420AS disk0 : (500.11 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Darrah's 500GB HD (disk0s2) / : 499.25 GB (43.30 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
    USB Information: ℹ️
        Apple Inc. Built-in iSight
        Apple Inc. Bluetooth USB Host Controller
        Apple Computer Apple Internal Keyboard / Trackpad
        Apple Computer, Inc. IR Receiver
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Library/Application Support/VirtualBox
        [loaded]    org.virtualbox.kext.VBoxDrv (4.3.12) [Click for support]
        [loaded]    org.virtualbox.kext.VBoxNetAdp (4.3.12) [Click for support]
        [loaded]    org.virtualbox.kext.VBoxNetFlt (4.3.12) [Click for support]
        [loaded]    org.virtualbox.kext.VBoxUSB (4.3.12) [Click for support]
            /Library/Extensions
        [loaded]    com.globaldelight.driver.BoomDevice (1.3 - SDK 10.9) [Click for support]
            /System/Library/Extensions
        [loaded]    com.avatron.AVExFramebuffer (1.7 - SDK 10.8) [Click for support]
        [loaded]    com.avatron.AVExVideo (1.7 - SDK 10.8) [Click for support]
        [not loaded]    com.novatelwireless.driver.3G (3.0.2) [Click for support]
        [not loaded]    com.novatelwireless.driver.DisableAutoInstall (2.0.6) [Click for support]
        [not loaded]    com.sierrawireless.driver.SierraSupport (1.4.11) [Click for support]
        [not loaded]    com.sierrawireless.driver.SierraSwitch (1.2.2) [Click for support]
        [not loaded]    com.sierrawireless.driver.SierraSwitchKicker (1.0.0) [Click for support]
        [not loaded]    com.smithmicro.driver.SMSIWirelessModem (3.2.6) [Click for support]
            /System/Library/Extensions/NovatelWireless3G.kext/Contents/PlugIns
        [not loaded]    com.novatelwireless.driver.3GData (3.0.2) [Click for support]
            /System/Library/Extensions/SMSIWirelessModem.kext/Contents/PlugIns
        [not loaded]    com.smithmicro.driver.SMSIWirelessCDC (3.2.6) [Click for support]
        [not loaded]    com.smithmicro.driver.SMSIWirelessSerial (3.2.6) [Click for support]
    Launch Agents: ℹ️
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [loaded]    com.oracle.java.Java-Updater.plist [Click for support]
        [loaded]    org.macosforge.xquartz.startx.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [loaded]    com.google.keystone.daemon.plist [Click for support]
        [loaded]    com.microsoft.office.licensing.helper.plist [Click for support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Click for support]
        [loaded]    com.timesoftware.timemachineeditor.helper.plist [Click for support]
        [loaded]    org.macosforge.xquartz.privileged_startx.plist [Click for support]
        [not loaded]    org.virtualbox.startup.plist [Click for support]
        [loaded]    org.wireshark.ChmodBPF.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.ARM.[...].plist [Click for support]
        [loaded]    com.citrixonline.GoToMeeting.G2MUpdate.plist [Click for support]
        [not loaded]    org.virtualbox.vboxwebsrv.plist [Click for support]
    User Login Items: ℹ️
        Flux    Application  (/Applications/Utilities/Flux.app)
        ScreenCapture    UNKNOWN  (missing value)
        AdobeResourceSynchronizer    Application Hidden (/Applications/Adobe Reader.app/Contents/Support/AdobeResourceSynchronizer.app)
        AirDisplayStatusItem    UNKNOWN  (missing value)
    Internet Plug-ins: ℹ️
        xo1dbrowserplugin: Version: 5.2.4.18058 [Click for support]
        o1dbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        Default Browser: Version: 537 - SDK 10.9
        Flip4Mac WMV Plugin: Version: 3.2.0.16   - SDK 10.8 [Click for support]
        AdobePDFViewerNPAPI: Version: 10.1.13 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        googletalkbrowserplugin: Version: 5.40.2.0 - SDK 10.8 [Click for support]
        SharePointBrowserPlugin: Version: 14.4.7 - SDK 10.6 [Click for support]
        AdobePDFViewer: Version: 10.1.13 [Click for support]
        iPhotoPhotocast: Version: 7.0
        JavaAppletPlugin: Version: Java 8 Update 25 Check version
    User internet Plug-ins: ℹ️
        CitrixOnlineWebDeploymentPlugin: Version: 1.0.105 [Click for support]
        Unity Player: Version: UnityPlayer version 1.6.2 [Click for support]
    Safari Extensions: ℹ️
        AdBlock
        Reddit Enhancement Suite
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
        Flip4Mac WMV  [Click for support]
        Java  [Click for support]
        Perian  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Mobile backups: ON
        Auto backup: YES
        Volumes being backed up:
            Darrah's 500GB HD: Disk size: 499.25 GB Disk used: 455.95 GB
        Destinations:
            Data [Network]
            Total size: 2.00 TB
            Total number of backups: 86
            Oldest backup: 2013-05-26 02:24:05 +0000
            Last backup: 2015-02-16 02:17:03 +0000
            Size of backup disk: Excellent
                Backup size 2.00 TB > (Disk size 499.25 GB X 3)
    Top Processes by CPU: ℹ️
            14%    WindowServer
            13%    Safari
            10%    com.apple.WebKit.Networking
             3%    backupd
             2%    fontd
    Top Processes by Memory: ℹ️
        322 MB    Safari
        219 MB    mds_stores
        135 MB    com.apple.IconServicesAgent
        122 MB    Mail
        102 MB    com.apple.WebKit.WebContent
    Virtual Memory Information: ℹ️
        1.06 GB    Free RAM
        2.96 GB    Active RAM
        1.53 GB    Inactive RAM
        887 MB    Wired RAM
        623 MB    Page-ins
        0 B    Page-outs
    Diagnostics Information: ℹ️
        Feb 15, 2015, 05:30:56 PM    Self test - passed

    You don't have enough storage space.
    Go step by step and test.
    1. Start up in Safe Mode.
        http://support.apple.com/kb/PH11212
    2. Empty Trash.
       http://support.apple.com/kb/PH13806
    3. Disk space / Time Machine ?/ Local Snapshots
      Local backups
       http://support.apple.com/kb/ht4878
    4. Delete old iOS Devices Backup.
        iTunes > Preferences > Devices
        Highlight the old Backups , press “Delete Backup” and then “OK”.
        http://support.apple.com/kb/HT4946?viewlocale=en_US&locale=en_US
    5. Re-index Macintosh HD.
        This will take a while. Wait until it is finished.
        System Preferences > Spotlight > Privacy
        http://support.apple.com/kb/ht2409
    6.Try OmniDiskSweeper. This will give the storage size details of the items.
       https://www.omnigroup.com/more
       Select Macintosh HD and click  “Sweep Selected Drive” at the bottom.
       Delete the files yo don’t want to keep.
       Be careful. Delete only the files that can be safely be deleted.
    7. Move iTunes, iPhoto and iMovie media folders to an external drive.
        iTunes
        http://support.apple.com/en-us/HT201562
        iPhoto
        http://support.apple.com/kb/PH2506
        iMovie
        http://support.apple.com/kb/ph2289

  • SQL Developer running slow, possibly caused by Java Virtual Machine

    Dear all
    I am currently working with SQL Developer 1.5.1, connecting to an Oracle database 10.2.0.2 and it is taking about 10 minutes for SQL Developer to load. I believe the problem may be due to the Java Development kit. I upgraded to the latest version last week.
    The versions running according to Java settings is:
    1.6 1.6.0_15 http://java.sun.com/products/autodl/j2se C:\Program Files\Java\jre6\bin\javaw.exe  true
    1.6 1.6.0_07 http://java.sun.com/products/autodl/j2se C:\Program Files\Java\jre1.6.0_07\bin\javaw.exe  true
    1.4 1.4.2 http://java.sun.com/products/autodl/j2se C:\Program Files\Java\j2re1.4.2\bin\javaw.exe  trueHaving looked at other posts on here I have run SQL Developer with the console and the messages in that are as follows:
    Exception initializing 'oracle.ideimpl.searchbar.SearchBarAddin' in extension 'S
    earch Bar': java.lang.NullPointerException
            at oracle.ideimpl.searchbar.ColorProvider.isFusionLAF(ColorProvider.java
    :29)
            at oracle.ideimpl.searchbar.ColorProvider.updateUIManager(ColorProvider.
    java:35)
            at oracle.ideimpl.searchbar.SearchBarAddin.initialize(SearchBarAddin.jav
    a:37)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManage
    rImpl.java:405)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManag
    erImpl.java:214)
            at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(Ad
    dinManagerImpl.java:128)
            at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1804)
            at oracle.ide.IdeCore.startupImpl(IdeCore.java:1481)
            at oracle.ide.Ide.startup(Ide.java:662)
            at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
            at oracle.ideimpl.Main.start(Main.java:110)
            at oracle.ideimpl.Main.main(Main.java:72)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at oracle.ide.boot.PCLMain.callMain(PCLMain.java:66)
            at oracle.ide.boot.PCLMain.main(PCLMain.java:58)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
            at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:
    190)
            at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:90)
            at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:66)
            at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:55)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at oracle.ide.boot.Launcher.invokeMain(Launcher.java:729)
            at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
            at oracle.ide.boot.Launcher.launch(Launcher.java:68)
            at oracle.ide.boot.Launcher.main(Launcher.java:57)
    Load: C:\Program Files\sqldeveloper\sqldeveloper\bin\jdev\extensions\GeoRaptorLi
    bs\Settings.xml
    java.io.FileNotFoundException: C:\Program Files\sqldeveloper\sqldeveloper\bin\jd
    ev\extensions\GeoRaptorLibs\Settings.xml (The system cannot find the path specif
    ied)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at java.io.FileInputStream.<init>(FileInputStream.java:66)
            at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
    .java:70)
            at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
    nection.java:161)
            at java.net.URL.openStream(URL.java:1007)
            at oracle.xml.parser.v2.XMLReader.openURL(XMLReader.java:2590)
            at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:236)
            at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:208)
            at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:155)
            at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:172)
            at org.GeoRaptor.MainSettings.load(Unknown Source)
            at org.GeoRaptor.PreferenceAddin.initialize(Unknown Source)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManage
    rImpl.java:405)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManag
    erImpl.java:214)
            at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(Ad
    dinManagerImpl.java:128)
            at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1804)
            at oracle.ide.IdeCore.startupImpl(IdeCore.java:1481)
            at oracle.ide.Ide.startup(Ide.java:662)
            at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
            at oracle.ideimpl.Main.start(Main.java:110)
            at oracle.ideimpl.Main.main(Main.java:72)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at oracle.ide.boot.PCLMain.callMain(PCLMain.java:66)
            at oracle.ide.boot.PCLMain.main(PCLMain.java:58)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
            at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:
    190)
            at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:90)
            at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:66)
            at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:55)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at oracle.ide.boot.Launcher.invokeMain(Launcher.java:729)
            at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
            at oracle.ide.boot.Launcher.launch(Launcher.java:68)
            at oracle.ide.boot.Launcher.main(Launcher.java:57)
    Exception initializing 'org.GeoRaptor.MenuControler' in extension 'GeoRaptor': o
    racle.classloader.util.AnnotatedNoClassDefFoundError:
              Missing class: oracle.jdeveloper.cm.dt.browser.jdbc.TableNode
            Dependent class: org.GeoRaptor.MenuControler
                     Loader: main:11.0
                Code-Source: /C:/Program Files/sqldeveloper/sqldeveloper/extensions/
    org.GeoRaptor.jar
              Configuration: system property C:\Program Files\sqldeveloper\sqldevelo
    per\extensions\org.GeoRaptor.jar
    The missing class is not available from any code-source or loader in the system.
            at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClass
    Loader.java:2176) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by su
    n.misc.Launcher$AppClassLoader@9627532]
            at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLo
    ader.java:1729) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.
    misc.Launcher$AppClassLoader@9627532]
            at oracle.classloader.PolicyClassLoader.access$000 (PolicyClassLoader.ja
    va:143) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Lau
    ncher$AppClassLoader@9627532]
            at oracle.classloader.PolicyClassLoader$LoadClassAction.run (PolicyClass
    Loader.java:331) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun
    .misc.Launcher$AppClassLoader@9627532]
            at java.security.AccessController.doPrivileged (Native method) [unknown,
    by unknown]
            at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.jav
    a:1688) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Lau
    ncher$AppClassLoader@9627532]
            at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.jav
    a:1670) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Lau
    ncher$AppClassLoader@9627532]
            at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:319) [jre b
    ootstrap, by jre.bootstrap:1.5.0_06]
            at org.GeoRaptor.MenuControler.initialize (Unknown source file) [/C:/Pro
    gram Files/sqldeveloper/sqldeveloper/extensions/org.GeoRaptor.jar (from system p
    roperty C:\Program Files\sqldeveloper\sqldeveloper\extensions\org.GeoRaptor.jar)
    , by main:11.0]
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin (AddinManag
    erImpl.java:405) [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (from syste
    m property PCLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins (AddinMana
    gerImpl.java:214) [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (from syst
    em property PCLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins (A
    ddinManagerImpl.java:128) [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (f
    rom system property PCLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ide.IdeCore.initProductAndUserAddins (IdeCore.java:1804) [/C:/
    Program Files/sqldeveloper/ide/extensions/oracle.ide.jar (from system property P
    CLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ide.IdeCore.startupImpl (IdeCore.java:1481) [/C:/Program Files
    /sqldeveloper/ide/extensions/oracle.ide.jar (from system property PCLMain.create
    ExtensionManagerLoader()), by main:11.0]
            at oracle.ide.Ide.startup (Ide.java:662) [/C:/Program Files/sqldeveloper
    /ide/extensions/oracle.ide.jar (from system property PCLMain.createExtensionMana
    gerLoader()), by main:11.0]
            at oracle.ideimpl.DefaultIdeStarter.startIde (DefaultIdeStarter.java:35)
    [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (from system property PCLMa
    in.createExtensionManagerLoader()), by main:11.0]
            at oracle.ideimpl.Main.start (Main.java:110) [/C:/Program Files/sqldevel
    oper/ide/lib/ideimpl.jar (from system property PCLMain.createExtensionManagerLoa
    der()), by main:11.0]
            at oracle.ideimpl.Main.main (Main.java:72) [/C:/Program Files/sqldevelop
    er/ide/lib/ideimpl.jar (from system property PCLMain.createExtensionManagerLoade
    r()), by main:11.0]
            at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) [unknown
    , by unknown]
            at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl
    .java:39) [unknown, by unknown]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcce
    ssorImpl.java:25) [unknown, by unknown]
            at java.lang.reflect.Method.invoke (Method.java:585) [unknown, by unknow
    n]
            at oracle.ide.boot.PCLMain.callMain (PCLMain.java:66) [/C:/Program%20Fil
    es/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@962753
    2]
            at oracle.ide.boot.PCLMain.main (PCLMain.java:58) [/C:/Program%20Files/s
    qldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@9627532]
            at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) [unknown
    , by unknown]
            at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl
    .java:39) [unknown, by unknown]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcce
    ssorImpl.java:25) [unknown, by unknown]
            at java.lang.reflect.Method.invoke (Method.java:585) [unknown, by unknow
    n]
            at oracle.classloader.util.MainClass.invoke (MainClass.java:128) [/C:/Pr
    ogram%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Launcher$AppClassL
    oader@9627532]
            at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain (IdeLauncher.java
    :190) [/C:/Program%20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launch
    er$AppClassLoader@9627532]
            at oracle.ide.boot.IdeLauncher.launchImpl (IdeLauncher.java:90) [/C:/Pro
    gram%20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoa
    der@9627532]
            at oracle.ide.boot.IdeLauncher.launch (IdeLauncher.java:66) [/C:/Program
    %20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@
    9627532]
            at oracle.ide.boot.IdeLauncher.main (IdeLauncher.java:55) [/C:/Program%2
    0Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@96
    27532]
            at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) [unknown
    , by unknown]
            at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl
    .java:39) [unknown, by unknown]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcce
    ssorImpl.java:25) [unknown, by unknown]
            at java.lang.reflect.Method.invoke (Method.java:585) [unknown, by unknow
    n]
            at oracle.ide.boot.Launcher.invokeMain (Launcher.java:729) [/C:/Program%
    20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@9
    627532]
            at oracle.ide.boot.Launcher.launchImpl (Launcher.java:115) [/C:/Program%
    20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@9
    627532]
            at oracle.ide.boot.Launcher.launch (Launcher.java:68) [/C:/Program%20Fil
    es/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@962753
    2]
            at oracle.ide.boot.Launcher.main (Launcher.java:57) [/C:/Program%20Files
    /sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@9627532]I also use a photo Web Site, which is unrelated to my Oracle work but for it's photo uploader also uses Java, and that is running slow, which is why I think the problem is Java based. I would say the problem occurred within the last couple of months but has got much worse in recently weeks. SQL Developer is also slow at times, mainly when I've used another application and it is just in the background.
    Kind regards
    Tim

    Hi there
    Thank you for taking the time to reply. I use GeoRaptor and for what I use it for, I have not come across any errors whilst using it.
    I had no reference to the JDK in my SQL Developer configuration file. I did a search on my system and could not located a copy of JDK, or one in my programs installed control panel, so I installed it again. However I then found a copy in the sqldeveloper folder. However that wasn't referenced in my control panel.
    However having added a reference to the JDK in my SQL Developer configuration file, pointing to C:\Program Files\Java\jdk1.6.0_16, it seems to be taken even longer to load.
    SQL Developer is using 98,608k once loaded and my system has 1.25GB of memory. Whilst loading I was using 1.38GB. For about a year I've had slightly less memory than I sometimes use. The reason for not having 2GB is due to a previous memory failure. However this did not cause a problem for SQL developer until more recently.
    Would it be worth reinstalling GeoRapter?
    Kind regards
    Tim
    Exception initializing 'oracle.ideimpl.searchbar.SearchBarAddin' in extension 'S
    earch Bar': java.lang.NullPointerException
            at oracle.ideimpl.searchbar.ColorProvider.isFusionLAF(ColorProvider.java
    :29)
            at oracle.ideimpl.searchbar.ColorProvider.updateUIManager(ColorProvider.
    java:35)
            at oracle.ideimpl.searchbar.SearchBarAddin.initialize(SearchBarAddin.jav
    a:37)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManage
    rImpl.java:405)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManag
    erImpl.java:214)
            at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(Ad
    dinManagerImpl.java:128)
            at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1804)
            at oracle.ide.IdeCore.startupImpl(IdeCore.java:1481)
            at oracle.ide.Ide.startup(Ide.java:662)
            at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
            at oracle.ideimpl.Main.start(Main.java:110)
            at oracle.ideimpl.Main.main(Main.java:72)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.ide.boot.PCLMain.callMain(PCLMain.java:66)
            at oracle.ide.boot.PCLMain.main(PCLMain.java:58)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
            at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:
    190)
            at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:90)
            at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:66)
            at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:55)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.ide.boot.Launcher.invokeMain(Launcher.java:729)
            at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
            at oracle.ide.boot.Launcher.launch(Launcher.java:68)
            at oracle.ide.boot.Launcher.main(Launcher.java:57)
    Load: C:\Program Files\sqldeveloper\sqldeveloper\bin\jdev\extensions\GeoRaptorLi
    bs\Settings.xml
    java.io.FileNotFoundException: C:\Program Files\sqldeveloper\sqldeveloper\bin\jd
    ev\extensions\GeoRaptorLibs\Settings.xml (The system cannot find the path specif
    ied)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:106)
            at java.io.FileInputStream.<init>(FileInputStream.java:66)
            at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection
    .java:70)
            at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLCon
    nection.java:161)
            at java.net.URL.openStream(URL.java:1010)
            at oracle.xml.parser.v2.XMLReader.openURL(XMLReader.java:2590)
            at oracle.xml.parser.v2.XMLReader.pushXMLReader(XMLReader.java:236)
            at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:208)
            at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:155)
            at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:208)
            at org.GeoRaptor.MainSettings.load(Unknown Source)
            at org.GeoRaptor.PreferenceAddin.initialize(Unknown Source)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManage
    rImpl.java:405)
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManag
    erImpl.java:214)
            at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(Ad
    dinManagerImpl.java:128)
            at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1804)
            at oracle.ide.IdeCore.startupImpl(IdeCore.java:1481)
            at oracle.ide.Ide.startup(Ide.java:662)
            at oracle.ideimpl.DefaultIdeStarter.startIde(DefaultIdeStarter.java:35)
            at oracle.ideimpl.Main.start(Main.java:110)
            at oracle.ideimpl.Main.main(Main.java:72)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.ide.boot.PCLMain.callMain(PCLMain.java:66)
            at oracle.ide.boot.PCLMain.main(PCLMain.java:58)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.classloader.util.MainClass.invoke(MainClass.java:128)
            at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain(IdeLauncher.java:
    190)
            at oracle.ide.boot.IdeLauncher.launchImpl(IdeLauncher.java:90)
            at oracle.ide.boot.IdeLauncher.launch(IdeLauncher.java:66)
            at oracle.ide.boot.IdeLauncher.main(IdeLauncher.java:55)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at oracle.ide.boot.Launcher.invokeMain(Launcher.java:729)
            at oracle.ide.boot.Launcher.launchImpl(Launcher.java:115)
            at oracle.ide.boot.Launcher.launch(Launcher.java:68)
            at oracle.ide.boot.Launcher.main(Launcher.java:57)
    Exception initializing 'org.GeoRaptor.MenuControler' in extension 'GeoRaptor': o
    racle.classloader.util.AnnotatedNoClassDefFoundError:
              Missing class: oracle.jdeveloper.cm.dt.browser.jdbc.TableNode
            Dependent class: org.GeoRaptor.MenuControler
                     Loader: main:11.0
                Code-Source: /C:/Program Files/sqldeveloper/sqldeveloper/extensions/
    org.GeoRaptor.jar
              Configuration: system property C:\Program Files\sqldeveloper\sqldevelo
    per\extensions\org.GeoRaptor.jar
    The missing class is not available from any code-source or loader in the system.
            at oracle.classloader.PolicyClassLoader.handleClassNotFound (PolicyClass
    Loader.java:2176) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by su
    n.misc.Launcher$AppClassLoader@4687246]
            at oracle.classloader.PolicyClassLoader.internalLoadClass (PolicyClassLo
    ader.java:1729) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.
    misc.Launcher$AppClassLoader@4687246]
            at oracle.classloader.PolicyClassLoader.access$000 (PolicyClassLoader.ja
    va:143) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Lau
    ncher$AppClassLoader@4687246]
            at oracle.classloader.PolicyClassLoader$LoadClassAction.run (PolicyClass
    Loader.java:331) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun
    .misc.Launcher$AppClassLoader@4687246]
            at java.security.AccessController.doPrivileged (Native method) [unknown,
    by unknown]
            at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.jav
    a:1688) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Lau
    ncher$AppClassLoader@4687246]
            at oracle.classloader.PolicyClassLoader.loadClass (PolicyClassLoader.jav
    a:1670) [/C:/Program%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Lau
    ncher$AppClassLoader@4687246]
            at java.lang.ClassLoader.loadClassInternal (ClassLoader.java:320) [jre b
    ootstrap, by jre.bootstrap:1.6.0_16]
            at org.GeoRaptor.MenuControler.initialize (Unknown source file) [/C:/Pro
    gram Files/sqldeveloper/sqldeveloper/extensions/org.GeoRaptor.jar (from system p
    roperty C:\Program Files\sqldeveloper\sqldeveloper\extensions\org.GeoRaptor.jar)
    , by main:11.0]
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin (AddinManag
    erImpl.java:405) [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (from syste
    m property PCLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins (AddinMana
    gerImpl.java:214) [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (from syst
    em property PCLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins (A
    ddinManagerImpl.java:128) [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (f
    rom system property PCLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ide.IdeCore.initProductAndUserAddins (IdeCore.java:1804) [/C:/
    Program Files/sqldeveloper/ide/extensions/oracle.ide.jar (from system property P
    CLMain.createExtensionManagerLoader()), by main:11.0]
            at oracle.ide.IdeCore.startupImpl (IdeCore.java:1481) [/C:/Program Files
    /sqldeveloper/ide/extensions/oracle.ide.jar (from system property PCLMain.create
    ExtensionManagerLoader()), by main:11.0]
            at oracle.ide.Ide.startup (Ide.java:662) [/C:/Program Files/sqldeveloper
    /ide/extensions/oracle.ide.jar (from system property PCLMain.createExtensionMana
    gerLoader()), by main:11.0]
            at oracle.ideimpl.DefaultIdeStarter.startIde (DefaultIdeStarter.java:35)
    [/C:/Program Files/sqldeveloper/ide/lib/ideimpl.jar (from system property PCLMa
    in.createExtensionManagerLoader()), by main:11.0]
            at oracle.ideimpl.Main.start (Main.java:110) [/C:/Program Files/sqldevel
    oper/ide/lib/ideimpl.jar (from system property PCLMain.createExtensionManagerLoa
    der()), by main:11.0]
            at oracle.ideimpl.Main.main (Main.java:72) [/C:/Program Files/sqldevelop
    er/ide/lib/ideimpl.jar (from system property PCLMain.createExtensionManagerLoade
    r()), by main:11.0]
            at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) [unknown
    , by unknown]
            at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl
    .java:39) [unknown, by unknown]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcce
    ssorImpl.java:25) [unknown, by unknown]
            at java.lang.reflect.Method.invoke (Method.java:597) [unknown, by unknow
    n]
            at oracle.ide.boot.PCLMain.callMain (PCLMain.java:66) [/C:/Program%20Fil
    es/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@468724
    6]
            at oracle.ide.boot.PCLMain.main (PCLMain.java:58) [/C:/Program%20Files/s
    qldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@4687246]
            at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) [unknown
    , by unknown]
            at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl
    .java:39) [unknown, by unknown]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcce
    ssorImpl.java:25) [unknown, by unknown]
            at java.lang.reflect.Method.invoke (Method.java:597) [unknown, by unknow
    n]
            at oracle.classloader.util.MainClass.invoke (MainClass.java:128) [/C:/Pr
    ogram%20Files/sqldeveloper/j2ee/home/lib/pcl.jar, by sun.misc.Launcher$AppClassL
    oader@4687246]
            at oracle.ide.boot.IdeLauncher.bootClassLoadersAndMain (IdeLauncher.java
    :190) [/C:/Program%20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launch
    er$AppClassLoader@4687246]
            at oracle.ide.boot.IdeLauncher.launchImpl (IdeLauncher.java:90) [/C:/Pro
    gram%20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoa
    der@4687246]
            at oracle.ide.boot.IdeLauncher.launch (IdeLauncher.java:66) [/C:/Program
    %20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@
    4687246]
            at oracle.ide.boot.IdeLauncher.main (IdeLauncher.java:55) [/C:/Program%2
    0Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@46
    87246]
            at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native method) [unknown
    , by unknown]
            at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl
    .java:39) [unknown, by unknown]
            at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcce
    ssorImpl.java:25) [unknown, by unknown]
            at java.lang.reflect.Method.invoke (Method.java:597) [unknown, by unknow
    n]
            at oracle.ide.boot.Launcher.invokeMain (Launcher.java:729) [/C:/Program%
    20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@4
    687246]
            at oracle.ide.boot.Launcher.launchImpl (Launcher.java:115) [/C:/Program%
    20Files/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@4
    687246]
            at oracle.ide.boot.Launcher.launch (Launcher.java:68) [/C:/Program%20Fil
    es/sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@468724
    6]
            at oracle.ide.boot.Launcher.main (Launcher.java:57) [/C:/Program%20Files
    /sqldeveloper/ide/lib/ide-boot.jar, by sun.misc.Launcher$AppClassLoader@4687246]

  • Query runs slower when using variables & faster when using hard coded value

    Hi,
    My query runs slower when i use variables but it runs faster when i use hard coded values. Why it is behaving like this ?
    My query is in cursor definition in a procedure. Procedure runs faster when using hard coded valus and slower when using variables.
    Can anybody help me out there?
    Thanks in advance.

    Hi,
    Thanks for ur reply.
    here is my code with Variables:
    Procedure populateCountryTrafficDetails(pWeekStartDate IN Date , pCountry IN d_geography.country_code%TYPE) is
    startdate date;
    AR_OrgId number(10);
    Cursor cTraffic is
    Select
              l.actual_date, nvl(o.city||o.zipcode,'Undefined') Site,
              g.country_code,d.customer_name, d.customer_number,t.contrno bcn,
              nvl(r.dest_level3,'Undefined'),
              Decode(p.Product_code,'820','821','821','821','801') Product_Code ,
              Decode(p.Product_code,'820','Colt Voice Connect','821','Colt Voice Connect','Colt Voice Line') DProduct,
              sum(f.duration),
              sum(f.debamount_eur)
              from d_calendar_date l,
              d_geography g,
              d_customer d, d_contract t, d_subscriber s,
              d_retail_dest r, d_product p,
              CPS_ORDER_DETAILS o,
              f_retail_revenue f
              where
              l.date_key = f.call_date_key and
              g.geography_key = f.geography_key and
              r.dest_key = f.dest_key and
              p.product_key = f.product_key and
              --c.customer_key = f.customer_key and
              d.customer_key = f.customer_key and
              t.contract_key = f.contract_key and
              s.SUBSCRIBER_KEY = f.SUBSCRIBER_KEY and
              o.org_id(+) = AR_OrgId and
              g.country_code = pCountry and
              l.actual_date >= startdate and
              l.actual_date <= (startdate + 90) and
              o.cli(+) = s.area_subno and
              p.product_code in ('800','801','802','804','820','821')
              group by
              l.actual_date,
              o.city||o.zipcode, g.country_code,d.customer_name, d.customer_number,t.contrno,r.dest_level3, p.product_code;
    Type CountryTabType is Table of country_traffic_details.Country%Type index by BINARY_INTEGER;
    Type CallDateTabType is Table of country_traffic_details.CALL_DATE%Type index by BINARY_INTEGER;
    Type CustomerNameTabType is Table of Country_traffic_details.Customer_name%Type index by BINARY_INTEGER;
    Type CustomerNumberTabType is Table of Country_traffic_details.Customer_number%Type index by BINARY_INTEGER;
    Type BcnTabType is Table of Country_traffic_details.Bcn%Type index by BINARY_INTEGER;
    Type DestinationTypeTabType is Table of Country_traffic_details.DESTINATION_TYPE%Type index by BINARY_INTEGER;
    Type ProductCodeTabType is Table of Country_traffic_details.Product_Code%Type index by BINARY_INTEGER;
    Type ProductTabType is Table of Country_traffic_details.Product%Type index by BINARY_INTEGER;
    Type DurationTabType is Table of Country_traffic_details.Duration%Type index by BINARY_INTEGER;
    Type DebamounteurTabType is Table of Country_traffic_details.DEBAMOUNTEUR%Type index by BINARY_INTEGER;
    Type SiteTabType is Table of Country_traffic_details.Site%Type index by BINARY_INTEGER;
    CountryArr CountryTabType;
    CallDateArr CallDateTabType;
    Customer_NameArr CustomerNameTabType;
    CustomerNumberArr CustomerNumberTabType;
    BCNArr BCNTabType;
    DESTINATION_TYPEArr DESTINATIONTYPETabType;
    PRODUCT_CODEArr PRODUCTCODETabType;
    PRODUCTArr PRODUCTTabType;
    DurationArr DurationTabType;
    DebamounteurArr DebamounteurTabType;
    SiteArr SiteTabType;
    Begin
         startdate := (trunc(pWeekStartDate) + 6) - 90;
         Exe_Pos := 1;
         Execute Immediate 'Truncate table country_traffic_details';
         dropIndexes('country_traffic_details');
         Exe_Pos := 2;
         /* Set org ID's as per AR */
         case (pCountry)
         when 'FR' then AR_OrgId := 81;
         when 'AT' then AR_OrgId := 125;
         when 'CH' then AR_OrgId := 126;
         when 'DE' then AR_OrgId := 127;
         when 'ES' then AR_OrgId := 123;
         when 'IT' then AR_OrgId := 122;
         when 'PT' then AR_OrgId := 124;
         when 'BE' then AR_OrgId := 132;
         when 'IE' then AR_OrgId := 128;
         when 'DK' then AR_OrgId := 133;
         when 'NL' then AR_OrgId := 129;
         when 'SE' then AR_OrgId := 130;
         when 'UK' then AR_OrgId := 131;
         else raise_application_error (-20003, 'No such Country Code Exists.');
         end case;
         Exe_Pos := 3;
    dbms_output.put_line('3: '||to_char(sysdate, 'HH24:MI:SS'));
         populateOrderDetails(AR_OrgId);
    dbms_output.put_line('4: '||to_char(sysdate, 'HH24:MI:SS'));
         Exe_Pos := 4;
         Open cTraffic;
         Loop
         Exe_Pos := 5;
         CallDateArr.delete;
    FETCH cTraffic BULK COLLECT
              INTO CallDateArr, SiteArr, CountryArr, Customer_NameArr,CustomerNumberArr,
              BCNArr,DESTINATION_TYPEArr,PRODUCT_CODEArr, PRODUCTArr, DurationArr, DebamounteurArr LIMIT arraySize;
              EXIT WHEN CallDateArr.first IS NULL;
                   Exe_pos := 6;
                        FORALL i IN 1..callDateArr.last
                        insert into country_traffic_details
                        values(CallDateArr(i), CountryArr(i), Customer_NameArr(i),CustomerNumberArr(i),
                        BCNArr(i),DESTINATION_TYPEArr(i),PRODUCT_CODEArr(i), PRODUCTArr(i), DurationArr(i),
                        DebamounteurArr(i), SiteArr(i));
                        Exe_pos := 7;
    dbms_output.put_line('7: '||to_char(sysdate, 'HH24:MI:SS'));
         EXIT WHEN ctraffic%NOTFOUND;
    END LOOP;
         commit;
    Exe_Pos := 8;
              commit;
    dbms_output.put_line('8: '||to_char(sysdate, 'HH24:MI:SS'));
              lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_CUSTNO ON country_traffic_details (CUSTOMER_NUMBER)';
              execDDl(lSql);
              lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_BCN ON country_traffic_details (BCN)';
              execDDl(lSql);
              lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_PRODCD ON country_traffic_details (PRODUCT_CODE)';
              execDDl(lSql);
              lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_SITE ON country_traffic_details (SITE)';
              execDDl(lSql);
              lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_DESTYP ON country_traffic_details (DESTINATION_TYPE)';
              execDDl(lSql);
              Exe_Pos:= 9;
    dbms_output.put_line('9: '||to_char(sysdate, 'HH24:MI:SS'));
    Exception
         When Others then
         raise_application_error(-20003, 'Error in populateCountryTrafficDetails at Position: '||Exe_Pos||' The Error is '||SQLERRM);
    End populateCountryTrafficDetails;
    In the above procedure if i substitute the values with hard coded values i.e. AR_orgid = 123 & pcountry = 'Austria' then it runs faster.
    Please let me know why it is so ?
    Thanks in advance.

  • What are changes between FP 10.0.42.34 and 10.0.45.2 that could cause AS2 code to run differently?

    Hi, I am trying to debug a large Flash reading literacy application which is written in AS2. Everything works in 10.0.42.34. When our school customers upgrade to 10.0.45.2 they get blocked from proceeding with training.
    The main movie has loaded an application to run a sequence of tutorial movieclips, driven by an xml input.
    The application waits for each background plus movie to load and the plays the movie.
    It then unloads the movie and background and proceeds to the next movie/background.
    I am running the debugger in CS4 in both FP 10.42.34 and FP 10.0.45.2, the two [UnloadSWF] trace outputs happens in both, but the next step is missed. I am delving into the code right now, but I hope that there may be a hint in the changes made.
    I see no errors or security sandbox issues in the trace output.
    Can someone tell me what main changes there are in FP 10.0.45.2 that could cause AS2 code to run differently?
    Currently we are going to tell our customers that they must downgrade Flash Player to keep their kids learning to read.
    Thanks,
    Sue W.

    All these bug reports are probably describing same problem:
    http://bugs.adobe.com/jira/browse/FP-3993
    http://bugs.adobe.com/jira/browse/FP-4137
    http://bugs.adobe.com/jira/browse/FP-4121
    Not yet any word from Adobe that this is considered a bug worth fixing.
    I would also like to add that the bug failing to load or run older AS1/2 swfs is present in both latest release version FP 10.0.45.2 and FP 10.1.51.95 (beta 3). So it does not look like it has been fixed with 10.1

  • Query Is Running Slow

    Hi all,
    I am runnig the query first time but it is taking very much time to run query . are there any parameter which we need to set from BIW when we run the query first time ?
    when i try to dril down any char. or when i try to move any free characteristic to rows it is taking very much time.
    please tell me the steps to improve the performance.
    Regards,
    Komik Shah

    Hi,
    This info may be helpful.
    General tips
    Using aggregates and compression.
    Using  less and complex cell definitions if possible.
    1. Avoid using too many nav. attr
    2. Avoid RKF and CKF
    3. Many chars in row.
    By using T-codes ST03 or ST03N
    Go to transaction ST03 > switch to expert mode > from left side menu > and there in system load history and distribution for a particual day > check query execution time.
    /people/andreas.vogel/blog/2007/04/08/statistical-records-part-4-how-to-read-st03n-datasets-from-db-in-nw2004
    /people/andreas.vogel/blog/2007/03/16/how-to-read-st03n-datasets-from-db
    Try table rsddstats to get the statistics
    Using cache memoery will decrease the loading time of the report.
    Run reporting agent at night and sending results to email.This will ensure use of OLAP cache. So later report execution will retrieve the result faster from the OLAP cache.
    4. Go to SE38 > Run the program SAP_INFOCUBE_DESIGNS
    It will shown dimension Vs Fact tables Size in percent.If you mean speed of queries on a cube as performance metric of cube,measure query runtime.
    3. To check the performance of the aggregates,see the columns valuation and usage in aggregates.
    Open the Aggregates...and observe VALUATION and USAGE columns.
    "---" sign is the valuation of the aggregate. You can say -3 is the valuation of the aggregate design and usage. ++ means that its compression is good and access is also more (in effect, performance is good). If you check its compression ratio, it must be good. -- means the compression ratio is not so good and access is also not so good (performance is not so good).The more is the positives...more is useful the aggregate and more it satisfies the number of queries. The greater the number of minus signs, the worse the evaluation of the aggregate. The larger the number of plus signs, the better the evaluation of the aggregate.
    if "-----" then it means it just an overhead. Aggregate can potentially be deleted and "+++++" means Aggregate is potentially very useful.
    Refer.
    http://help.sap.com/saphelp_nw70/helpdata/en/b8/23813b310c4a0ee10000000a114084/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/60/f0fb411e255f24e10000000a1550b0/frameset.htm
    Note 356732 - Performance Tuning for Queries with Aggregates
    5. Run your query in RSRT and run the query in the debug mode. Select "Display Aggregates Found" and "Do not use cache" in the debug mode. This will tell you if it hit any aggregates while running. If it does not show any aggregates, you might want to redesign your aggregates for the query.
    Also your query performance can depend upon criteria and since you have given selection only on one infoprovider...just check if you are selecting huge amount of data in the report
    Check for the query read mode in RSRT.(whether its A,X or H)..advisable read mode is X.
    Generate Report in RSRT  
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cccad390-0201-0010-5093-fd9ec8157802
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4c0ab590-0201-0010-bd9a-8332d8b4f09c
    Achieving BI Query Performance Building Business Intelligence
    http://www.dmreview.com/issues/20051001/1038109-1.html
    Performance Tuning with the OLAP Cache
    http://www.sapadvisors.com/resources/Howto...PerformanceTuningwiththeOLAPCache$28pdf$29.pdf
    Business Intelligence Journal Improving Query Performance in Data Warehouses
    http://www.tdwi.org/Publications/BIJournal/display.aspx?ID=7891
    Achieving BI Query Performance Building Business Intelligence
    http://www.dmreview.com/issues/20051001/1038109-1.html
    Hope this helps.
    Thanks,
    JituK

  • Code to run a query in SQL from Access with pass through query

    I have a query in SQL Server 2008:
     [Auto Null Up Date].sql. I want to run this query from Access 2007 using a Pass Through Query. What is the command/code to run this query from Access? I have used Pass Through Queries but never in this capacity so I am somewhat lost. I have
    already established the OBDC link and tested.

    Naomi,
    Here are a few lines of the SQLCMD code in the [Auto Null Update].sql query:
    USE [Archive Master]
    Go
    :r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null BackPress 2 update.sql"
    GO
    :r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null CHWR 3 update.sql"
    GO
    :r "\\10.200.1.60\c$\Users\bkreft\My Documents\SQL Server Management Studio\Projects\Null CHWR 4 update.sql"
    When this code is pasted into a Create Procedure, (the USE [Archive Master] is not used), the procedure will run, but once saved here is what is left of the procedure once I attempt to modify:
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    -- =============================================
    -- Author:                         
    <Author,,Name>
    -- Create date: <Create Date,,>
    -- Description:              
    <Description,,>
    -- =============================================
    Create PROCEDURE [dbo].[NullTest2]
    AS

  • Function returning query takes more time to run in Apex4.0

    Hi All,
    I created a report using function returning query. The function returns query based the parameters which returns dynamic columns. When I run the query in sql developer the query generates and returns the result in 3mins. But in apex it takes maximum of 35mins to return.
    The query will return around 10000 rows.
    Is it a performance issue in the query or in Apex?can anyone please help
    Regards
    Raj

    RajEndiran wrote:
    Hi Roel,
    Thanks much for your suggestion. I run in TOAD and got the result as
    Row 1 of 500 fetched so far in 3.31 minutes which means it queried for 500 records alone ? is that not the actual time taken to run the fulll query?That reflects the time to return the first 500 records...
    Please suggest.With all the best will in the world, if I was your user and I had to wait 3 minutes for the page to refresh, I'd steadily lose the will to live!
    As this is primarily an SQL tuning question, have a look at this message in the FAQ thread in the {forum:id=75} forum:
    {message:id=9360003}
    That should give you some pointers on the right approach.

Maybe you are looking for

  • Sales /Outgoing Excise Invoice number Range for J1IIN

    Dear Gurus, We are doing STO from excisable plant 1000 to plant 1100. We created a PO with document type UB ( STO) and created delivery with reference to PO and created billing document ( delivery challan). Against billing document number we created

  • Transfer files from older mac to new laptop

    Is the firewire on my powermac g5 compatible with a thunderbolt port on a new macbook air to transfer files?

  • Can anyone Decode this Kernel Panic for me

    Interval Since Last Panic Report:  275363 sec Panics Since Last Report:          3 Anonymous UUID:                    07149256-F945-4FD4-8955-3CB854D647FD Thu Aug 15 08:39:30 2013 panic(cpu 3 caller 0xffffff80004e0e54): "hfs_swap_HFSPlusBTInternalNod

  • Hyperion Explorer 8.3 querying multiple tables that contain a specific item

    I have 3 annual tables that contain data for 3 different years.  Each table has a sale amount, item sold, and customer ID.  I want to pull a specific customer ID from all 3 tables at once.  Is there a way to achieve this? Thanks! Johnny

  • How to Post 1 G/L Account in the Billing doc

    Dear All I have one scenario, I have one statistic price condition for example PR00 = Rupees 1000 & On this Condition  new price will calculate ( Created ZPR0)  example 30% and it will get posted in GL account example ( 40000) and account key is ERL