SQL query running slow
Hi
i have a query when i run it for the first time it returs result in 30 mins after few mins (say 2 m ins) if i run the same query it fetches result in 3 mins) can any one hel me to tune the issu
when i saw AWR report i showed too many disk I/o and sql messege to client wait events
DB: Oracle 10g
O/S: Unix
DB cahce size :1GB
help Pleae
PLAN_TABLE_OUTPUT
Plan hash value: 3961783764
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 2 | 390 | 361 (2)| 00:00:05 |
| 1 | SORT GROUP BY | | 2 | 390 | 361 (2)| 00:00:05 |
| 2 | VIEW | | 2 | 390 | 360 (1)| 00:00:05 |
| 3 | UNION-ALL | | | | | |
| 4 | NESTED LOOPS | | 1 | 297 | 344 (1)| 00:00:05 |
|* 5 | HASH JOIN | | 1 | 231 | 343 (1)| 00:00:05 |
| 6 | TABLE ACCESS FULL | TRAN_VH_INV_SS_PART | 3634 | 72680 | 213 (0)| 00:00:03 |
|* 7 | HASH JOIN | | 1799 | 370K| 129 (2)| 00:00:02 |
| 8 | TABLE ACCESS FULL | MAST_MF_NAME | 4 | 84 | 5 (0)| 00:00:01 |
|* 9 | HASH JOIN | | 1799 | 333K| 123 (1)| 00:00:02 |
|* 10 | HASH JOIN | | 1552 | 209K| 120 (1)| 00:00:02 |
|* 11 | TABLE ACCESS FULL | HIST_VH_INV_SS_PART | 1188 | 62964 | 115 (0)| 00:00:02 |
| 12 | NESTED LOOPS | | 24566 | 2039K| 4 (0)| 00:00:01 |
| 13 | TABLE ACCESS BY INDEX ROWID| MAST_YM_YARD | 1 | 29 | 1 (0)| 00:00:01 |
|* 14 | INDEX UNIQUE SCAN | MAST_YM_YARD_01 | 1 | | 0 (0)| 00:00:01 |
| 15 | TABLE ACCESS BY INDEX ROWID| TRAN_VH_INV_SUB_SERVICE | 24566 | 1343K| 3 (0)| 00:00:01 |
|* 16 | INDEX RANGE SCAN | TRAN_VH_INV_SUB_SERVICE_02 | 1 | | 2 (0)| 00:00:01 |
| 17 | TABLE ACCESS BY INDEX ROWID | TRAN_VH_INV | 3863 | 196K| 3 (0)| 00:00:01 |
|* 18 | INDEX RANGE SCAN | TRAN_VH_INV_02 | 1 | | 2 (0)| 00:00:01 |
|* 19 | TABLE ACCESS BY INDEX ROWID | TRAN_VH_INV_WORKSHEET | 1 | 66 | 1 (0)| 00:00:01 |
|* 20 | INDEX UNIQUE SCAN | TRAN_VH_INV_WORKSHEET_01 | 1 | | 0 (0)| 00:00:01 |
| 21 | NESTED LOOPS | | 1 | 297 | 16 (0)| 00:00:01 |
| 22 | NESTED LOOPS | | 1 | 277 | 14 (0)| 00:00:01 |
| 23 | NESTED LOOPS | | 1 | 224 | 10 (0)| 00:00:01 |
| 24 | NESTED LOOPS | | 1 | 203 | 9 (0)| 00:00:01 |
| 25 | NESTED LOOPS | | 1 | 151 | 7 (0)| 00:00:01 |
| 26 | NESTED LOOPS | | 1 | 85 | 5 (0)| 00:00:01 |
| 27 | TABLE ACCESS BY INDEX ROWID| MAST_YM_YARD | 1 | 29 | 1 (0)| 00:00:01 |
|* 28 | INDEX UNIQUE SCAN | MAST_YM_YARD_01 | 1 | | 0 (0)| 00:00:01 |
| 29 | TABLE ACCESS BY INDEX ROWID| TRAN_VH_SHP_SUB_SERVICE | 1 | 56 | 4 (0)| 00:00:01 |
|* 30 | INDEX RANGE SCAN | TRAN_VH_SHP_SUB_SERVICE_02 | 1 | | 3 (0)| 00:00:01 |
|* 31 | TABLE ACCESS BY INDEX ROWID | TRAN_VH_SHP_WORKSHEET | 1 | 66 | 2 (0)| 00:00:01 |
|* 32 | INDEX UNIQUE SCAN | TRAN_VH_SHP_WORKSHEET_01 | 1 | | 1 (0)| 00:00:01 |
|* 33 | TABLE ACCESS BY INDEX ROWID | TRAN_VH_SHP | 1 | 52 | 2 (0)| 00:00:01 |
|* 34 | INDEX UNIQUE SCAN | TRAN_VH_SHP_01 | 1 | | 1 (0)| 00:00:01 |
| 35 | TABLE ACCESS BY INDEX ROWID | MAST_MF_NAME | 1 | 21 | 1 (0)| 00:00:01 |
|* 36 | INDEX UNIQUE SCAN | MAST_MF_NAME_01 | 1 | | 0 (0)| 00:00:01 |
|* 37 | TABLE ACCESS BY INDEX ROWID | HIST_VH_SHP_SS_PART | 1 | 53 | 4 (0)| 00:00:01 |
|* 38 | INDEX RANGE SCAN | HIST_VH_SHP_SS_PART_01 | 5 | | 2 (0)| 00:00:01 |
|* 39 | TABLE ACCESS BY INDEX ROWID | TRAN_VH_SHP_SS_PART | 1 | 20 | 2 (0)| 00:00:01 |
|* 40 | INDEX UNIQUE SCAN | TRAN_VH_SHP_SS_PART_01 | 1 | | 1 (0)| 00:00:01 |
Predicate Information (identified by operation id):
5 - access("C"."SUB_SERVICE_SEQ_NUM"="H"."SUB_SERVICE_SEQ_NUM" AND
"C"."PDI_PART_ORDER_NUM"="H"."PDI_PART_ORDER_NUM" AND
"C"."SUB_SERVICE_PART_SEQ_NUM"="H"."SUB_SERVICE_PART_SEQ_NUM")
7 - access("D"."MFG_CODE"="E"."MFG_CODE")
9 - access("D"."YARD_CODE"="A"."YARD_CODE" AND "D"."VIN_NUM"="B"."VIN_NUM" AND
"B"."TERMINAL_SEQ_NO"="D"."TERMINAL_SEQ_NO" AND "B"."YARD_CODE"="D"."YARD_CODE")
10 - access("B"."SUB_SERVICE_SEQ_NUM"="C"."SUB_SERVICE_SEQ_NUM")
11 - filter("C"."PART_FRANCHISE">=U' ' AND TRUNC(INTERNAL_FUNCTION("C"."ACTUAL_ISSUE_DATE_TIME"))<>TO_DAT
E(' 0001-01-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
TRUNC(INTERNAL_FUNCTION("C"."ISSUE_DATE_TIME"))<=TO_DATE(' 2010-06-30 00:00:00', 'syyyy-mm-dd hh24:mi:ss')
AND "C"."PART_FRANCHISE"<=U'~')
14 - access("A"."TERMINAL_SEQ_NO"=1 AND "A"."YARD_CODE"=U'1')
16 - access("B"."TERMINAL_SEQ_NO"=1 AND "B"."YARD_CODE"=U'1')
18 - access("D"."TERMINAL_SEQ_NO"=1 AND "D"."YARD_CODE"=U'1')
19 - filter("G"."YARD_CODE"=U'1' AND TRUNC(INTERNAL_FUNCTION("G"."START_DATE_TIME"))<>TO_DATE('
0001-01-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "G"."TERMINAL_SEQ_NO"=1 AND
(TRUNC(INTERNAL_FUNCTION("G"."START_DATE_TIME"))>=TO_DATE(' 2010-06-01 00:00:00', 'syyyy-mm-dd
hh24:mi:ss') AND TRUNC(INTERNAL_FUNCTION("G"."START_DATE_TIME"))<=TO_DATE(' 2010-06-30 00:00:00',
'syyyy-mm-dd hh24:mi:ss') OR TRUNC(INTERNAL_FUNCTION("G"."START_DATE_TIME"))<TO_DATE(' 2010-06-01
00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND (TRUNC(INTERNAL_FUNCTION("G"."END_DATE_TIME"))>=TO_DATE('
2010-06-30 00:00:00', 'syyyy-mm-dd hh24:mi:ss') OR TRUNC(INTERNAL_FUNCTION("G"."END_DATE_TIME"))>=TO_DATE(
2010-06-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND TRUNC(INTERNAL_FUNCTION("G"."END_DATE_TIME"))<=TO_DAT
E
(' 2010-06-30 00:00:00', 'syyyy-mm-dd hh24:mi:ss') OR
TRUNC(INTERNAL_FUNCTION("G"."END_DATE_TIME"))=TO_DATE(' 0001-01-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss'))
OR TRUNC(INTERNAL_FUNCTION("C"."ISSUE_DATE_TIME"))>=TO_DATE(' 2010-06-01 00:00:00', 'syyyy-mm-dd
hh24:mi:ss') AND TRUNC(INTERNAL_FUNCTION("C"."ISSUE_DATE_TIME"))<=TO_DATE(' 2010-06-30 00:00:00',
'syyyy-mm-dd hh24:mi:ss')) AND "G"."VIN_NUM"="D"."VIN_NUM")
20 - access("G"."WORKSHEET_NUM"="B"."WORKSHEET_NUM")
28 - access("A"."TERMINAL_SEQ_NO"=1 AND "A"."YARD_CODE"=U'1')
30 - access("B"."TERMINAL_SEQ_NO"=1 AND "B"."YARD_CODE"=U'1')
31 - filter("G"."YARD_CODE"=U'1' AND TRUNC(INTERNAL_FUNCTION("G"."START_DATE_TIME"))<>TO_DATE('
0001-01-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND "G"."TERMINAL_SEQ_NO"=1)
32 - access("G"."WORKSHEET_NUM"="B"."WORKSHEET_NUM")
33 - filter("D"."YARD_CODE"=U'1' AND "D"."TERMINAL_SEQ_NO"=1)
34 - access("G"."VIN_NUM"="D"."VIN_NUM")
filter("D"."VIN_NUM"="B"."VIN_NUM")
36 - access("D"."MFG_CODE"="E"."MFG_CODE")
37 - filter("C"."PART_FRANCHISE">=U' ' AND TRUNC(INTERNAL_FUNCTION("C"."ACTUAL_ISSUE_DATE_TIME"))<>TO_DAT
E(' 0001-01-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
TRUNC(INTERNAL_FUNCTION("C"."ISSUE_DATE_TIME"))<=TO_DATE(' 2010-06-30 00:00:00', 'syyyy-mm-dd hh24:mi:ss')
AND "C"."PART_FRANCHISE"<=U'~' AND (TRUNC(INTERNAL_FUNCTION("G"."START_DATE_TIME"))>=TO_DATE(' 2010-06-01
00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND TRUNC(INTERNAL_FUNCTION("G"."START_DATE_TIME"))<=TO_DATE('
2010-06-30 00:00:00', 'syyyy-mm-dd hh24:mi:ss') OR TRUNC(INTERNAL_FUNCTION("G"."START_DATE_TIME"))<TO_DATE
' 2010-06-01 00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND
(TRUNC(INTERNAL_FUNCTION("G"."END_DATE_TIME"))>=TO_DATE(' 2010-06-30 00:00:00', 'syyyy-mm-dd hh24:mi:ss')
OR TRUNC(INTERNAL_FUNCTION("G"."END_DATE_TIME"))>=TO_DATE(' 2010-06-01 00:00:00', 'syyyy-mm-dd
hh24:mi:ss') AND TRUNC(INTERNAL_FUNCTION("G"."END_DATE_TIME"))<=TO_DATE(' 2010-06-30 00:00:00',
'syyyy-mm-dd hh24:mi:ss') OR TRUNC(INTERNAL_FUNCTION("G"."END_DATE_TIME"))=TO_DATE(' 0001-01-01 00:00:00',
'syyyy-mm-dd hh24:mi:ss')) OR TRUNC(INTERNAL_FUNCTION("C"."ISSUE_DATE_TIME"))>=TO_DATE(' 2010-06-01
00:00:00', 'syyyy-mm-dd hh24:mi:ss') AND TRUNC(INTERNAL_FUNCTION("C"."ISSUE_DATE_TIME"))<=TO_DATE('
2010-06-30 00:00:00', 'syyyy-mm-dd hh24:mi:ss')))
38 - access("B"."SUB_SERVICE_SEQ_NUM"="C"."SUB_SERVICE_SEQ_NUM")
39 - filter("C"."PDI_PART_ORDER_NUM"="H"."PDI_PART_ORDER_NUM")
40 - access("C"."SUB_SERVICE_SEQ_NUM"="H"."SUB_SERVICE_SEQ_NUM" AND
PLAN_TABLE_OUTPUT
"C"."SUB_SERVICE_PART_SEQ_NUM"="H"."SUB_SERVICE_PART_SEQ_NUM")
Note
- SQL profile "SYS_SQLPROF_014aab7522964001" used for this statementEdited by: user629451 on Sep 22, 2010 12:23 AM
Edited by: user629451 on Sep 22, 2010 12:25 AM
Similar Messages
-
Sql query runs slower from the application
Hi,
We are using oracle 9ias on AIX box.The jdk version used: 1.3.1 . From the j2ee application when we perfom a search, the sql query takes for ever to return the results. I know that we are waiting on the database because I can see the query working when I look at TOAD.But if i run the same query on the database server itself, it returns the results in less than a sec. Could you guys throw some light on how we could troubleshoot this problem. Thanks.When the results have to travel over the network, it is slow, and when they don't, it is fast.
That is what you are saying, correct?
So your approach should be to not bring so much data over the network. Don't select columns you don't need, and don't select rows you don't need. -
Help on SQL Query Running slow -
Explain plan -
Explain plan for select is here:
Execution Plan
| Id | Operation | Name | Rows |
Bytes | Cost (%CPU)|
| 0 | SELECT STATEMENT | | 4589K|
5497M| 352K (1)|
| 1 | NESTED LOOPS OUTER | | 4589K|
5497M| 352K (1)|
| 2 | NESTED LOOPS OUTER | | 4589K|
5409M| 214K (1)|
| 3 | NESTED LOOPS | | 4589K|
5322M| 168K (1)|
| 4 | TABLE ACCESS FULL | SERVICE_REQUEST | 4634K|
1423M| 75254 (2)|
| 5 | TABLE ACCESS BY INDEX ROWID| S_SRV_REQ | 1 |
894 | 1 (0)|
|* 6 | INDEX UNIQUE SCAN | S_SRV_REQ_P1 | 1 |
| 1 (0)|
| 7 | TABLE ACCESS BY INDEX ROWID | S_SRV_REGN | 1 |
20 | 1 (0)|
|* 8 | INDEX UNIQUE SCAN | S_SRV_REGN_P1 | 1 |
| 1 (0)|
| 9 | TABLE ACCESS BY INDEX ROWID | S_SRV_REQ_X | 1 |
20 | 1 (0)|
|* 10 | INDEX RANGE SCAN | S_SRV_REQ_X_U1 | 1 |
| 1 (0)|
Predicate Information (identified by operation id):
6 - access("S"."ROW_ID"="SR"."SERVICE_REQUEST_ROW_ID")
8 - access("S"."SRV_REGN_ID"="R"."ROW_ID"(+))
10 - access("SRX"."PAR_ROW_ID"(+)="S"."ROW_ID")
SQL> set autotrace off
SQL> select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Solaris: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
SQL> show parameter opt
NAME TYPE VALUE
filesystemio_options string asynch
object_cache_optimal_size integer 102400
optimizer_dynamic_sampling integer 1
optimizer_features_enable string 10.2.0.4
optimizer_index_caching integer 0
optimizer_index_cost_adj integer 1
optimizer_mode string ALL_ROWS
optimizer_secure_view_merging boolean TRUE
plsql_optimize_level integer 2Thanks for the information. As the query is taking huge time to execute I am not able to get the trace of the query. Please suggest for any performance improvements based on the available explain plan details.
Query -
SELECT /*+ FIRST_ROWS */
s.row_id service_request_row_id,
s.sr_num service_req_id,
s.prdint_id product_id,
s.x_comp_prd_id component_id,
s.cst_ou_id account_id,
s.cst_con_id contact_id,
s.par_sr_id parent_service_request_row_id,
s.agree_id entitlement_id,
s.asset_id asset_id,
s.x_locality locality,
s.resolution_cd problem_classification,
s.x_res_text resolution,
s.post_mortem_rvw_by front_line_owner_id,
s.owner_emp_id resolution_owner_id,
s.bu_id resolution_group_id,
s.owner_ou_id front_line_workgroup_id,
s.created_by created_by_id,
sr.created_by_workgroup created_by_workgroup,
s.target_con_id secondary_contact_id,
s.created time_opened,
s.x_srvc_restored time_service_restored,
s.act_close_dt time_closed,
s.last_upd last_updated,
s.x_last_eservice_upd last_eservice_update,
s.x_sr_pref_comms_chnl preferred_comms_channel,
s.sr_area TYPE,
s.sr_sub_area sub_type,
s.sr_stat_id status,
s.sr_sub_stat_id sub_status,
s.sr_title abstract,
s.desc_text description,
s.exp_close_dt response_time,
s.x_likely_resolution_time likely_resolution_time,
s.x_proactive proactive_type,
s.x_market_sector market_sector,
s.x_light_sr light_sr,
s.x_esrvc_flg eservice,
s.sr_sev_cd severity,
s.x_urgency_copy priority,
s.x_impact impact,
s.x_sr_category CATEGORY,
s.x_generic_identifier generic_id,
sr.interface_name interface_name,
s.x_referral_target referral_target,
s.rtng_dlr_id referral_account_id,
s.x_data_country data_country,
s.x_data_exchange data_exchange,
s.x_dc_loc data_centre_location,
s.x_data_type data_type,
s.x_data_source data_source,
s.x_db_queried database_queried,
s.x_data_item data_item,
s.x_sr_class_type classification_type,
s.x_sr_class_sub_type classification_sub_type,
s.x_resolver_grp ds_resolver_group,
s.x_sys_subsys system_sub_system,
s.x_assembly assembly_sub_assembly,
s.x_prob_start_time problem_start_time,
s.x_prob_stop_time problem_stop_time,
s.x_del_infrastructure delivery_infrastructure,
s.x_network_srvc network_service,
s.x_telco_name telco_name,
s.x_circuit_type circuit_type,
s.x_extra_telco_info additional_circuit_telco_info,
s.x_security_type security_type,
s.resolution_cd resolution_code,
s.x_secondary_cntct secondary_contact,
s.sr_os operating_system,
s.ou_addr_id service_address_id,
s.x_external_srvc external_service,
s.x_system ops_ref_system,
s.x_sub_system ops_ref_sub_system,
s.x_symptom symptom,
s.x_asset_subcomponent asset_subcomponent,
s.x_solution_flg save_solution,
s.x_trgt_rstrd_time target_restoration_time,
s.x_second_level second_level,
r.NAME service_region,
s.x_spec_instrs special_instructions,
s.x_ext_ticket_refno external_ticket_ref_no,
sr.original_priority original_priority,
sr.original_severity original_severity,
sr.originating_comm_type originating_comm_type,
sr.fline_owner_timezone_offset fline_owner_timezone_offset,
sr.res_owner_timezone_offset res_owner_timezone_offset,
sr.fixed_by_workgroup fixed_by_workgroup ,
sr.fixed_by_owner_id fixed_by_owner_id,
sr.resolved_by_workgroup resolved_by_workgroup,
sr.channel channel,
s.x_orig_commit time_of_1st_entitled_response,
sr.time_of_1st_assignment time_of_1st_assignment,
sr.time_of_1st_call_back time_of_1st_call_back,
sr.time_of_resolution time_of_resolution,
sr.time_of_iface_assignment time_of_iface_assignment,
sr.time_to_1st_entitled_resp_24x7 time_to_1st_entitled_resp_24x7 ,
sr.time_to_1st_assignment_24x7 time_to_1st_assignment_24x7 ,
sr.time_to_1st_assign_24x7_excl time_to_1st_assign_24x7_excl,
sr.TIME_TO_1ST_INFOACT_CONTACT TIME_TO_1ST_INFOACT_CONTACT,
sr.TIME_TO_1ST_ENHAACT_CONTACT TIME_TO_1ST_ENHAACT_CONTACT,
sr.time_to_1st_call_back_24x7 time_to_1st_call_back_24x7 ,
sr.time_to_1st_call_bck_24x7_excl time_to_1st_call_bck_24x7_excl,
sr.time_to_service_rest_24x7 time_to_service_rest_24x7 ,
sr.time_to_service_rest_24x7_excl time_to_service_rest_24x7_excl ,
sr.time_to_serv_rest_24x7_excl1 time_to_serv_rest_24x7_excl1,
sr.time_to_serv_rest_24x7_excl2 time_to_serv_rest_24x7_excl2,
sr.time_to_resolution_24x7 time_to_resolution_24x7 ,
sr.time_to_closure_24x7 time_to_closure_24x7 ,
sr.time_to_closure_24x7_excl time_to_closure_24x7_excl,
sr.time_to_iface_assignment_24x7 time_to_iface_assignment_24x7,
sr.time_to_1st_entitled_resp_24x5 time_to_1st_entitled_resp_24x5 ,
sr.time_to_1st_assignment_24x5 time_to_1st_assignment_24x5 ,
sr.time_to_1st_call_back_24x5 time_to_1st_call_back_24x5 ,
sr.time_to_service_rest_24x5 time_to_service_rest_24x5 ,
sr.time_to_resolution_24x5 time_to_resolution_24x5 ,
sr.time_to_closure_24x5 time_to_closure_24x5 ,
sr.rsh_duration_type rsh_duration_type ,
sr.time_to_1st_entitled_resp_rsh time_to_1st_entitled_resp_rsh ,
sr.time_to_1st_assignment_rsh time_to_1st_assignment_rsh ,
sr.time_to_1st_call_back_rsh time_to_1st_call_back_rsh ,
sr.time_to_service_rest_rsh time_to_service_rest_rsh ,
sr.time_to_resolution_rsh time_to_resolution_rsh ,
sr.time_to_closure_rsh time_to_closure_rsh ,
sr.resolved_within_same_day resolved_within_same_day,
sr.resolved_in_one_go resolved_in_one_go,
sr.resolved_within_crmc resolved_within_crmc,
sr.resolved_with_site_visit resolved_with_site_visit,
sr.involved_field_services involved_field_services,
sr.involved_data_centre involved_data_centre,
sr.involved_rdh involved_rdh,
sr.involved_account_team involved_account_team,
sr.latest_parked_status latest_parked_status,
sr.num_front_line_owner_changes num_front_line_owner_changes,
sr.fs_time_of_1st_fs_activity,
sr.fs_time_of_1st_dispatch,
sr.fs_time_of_1st_fs_response,
sr.fs_time_of_flo_reassign,
sr.fs_time_to_1st_fs_activity_rsh,
sr.fs_time_to_1st_dispatch_rsh,
sr.fs_time_to_1st_fs_response_rsh,
sr.fs_time_to_flo_reassign_rsh,
sr.number_activities,
sr.number_open_activities,
s.x_prd_version product_version,
s.x_prd_srvc_info product_service_details,
s.x_urgency notify_level,
srx.attrib_47 concat_sr_attrib
FROM crmrep_rep.crm_s_srv_regn r, crmrep_rep.crm_s_srv_req s, crmrep_rep.SERVICE_REQUEST sr ,crmrep_rep.CRM_S_SRV_REQ_X srx
WHERE
s.row_id = sr.service_request_row_id
and s.srv_regn_id = r.row_id(+)
AND srx.par_row_id(+) = s.row_id;
Explain Plan
The script for view creation is attached.
Explain plan for select is here:
Execution Plan
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)|
| 0 | SELECT STATEMENT | | 4589K| 5497M| 352K (1)|
| 1 | NESTED LOOPS OUTER | | 4589K| 5497M| 352K (1)|
| 2 | NESTED LOOPS OUTER | | 4589K| 5409M| 214K (1)|
| 3 | NESTED LOOPS | | 4589K| 5322M| 168K (1)|
| 4 | TABLE ACCESS FULL | SERVICE_REQUEST | 4634K| 1423M| 75254 (2)|
| 5 | TABLE ACCESS BY INDEX ROWID| S_SRV_REQ | 1 | 894 | 1 (0)|
|* 6 | INDEX UNIQUE SCAN | S_SRV_REQ_P1 | 1 | | 1 (0)|
| 7 | TABLE ACCESS BY INDEX ROWID | S_SRV_REGN | 1 | 20 | 1 (0)|
|* 8 | INDEX UNIQUE SCAN | S_SRV_REGN_P1 | 1 | | 1 (0)|
| 9 | TABLE ACCESS BY INDEX ROWID | S_SRV_REQ_X | 1 | 20 | 1 (0)|
|* 10 | INDEX RANGE SCAN | S_SRV_REQ_X_U1 | 1 | | 1 (0)|
Predicate Information (identified by operation id):
6 - access("S"."ROW_ID"="SR"."SERVICE_REQUEST_ROW_ID")
8 - access("S"."SRV_REGN_ID"="R"."ROW_ID"(+))
10 - access("SRX"."PAR_ROW_ID"(+)="S"."ROW_ID")
Note
- 'PLAN_TABLE' is old version
Version Information
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE 10.2.0.4.0 Production
TNS for Solaris: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
Optimizer parameters
filesystemio_options string asynch
object_cache_optimal_size integer 102400
optimizer_dynamic_sampling integer 1
optimizer_features_enable string 10.2.0.4
optimizer_index_caching integer 0
optimizer_index_cost_adj integer 1
optimizer_mode string ALL_ROWS
optimizer_secure_view_merging boolean TRUE
plsql_optimize_level integer 2
Cursor values
NAME TYPE VALUE
cursor_sharing string EXACT
cursor_space_for_time boolean FALSE
open_cursors integer 1500
session_cached_cursors integer 200
Block Details
db_block_buffers integer 0
db_block_checking string FALSE
db_block_checksum string TRUE
db_block_size integer 8192
db_file_multiblock_read_count integer 8
Thanks in advance. -
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. -
Oracle Apex - when I open a page the sql query runs
What do I need to change to stop the sql query running when a page is opened in Apex
the page accepts a value to search a table for relevant data. I have set a default value
every time I open the page it runs the sql query using the default valueDoes it need a default value? Why I am asking is, you could add a conditional display to your report region that would not show the report until the item has a value entered by the user..
Thank you,
Tony Miller
LuvMuffin Software
Salt Lake City, UT -
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. -
Sql query extremely slow in the new linux environment , memory issues?
We just migrated to a new dev environment in Linux REDHAT5, and now the query is very slow, and I used the TOAD to run the query, it took like 700 msecond to finish, however from any server connection, the sql query takes hours to finish.
I checked toad monitor, it said need to increase db_buffer_cache and shared pool too small.
Also three red alert from toad is:
1. Library Cache get hit ratio: Dynamic or unsharable sql
2. Chained fetch ratio: PCT free too low for a table
3. parse to execute ratio: HIgh parse to execute ratio.
App team said it ran real quick in the old AIX system, however I ran it in old system, and monitored in the toad, it gave me all same 5 red alerts in old system, and it did provide query results a lot quicker though.
Here is the parameters in the old system (11gr1 on AIX):
SQL> show parameter target
NAME TYPE VALUE
archive_lag_target integer 0
db_flashback_retention_target integer 1440
fast_start_io_target integer 0
fast_start_mttr_target integer 0
memory_max_target big integer 0
memory_target big integer 0
pga_aggregate_target big integer 278928K
sga_target big integer 0
SQL> show parameter shared
NAME TYPE VALUE
hi_shared_memory_address integer 0
max_shared_servers integer
shared_memory_address integer 0
shared_pool_reserved_size big integer 31876710
shared_pool_size big integer 608M
shared_server_sessions integer
shared_servers integer 0
SQL> show parameter db_buffer
SQL> show parameter buffer
NAME TYPE VALUE
buffer_pool_keep string
buffer_pool_recycle string
db_block_buffers integer 0
log_buffer integer 2048000
use_indirect_data_buffers boolean FALSE
SQL>
In new 11gr2 Linux REDHAT parameter:
NAME TYPE VALUE
archive_lag_target integer 0
db_flashback_retention_target integer 1440
fast_start_io_target integer 0
fast_start_mttr_target integer 0
memory_max_target big integer 2512M
memory_target big integer 2512M
parallel_servers_target integer 192
pga_aggregate_target big integer 0
sga_target big integer 1648M
SQL> show parameter shared
NAME TYPE VALUE
hi_shared_memory_address integer 0
max_shared_servers integer
shared_memory_address integer 0
shared_pool_reserved_size big integer 28M
shared_pool_size big integer 0
shared_server_sessions integer
shared_servers integer 1
SQL> show parameter buffer
NAME TYPE VALUE
buffer_pool_keep string
buffer_pool_recycle string
db_block_buffers integer 0
log_buffer integer 18857984
use_indirect_data_buffers boolean FALSE
SQL>
Please help. Thanks in advance.Duplicate question. Originally posted in sql query slow in new redhat enviornment
Please post in just one forum. -
Query running slow after 1000 rows in oracle
Hi.
I have one query which is fetching miln of rows.. the query runs very fast till 1000 to 1500 records after that it run very slow. Can you please help ,what could be the reason?
Thanks831269 wrote:
I have one query which is fetching miln of rows.. Why are you fetching that many rows? What is your client code going to do with a million rows? And why do you expect this to be fast? A million rows worth of I/O has to be done by Oracle (that will likely be mostly from disk and not buffer cache). That million rows has to be copied from the Oracle's SGA to client memory. If your client is PL/SQL code, that will be copied into the PGA. If your client is external, then that copy has to happen across platform boundaries and the network too.
Then your code churns away on processing a million rows... doing what exactly? That "+what+" will need to be done once per row, for a million times. If it takes 10ms per row, that means almost 3h of client processing time.
Fetching that many rows..? Often a design and coding mistake. Always an exception to the rule. Will never be "fast".
And scalability and performance need to be addressed by re-examining the requirements, optimising the design that necessitates fetching that many rows, and using techniques such as parallel processing and thread safe code design. -
I have a search query that uses the substr function to fetch some records.The query runs fine when executing SQL*PLUS or any other client like PL/SQL Developer. The same query is dead slow in Forms interface.
Can anyone suggest?Both the query use the substr function. Here is the query. only highlighted IF condition evaluates to true.
V_SEARCH VARCHAR2(255);
BEGIN
--- SET MOBILENO
IF :CONTROL.MOBILENO IS NOT NULL AND LENGTH(:CONTROL.MOBILENO) <= 7 THEN
IF :CONTROL.QRY_MOBILENO = 'P' THEN
V_SEARCH := V_SEARCH||' AND substr(MOBILENO,5,7) = '||''''||:CONTROL.MOBILENO||'''';
ELSIF :CONTROL.QRY_MOBILENO = 'S' THEN
V_SEARCH := V_SEARCH||' AND substr(MOBILENO,5,7) LIKE '||''''||:CONTROL.MOBILENO||'%''';
ELSIF :CONTROL.QRY_MOBILENO = 'E' THEN
V_SEARCH := V_SEARCH||' AND substr(MOBILENO,5,7) LIKE '||'''%'||:CONTROL.MOBILENO||'''';
ELSIF :CONTROL.QRY_MOBILENO = 'C' THEN
V_SEARCH := V_SEARCH||' AND substr(MOBILENO,5,7) LIKE '||'''%'||:CONTROL.MOBILENO||'%''';
END IF;
ELSIF :CONTROL.MOBILENO IS NOT NULL AND LENGTH(:CONTROL.MOBILENO) <= 11 THEN
IF :CONTROL.QRY_MOBILENO = 'P' THEN
V_SEARCH := V_SEARCH||' AND MOBILENO = '||''''||:CONTROL.MOBILENO||'''';
ELSIF :CONTROL.QRY_MOBILENO = 'S' THEN
V_SEARCH := V_SEARCH||' AND MOBILENO LIKE '||''''||:CONTROL.MOBILENO||'%''';
ELSIF :CONTROL.QRY_MOBILENO = 'E' THEN
V_SEARCH := V_SEARCH||' AND MOBILENO LIKE '||'''%'||:CONTROL.MOBILENO||'''';
ELSIF :CONTROL.QRY_MOBILENO = 'C' THEN
V_SEARCH := V_SEARCH||' AND MOBILENO LIKE '||'''%'||:CONTROL.MOBILENO||'%''';
END IF;
END IF;
--NDC
IF :CONTROL.NDC IS NOT NULL THEN
V_SEARCH := V_SEARCH||' AND SUBSTR(MOBILENO,1,4) = '||''''||:CONTROL.NDC||'''';
END IF;
--Number Type
IF :CONTROL.number_type IS NOT NULL THEN
V_SEARCH := V_SEARCH||' AND number_type = '||''''||:CONTROL.number_type||'''';
END IF;
--Status
IF :CONTROL.status IS NOT NULL THEN
V_SEARCH := V_SEARCH||' AND status = '||''''||substr(:CONTROL.status,1,1)||'''';
END IF;
--CITY
IF :CONTROL.CITY IS NOT NULL THEN
V_SEARCH := V_SEARCH||' AND LOC_NAME = '||''''||:CONTROL.CITY||'''';
END IF;
--REGION
IF :CONTROL.REGION IS NOT NULL THEN
V_SEARCH := V_SEARCH||' AND COMM_REGION = '||''''||:CONTROL.REGION||'''';
END IF;
--RECYCLE FLAG
IF :CONTROL.RECYCLE_FLAG <> 'A' THEN
V_SEARCH := V_SEARCH||' AND RECYCLE_FLAG = '||''''||:CONTROL.RECYCLE_FLAG||'''';
END IF;
--EXECUTE QUERY
V_SEARCH := SUBSTR(V_SEARCH,5);
GO_BLOCK('NO_INVENTORY');
SET_BLOCK_PROPERTY('NO_INVENTORY',ONETIME_WHERE,V_SEARCH);
EXECUTE_QUERY;
END; -
PL/SQL report running slow even with Shared_Servers set to 10
I am running into a problem with a PL/SQL query that displays in the Report region. I have changed my Shared_Servers parameter and that has not helped. There are less than 10 users on the system. I ran debug and the app is running a long time (10 seconds) in "rows loop: 20 row(s)" where 20 is the number of rows displayed per page. If I run the query in regular SQL, then the results are displayed almost instantaneously. Any ideas?
I figured out my problem. My statistics were out-of-date on one of my tables. I re-analyzed the table and that solved the problem. Now the results display within milliseconds. What a huge difference that made.
-
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
TimHi 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] -
Sql query runing slow with lower cost
Hello
I am working on Oracle 11g and AIX.I have one sql query which is ruing slow as reported by user.
When i am commenting few line of code it is runing fast.
I noticed that the execution plan cost of first query is less and second ...as cost of sccond qurey is more.But users are say it is runing fast.
How it can possiable ?
Any idea why second query is runing fast after commenting few columns in select and group by clause.
Query 1
SELECT PH.CTRL_NBR, PD.SEQ_NBR,PH.CNTRY,PH.SHIP_DATE, PHI.WAVE_NBR, PD.ID, PD.QTY,
IM.PACK_QTY,
IM.UNIT_VOL,
IM.PACK_QTY,
MAX(CD.PACK_QTY) AS CASE_QTY,
IM.UNIT_WT
FROM HDR PH,
HDR_INTRNL PHI,
DTL PD,
HDR CH,
CASEDTL CD,
IMASTER IM
WHERE PH.CTRL_NBR = PHI.CTRL_NBR
AND PD.CTRL_NBR = PH.CTRL_NBR
AND PD.QTY > 0
AND SUBSTR(CD.ID, 1, 9) = SUBSTR(PD.ID, 1, 9)
AND CD.CASENBR = CH.CASENBR
AND CH.STAT_CODE BETWEEN '10' AND '90'
AND IM.ID = PD.ID
AND PHI.WAVE_NBR='EL57893'
GROUP BY PH.CTRL_NBR, PD.SEQ_NBR, PH.CNTRY, PH.SHIP_DATE, PHI.WAVE_NBR, PD.ID, PD.QTY,
IM.PACK_QTY,
IM.UNITVOL,
IM.UNITWT,
IM.PACK_QTY
Query 2 .
SELECT PH.CTRL_NBR,
PD.SEQ_NBR,
PH.CNTRY,
PH.SHIP_DATE,
PHI.WAVE_NBR,
PD.ID,
PD.QTY,
-- IM.PACK_QTY,
-- IM.UNIT_VOL,
-- IM.PACK_QTY,
MAX(CD.PACK_QTY) AS CASE_QTY,
-- IM.UNIT_WT
FROM HDR PH,
HDR_INTRNL PHI,
DTL PD,
HDR CH,
CASEDTL CD,
IMASTER IM
WHERE PH.CTRL_NBR = PHI.CTRL_NBR
AND PD.CTRL_NBR = PH.CTRL_NBR
AND PD.QTY > 0
AND SUBSTR(CD.ID, 1, 9) = SUBSTR(PD.ID, 1, 9)
AND CD.CASENBR = CH.CASENBR
AND CH.STAT_CODE BETWEEN '10' AND '90'
AND IM.ID = PD.ID
AND PHI.WAVE_NBR='EL57893'
GROUP BY PH.CTRL_NBR, PD.SEQ_NBR, PH.CNTRY, PH.SHIP_DATE, PHI.WAVE_NBR, PD.ID, PD.QTY,
--IM.PACK_QTY,
--IM.UNITVOL,
--IM.UNITWT,
--IM.PACK_QTY
Edited by: oradba11 on Sep 6, 2012 2:11 PM
Edited by: oradba11 on Sep 6, 2012 2:12 PMoradba11 wrote:
Hello
I am working on Oracle 11g and AIX.I have one sql query which is ruing slow as reported by user.
When i am commenting few line of code it is runing fast.
I noticed that the execution plan cost of first query is less and second ...as cost of sccond qurey is more.But users are say it is runing fast.
How it can possiable ? <snip>
This doesn't address your question, but let me suggest that for your own sanity you start brining some formatting to your sql. And for the sanity of those on this forum of whom you expect assistance, you preserve that formatting through the use of the code tags (see the FAQ for details).
I've done the first one for you, as an example of what I mean
SELECT
PH.CTRL_NBR
, PD.SEQ_NBR
, PH.CNTRY
, PH.SHIP_DATE
, PHI.WAVE_NBR
, PD.ID
, PD.QTY
, IM.PACK_QTY
, IM.UNIT_VOL
, IM.PACK_QTY
, MAX(CD.PACK_QTY) AS CASE_QTY
, IM.UNIT_WT
FROM
HDR PH
, HDR_INTRNL PHI
, DTL PD
, HDR CH
, CASEDTL CD
, IMASTER IM
WHERE
PH.CTRL_NBR = PHI.CTRL_NBR
AND PD.CTRL_NBR = PH.CTRL_NBR
AND PD.QTY > 0
AND SUBSTR(CD.ID, 1, 9) = SUBSTR(PD.ID, 1, 9)
AND CD.CASENBR = CH.CASENBR
AND CH.STAT_CODE BETWEEN '10' AND '90'
AND IM.ID = PD.ID
AND PHI.WAVE_NBR='EL57893'
GROUP BY
PH.CTRL_NBR
, PD.SEQ_NBR
, PH.CNTRY
, PH.SHIP_DATE
, PHI.WAVE_NBR
, PD.ID
, PD.QTY
, IM.PACK_QTY
, IM.UNITVOL
, IM.UNITWT
, IM.PACK_QTY -
Does SQL Query run faster with/without Conditions....
Hi All, forgive my novice question.
Was just wondering" In general if we run a SQL query on a single table; does my query run faster if there are multiple where conditions? or without. What happens if the conditions increase? My table is a big one with 5 million rows and some bitmap indexes defined on it.
Thanks,
KonI think it's difficult to give general rule because there are too much dependencies on the fact that the columns are indexed or not, on the way tables and indexes statistics are computed or not, on the possible session or instance parameters that the optimizer may use, on the Oracle version, etc.
Message was edited by:
Pierre Forstmann -
Below query is running slow is there any other way to write the query which will enhance the performance.
select ld.cst_fle_seq,
tf.date_pro,
lj.case_num ,
ca.reference,
rr.rej_txt
from
load_judg lj,
rej_rea rr ,
pl_case ca,
tp_files tf ,
tp tp
where rr.rej_code(+) = ld.rej_code
and ca.case_num (+)=lj.case_num
and tp.seq =tf.seq
and lj.cred_code(+) =tp.cst_code
and tp.format =9
and valid=''Y''
and tf.fle_name like ''%F%''
and lj.rej_code is not null
and trunc(date_pro)=trunc(sysdate)
Thanks in advance
JhaHere is the explan plan of the query
- SELECT STATEMENT Optimizer=CHOOSE (Cost=16 Card=1 Bytes=225)
-NESTED LOOPS (Cost=16 Card=1 Bytes=225)
-NESTED LOOPS (OUTER) (Cost=15 Card=1 Bytes=192)
- HASH JOIN (Cost=14 Card=1 Bytes=147)
- MERGE JOIN (CARTESIAN) (Cost=9 Card=4 Bytes=432)
-TABLE ACCESS (FULL) OF LOAD_JUDGMENTS (Cost=1 Card=1 Bytes=69)
- SORT (JOIN)
-TABLE ACCESS (FULL) OF TAPE_FILES
-TABLE ACCESS (FULL) OF TAPES (Cost=4 Card=418 Bytes=16302)
-TABLE ACCESS (BY ROWID) OF REJECT_REASONS
-INDEX (UNIQUE SCAN) OF REJ_PK (UNIQUE)
-TABLE ACCESS (BY ROWID) OF CASES
-INDEX (UNIQUE SCAN) OF CASE_PK (UNIQUE)
sorry, as I have checked the tables and its not a cartesian.
Thanks
Jha -
Query runs slower after INSERT
Hi All,
We have a java swing application that uses JDBC to interact with an Oracle database.
The user can display a list of data from one database table, then click a button which will insert a row into a different table using data from the highlighted row in the displayed list.
As long as the user does not click the "insert" button, [s]he can open and close the window displaying the list as many times as [s]he wants, and it runs very fast.
However, after the user clicks on the "insert" button, the query suddenly runs extremely slowly.
Also note that this behaviour only occurs on one particular database server:
Oracle9i Enterprise Edition Release 9.2.0.4.0
Sun-Fire-V210 with SunOS 5.9
The behaviour does not happen on other machines.
(None of the other machines have the same combination of database server and platform.)
Note that all the clients use the same JDK and JDBC driver.
Any suggestions on where we should look in order to discover the cause of this behaviour?
Thanks,
Avi.Kamal,
In the trace file produced, the rowid pseudo-row has been added to my SQL query. Here is an excerpt:
(Note that the ALTER SESSION command was done via JDBC from our application.)
The following statements encountered a error during parse:
select rowid, FDU.DESK_USAGE_ROW_ID
from FLIGHTS F, FLIGHT_DESK_USAGE FDU
where ...
Error encountered: ORA-00918Error message for code ORA-00918 is "column ambiguously defined".
Since "rowid" is a pseudo column and since there are two tables involved in the query, obviously the unqualified "rowid" is ambiguous.
Naturally, I didn't put "rowid" in my original SELECT statment.
Is this added by JDBC, or by the Oracle optimizer, or what?
Thanks,
Avi.
Maybe you are looking for
-
Extending Resource Catalog: How to create subfolders.
Hi, we are extending the webcenter spaces application as described in this document: http://www.oracle.com/technology/products/webcenter/pdf/owcs_r11_extend_spaces_wp.pdf We have succesfully extended the Resource Catalog for both the Personal Space a
-
Using Saml token profile 1.1 with WLS 10.3
Hi All I am a Student from IITB. I am trying use message-level authentication for webservices using SAML Token Profile 1.1 on weblogic 10.3. I have done the necessary configuration but I am getting an error "Unable to add Security Token for Identity
-
Can't open iPhoto Library folder?
I've just confused myself. I have 5 or 6 Libraries in iPhoto. I switch between them using the option key when I launch the app. I was exporting three pics from one Library (I'll call it #1) to the desktop to use in Photoshop. I made a new untitled fo
-
Adobe CS5 Trial download on Mac
I am trying to get the Adobe Dreamweaver CS5 trial I purchased at school to download on my Mac. It keeps saying the installer failed to initialize. I downloaded Adobe Support Advisor, but it said it could not find any issues. Please let me know how
-
Project documentation....urgent
hi every1....i need 2 rite a project report(including project documentation) for my project....plz help.....how do i do it????