检查数据库日志发现,pga内存使用达到上限,不能进行再分配,并且有交换内存参与使用:
检查pga分配情况,和内存情况:
Pga分配上限为150G,并不小。
检查top事件,发现都是“library cache: mutex X”,事件
查看当时数据堵塞情况,发现都是Sql_id:gaptp5v57mj9s造成的堵塞,源头也是这条语句:
发生该事件的sql如下:
基本上就是Sql_id:gaptp5v57mj9s造成的,Sql语句:
Sql语句内容比较长,具体如下:
select doctororde0_.ORDER_ID as ORDER_ID1_376_0_,
drugorderd1_.ORDER_ID as ORDER_ID1_457_1_,
laborders2_.ORDER_ID as ORDER_ID1_705_2_,
treatorder3_.ORDER_ID as ORDER_ID1_1070_3_,
operationo4_.ORDER_ID as ORDER_ID1_826_4_,
bloodorder5_.ORDER_ID as ORDER_ID1_114_5_,
groupvsord6_.ORDER_ID as ORDER_ID1_631_6_,
antibacter7_.ORDER_ID as ORDER_ID1_43_7_,
ordervsord8_.ORDER_VS_ORDER_ID as ORDER_VS_ORDER_ID1_847_8_,
examorders9_.ORDER_ID as ORDER_ID1_600_9_,
exampathol10_.ORDER_ID as ORDER_ID1_602_10_,
doctororde0_.ST_ORDER_ID as ST_ORDER_ID2_376_0_,
doctororde0_.ADJUVANT_USE_REASON as ADJUVANT_USE_REASO3_376_0_,
doctororde0_.APPROVE_NO as APPROVE_NO4_376_0_,
doctororde0_.APPROVE_STATUS as APPROVE_STATUS5_376_0_,
doctororde0_.AUTO_SEND as AUTO_SEND6_376_0_,
doctororde0_.BABY_NO as BABY_NO7_376_0_,
doctororde0_.BACK_SIGN as BACK_SIGN8_376_0_,
doct ororde0_.BEHAVIOR_CODE as BEHAVIOR_CODE9_376_0_,
doctororde0_.BEHAVIOR_OCCASION as BEHAVIOR_OCCASION10_376_0_,
doctororde0_.BILLING_ATTR as BILLING_ATTR11_376_0_,
doctororde0_.BIRTH_SIGN as BIRTH_SIGN12_376_0_,
doctororde0_.BLOOD_RELATE_ORDER_ID as BLOOD_RELATE_ORDE13_376_0_,
doctororde0_.CANCEL_FLAG as CANCEL_FLAG14_376_0_,
doctororde0_.CANCELED_DATE_TIME as CANCELED_DATE_TIM15_376_0_,
doctororde0_.CANCELED_DOCTOR_ID as CANCELED_DOCTOR_I16_376_0_,
doctororde0_.CANCELED_REASON as CANCELED_REASON17_376_0_,
doctororde0_.CASH_PAY as CASH_PAY18_376_0_,
doctororde0_.CHARGE as CHARGE19_376_0_,
doctororde0_.CHARGE_STATUS as CHARGE_STATUS20_376_0_,
doctororde0_.CHECK_DATE_TIME as CHECK_DATE_TIME21_376_0_,
doctororde0_.Check_Presc as Check_Presc22_376_0_,
doctororde0_.CLINIC_CATE as CLINIC_CATE23_376_0_,
doctororde0_.CLINICAL_TRIAL_NO as CLINICAL_TRIAL_NO24_376_0_,
doctororde0_.COSTS as COSTS25_376_0_,
doctororde0_.COUNTINUED_FLAG as COUNTINUED_FLAG26_376_0_,
doctororde0_.CRIS IS_NOTICE_ID as CRISIS_NOTICE_ID27_376_0_,
doctororde0_.DISEASE_APPR_NO as DISEASE_APPR_NO28_376_0_,
doctororde0_.DISEASE_IDENTITY as DISEASE_IDENTITY29_376_0_,
doctororde0_.DISEASE_TYPE as DISEASE_TYPE30_376_0_,
doctororde0_.DISEASE_TYPE_CODE as DISEASE_TYPE_CODE31_376_0_,
doctororde0_.DISEASE_TYPE_NAME as DISEASE_TYPE_NAME32_376_0_,
doctororde0_.DOCTOR as DOCTOR33_376_0_,
doctororde0_.DOCTOR_ID as DOCTOR_ID34_376_0_,
doctororde0_.DRUG_BILLING_ATTR as DRUG_BILLING_ATTR35_376_0_,
doctororde0_.DSA_NURSE as DSA_NURSE36_376_0_,
doctororde0_.DSA_NURSE_ID as DSA_NURSE_ID37_376_0_,
doctororde0_.ENCOUNTER_NO as ENCOUNTER_NO38_376_0_,
doctororde0_.ENTER_DATE_TIME as ENTER_DATE_TIME39_376_0_,
doctororde0_.ER_TREAT_PATTERN as ER_TREAT_PATTERN40_376_0_,
doctororde0_.FOCUS_SELF_PAY as FOCUS_SELF_PAY41_376_0_,
doctororde0_.FREQ_COUNTER as FREQ_COUNTER42_376_0_,
doctororde0_.FREQ_INTERVAL as FREQ_INTERVAL43_376_0_,
doctororde0_.FREQ_INTERVAL_UNIT as FREQ_INTERVAL_UNI44_376_0_,
doct ororde0_.FREQUENCY as FREQUENCY45_376_0_,
doctororde0_.GROUP_GRAPH as GROUP_GRAPH46_376_0_,
doctororde0_.GROUP_NO as GROUP_NO47_376_0_,
doctororde0_.GROUP_SUB_NO as GROUP_SUB_NO48_376_0_,
doctororde0_.IN_ADVANCE as IN_ADVANCE49_376_0_,
doctororde0_.INSURANCE_CHARGE_TYPE as INSURANCE_CHARGE_50_376_0_,
doctororde0_.IS_TUMOUR as IS_TUMOUR51_376_0_,
doctororde0_.MEDICAL_GROUP_NO as MEDICAL_GROUP_NO52_376_0_,
doctororde0_.MEMO as MEMO53_376_0_,
doctororde0_.NEED_TRANSPORT as NEED_TRANSPORT54_376_0_,
doctororde0_.NURSE as NURSE55_376_0_,
doctororde0_.NURSE_ID as NURSE_ID56_376_0_,
doctororde0_.ORDER_CLASS as ORDER_CLASS57_376_0_,
doctororde0_.ORDER_CODE as ORDER_CODE58_376_0_,
doctororde0_.ORDER_ID_FROM as ORDER_ID_FROM59_376_0_,
doctororde0_.ORDER_ID_FROM_TYPE as ORDER_ID_FROM_TYP60_376_0_,
doctororde0_.ORDER_PRINT_INDICATOR as ORDER_PRINT_INDIC61_376_0_,
doctororde0_.ORDER_STATUS as ORDER_STATUS62_376_0_,
doctororde0_.ORDER_TXT as ORDER_TXT63_376_0_,
doctororde0_.ORDERED _BY as ORDERED_BY64_376_0_,
doctororde0_.PATIENT_ID as PATIENT_ID65_376_0_,
doctororde0_.PERFORM_DEPT_ID as PERFORM_DEPT_ID66_376_0_,
doctororde0_.PREPARE_BLD_OPER_ORDER_ID as PREPARE_BLD_OPER_67_376_0_,
doctororde0_.PRESCRIBED_DISEASE as PRESCRIBED_DISEAS68_376_0_,
doctororde0_.PRESCRIBED_DISEASE_APPR_NO as PRESCRIBED_DISEAS69_376_0_,
doctororde0_.PRESCRIPTION_ORDER_ID as PRESCRIPTION_ORDE70_376_0_,
doctororde0_.PRESCRIPTION_PRESC_NO as PRESCRIPTION_PRES71_376_0_,
doctororde0_.PRINT_DATE as PRINT_DATE72_376_0_,
doctororde0_.PRINT_NURSE_ID as PRINT_NURSE_ID73_376_0_,
doctororde0_.PRINT_NURSE_NAME as PRINT_NURSE_NAME74_376_0_,
doctororde0_.PRINT_STATUS as PRINT_STATUS75_376_0_,
doctororde0_.PRINT_TIMES as PRINT_TIMES76_376_0_,
doctororde0_.PROCESSING_DATE_TIME as PROCESSING_DATE_T77_376_0_,
doctororde0_.RECIPE_NO as RECIPE_NO78_376_0_,
doctororde0_.RELATED_ORDER_SUB_NO as RELATED_ORDER_SUB79_376_0_,
doctororde0_.REPAIR_COST_STATUS as REPAIR_COST_STATU80_376_0_,
doctoror de0_.REPEAT_EFFECTIVE_NUMBER as REPEAT_EFFECTIVE_81_376_0_,
doctororde0_.REPEAT_EFFECTIVE_TIME as REPEAT_EFFECTIVE_82_376_0_,
doctororde0_.REPEAT_INDICATOR as REPEAT_INDICATOR83_376_0_,
doctororde0_.SCRAP_REASON as SCRAP_REASON84_376_0_,
doctororde0_.SEND_PLACE as SEND_PLACE85_376_0_,
doctororde0_.SKIN_TEST_CONTINUE_REASON as SKIN_TEST_CONTINU86_376_0_,
doctororde0_.SKIN_TEST_CONTINUE_USE as SKIN_TEST_CONTINU87_376_0_,
doctororde0_.SKIN_TEST_FLAG as SKIN_TEST_FLAG88_376_0_,
doctororde0_.SKIN_TEST_FLAG_ORDER_ID as SKIN_TEST_FLAG_OR89_376_0_,
doctororde0_.SKIN_TEST_ORDER_ID as SKIN_TEST_ORDER_I90_376_0_,
doctororde0_.SKIN_TEST_RESULT as SKIN_TEST_RESULT91_376_0_,
doctororde0_.SORT_NO as SORT_NO92_376_0_,
doctororde0_.SPECIAL_MEMO as SPECIAL_MEMO93_376_0_,
doctororde0_.SPECIAL_ORDER_CLASS as SPECIAL_ORDER_CLA94_376_0_,
doctororde0_.ST_RESULT as ST_RESULT95_376_0_,
doctororde0_.START_DATE_TIME as START_DATE_TIME96_376_0_,
doctororde0_.START_STOP_INDICATOR as START_STOP_INDI CA97_376_0_,
doctororde0_.SUBMIT_DATE_TIME as SUBMIT_DATE_TIME98_376_0_,
doctororde0_.TPN_FLAG as TPN_FLAG99_376_0_,
doctororde0_.TRANSPORT_ALLOW_MODIFY as TRANSPORT_ALLOW_100_376_0_,
doctororde0_.TRANSPORT_TOOL as TRANSPORT_TOOL101_376_0_,
doctororde0_.VISIT_NO as VISIT_NO102_376_0_,
drugorderd1_.ADMINISTRATION as ADMINISTRATION2_457_1_,
drugorderd1_.ADMINISTRATION_AMOUNT as ADMINISTRATION_AMO3_457_1_,
drugorderd1_.AMOUNT_PER_PACKAGE as AMOUNT_PER_PACKAGE4_457_1_,
drugorderd1_.ANESTHETIC_USE_PURPOSE as ANESTHETIC_USE_PUR5_457_1_,
drugorderd1_.CHARGE as CHARGE6_457_1_,
drugorderd1_.CLINIC_CATE as CLINIC_CATE7_457_1_,
drugorderd1_.COSTS as COSTS8_457_1_,
drugorderd1_.DAYS as DAYS9_457_1_,
drugorderd1_.DISTRIBUTION as DISTRIBUTION10_457_1_,
drugorderd1_.DISTRIBUTION_USE as DISTRIBUTION_USE11_457_1_,
drugorderd1_.DOSAGE as DOSAGE12_457_1_,
drugorderd1_.DOSE_PER_UNIT as DOSE_PER_UNIT13_457_1_,
drugorderd1_.DOSE_UNITS as DOSE_UNITS14_457_1_,
drugorderd1_.DROP_SPEED as DRO P_SPEED15_457_1_,
drugorderd1_.DRUG_CODE as DRUG_CODE16_457_1_,
drugorderd1_.DRUG_ITEM_ID as DRUG_ITEM_ID17_457_1_,
drugorderd1_.DRUG_NAME as DRUG_NAME18_457_1_,
drugorderd1_.DRUG_NOS as DRUG_NOS19_457_1_,
drugorderd1_.DRUG_SPEC as DRUG_SPEC20_457_1_,
drugorderd1_.DRUG_TRADE_CODE as DRUG_TRADE_CODE21_457_1_,
drugorderd1_.DRUG_TRADE_NAME as DRUG_TRADE_NAME22_457_1_,
drugorderd1_.DURATION as DURATION23_457_1_,
drugorderd1_.DURATION_UNITS as DURATION_UNITS24_457_1_,
drugorderd1_.FIRM_ID as FIRM_ID25_457_1_,
drugorderd1_.FIRSTDAY_FREQ_DETAIL as FIRSTDAY_FREQ_DET26_457_1_,
drugorderd1_.FIRSTDAY_TIMES as FIRSTDAY_TIMES27_457_1_,
drugorderd1_.FREQ_COUNTER as FREQ_COUNTER28_457_1_,
drugorderd1_.FREQ_DETAIL as FREQ_DETAIL29_457_1_,
drugorderd1_.FREQ_INTERVAL as FREQ_INTERVAL30_457_1_,
drugorderd1_.FREQ_INTERVAL_UNIT as FREQ_INTERVAL_UNI31_457_1_,
drugorderd1_.FREQUENCY as FREQUENCY32_457_1_,
drugorderd1_.GROUP_NO as GROUP_NO33_457_1_,
drugorderd1_.GROUP_SUB_NO as GROUP_SUB_NO 34_457_1_,
drugorderd1_.INJECTION_STOP_TIME as INJECTION_STOP_TI35_457_1_,
drugorderd1_.JP_DRUG_FLAG as JP_DRUG_FLAG36_457_1_,
drugorderd1_.MEDICINE_ABROAD as MEDICINE_ABROAD37_457_1_,
drugorderd1_.MEDICINE_CHEST_CODE as MEDICINE_CHEST_CO38_457_1_,
drugorderd1_.MEMO as MEMO39_457_1_,
drugorderd1_.MENSTRUUM_INDICATOR as MENSTRUUM_INDICAT40_457_1_,
drugorderd1_.PACKAGE_SPEC as PACKAGE_SPEC41_457_1_,
drugorderd1_.PACKAGE_UNITS as PACKAGE_UNITS42_457_1_,
drugorderd1_.PRESCRIPTION_PREPARATION as PRESCRIPTION_PREP43_457_1_,
drugorderd1_.PRICE as PRICE44_457_1_,
drugorderd1_.SIGN_DATE_TIME as SIGN_DATE_TIME45_457_1_,
drugorderd1_.SIGN_DOCTOR_ID as SIGN_DOCTOR_ID46_457_1_,
drugorderd1_.ST_INDICATOR as ST_INDICATOR47_457_1_,
drugorderd1_.TOTAL_AMOUNT as TOTAL_AMOUNT48_457_1_,
drugorderd1_.TOXI_CODE as TOXI_CODE49_457_1_,
drugorderd1_.TPN_FLAG as TPN_FLAG50_457_1_,
drugorderd1_.UNITS as UNITS51_457_1_,
drugorderd1_.USAGE as USAGE52_457_1_,
drugorderd1_.USAGE_UNITS as USAGE_UNI TS53_457_1_,
drugorderd1_.USE_EXPLOSIVE_PAIN as USE_EXPLOSIVE_PAI54_457_1_,
drugorderd1_.USER_DESCRIPTION as USER_DESCRIPTION55_457_1_,
laborders2_.ADVICE as ADVICE2_705_2_,
laborders2_.APPLY_NO as APPLY_NO3_705_2_,
laborders2_.BABY_NO as BABY_NO4_705_2_,
laborders2_.BAR_CODE as BAR_CODE5_705_2_,
laborders2_.CANCEL_DATE_TIME as CANCEL_DATE_TIME6_705_2_,
laborders2_.CANCEL_NURSE_ID as CANCEL_NURSE_ID7_705_2_,
laborders2_.CANCEL_NURSE_NAME as CANCEL_NURSE_NAME8_705_2_,
laborders2_.CLINIC_CATE as CLINIC_CATE9_705_2_,
laborders2_.COLLECTION_LOCATION as COLLECTION_LOCATI10_705_2_,
laborders2_.EMERGENCY_INDICATOR as EMERGENCY_INDICAT11_705_2_,
laborders2_.ENCOUNTER_NO as ENCOUNTER_NO12_705_2_,
laborders2_.EXECUTE_DATE as EXECUTE_DATE13_705_2_,
laborders2_.EXECUTE_DOCTOR_ID as EXECUTE_DOCTOR_ID14_705_2_,
laborders2_.EXECUTE_DOCTOR_NAME as EXECUTE_DOCTOR_NA15_705_2_,
laborders2_.INSPECTION_DESTINATION_CODE as INSPECTION_DESTIN16_705_2_,
laborders2_.INSPECTION_DESTINATION_NAME as INSPECTION_DESTIN17_705_2_,
laborders2_.INSPECTION_ID as INSPECTION_ID18_705_2_,
laborders2_.INSPECTION_NAME as INSPECTION_NAME19_705_2_,
laborders2_.INSPECTION_TIME as INSPECTION_TIME20_705_2_,
laborders2_.LAB_CLASS_CODE as LAB_CLASS_CODE21_705_2_,
laborders2_.LAB_STATUS as LAB_STATUS22_705_2_,
laborders2_.NOTES_FOR_SPCM as NOTES_FOR_SPCM23_705_2_,
laborders2_.OPERATION_TIME as OPERATION_TIME24_705_2_,
laborders2_.OPERATOR_ID as OPERATOR_ID25_705_2_,
laborders2_.OPERATOR_NAME as OPERATOR_NAME26_705_2_,
laborders2_.ORDER_STATUS as ORDER_STATUS27_705_2_,
laborders2_.PATIENT_ID as PATIENT_ID28_705_2_,
laborders2_.PHYSIOLOGICAL_CYCLE as PHYSIOLOGICAL_CYC29_705_2_,
laborders2_.PRINT_NUMBER as PRINT_NUMBER30_705_2_,
laborders2_.RELEVANT_CLINIC_DIAG as RELEVANT_CLINIC_D31_705_2_,
laborders2_.REPORT_DATE_TIME as REPORT_DATE_TIME32_705_2_,
laborders2_.REPORT_DOCTOR_ID as REPORT_DOCTOR_ID33_705_2_,
laborders2_.REPORT_DOCTOR_NAME as REPORT_DOCTOR_NAM34_705_2_,
laborders2_.R EPORT_URL as REPORT_URL35_705_2_,
laborders2_.ROLLBACK_REASON as ROLLBACK_REASON36_705_2_,
laborders2_.SAMPLE_DETAIL as SAMPLE_DETAIL37_705_2_,
laborders2_.SPCM_SAMPLE_DATE_TIME as SPCM_SAMPLE_DATE_38_705_2_,
laborders2_.SPCM_SAMPLE_NURSE_ID as SPCM_SAMPLE_NURSE39_705_2_,
laborders2_.SPCM_SAMPLE_NURSE_NAME as SPCM_SAMPLE_NURSE40_705_2_,
laborders2_.SPCM_SAMPLE_VERIFY_NURSE_ID as SPCM_SAMPLE_VERIF41_705_2_,
laborders2_.SPCM_SAMPLE_VERIFY_NURSE_NAME as SPCM_SAMPLE_VERIF42_705_2_,
laborders2_.SPECIMEN as SPECIMEN43_705_2_,
laborders2_.SPECIMEN_COLL_METH as SPECIMEN_COLL_MET44_705_2_,
laborders2_.SPM_CHECK_DATE_TIME as SPM_CHECK_DATE_TI45_705_2_,
laborders2_.SPM_CHECK_DOCTOR_ID as SPM_CHECK_DOCTOR_46_705_2_,
laborders2_.SPM_CHECK_DOCTOR_NAME as SPM_CHECK_DOCTOR_47_705_2_,
laborders2_.SPM_RECVED_DATE_TIME as SPM_RECVED_DATE_T48_705_2_,
laborders2_.SPM_RECVED_DOCTOR_ID as SPM_RECVED_DOCTOR49_705_2_,
laborders2_.SPM_RECVED_DOCTOR_NAME as SPM_RECVED_DOCTOR50_705_2_,
laborders2_ .SUBJECT as SUBJECT51_705_2_,
laborders2_.TEST_CAUSE as TEST_CAUSE52_705_2_,
laborders2_.UTENSILS_TYPE as UTENSILS_TYPE53_705_2_,
laborders2_.VERIFIER_DOCTOR_ID as VERIFIER_DOCTOR_I54_705_2_,
laborders2_.VERIFIER_DOCTOR_NAME as VERIFIER_DOCTOR_N55_705_2_,
laborders2_.VERIFIER_TIME as VERIFIER_TIME56_705_2_,
treatorder3_.ADMINISTRATION as ADMINISTRATION2_1070_3_,
treatorder3_.AMOUNT as AMOUNT3_1070_3_,
treatorder3_.AUDIT_DOCTOR_ID as AUDIT_DOCTOR_ID4_1070_3_,
treatorder3_.AUDIT_STATUS as AUDIT_STATUS5_1070_3_,
treatorder3_.BASE_DIET as BASE_DIET6_1070_3_,
treatorder3_.CALORIE as CALORIE7_1070_3_,
treatorder3_.CHARGE as CHARGE8_1070_3_,
treatorder3_.CLIN_SYMP as CLIN_SYMP9_1070_3_,
treatorder3_.CLINIC_CATE as CLINIC_CATE10_1070_3_,
treatorder3_.COSTS as COSTS11_1070_3_,
treatorder3_.DAYS as DAYS12_1070_3_,
treatorder3_.DIAGNOSIS as DIAGNOSIS13_1070_3_,
treatorder3_.DIAGNOSIS_DIET as DIAGNOSIS_DIET14_1070_3_,
treatorder3_.DOSAGE as DOSAGE15_1070_3_,
treatorder3_.DURATI ON as DURATION16_1070_3_,
treatorder3_.DURATION_UNITS as DURATION_UNITS17_1070_3_,
treatorder3_.FREQ_COUNTER as FREQ_COUNTER18_1070_3_,
treatorder3_.FREQ_DETAIL as FREQ_DETAIL19_1070_3_,
treatorder3_.FREQ_INTERVAL as FREQ_INTERVAL20_1070_3_,
treatorder3_.FREQ_INTERVAL_UNIT as FREQ_INTERVAL_UNI21_1070_3_,
treatorder3_.FREQUENCY as FREQUENCY22_1070_3_,
treatorder3_.GROUP_NO as GROUP_NO23_1070_3_,
treatorder3_.GROUP_SUB_NO as GROUP_SUB_NO24_1070_3_,
treatorder3_.ITEM_CODE as ITEM_CODE25_1070_3_,
treatorder3_.ITEM_NAME as ITEM_NAME26_1070_3_,
treatorder3_.MAKE_CAPACITY as MAKE_CAPACITY27_1070_3_,
treatorder3_.MAKE_CAPACITY_UNITS as MAKE_CAPACITY_UNI28_1070_3_,
treatorder3_.MEDICAL_DATE as MEDICAL_DATE29_1070_3_,
treatorder3_.MEDICAL_DIAGNOSIS as MEDICAL_DIAGNOSIS30_1070_3_,
treatorder3_.NOTES as NOTES31_1070_3_,
treatorder3_.NOTICE as NOTICE32_1070_3_,
treatorder3_.PRICE as PRICE33_1070_3_,
treatorder3_.PROTEIN_CONTENT as PROTEIN_CONTENT34_1070_3_,
treatorder3_.SEND_STAT US as SEND_STATUS35_1070_3_,
treatorder3_.THERAPEUTIC_DIET as THERAPEUTIC_DIET36_1070_3_,
treatorder3_.THERAPEUTIC_DIET_THREE as THERAPEUTIC_DIET_37_1070_3_,
treatorder3_.TRANSFER_METHOD as TRANSFER_METHOD38_1070_3_,
treatorder3_.TREAT_CAUSE as TREAT_CAUSE39_1070_3_,
treatorder3_.TREAT_UNITS as TREAT_UNITS40_1070_3_,
treatorder3_.USAGE_UNITS as USAGE_UNITS41_1070_3_,
treatorder3_.USER_DESCRIPTION as USER_DESCRIPTION42_1070_3_,
operationo4_.SORT_NO as SORT_NO2_826_4_,
operationo4_.ACK_DIRECTION as ACK_DIRECTION3_826_4_,
operationo4_.ACK_INDICATOR as ACK_INDICATOR4_826_4_,
operationo4_.ADVANCE_TIME as ADVANCE_TIME5_826_4_,
operationo4_.AFTER_OPER as AFTER_OPER6_826_4_,
operationo4_.ANAESTHESIA_END_DATE as ANAESTHESIA_END_DA7_826_4_,
operationo4_.ANAESTHESIA_FLAG as ANAESTHESIA_FLAG8_826_4_,
operationo4_.ANAESTHESIA_METHOD as ANAESTHESIA_METHOD9_826_4_,
operationo4_.ANAESTHESIA_START_DATE as ANAESTHESIA_START10_826_4_,
operationo4_.ANAESTHESIA_THIRD_STATUS as ANAESTHESIA_ THIRD11_826_4_,
operationo4_.anes_self_pay_flag as anes_self_pay_fla12_826_4_,
operationo4_.ANESTHES_ASSESSMENT as ANESTHES_ASSESSME13_826_4_,
operationo4_.ANESTHESIA_DOCTOR as ANESTHESIA_DOCTOR14_826_4_,
operationo4_.ANESTHESIA_DOCTOR_ID as ANESTHESIA_DOCTOR15_826_4_,
operationo4_.anesthesia_status as anesthesia_status16_826_4_,
operationo4_.anesthesia_treat_group_code as anesthesia_treat_17_826_4_,
operationo4_.anesthesia_treat_group_name as anesthesia_treat_18_826_4_,
operationo4_.APPLY_NO as APPLY_NO19_826_4_,
operationo4_.AUTOLOGOUS_CIRCULATION as AUTOLOGOUS_CIRCUL20_826_4_,
operationo4_.BABY_NO as BABY_NO21_826_4_,
operationo4_.BED_LABEL as BED_LABEL22_826_4_,
operationo4_.BED_NO as BED_NO23_826_4_,
operationo4_.bill_review_date_time as bill_review_date_24_826_4_,
operationo4_.BLOOD_DOCTOR as BLOOD_DOCTOR25_826_4_,
operationo4_.BLOOD_DOCTOR_ID as BLOOD_DOCTOR_ID26_826_4_,
operationo4_.BLOOD_TYPE as BLOOD_TYPE27_826_4_,
operationo4_.CANCEL_BY as CANCEL_BY28_826_4_,
operationo4_.CANCEL_DATE_TIME as CANCEL_DATE_TIME29_826_4_,
operationo4_.CANCEL_MEMO as CANCEL_MEMO30_826_4_,
operationo4_.CHARGE_INDICATOR as CHARGE_INDICATOR31_826_4_,
operationo4_.CHARGE_STATUS as CHARGE_STATUS32_826_4_,
operationo4_.CLINIC_CATE as CLINIC_CATE33_826_4_,
operationo4_.DELAY_REASONS as DELAY_REASONS34_826_4_,
operationo4_.DEPT_CHECK_STATUS as DEPT_CHECK_STATUS35_826_4_,
operationo4_.DEPT_STAYED as DEPT_STAYED36_826_4_,
operationo4_.DIAG_BEFORE_OPERATION as DIAG_BEFORE_OPERA37_826_4_,
operationo4_.DIAG_BEFORE_OPERATION_CODE as DIAG_BEFORE_OPERA38_826_4_,
operationo4_.DIAGNOSIS_ID as DIAGNOSIS_ID39_826_4_,
operationo4_.DISEASE_NAME as DISEASE_NAME40_826_4_,
operationo4_.doctor_id_before as doctor_id_before41_826_4_,
operationo4_.ENCOUNTER_NO as ENCOUNTER_NO42_826_4_,
operationo4_.END_DATE_TIME as END_DATE_TIME43_826_4_,
operationo4_.ENTERED_BY as ENTERED_BY44_826_4_,
operationo4_.ENTERED_BY_ID as ENTERED_BY_ID45_826_4_,
operationo4_.ESTIMATE_BLOOD_AMO UNT as ESTIMATE_BLOOD_AM46_826_4_,
operationo4_.ESTIMATE_TIME as ESTIMATE_TIME47_826_4_,
operationo4_.EXTRA_CIRCULATION as EXTRA_CIRCULATION48_826_4_,
operationo4_.FIRST_ANESTHESIA as FIRST_ANESTHESIA49_826_4_,
operationo4_.first_anesthesia_group_code as first_anesthesia_50_826_4_,
operationo4_.first_anesthesia_group_name as first_anesthesia_51_826_4_,
operationo4_.FIRST_ANESTHESIA_ID as FIRST_ANESTHESIA_52_826_4_,
operationo4_.FIRST_ASSISTANT as FIRST_ASSISTANT53_826_4_,
operationo4_.FIRST_ASSISTANT_GROUP_CODE as FIRST_ASSISTANT_G54_826_4_,
operationo4_.FIRST_ASSISTANT_GROUP_NAME as FIRST_ASSISTANT_G55_826_4_,
operationo4_.FIRST_ASSISTANT_ID as FIRST_ASSISTANT_I56_826_4_,
operationo4_.FIRST_CUSTODY_NURSE as FIRST_CUSTODY_NUR57_826_4_,
operationo4_.FIRST_CUSTODY_NURSE_ID as FIRST_CUSTODY_NUR58_826_4_,
operationo4_.FIRST_OPERATION_NURSE as FIRST_OPERATION_N59_826_4_,
operationo4_.FIRST_OPERATION_NURSE_ID as FIRST_OPERATION_N60_826_4_,
operationo4_.FIRST_STAGE as FIRST_STA GE61_826_4_,
operationo4_.FIRST_STAGE_REASON as FIRST_STAGE_REASO62_826_4_,
operationo4_.FIRST_SUPPLY_NURSE as FIRST_SUPPLY_NURS63_826_4_,
operationo4_.FIRST_SUPPLY_NURSE_ID as FIRST_SUPPLY_NURS64_826_4_,
operationo4_.FIRST_TECHNICIAN as FIRST_TECHNICIAN65_826_4_,
operationo4_.FIRST_TECHNICIAN_ID as FIRST_TECHNICIAN_66_826_4_,
operationo4_.FOUR_ASSISTANT as FOUR_ASSISTANT67_826_4_,
operationo4_.FOUR_ASSISTANT_ID as FOUR_ASSISTANT_ID68_826_4_,
operationo4_.group_no_before as group_no_before69_826_4_,
operationo4_.HAD_ANTIBACTERIAL as HAD_ANTIBACTERIAL70_826_4_,
operationo4_.HAD_DISEASE as HAD_DISEASE71_826_4_,
operationo4_.INSCISION_CLEAN_CLASS as INSCISION_CLEAN_C72_826_4_,
operationo4_.INSTRUMENTS_FLAG as INSTRUMENTS_FLAG73_826_4_,
operationo4_.IS_GRANT as IS_GRANT74_826_4_,
operationo4_.IS_HOLIDAY as IS_HOLIDAY75_826_4_,
operationo4_.IS_NEW_OPER as IS_NEW_OPER76_826_4_,
operationo4_.IS_PATIENT_IDENTIFIED as IS_PATIENT_IDENTI77_826_4_,
operationo4_.IS_READY_BLOOD as I S_READY_BLOOD78_826_4_,
operationo4_.IS_RESTRIC_ANTIBIO as IS_RESTRIC_ANTIBI79_826_4_,
operationo4_.IS_UNEXPECTED_OPER as IS_UNEXPECTED_OPE80_826_4_,
operationo4_.ISOLATION_FLAG as ISOLATION_FLAG81_826_4_,
operationo4_.MAJOR_OPERATION_FLAG as MAJOR_OPERATION_F82_826_4_,
operationo4_.NEED_FROZEN_EXAM as NEED_FROZEN_EXAM83_826_4_,
operationo4_.NEED_IMPLANT as NEED_IMPLANT84_826_4_,
operationo4_.NEED_SPECIAL_EQUIP as NEED_SPECIAL_EQUI85_826_4_,
operationo4_.NOTES_ON_OPERATION as NOTES_ON_OPERATIO86_826_4_,
operationo4_.OPER_NO as OPER_NO87_826_4_,
operationo4_.OPER_REQ_TYPE as OPER_REQ_TYPE88_826_4_,
operationo4_.OPERATING_DEPT as OPERATING_DEPT89_826_4_,
operationo4_.OPERATING_ROOM as OPERATING_ROOM90_826_4_,
operationo4_.OPERATING_SCALE as OPERATING_SCALE91_826_4_,
operationo4_.OPERATING_STATUS as OPERATING_STATUS92_826_4_,
operationo4_.OPERATION_ROOM_NO as OPERATION_ROOM_NO93_826_4_,
operationo4_.OPERATION_SEQUENCE as OPERATION_SEQUENC94_826_4_,
operationo4_.operation_ third_status as operation_third_s95_826_4_,
operationo4_.OPERATION_TYPE as OPERATION_TYPE96_826_4_,
operationo4_.OPERATOR_DOCTOR as OPERATOR_DOCTOR97_826_4_,
operationo4_.OPERATOR_DOCTOR_ID as OPERATOR_DOCTOR_I98_826_4_,
operationo4_.OPERATOR_TREAT_GROUP_CODE as OPERATOR_TREAT_GR99_826_4_,
operationo4_.OPERATOR_TREAT_GROUP_NAME as OPERATOR_TREAT_G100_826_4_,
operationo4_.ORDER_STATUS as ORDER_STATUS101_826_4_,
operationo4_.OUTSIDE_SPECIALIST as OUTSIDE_SPECIALI102_826_4_,
operationo4_.PATIENT_CONDITION as PATIENT_CONDITIO103_826_4_,
operationo4_.PATIENT_ID as PATIENT_ID104_826_4_,
operationo4_.PLS_MARK as PLS_MARK105_826_4_,
operationo4_.PRE_SELECTION as PRE_SELECTION106_826_4_,
operationo4_.REQ_DATE_TIME as REQ_DATE_TIME107_826_4_,
operationo4_.RETURN_REASONS as RETURN_REASONS108_826_4_,
operationo4_.SCHEDULE_ID as SCHEDULE_ID109_826_4_,
operationo4_.SCHEDULED_DATE_TIME as SCHEDULED_DATE_T110_826_4_,
operationo4_.SECOND_ANESTHESIA as SECOND_ANESTHESI111_826_4_,
operat iono4_.second_anesthesia_group_code as second_anesthesi112_826_4_,
operationo4_.second_anesthesia_group_name as second_anesthesi113_826_4_,
operationo4_.SECOND_ANESTHESIA_ID as SECOND_ANESTHESI114_826_4_,
operationo4_.SECOND_ASSISTANT as SECOND_ASSISTANT115_826_4_,
operationo4_.SECOND_ASSISTANT_ID as SECOND_ASSISTANT116_826_4_,
operationo4_.SECOND_CUSTODY_NURSE as SECOND_CUSTODY_N117_826_4_,
operationo4_.SECOND_CUSTODY_NURSE_ID as SECOND_CUSTODY_N118_826_4_,
operationo4_.SECOND_OPERATION_NURSE as SECOND_OPERATION119_826_4_,
operationo4_.SECOND_OPERATION_NURSE_ID as SECOND_OPERATION120_826_4_,
operationo4_.SECOND_SUPPLY_NURSE as SECOND_SUPPLY_NU121_826_4_,
operationo4_.SECOND_SUPPLY_NURSE_ID as SECOND_SUPPLY_NU122_826_4_,
operationo4_.SECOND_TECHNICIAN as SECOND_TECHNICIA123_826_4_,
operationo4_.SECOND_TECHNICIAN_ID as SECOND_TECHNICIA124_826_4_,
operationo4_.SPECIAL_CONSUMABLES_FLAG as SPECIAL_CONSUMAB125_826_4_,
operationo4_.SPECIAL_INFECTION_FLAG as SPECIAL_INFECTIO126_ 826_4_,
operationo4_.START_DATE_TIME as START_DATE_TIME127_826_4_,
operationo4_.THIRD_ANESTHESIA as THIRD_ANESTHESIA128_826_4_,
operationo4_.THIRD_ANESTHESIA_ID as THIRD_ANESTHESIA129_826_4_,
operationo4_.THREE_ASSISTANT as THREE_ASSISTANT130_826_4_,
operationo4_.THREE_ASSISTANT_ID as THREE_ASSISTANT_131_826_4_,
operationo4_.time_desc as time_desc132_826_4_,
operationo4_.TRANSPORT_METHODS as TRANSPORT_METHOD133_826_4_,
operationo4_.UNEXPECTED_MEMO as UNEXPECTED_MEMO134_826_4_,
operationo4_.VISIT_ID as VISIT_ID135_826_4_,
operationo4_.VISIT_NO as VISIT_NO136_826_4_,
operationo4_.ward_code_before as ward_code_before137_826_4_,
bloodorder5_.ALT as ALT2_114_5_,
bloodorder5_.HBc_Ab as HBc_Ab3_114_5_,
bloodorder5_.HBe_Ab as HBe_Ab4_114_5_,
bloodorder5_.HBe_Ag as HBe_Ag5_114_5_,
bloodorder5_.HBs_Ab as HBs_Ab6_114_5_,
bloodorder5_.HBs_Ag as HBs_Ag7_114_5_,
bloodorder5_.HCV as HCV8_114_5_,
bloodorder5_.HIV as HIV9_114_5_,
bloodorder5_.SYP_TEST as SYP_TEST10_114_5_,
bloodord er5_.APPLY_STATUS as APPLY_STATUS11_114_5_,
bloodorder5_.BABY_NO as BABY_NO12_114_5_,
bloodorder5_.BIRTH_TO as BIRTH_TO13_114_5_,
bloodorder5_.BLOOD_DIAGNOSE as BLOOD_DIAGNOSE14_114_5_,
bloodorder5_.BLOOD_HISTORY as BLOOD_HISTORY15_114_5_,
bloodorder5_.BLOOD_INUSE as BLOOD_INUSE16_114_5_,
bloodorder5_.BLOOD_PAPER as BLOOD_PAPER17_114_5_,
bloodorder5_.BLOOD_PURPOSE as BLOOD_PURPOSE18_114_5_,
bloodorder5_.BLOOD_SUM as BLOOD_SUM19_114_5_,
bloodorder5_.BLOOD_TABOO as BLOOD_TABOO20_114_5_,
bloodorder5_.CLINIC_CATE as CLINIC_CATE21_114_5_,
bloodorder5_.CYESIS as CYESIS22_114_5_,
bloodorder5_.ENCOUNTER_NO as ENCOUNTER_NO23_114_5_,
bloodorder5_.HEMATIN as HEMATIN24_114_5_,
bloodorder5_.LAST_BLOOD_DATE as LAST_BLOOD_DATE25_114_5_,
bloodorder5_.LEUCOCYTE as LEUCOCYTE26_114_5_,
bloodorder5_.ORDER_STATUS as ORDER_STATUS27_114_5_,
bloodorder5_.PAT_BLOOD_GROUP as PAT_BLOOD_GROUP28_114_5_,
bloodorder5_.PATIENT_ID as PATIENT_ID29_114_5_,
bloodorder5_.PLATELET as PLATELET30_114_5_,
bloodorder5_.RH as RH31_114_5_,
groupvsord6_.GROUPS_ID as GROUPS_ID2_631_6_,
groupvsord6_.MEMO as MEMO3_631_6_,
antibacter7_.AGE as AGE2_43_7_,
antibacter7_.ANTI_BEFORE_OPER_FLAG as ANTI_BEFORE_OPER_F3_43_7_,
antibacter7_.ANTI_BEFORE_OPER_INFO as ANTI_BEFORE_OPER_I4_43_7_,
antibacter7_.ANTIBACTERIAL_DRUG_CODE as ANTIBACTERIAL_DRUG5_43_7_,
antibacter7_.ANTIBACTERIAL_DRUG_NAME as ANTIBACTERIAL_DRUG6_43_7_,
antibacter7_.ANTIBIOTIC_INDICATOR as ANTIBIOTIC_INDICAT7_43_7_,
antibacter7_.APPLY_DOCTOR_CODE as APPLY_DOCTOR_CODE8_43_7_,
antibacter7_.APPLY_DOCTOR_NAME as APPLY_DOCTOR_NAME9_43_7_,
antibacter7_.APPLY_RECORD_DATE_TIME as APPLY_RECORD_DATE10_43_7_,
antibacter7_.AUTHORIZED_NAME as AUTHORIZED_NAME11_43_7_,
antibacter7_.AUTHORIZED_WORKER_NUMBER as AUTHORIZED_WORKER12_43_7_,
antibacter7_.BACTERIA_NAME as BACTERIA_NAME13_43_7_,
antibacter7_.BED_LABEL as BED_LABEL14_43_7_,
antibacter7_.BED_NO as BED_NO15_43_7_,
antibacter7_.COMMENTS as COMMENTS16_43_7_,
antibacter7_.CONSUL TATION_DEPT_CODE as CONSULTATION_DEPT17_43_7_,
antibacter7_.CONSULTATION_FLAG as CONSULTATION_FLAG18_43_7_,
antibacter7_.CONSULTATION_STAFF_CODE as CONSULTATION_STAF19_43_7_,
antibacter7_.CONSULTATION_TYPE as CONSULTATION_TYPE20_43_7_,
antibacter7_.CONTINUE_USE_NUMBER as CONTINUE_USE_NUMB21_43_7_,
antibacter7_.CUT_GRADE as CUT_GRADE22_43_7_,
antibacter7_.DEPT as DEPT23_43_7_,
antibacter7_.DIAGNOSIS as DIAGNOSIS24_43_7_,
antibacter7_.EMERGENCY_REASON as EMERGENCY_REASON25_43_7_,
antibacter7_.EMERGENCY_REASON_CODE as EMERGENCY_REASON_26_43_7_,
antibacter7_.EMERGENCY_STATUS as EMERGENCY_STATUS27_43_7_,
antibacter7_.EXPERT_CODE as EXPERT_CODE28_43_7_,
antibacter7_.EXPERT_NAME as EXPERT_NAME29_43_7_,
antibacter7_.FUNGUS_RESULT_CODE as FUNGUS_RESULT_COD30_43_7_,
antibacter7_.FUNGUS_RESULT_NAME as FUNGUS_RESULT_NAM31_43_7_,
antibacter7_.FUNGUS_TEST_CODE as FUNGUS_TEST_CODE32_43_7_,
antibacter7_.FUNGUS_TEST_NAME as FUNGUS_TEST_NAME33_43_7_,
antibacter7_.GENE_RESULT as GENE_RES ULT34_43_7_,
antibacter7_.IMAGING_RESULT as IMAGING_RESULT35_43_7_,
antibacter7_.IN_USE_DRUG_NAME as IN_USE_DRUG_NAME36_43_7_,
antibacter7_.INFECTION_DIAGNOSIS as INFECTION_DIAGNOS37_43_7_,
antibacter7_.LIMIT_USE_TIME as LIMIT_USE_TIME38_43_7_,
antibacter7_.MICROORGANISM as MICROORGANISM39_43_7_,
antibacter7_.MICROORGANISM_INFO as MICROORGANISM_INF40_43_7_,
antibacter7_.NEXT_GENE_SEQUENCING as NEXT_GENE_SEQUENC41_43_7_,
antibacter7_.NOT_SUGGEST_REASON as NOT_SUGGEST_REASO42_43_7_,
antibacter7_.NOT_SUGGEST_REASON_CODE as NOT_SUGGEST_REASO43_43_7_,
antibacter7_.OPER_INFECT_FLAG as OPER_INFECT_FLAG44_43_7_,
antibacter7_.OPER_INFECT_INFO as OPER_INFECT_INFO45_43_7_,
antibacter7_.OPER_WOUND_FLAG as OPER_WOUND_FLAG46_43_7_,
antibacter7_.OPER_WOUND_INFO as OPER_WOUND_INFO47_43_7_,
antibacter7_.OPERATION_CODE as OPERATION_CODE48_43_7_,
antibacter7_.OPERATION_NAME as OPERATION_NAME49_43_7_,
antibacter7_.ORDER_DATE_TIME as ORDER_DATE_TIME50_43_7_,
antibacter7_.OUTP_OR_INP as OUT P_OR_INP51_43_7_,
antibacter7_.PATIENT_ID as PATIENT_ID52_43_7_,
antibacter7_.PATIENT_NAME as PATIENT_NAME53_43_7_,
antibacter7_.PCT_TEST as PCT_TEST54_43_7_,
antibacter7_.POST_AUDIT_DATE_TIME as POST_AUDIT_DATE_T55_43_7_,
antibacter7_.POST_AUDIT_DOCTOR_ID as POST_AUDIT_DOCTOR56_43_7_,
antibacter7_.POST_AUDIT_DOCTOR_NAME as POST_AUDIT_DOCTOR57_43_7_,
antibacter7_.POST_AUDIT_STATUS as POST_AUDIT_STATUS58_43_7_,
antibacter7_.PREVENT_PURPOSE as PREVENT_PURPOSE59_43_7_,
antibacter7_.PROC_STATUS as PROC_STATUS60_43_7_,
antibacter7_.RECORD_PROCESSDATE_TIME as RECORD_PROCESSDAT61_43_7_,
antibacter7_.ROUTINE_BLOOD_TEST as ROUTINE_BLOOD_TES62_43_7_,
antibacter7_.SEX as SEX63_43_7_,
antibacter7_.SINFECTION as SINFECTION64_43_7_,
antibacter7_.SINFECTION_CODE as SINFECTION_CODE65_43_7_,
antibacter7_.SPM_CODE as SPM_CODE66_43_7_,
antibacter7_.SPM_NAME as SPM_NAME67_43_7_,
antibacter7_.STATUS as STATUS68_43_7_,
antibacter7_.STRAIN1 as STRAIN69_43_7_,
antibacter7_.STRAIN2 as STRAIN 70_43_7_,
antibacter7_.STRAIN3 as STRAIN71_43_7_,
antibacter7_.STRAIN_CODE as STRAIN_CODE72_43_7_,
antibacter7_.STRAIN_NAME as STRAIN_NAME73_43_7_,
antibacter7_.SUBMIT_CHECK_DOCTOR_CODE as SUBMIT_CHECK_DOCT74_43_7_,
antibacter7_.SUBMIT_CHECK_DOCTOR_NAME as SUBMIT_CHECK_DOCT75_43_7_,
antibacter7_.TEMPERATURE as TEMPERATURE76_43_7_,
antibacter7_.USAGE_DOSAGE as USAGE_DOSAGE77_43_7_,
antibacter7_.USE_ACCORDING as USE_ACCORDING78_43_7_,
antibacter7_.USE_ACCORDING_CODE as USE_ACCORDING_COD79_43_7_,
antibacter7_.USE_PURPOSE as USE_PURPOSE80_43_7_,
antibacter7_.VISIT_NO as VISIT_NO81_43_7_,
ordervsord8_.ORDER_ID1 as ORDER_ID2_847_8_,
ordervsord8_.ORDER_ID2 as ORDER_ID3_847_8_,
ordervsord8_.REL_ROLE as REL_ROLE4_847_8_,
ordervsord8_.RELATION_TYPE as RELATION_TYPE5_847_8_,
examorders9_.ADAPTATION_DISEASE as ADAPTATION_DISEASE2_600_9_,
examorders9_.ANESTHES_ASSESSMENT as ANESTHES_ASSESSMEN3_600_9_,
examorders9_.APPOINT_DATE_TIME as APPOINT_DATE_TIME4_600_9_,
examorders9_.APPOI NT_INDICATOR as APPOINT_INDICATOR5_600_9_,
examorders9_.APPOINT_MARK as APPOINT_MARK6_600_9_,
examorders9_.APPOINT_METHOD as APPOINT_METHOD7_600_9_,
examorders9_.APPOINT_TECHNICIAN as APPOINT_TECHNICIAN8_600_9_,
examorders9_.BABY_NO as BABY_NO9_600_9_,
examorders9_.BAR_CODE as BAR_CODE10_600_9_,
examorders9_.CHARGE_INDICATOR as CHARGE_INDICATOR11_600_9_,
examorders9_.CHARGES as CHARGES12_600_9_,
examorders9_.CLIN_DIAG as CLIN_DIAG13_600_9_,
examorders9_.CLIN_SYMP as CLIN_SYMP14_600_9_,
examorders9_.CLINIC_CATE as CLINIC_CATE15_600_9_,
examorders9_.COSTS as COSTS16_600_9_,
examorders9_.DEVICE as DEVICE17_600_9_,
examorders9_.DICOM_CODE as DICOM_CODE18_600_9_,
examorders9_.EFFECT as EFFECT19_600_9_,
examorders9_.EMERGENCY_INDICATOR as EMERGENCY_INDICAT20_600_9_,
examorders9_.ENCOUNTER_NO as ENCOUNTER_NO21_600_9_,
examorders9_.EXAM_CAUSE as EXAM_CAUSE22_600_9_,
examorders9_.EXAM_CLASS as EXAM_CLASS23_600_9_,
examorders9_.EXAM_CLASS_CODE as EXAM_CLASS_CODE24_600_9_,
exa morders9_.EXAM_DATE_TIME as EXAM_DATE_TIME25_600_9_,
examorders9_.EXAM_END_DATE_TIME as EXAM_END_DATE_TIM26_600_9_,
examorders9_.EXAM_GROUP as EXAM_GROUP27_600_9_,
examorders9_.EXAM_MODE as EXAM_MODE28_600_9_,
examorders9_.EXAM_NO as EXAM_NO29_600_9_,
examorders9_.EXAM_SUB_CLASS as EXAM_SUB_CLASS30_600_9_,
examorders9_.EXAM_SUB_CLASS_CODE as EXAM_SUB_CLASS_CO31_600_9_,
examorders9_.FACILITY as FACILITY32_600_9_,
examorders9_.IS_ALLERGY_DISEASES as IS_ALLERGY_DISEAS33_600_9_,
examorders9_.IS_ANESTHESIA as IS_ANESTHESIA34_600_9_,
examorders9_.IS_DRUG_ALLERGY as IS_DRUG_ALLERGY35_600_9_,
examorders9_.IS_HEART_DISEASE as IS_HEART_DISEASE36_600_9_,
examorders9_.IS_HYPERTENSION as IS_HYPERTENSION37_600_9_,
examorders9_.IS_LODINE_ALLERGY as IS_LODINE_ALLERGY38_600_9_,
examorders9_.IS_MODIFY_ANESTHESIA as IS_MODIFY_ANESTHE39_600_9_,
examorders9_.IS_MULTIPLE_MYELOMA as IS_MULTIPLE_MYELO40_600_9_,
examorders9_.NOTES as NOTES41_600_9_,
examorders9_.NOTICE as NOTICE42_600_9_,
exa morders9_.OPERATION_TIME as OPERATION_TIME43_600_9_,
examorders9_.OPERATOR_ID as OPERATOR_ID44_600_9_,
examorders9_.OPERATOR_NAME as OPERATOR_NAME45_600_9_,
examorders9_.ORDER_STATUS as ORDER_STATUS46_600_9_,
examorders9_.PAST_HISTORY as PAST_HISTORY47_600_9_,
examorders9_.PATIENT_ID as PATIENT_ID48_600_9_,
examorders9_.PATIENT_SOURCE as PATIENT_SOURCE49_600_9_,
examorders9_.PERFORMED_BY as PERFORMED_BY50_600_9_,
examorders9_.PHYS_SIGN as PHYS_SIGN51_600_9_,
examorders9_.PRINT_DATE_TIME as PRINT_DATE_TIME52_600_9_,
examorders9_.RELEVANT_DIAG as RELEVANT_DIAG53_600_9_,
examorders9_.RELEVANT_LAB_TEST as RELEVANT_LAB_TEST54_600_9_,
examorders9_.REPORT_DATE_TIME as REPORT_DATE_TIME55_600_9_,
examorders9_.REPORT_DOCTOR_ID as REPORT_DOCTOR_ID56_600_9_,
examorders9_.REPORT_TYPE as REPORT_TYPE57_600_9_,
examorders9_.REPORTER as REPORTER58_600_9_,
examorders9_.REQ_DATE_TIME as REQ_DATE_TIME59_600_9_,
examorders9_.REQ_DEPT as REQ_DEPT60_600_9_,
examorders9_.REQ_MEMO as REQ_MEMO 61_600_9_,
examorders9_.REQ_PHYSICIAN as REQ_PHYSICIAN62_600_9_,
examorders9_.REQ_PHYSICIAN_ID as REQ_PHYSICIAN_ID63_600_9_,
examorders9_.RESERVATION_NUMBER as RESERVATION_NUMBE64_600_9_,
examorders9_.RESULT_STATUS as RESULT_STATUS65_600_9_,
examorders9_.SCHEDULE_ADDRESS as SCHEDULE_ADDRESS66_600_9_,
examorders9_.SCHEDULE_QUEUE as SCHEDULE_QUEUE67_600_9_,
examorders9_.SCHEDULE_ROOM as SCHEDULE_ROOM68_600_9_,
examorders9_.SCHEDULED_DATE_TIME as SCHEDULED_DATE_TI69_600_9_,
examorders9_.SERIAL_NO as SERIAL_NO70_600_9_,
examorders9_.SIGN_INFORMED_CONSENT as SIGN_INFORMED_CON71_600_9_,
examorders9_.SPECIAL_INFECTION as SPECIAL_INFECTION72_600_9_,
examorders9_.SPM_RECEIVER as SPM_RECEIVER73_600_9_,
examorders9_.SPM_RECEIVER_ID as SPM_RECEIVER_ID74_600_9_,
examorders9_.SPM_RECVED_DATE as SPM_RECVED_DATE75_600_9_,
examorders9_.TECHNICIAN as TECHNICIAN76_600_9_,
examorders9_.TECHNICIAN_ID as TECHNICIAN_ID77_600_9_,
examorders9_.TIME_DESC as TIME_DESC78_600_9_,
examorders9_.TIM E_DIVISION_DESC as TIME_DIVISION_DES79_600_9_,
examorders9_.TRANSFER_METHOD as TRANSFER_METHOD80_600_9_,
examorders9_.VERIFIER as VERIFIER81_600_9_,
examorders9_.VERIFIER_DOCTOR_ID as VERIFIER_DOCTOR_I82_600_9_,
examorders9_.VERIFY_DATE_TIME as VERIFY_DATE_TIME83_600_9_,
examorders9_.VISIT_ID as VISIT_ID84_600_9_,
examorders9_.VISIT_NO as VISIT_NO85_600_9_,
exampathol10_.CHECK_CATEGORY as CHECK_CATEGORY2_602_10_,
exampathol10_.COLLECT_METHOD as COLLECT_METHOD3_602_10_,
exampathol10_.DILATATION_CURETTAGE_DATE as DILATATION_CURETTA4_602_10_,
exampathol10_.FASTING_BLOOD_GLUCOSE as FASTING_BLOOD_GLUC5_602_10_,
exampathol10_.FREEZING_SPECIMEN_INDICATOR as FREEZING_SPECIMEN_6_602_10_,
exampathol10_.HEIGHT as HEIGHT7_602_10_,
exampathol10_.HORMONOTHERAPY_MEMO as HORMONOTHERAPY_MEM8_602_10_,
exampathol10_.INFECTIOUS_DISEASE_HISTORY as INFECTIOUS_DISEASE9_602_10_,
exampathol10_.IS_COPY as IS_COPY10_602_10_,
exampathol10_.IS_GYNAECOLOGY as IS_GYNAECOLOGY11_602_10_,
exampathol10_ .LAST_MENSTRUAL_DATE as LAST_MENSTRUAL_DA12_602_10_,
exampathol10_.MENSES_HISTORY as MENSES_HISTORY13_602_10_,
exampathol10_.MENSTRUAL_PERIOD_MEMO as MENSTRUAL_PERIOD_14_602_10_,
exampathol10_.OPER_DOCTOR_NAME as OPER_DOCTOR_NAME15_602_10_,
exampathol10_.OPER_ORDER_ID as OPER_ORDER_ID16_602_10_,
exampathol10_.OPERATION_DATE as OPERATION_DATE17_602_10_,
exampathol10_.OPERATION_ROOM as OPERATION_ROOM18_602_10_,
exampathol10_.OPERATION_ROOM_PHONE as OPERATION_ROOM_PH19_602_10_,
exampathol10_.PAST_DIAGNOSIS as PAST_DIAGNOSIS20_602_10_,
exampathol10_.PAST_EXAM_DATE as PAST_EXAM_DATE21_602_10_,
exampathol10_.PAST_EXAM_NO as PAST_EXAM_NO22_602_10_,
exampathol10_.PAST_EXAM_ORGANIZATION as PAST_EXAM_ORGANIZ23_602_10_,
exampathol10_.PAST_EXAM_PATHOLOGY as PAST_EXAM_PATHOLO24_602_10_,
exampathol10_.PAST_SECTIOM_NO as PAST_SECTIOM_NO25_602_10_,
exampathol10_.PATHOLOGY_NO as PATHOLOGY_NO26_602_10_,
exampathol10_.SAMPLE_PLACE as SAMPLE_PLACE27_602_10_,
exampathol10_.SENSE as SENSE28_ 602_10_,
exampathol10_.SURGICAL_FINDINGS as SURGICAL_FINDINGS29_602_10_,
exampathol10_.TUMOUR_DESCRIPTION as TUMOUR_DESCRIPTIO30_602_10_,
exampathol10_.WEIGHT as WEIGHT31_602_10_
from DOCTOR_ORDERS doctororde0_
left outer join DRUG_ORDER_DETAIL drugorderd1_
on doctororde0_.ORDER_ID = drugorderd1_.ORDER_ID
left outer join LAB_ORDERS laborders2_
on doctororde0_.ORDER_ID = laborders2_.ORDER_ID
left outer join TREAT_ORDER_DETAIL treatorder3_
on doctororde0_.ORDER_ID = treatorder3_.ORDER_ID
left outer join OPERATION_ORDERS operationo4_
on doctororde0_.ORDER_ID = operationo4_.ORDER_ID
left outer join BLOOD_ORDERS bloodorder5_
on doctororde0_.ORDER_ID = bloodorder5_.ORDER_ID
left outer join GROUP_VS_ORDERS groupvsord6_
on doctororde0_.ORDER_ID = groupvsord6_.ORDER_ID
left outer join ANTIBACTERIAL_RECORD antibacter7_
on doctororde0_.ORDER_ID = antibacter7_.ORDER_ID
left outer join ORDER_VS_ORDER ordervsord8_
on doctororde0_.ORDER_ID = ordervsord8_.ORDER_VS_ORDER_ID
left outer join EXAM_ORDERS examorders9_
on doctororde0_.ORDER_ID = examorders9_.ORDER_ID
left outer join EXAM_PATHOLOGY_EXTENSION exampathol10_
on examorders9_.ORDER_ID = exampathol10_.ORDER_ID
inner join PERFORM_ORDERS performord11_
on (doctororde0_.ORDER_ID = performord11_.ORDER_ID)
where doctororde0_.CLINIC_CATE = :1
and doctororde0_.VISIT_NO = :2
and doctororde0_.PATIENT_ID = :3
and doctororde0_.ORDER_CLASS = 'A'
and (doctororde0_.REPEAT_INDICATOR = 1 and
performord11_.PERFORM_STATUS = '2' or
doctororde0_.REPEAT_INDICATOR = 0 and
doctororde0_.ENTER_DATE_TIME >= :4 and
doctororde0_.ENTER_DATE_TIME <= :5)
order by doctororde0_.ENTER_DATE_TIME
根据“library cache: mutex X”等待事件,查询该语句的vesion_count,发现比较高,一般超过10就可能造成性能问题
说明这条语句执行一下,如果要判断解析情况,要查找2000多次才能有结果,如果执行稍微频繁一点就可能造成pga内存资源耗光。
各时间段Pga消耗情况如下:
节点一部分时间段pga消耗过高。
数据库开有审计,记录写在数据库中,会增加资源消耗,建议关闭
平时审计消耗较高。
1 、pga内存耗尽造成,建议对gaptp5v57mj9s这条语句进行优化处理。
2、数据库中自带的审计关闭,避免不必要的开销和数据文件的占用。
造成library cache: mutex X的原因:
1、大量的硬解析:过于频繁的硬解析,会导致该等待
2、高版本的游标:当发生 High version count 时,大量的子游标需要检索,从而会引起该等待
3、游标失效:游标失效是指,保存在 library cache 中的游标由于不可用,而从 library cache 中删除。游标失效是指某些改变导致内存中的游标不再有效。例如:游标相关对象的统计信息搜集;游标关联表,视图等对象的修改等。发生游标失效会导致接下来的进程需要重新载入该游标。当游标失效过多时,会导致 ‘library cache: mutex X’ 等待
4、游标重新载入:游标重新载入是指本来已经存在于 library cache 中,但是当再次查找时已经被移出 library cache(例如:由于内存压力),这时就需要重新解析并且载入该游标。游标重新载入操作不是一件好事,它表明您正在做一件本来不需要做的事情,如果您设置的 library cache 大小适当,是可以避免游标重新载入的。游标重新载入的时候是不可以被进程使用的,这种情况会导致 library cache: mutex X 等待
涉及当前问题查询语句:
按时间查PGA消耗:
select a.time,a.inst_id,a.pgatotaluse,b.inst_id,b.pgatotaluse from (select b.snap_id,to_char(b.end_interval_time,‘yyyy-mm-dd hh24:mi:ss’) time,a.instance_number inst_id,round(a.value/1024/1024) pgatotaluse from dba_hist_pgastat a,dba_hist_snapshot b where a.snap_id=b.snap_id and a.name=‘total PGA allocated’ and a.instance_number=1 and b.instance_number=1 ) a, (select b.snap_id,to_char(b.end_interval_time,‘yyyy-mm-dd hh24:mi:ss’) time,a.instance_number inst_id,round(a.value/1024/1024) pgatotaluse from dba_hist_pgastat a,dba_hist_snapshot b where a.snap_id=b.snap_id and a.name=‘total PGA allocated’ and a.instance_number=2 and b.instance_number=2) b where a.snap_id=b.snap_id order by 1;
查version_count次数:
select VERSION_COUNT from v$sqlarea where sql_id=‘gaptp5v57mj9s’;
查ash记录:
select to_char(SAMPLE_TIME, ‘yyyy-mm-dd hh24:mi:ss’) date_time, SESSION_ID, SESSION_SERIAL#, SQL_ID, EVENT, BLOCKING_SESSION, SESSION_STATE, machine from DBA_HIST_ACTIVE_SESS_HISTORY where to_char(SAMPLE_TIME, ‘yyyy-mm-dd hh24:mi:ss’) between ‘2022-08-14 08:38:00’ and ‘2022-08-14 08:48:00’ order by 1;
查语句执行时间:
select max(to_char(SAMPLE_TIME, ‘yyyy-mm-dd hh24:mi:ss’)),min(to_char(SAMPLE_TIME, ‘yyyy-mm-dd hh24:mi:ss’)) from DBA_HIST_ACTIVE_SESS_HISTORY where sql_id=‘gaptp5v57mj9s’;
清理shared_pool中的某条sql
BIND_EQUIV_FAILURE 可以看出设置alter session set statistics_level=all;导致出现子光标不能共享,具体原因是什么不清楚 statistics_level 参数是oracle9.2开始引入的一个控制系统统计参数收集的一个开关.一共有三个值:basic,typical,all.支持alter session,alter system 动态修改.如果要用statspack或者AWR收集系统性能统计数据.那么这个参数的值必须为typical或all.通常all是一个全面收集,包括 OS以及sql执行路径方面的一些统计信息,除非遇见非常严重的性能问题或在一些特殊的性能挣断方面才会用到statistics_level=all, 平常statistics_level=typeical已经足够诊断99%的性能问题了.
ROLL_INVALID_MISMATCH:主要为统计信息 参数no_invalidate 未设置成 false(立即失效当前游标). 默认是dbms_stats.auto_invalidate(select DBMS_STATS.GET_PARAM(‘NO_INVALIDATE’) from dual;)。即ORACLE内部缓慢的过期游标。