Managing SQL Performance

1,761 views

Published on

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,761
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
156
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Managing SQL Performance

  1. 1. ! ! ! ! !! ! !"#"$%#$& ()& *+,-.,/"#0+& 1.23.3&4/5.3%6/&7899& :,"%#%#$&;"4& & & & #$%&%(%)!*+! ,-$%!./$(/! !"#$%&#&(#)(%*+",-&.(!! ! ! ! "!
  2. 2. ! ! ! !!! 0! ! ! ! ! ! ! ! ! ! !
  3. 3. ! ! ! ! !! ! !"#"$%#$&()&*+,-.,/"#0+& 2/(&/&!3+45/&674!08""!9!:$-66;!<-+! 08""=81="8! ! ,-$%!./$(/! karen.r.morton@gmail.com http://karenmorton.blogspot.com / !"#$%&$()$*"&+$*,%&-&-.$/%0$&+$*($%1#$%-%.&-.$"(2$345$6#,)(,+$%-$#-.,%&-#/7%8*(%*&9$ 6%,*$()$0(8,$%66:&9%*&(-$:&)#909:#;$<%-%.&-.$"(2$0(8,$345$6#,)(,+$+"(8:/-=*$>#$%$?(>$%++&.-#/$ *($ (-#$ 6#,+(-$ (,$ ,(:#@$ >8*$ *"#$ ?(>$ ()$ #A#,0(-#$ &-A(:A#/$ &-$ *"#$ /#A#:(6#-*$ %-/$ (-B.(&-.$ %&-*#-%-9#$ %-/$ +866(,*$ ()$ 0(8,$ %66:&9%*&(-+;$ !((:+$ %-/$ *#9"-&C8#+$ :#%,-#/$ 2&::$ "#:6$ 0(8$ 2,&*#$>#**#,$345$)%+*#,$%-/$#-%>:#$0(8$*($C8&91:0$/&%.-(+#$6((,:0$6#,)(,&-.$345;$D(8=::$%:+($ :#%,-$ "(2$ *($ ,#9(.-&E#$ %-/$ 9(,,#9*$ %-0$ 9((-$ %-*&6%**#,-+$ *"%*$ %0$ >#$ 6,#+#-*$ &-$ 0(8,$ 98,,#-*$9(/#$*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$4-?%!-&!-!?/?%$K!+/7!4-+!G6J%G+!6;/$%K!/$!-(!(>%!V%$+!G%-&(!46646[%K!+/7$!$/G%!6!%&7$6;!/5(64-G!5%$B/$4-?%!/B!(>%!3OP!+/7!A$6(%L!Y7(!$%;-$)G%&&!/B!+/7$!)%B6%)!]/*!$/G%K!W!)/!*%G6%V%!(>-(!%BB%?(6V%!3OP!5%$B/$4-?%!4--;%4%(!&(-$(&!A6(>!+/7$!46)&%(L!W(U&!>/A!+/7!V6%A!+/7$!$/G%!-)!(>%!?/($6*7(6/&!+/7!4-J%!6!$%;-$)!(/!(>%!5%$B/$4-?%!/B!+/7$!?/)%!(>-(!4-J%&!(>%!)6BB%$%?%!*%(A%%!-!/5(64-GG+!5%$B/$46;!-55G6?-(6/!-)!-!5//$G+!5%$B/$46;!/%L! C/&6)%$!(>%!)%B66(6/!/B!(>%!A/$)!manageH! "L (/!>-)G%!/$!)6$%?(!A6(>!-!)%;$%%!/B!&J6GGH!-&!! a: (/!4-J%!-)!J%%5!?/45G6-(!! b: (/!($%-(!A6(>!?-$%H!>7&*-)!! c: (/!%@%$?6&%!%@%?7(6V%K!-)466&($-(6V%K!-)!&75%$V6&/$+!)6$%?(6/!/B! 0L (/!A/$J!75/!/$!($+!(/!-G(%$!B/$!-!57$5/&%! 1L (/!&7??%%)!6!-??/45G6&>6;H!?/($6V%! —.%$$6-4^M%*&(%$!FG6%! www.merriam-webster.com/dictionary/manage :>6&!)%B66(6/!6)6?-(%&!(>-(!6B!+/7!A-(!&/4%(>6;!(/!*%!4--;%-*G%K!+/7!47&(!;6V%!6(!&J6GG%)!-((%(6/!-)!%BB/$(L!3/K!B6$&(!-)!B/$%4/&(K!W!(>6J!4--;6;!5%$B/$4-?%!6&!-*/7(!6(%;$-(6;!/%!&645G%!5$6?65G%!6(/!+/7$!46)&%(H!I am responsible for the performance of the code I write or maintainL!M6(>/7(!-!?/&?6/7&!5%$&/-G!?>/6?%!(/!-??%5(!$%&5/&6*6G6(+!B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%4%(&!G6J%!(>6&H! UPDATE TR_POLICY set POL_TYPE_CD = 1, audit_rec_updt_dts = SYSTIMESTAMP, audit_rec_updt_ver_nbr = audit_rec_updt_ver_nbr + 1, audit_rec_updt_appl_id = DCCR WHERE REPORTED_PROP_STATE_CD = NY AND RATE_POLICY_CD = 111 AND DECODE("POL_SUB_STAT_CD", UBE, 1, VALID, 2, EXCEPTION, 2, 0) = 1 AND POL_DATA_SOURCE_CD = UPLOAD;E-?>!T#<I:E!V-$6%)!/G+!*+!(>%!V-G7%!(/!*%!&%(!B/$!#FPj:Z#EjC<!-)!(>%!5$%)6?-(%!V-G7%&!B/$!SE#FS:E<j#SF#j3:I:EjC<!-)!SI:Ej#FPWCZjC<L!! W!;$-**%)!(>%!%@%?7(6/!)-(-!B$/4!IMS!_7&6;!(>%!&(-)-$)!-A$$5(L&XG`!-)!B/7)!(>-(K!/!-V%$-;%K!%-?>!6)6V6)7-G!T#<I:E!(//J!-55$/@64-(%G+!"8^""!&%?/)&!(/!?/45G%(%L!d6V%!(>-(!(>%!7&7-G!(64%!B/$!-!&6;G%!%@%?7(6/!(/!?/45G%(%!(//J!-$/7)!-!&%?/)K!W!&7&5%?(%)!(>%!5$/*G%4!A-&!A6(>!&(-(6&(6?&!(>-(!4-+!>-V%!?-7&%)!(>%!%@%?7(6/!5G-!(/!?>-;%!B/$!(>%!A/$&%L! W!(//J!(>%!3OPjW<!B$/4!(>%!$%5/$(!-)!X7%$6%)!IMS!7&6;!-!&?$65(!-4%)!@5)-A$L&XG!(/!$%($6%V%!(>%!%@%?7(6/!5G-!B/$!/%!/B!(>%!T#<I:E&!)7$6;!(>%!N&G/AQ!(64%L!W!-G&/!57GG%)!-!%@%?7(6/!5G-!B/$!(>%!&-4%!3OPjW<!B$/4!-!5$6/$!%V%6;!A>%!6(!>-)!?/45G%(%)!6!(>%!7&7-G!0!467(%!A6)/AL!:>%!(A/!5G-&!A%$%!X76(%!)6BB%$%(L!2%$%U&!(>%!*-&6?!N*-)Q!5G-!B/GG/A%)!*+!(>%!N;//)Q!5G-H!! ! ! ! m!
  10. 10. ! ! !Y-)!5G-! ---------------------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes |TempSpc| Cost (%CPU)| ---------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 4 | 1472 | | 287K (3)| |* 1 | TABLE ACCESS BY INDEX ROWID | TR_POLICY | 4 | 1472 | | 287K (3)| | 2 | BITMAP CONVERSION TO ROWIDS | | | | | | | 3 | BITMAP AND | | | | | | | 4 | BITMAP CONVERSION FROM ROWIDS| | | | | | | 5 | SORT ORDER BY | | | | 37M| | |* 6 | INDEX RANGE SCAN | TR_POLICY_N5 | | | | 6543 (1)| | 7 | BITMAP CONVERSION FROM ROWIDS| | | | | | | 8 | SORT ORDER BY | | | | 95M| | |* 9 | INDEX RANGE SCAN | TR_COUNTY_FK6 | | | | 8721 (1)| ---------------------------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 1 - filter("RATE_POLICY_CD"=111 AND "POL_DATA_SOURCE_CD"=UPLOAD) 6 - access(DECODE("POL_SUB_STAT_CD",UBE,1,VALID,2,EXCEPTION,2,0)=1) filter(DECODE("POL_SUB_STAT_CD",UBE,1,VALID,2,EXCEPTION,2,0)=1) 9 - access("REPORTED_PROP_STATE_CD"=NY) filter("REPORTED_PROP_STATE_CD"=NY)!d//)!5G-! ---------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes| Cost (%CPU)| ---------------------------------------------------------------------------------- |* 1 | TABLE ACCESS BY INDEX ROWID| TR_POLICY | 1 | 368 | 7307 (1)| |* 2 | INDEX RANGE SCAN | TR_POLICY_N5 | 16711 | | 92 (0)| ---------------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 1 - filter(("RATE_POLICY_CD"=111 AND "POL_DATA_SOURCE_CD"=AND "REPORTED_PROP_STATE_CD"=NY)) 2 - access("TR_POLICY"."SYS_NC00063$"=1)! M6(>!]7&(!(>6&!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:Sj#FPWCZjia!6)%@L!I&!+/7!?-!+/7!&%%!B$/4!(>%!5$%)6?-(%!6B/$4-(6/!6!(>%!5G-K!(>%!?/G74!WU4!G//J6;!B/$!6&!3Z3jiC888D1hL!.+!&?$65(!&>/A%)!4%!(>%!B/GG/A6;!56%?%&!/B!6B/$4-(6/H! ========================================================================================================= INDEX STATISTICS ========================================================================================================= Index Name Pos# Order Column Name -------------- ---- ----- ------------- tr_policy_n5 1 ASC sys_nc00063$ 2 ASC sys_nc00064$ 3 ASC pol_sys_id 4 ASC batch_sys_id!! "8! ! ! ! ! ! ! ! ! ! !
  11. 11. ! ! ! ! !! ! Index Name Column Name Pos# Expression -------------- -------------- ---- -------------------------------------------------------------- tr_policy_n5 SYS_NC00063$ 1 DECODE("POL_SUB_STAT_CD",UBE,1,VALID,2,EXCEPTION,2,0) SYS_NC00064$ 2 TRUNC("ENTERED_INTO_SYS_DTS") ========================================================================================================= COLUMN STATISTICS ========================================================================================================= Name Analyzed Null? NDV Density # Nulls # Buckets Sample AvgLen Lo-Hi Values ========================================================================================================= sys_nc00063$ 02/11/2011 18:15:53 Y 2 .000000 0 2 6953 3 0 | 2 =========================== HISTOGRAM STATISTICS =========================== SYS_NC00063$ (2 buckets) 1 97% 3/K!(>%!&(-(&!B/$!(>%!?/G74!&>/A!(>-(!(>%$%!-$%!(A/!)6&(6?(!V-G7%&!_8K!0`!-)!(>-(!/%!/B!(>%!V-G7%&!6&!5$%&%(!6!mcn!5%$?%(!/B!(>%!$/A&L!Y7(K!)6)U(!(>%!5$%)6?-(%!B/$!(>%!T#<I:E!7&%!-!V-G7%!/B!"R!Z%&f!3/K!6(!G//J&!G6J%!(>%!V-G7%!"!6&!46&&6;!B$/4!(>%!&(-(&L!W!/$)%$!(/!?/B6$4!(>6&!?>-;%!A-&!4-)%!)7%!(/!(>%!&(-(6&(6?&!?/GG%?(6/K!W!%%)%)!(/!?/45-$%!(>%!?7$$%(!&(-(&!(/!(>%!5$%V6/7&!?/GG%?(6/L!F$-?G%!-7(/4-(6?-GG+!*-?J&!75!&(-(6&(6?&!5$6/$!(/!?/GG%?(6;!-!%A!&%(!&/!W!?/7G)!57GG!(>%4!B$/4!(>%!>6&(/$+L!36?%!A%!-G&/!J%%5!*-?J75&!/B!/7$!/AK!W!/5(%)!(/!?/45-$%!(/!/7$!*-?J75!?/5+L!W!7&%)!-/(>%$!&?$65(!?-GG%)!)6BB^&(-(&^&(-((-*L&XG!(>-(!%@%?7(%&!-!)6BB%$%?%!$%5/$(!7&6;!(>%!<Y.3j3:I:3L<Wkkj:IYPEj3:I:3jWij3:I::IY!5$/?%)7$%L!2%$%!-$%!(>%!J%+!56%?%&!/B!6B/$4-(6/!W!>-)!-B(%$!%@%?7(6;!4+!&?$65(H! STATISTICS DIFFERENCE REPORT FOR: ................................. TABLE : TR_POLICY OWNER : TRAX_OWNER SOURCE A : User statistics table TRAX_STATS_BACKUP_20110211 : Statid : : Owner : TRAX_OWNER SOURCE B : Current Statistics in dictionary PCTTHRESHOLD : 1 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ COLUMN STATISTICS DIFFERENCE: ............................. COLUMN_NAME SRC NDV DENSITY HIST NULLS LEN MIN MAX SAMPSIZ ............................................................................... SYS_NC00063$ A 3 .000000009 YES 0 3 80 C103 5.5E+07 B 2 .000000008 YES 0 3 80 C103 6953!! i/(6?%!(>-(!(>%!i<g!_74*%$!/B!)6&(6?(!V-G7%&`!?>-;%)!B$/4!1!(/!0!A>%!(>%!&(-(&!A%$%!?/GG%?(%)L!WB!+/7!G//J!-!*6(!?G/&%$K!+/7UGG!/(6?%!(>%!$%-&/!A>+L!:>%!&-45G%!&6[%!B/$!(>%!5$%V6/7&!?/GG%?(6/!A-&!)/%!-(!"88n!_/(%!(>%!&-45G%!&6[%!V-G7%!/B!aLaEo8c`!-&!?/45-$%)!(/!-!&-45G%!&6[%!/B!]7&(!7)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!;%(!B$/4!/%!5/6(!(/!(>%!/(>%$L!WB!(>%!)6&(-?%!6&!>7)$%)&!/$!(>/7&-)&!/B!46G%&K!"!>/7$!46;>(!*%!V%$+!$%-&/-*G%K!*7(!6B!(>%!)6&(-?%!6&!08!B%%(K!"!>/7$!4-+!*%!%@($-/$)6-$6G+!G/;L!!! "! ! ! ! ! ! ! ! ! ! !
  15. 15. ! ! ! ! !! ! :/!)%(%$46%!A>+!-!5$/;$-4!6&!&G/AK!G%(U&!&(-$(!*+!A-GJ6;!(>$/7;>!(>%!--G+&6&!/B!-!5$/?%)7$%!-4%)!#L!#!6&!$76;!3-(2L!3/K!B6$&(!W!%%)!(/!J/A!%@-?(G+!A>-(!&G/A!4%-&!6!(%$4&!/B!$%&5/&%!(64%L! SQL> set timing on SQL> exec p PL/SQL procedure successfully completed. Elapsed 00:02:09:98 F?%!W!>-V%!-!*-&%!(646;!/B!0!467(%&!mLme!&%?/)&K!W!?-!/5%!75!(>%!?/)%!-)!($+!-)!)%(%$46%!A>%$%!(/!;/!B$/4!(>%$%L!:>%!?/)%!B/$!#!6&H! create or replace procedure p as begin q; r; s; end; /i/A!A>-(R!#!?-GG&!(>$%%!/(>%$!5$/?%)7$%&L!3/K!>/A!)/!W!J/A!A>%$%!(/!&(-$(R!M%GGK!W!?/7G)!&645G+!/5%!75!(>%!B6$&(!5$/?%)7$%K!OK!-)!&%%!6B!W!?-!B6)!-+!645$/V%4%(&!(/!*%!4-)%!(>%$%L!Y7(K!4-+*%!6(!A/7G)!*%!>%G5B7G!(/!*%!-!G6((G%!4/$%!6B/$4%)!*%B/$%!W!&(-$(!($+6;!(/!G//J!B/$!-$%-&!(/!645$/V%L!2%$%U&!A>%$%!6&($74%(-(6/!?/4%&!6L!WUGG!-))!-!G6((G%!?/)%!(/!>%G5!4%!4%-&7$%!A>%$%!(>%!%@%?7(6/!/B!#!&5%)&!6(U&!(64%H! create or replace procedure p as t0 number; t1 number; t2 number; t3 number; begin t0 := dbms_utility.get_time; q; t1 := dbms_utility.get_time ; dbms_output.put_line (Procedure q: || to_char((t1 - t0)/100)); r; t2 := dbms_utility.get_time ; dbms_output.put_line (Procedure r: || to_char((t2 - t1)/100)); s; t3 := dbms_utility.get_time ; dbms_output.put_line (Procedure s: || to_char((t3 - t2)/100)); dbms_output.put_line (Total R : || to_char((t3 - t0)/100)); end; /!i/A!(>-(!WUV%!-))%)!&/4%!?/)%!(/!>%G5!?-5(7$%!(646;!)%(-6G!-(!-!4/$%!;$-7G-$!G%V%GK!G%(U&!%@%?7(%!#!-;-6L! SQL> set timing on SQL> exec p Procedure q: 1 Procedure r: 114 Procedure s: 15 Total R : 130 Elapsed 00:02:09:99! M6(>!(>6&!6B/$4-(6/K!/A!W!J/A!A>%$%!(>%!(64%!6&!&5%(L!:>%!4-]/$6(+!/B!(64%!6&!&5%(!%@%?7(6;!5$/?%)7$%!SL!:>-(U&!;$%-(!6B/$4-(6/!(/!>-V%L!Y7(K!A>-(!)6)!6(!?/&(!B/$!4%!(/!>-V%!(>6&!6B/$4-(6/R!i/(!47?>!$%-GG+L!:>%!(/(-G!%@%?7(6/!(64%!6?$%-&%)!*+!L8"!&%?/)&!_B$/4!"0mLme!(/!"0mLmm`L!W!>-)!(/!4-J%!&/4%!-))6(6/&!(/!(>%!?/)%H!!%A!V-$6-*G%&!-)!e!G6%&!/B!?/)%!(/!?-5(7$%!(646;!)-(-L!:>%!&4-GG!%BB/$(!%((%)!*6;!$%&7G(&!6!(>-(!/A!W!J/A!A>%$%!(/!B/?7&!4+!-((%(6/L!! ! ! ! "a!
  16. 16. ! ! !! M>%$%!A/7G)!+/7!>-V%!&(-$(%)!6B!+/7!)6)U(!>-V%!(>6&!)-(-R!./$%!645/$(-(G+K!A>-(!A/7G)!>-55%!6B!+/7!&(-$(%)!(/!A/$J!/!5$/?%)7$%!O!/$!3!B6$&(R!Y-&%)!/!(>%!(646;!)-(-!?/GG%?(%)K!%V%!6B!A%!?/7G)!$%)7?%!(>%!%@%?7(6/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  17. 17. ! ! ! ! !! !! :>%!?-GG!(/!3E:jW<Ei:WkWES!?-!*%!4-)%!-(!-+!5/6(!6!(64%K!*7(!-!5$-?(6?-G!/5(6/!46;>(!*%!(/!>-V%!(>%!6)%(6B6%$!&%(!V6-!-!G/;/!($6;;%$L!Z/7!?-!-??%&&!6B/$4-(6/!-*/7(!(>%!&%&&6/!-G$%-)+!-V-6G-*G%!B$/4!3Z3jCFi:Es:!-)!5/57G-(%!(>%!?G6%(j6)%(6B6%$!644%)6-(%G+!75/!G/;/L!:>-(!A-+K!(>%!&%&&6/!6&!6)%(6B6%)!644%)6-(%G+L!k/$!%@-45G%K!+/7!?/7G)!?$%-(%!-!G/;/!($6;;%$!&/4%(>6;!G6J%!(>6&H! CREATE OR REPLACE TRIGGER client_id_logon_trg AFTER LOGON ON DATABASE DECLARE my_service SYS.V_$SESSION.SERVICE_NAME%TYPE; my_clientid SYS.V_$SESSION.CLIENT_IDENTIFIER%TYPE; my_ip_address SYS.V_$SESSION.TERMINAL%TYPE; my_os_user SYS.V_$SESSION.OSUSER%TYPE; my_audsid SYS.V_$SESSION.AUDSID%TYPE; my_program SYS.V_$SESSION.PROGRAM%TYPE; CLIENT_ID_DELIM CHAR(1) := ~; BEGIN IF USER NOT IN (SYS) AND USER IS NOT NULL THEN my_clientid := SYS_CONTEXT(USERENV, CLIENT_IDENTIFIER); IF my_clientid IS NULL THEN my_service := SYS_CONTEXT(USERENV, SERVICE_NAME); my_ip_address := NVL(SYS_CONTEXT(USERENV, IP_ADDRESS),SYS_CONTEXT(USERENV, TERMINAL)); my_os_user := SYS_CONTEXT(USERENV, OS_USER); my_audsid := TO_NUMBER(SYS_CONTEXT(USERENV, SESSIONID)); SELECT PROGRAM INTO my_program FROM SYS.V_$SESSION WHERE AUDSID = my_audsid AND ROWNUM = 1; DBMS_SESSION.SET_IDENTIFIER(my_os_user || CLIENT_ID_DELIM || my_ip_address || CLIENT_ID_DELIM || my_program || CLIENT_ID_DELIM || my_service); END IF;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!3E:jIC:WFi!&>/7G)!*%!5G-?%)!-(!(>%!&(-$(!/B!(>%!5-$(6?7G-$!*7&6%&&!(-&J!-)!*%!$%&%(!_6L%L!&%(!(/!7GG`!A>%!(>-(!(-&J!6&!?/45G%(%!/$!A>%%V%$!-!%$$/$!/??7$&L!W!/$)%$!(/!>%G5!6)%(6B+!(>%!?7$$%(!4/)7G%!-)!-?(6/!(>-(!6&!6!5G-?%K!(>%!SEI<j.F<TPE!5$/?%)7$%!6&!7&%)L!M>%%V%$!+/7!$%&%(!(>%!4/)7G%!-)!-?(6/!-(!(>%!*%;66;!/B!-!(-&JK!+/7!&>/7G)!4-J%!&7$%!(/!?>%?J!6B!-!4/)7G%=-?(6/!6&!-G$%-)+!6!5G-?%L!WB!&/K!+/7!A/7G)!&(/$%!(>-(!6B/$4-(6/!-)!(>%!$%&%(!4/)7G%!-)!-?(6/!(/!(>/&%!V-G7%&!A>%!(>%!?7$$%(!(-&J!?/45G%(%&L!:>%!B/GG/A6;!G6&(6;!5$/V6)%&!-!&>/$(!%@-45G%H! PROCEDURE get_emp_simple_instr IS fnlist_stack fnlist_tab; lnlist_stack lnlist_tab; BEGIN DBMS_APPLICATION_INFO.set_module(module_name => Human Resources ,action_name => Get Employees); SELECT first_name, last_name BULK COLLECT INTO fnlist_stack, lnlist_stack FROM employees; DBMS_APPLICATION_INFO.set_module(NULL, NULL); EXCEPTION WHEN OTHERS THEN DBMS_APPLICATION_INFO.set_module(NULL, NULL); DBMS_OUTPUT.PUT_LINE(HR_Package.get_emp_simple_instr => ERROR); END get_emp_simple_instr; :>6&!%@-45G%!A/$J&!]7&(!B6%!-)!A6GG!&%(!(>%!4/)7G%!-)!-?(6/!-(!(>%!*%;66;!/B!(>%!?/)%!*/)+!-)!$%&%(!6(!-(!(>%!%)K!6B!&7??%&&B7GK!/$!A6(>6!(>%!%@?%5(6/!>-)G%$!6B!-!%$$/$!/??7$&L!Y7(K!A>-(!A/7G)!>-55%!6B!(>6&!5$/?%)7$%!A-&!?-GG%)!6&6)%!-/(>%$!5$/?%)7$%!(>-(!A-&!&646G-$G+!6&($74%(%)!-&!B/GG/A&R! PROCEDURE get_emp_jobs_instr_flawed IS jtlist_stack jtlist_tab; lnlist_stack lnlist_tab; BEGIN DBMS_APPLICATION_INFO.set_module(module_name => Human Resources, action_name => Get Employees and Jobs); get_emp_simple_instr; SELECT last_name, job_title BULK COLLECT INTO lnlist_stack, jtlist_stack FROM employees e, jobs j WHERE e.job_id = j.job_id; DBMS_APPLICATION_INFO.set_module(NULL, NULL); EXCEPTION WHEN OTHERS THEN DBMS_APPLICATION_INFO.set_module(NULL, NULL); DBMS_OUTPUT.PUT_LINE(get_emp_jobs_instr_flawed => ERROR); END get_emp_jobs_instr_flawed; i/(%!(>-(!-B(%$!(>%!4/)7G%!-)!-?(6/!-$%!&%(!6!(>6&!5$/?%)7$%K!/7$!/(>%$!5$/?%)7$%!6&!?-GG%)L!M>-(U&!(>%!5$/*G%4R!:>%!5$/*G%4!6&!(>-(!644%)6-(%G+!-B(%$!(>%!4/)7G%!-)!-?(6/!-$%!&%(!B/$!(>6&!5$/?%)7$%K!(>%!;%(j%45j&645G%j6&($!5$/?%)7$%!6&!?-GG%)!-)!6&6)%!(>-(!5$/?%)7$%K!(>%!4/)7G%!-)!-?(6/!-$%!&%(!(/!V-G7%&!&5%?6B6?!(/!(>-(!5$/?%)7$%L!I(!(>%!%)!/B!(>-(!?-GGK!(>%!4/)7G%!-)!-?(6/!-$%!&%(!(/!7GGL!:>%$%B/$%K!A>%!(>%!3EPEC:!&(-(%4%(!6&!%@%?7(%)!-B(%$!(>-(!5$/?%)7$%!?-GG!?/45G%(%&K!/7$!?7$$%(!4/)7G%!-)!-?(6/!>-V%!*%%!G/&(L!:>6&!6&!A>%$%!A%!%%)!(/!4-J%!&7$%!?-5(7$%!(>%!4/)7G%!-)!-?(6/!V-G7%&!-)!$%(-6!(>%4!&/!(>-(!A%!?-!!! "e! ! ! ! ! ! ! ! ! ! !
  19. 19. ! ! ! ! !! !-GA-+&!$%&%(!(>%4!5$/5%$G+!A>%!?-GG&!-$%!4-)%!(/!/(>%$!6&($74%(%)!5$/?%)7$%&L!:>%!5$/5%$!A-+!(/!?/)%!(>%!/$6;6-G!5$/?%)7$%!A/7G)!*%!G6J%!(>6&H! PROCEDURE get_emp_instr_good IS fnlist_stack fnlist_tab; lnlist_stack lnlist_tab; preModuleName VARCHAR2(48) := NULL; preActionName VARCHAR2(32) := NULL; BEGIN DBMS_APPLICATION_INFO.read_module( module_name => preModuleName, action_name => preActionName); DBMS_APPLICATION_INFO.set_module( module_name => Human Resources, action_name => Get Employees); SELECT first_name, last_name BULK COLLECT INTO fnlist_stack, lnlist_stack FROM employees; DBMS_APPLICATION_INFO.set_module( module_name => preModuleName, action_name => preActionName); EXCEPTION WHEN OTHERS THEN DBMS_OUTPUT.PUT_LINE(HR_Package.get_emp_instr_good ERROR); DBMS_APPLICATION_INFO.set_module( module_name => preModuleName, action_name => preActionName); END get_emp_instr_good; i/A!(>%!?-GG6;!5$/?%)7$%U&!4/)7G%!-)!-?(6/!A6GG!*%!5$%&%$V%)!5$/5%$G+L!!MBX !"R%#$&%#32,6/+#2"2%.#&+"34&T&6;!(>%!&755G6%)!5-?J-;%&!6&!$%G-(6V%G+!&($-6;>(^B/$A-$)!*7(!)/%&!$%X76$%!&/4%!4--;%4%(!/B!(>%!?-GG!&(-?J!&/!(>-(!+/7!4-6(-6!(>%!5$/5%$!4/)7G%=-?(6/!&%((6;&!-&!+/7!?>-;%!(-&J&L!k/$(7-(%G+K!(>%$%!6&!-!B$%%K!F5%!3/7$?%!5-?J-;%!?-GG%)!(>%!W&($74%(-(6/!P6*$-$+!B/$!F$-?G%!_WPF`!-V-6G-*G%!-(!3/7$?%k/$;%!_4))56773(@#.$>(#+$&%$)75#(8$.)37,-(`!(>-(!>-&!*%%!A$6((%!-)!4-6(-6%)!*+!.%(>/)!S!C/$5/$-(6/!(>-(!%?-5&7G-(%&!(>%!7&%!/B!(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iK!-)!CF..Ei:L!M>%!4-$J6;!(>%!%)!/B!-!(-&JK!+/7!-;-6!4-J%!-!&645G%!5$/?%)7$%!?-GGL!Y%!&7$%!(/!6?G7)%!-GG!5/&&6*G%!%@6(!5/6(&!/B!(>%!4-$J%)!(-&J!6?G7)6;!-+!EsCE#:WFi!&%?(6/&!6!+/7$!?/)%L! BEGIN ilo_task.begin_task(module => Load Transaction Tables, action => Begin overall load, comment => Execution of procedure all_trx_table_loads); // ... code to perform task goes here ilo_task.end_task; EXEPTION WHEN ex_insert_problem THEN ilo_task.end_task(error_num => SQLCODE); WHEN ex_update_problem THEN ilo_task.end_task(error_num => SQLCODE); WHEN others THEN ilo_task.end_task(error_num => SQLCODE); END;MBXBX )%0+#3%#$&WPF!6&!/5%!&/7$?%!&/B(A-$%!-V-6G-*G%!-(!3/7$?%k/$;%L!W(!6&!$%G%-&%)!B$%%!/B!?>-$;%!7)%$!(>%!diT!P%&&%$!d%%$-G!#7*G6?!P6?%&%!_Pd#P`L! E)!/B!?/56%)!6B/$4-(6/L!MB[ &CDD%#$&.#&2.&2H+&<)?&F%!/B!(>%!?//G%&(!(>6;&!-*/7(!(>%!WPF!6&!(>-(!+/7!?-!4/)6B+!6(!(/!6?G7)%!-+!-))6(6/-G!6&($74%(-(6/!B%-(7$%&!+/7!4-+!A-(L!k/$!6&(-?%K!6!?>-5(%$!"1!/B!E@5%$(!F$-?G%!#$-?(6?%&H!F$-?G%!<-(-*-&%!I)466&($-(6/!B$/4!(>%!F-J!:-*G%K!-)!?>-5(%$!"a!/B!#$/!F$-?G%!3OP!_*/(>!B$/4!I5$%&&`K!S/*+!3-)&!6?G7)%&!&/4%!;$%-(!6B/$4-(6/!/!>/A!&>%!>-&!%@(%)%)!(>%!WPF!(/!)/!4/$%!(>-!]7&(!4-$J!>%$!?/45-+U&!?/)%!A6(>!4/)7G%!-)!-?(6/!-4%&L! C>-5(%$!"a!>-&!*%%!$%5$6(%)!-)!6?G7)%)!-(!(>%!%)!/B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/!6!-!&6;G%K!?/45G%@!&(-(%4%(!?-!-G&/!*%!(>%!$//(!?-7&%!/B!-/(>%$!5$/*G%4H!7&6;!(//!4-+!$%&/7$?%&!(/!5$/)7?%!(>%!$%&7G(!%%)%)L!XB9B9 FQ"/5N+&9]&<#D+Q&G6NN&0"#&!%#^!"Q&?52%/%O"2%.#&! WUV%!&%%!(>6&!B6$&(!%@-45G%!)%4/&($-(%)!-!47G(6(7)%!/B!(64%&K!-)!B/$!(>6&!/%!&5%?6B6?!%@-45G%K!W!(>6J!4/&(!5%/5G%!>-V%!G%-$%)!/(!(/!)/!(>6&L!Y7(K!6(!6&!-!%-&+!A-+!(/!&>/A!>/A!*$%-J6;!3OP!-5-$(!?-!>-V%!-4-[6;!645-?(L!!! M>%!%@%?7(6;!-!-;;$%;-(%!X7%$+!(>-(!%%)&!(/!$%(7$!*/(>!(>%!466474!-)!4-@6474!V-G7%!B/$!-!?/G74K!(>%!?/44/!?>/6?%!6&!(/!%@%?7(%!-!&6;G%!X7%$+!A6(>!(>%!46!-)!4-@!$%(7$%)!-&!B/GG/A&H! SQL> select /* km_min */ min(department_id) from employees ; MIN(DEPARTMENT_ID) ------------------ 10 SQL> @pln km_min SQL_ID 3xfdnnga1pcdf, child number 0 ------------------------------------- Plan hash value: 613773769 ---------------------------------------------------------------------------------------------------------- | Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | ---------------------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 1 | | 1 |00:00:00.01 | 1 | | 1 | SORT AGGREGATE | | 1 | 1 | 1 |00:00:00.01 | 1 | | 2 | INDEX FULL SCAN (MIN/MAX)| EMP_DEPARTMENT_IX | 1 | 1 | 1 |00:00:00.01 | 1 | ---------------------------------------------------------------------------------------------------------- SQL> SQL> select /* km_max */ max(department_id) from employees ; MAX(DEPARTMENT_ID) ------------------ 110 SQL> @pln km_max! ! ! ! 0"!
  22. 22. ! ! ! SQL_ID 9j878bkhc57aj, child number 0 ------------------------------------- Plan hash value: 613773769 ---------------------------------------------------------------------------------------------------------- | Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | ---------------------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 1 | | 1 |00:00:00.01 | 1 | | 1 | SORT AGGREGATE | | 1 | 1 | 1 |00:00:00.01 | 1 | | 2 | INDEX FULL SCAN (MIN/MAX)| EMP_DEPARTMENT_IX | 1 | 1 | 1 |00:00:00.01 | 1 | ---------------------------------------------------------------------------------------------------------- SQL> SQL> select /* km_min_max */ min(department_id), max(department_id) from employees ; MIN(DEPARTMENT_ID) MAX(DEPARTMENT_ID) ------------------ ------------------ 10 110 SQL> @pln km_min_max SQL_ID 18883amg21pnp, child number 0 ------------------------------------- Plan hash value: 1756381138 ------------------------------------------------------------------------------------------ | Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | ------------------------------------------------------------------------------------------ | 0 | SELECT STATEMENT | | 1 | | 1 |00:00:00.01 | 7 | | 1 | SORT AGGREGATE | | 1 | 1 | 1 |00:00:00.01 | 7 | | 2 | TABLE ACCESS FULL| EMPLOYEES | 1 | 107 | 107 |00:00:00.01 | 7 | ------------------------------------------------------------------------------------------ SQL> select /* km_split */ 2 (select min(department_id) from employees) min_id, 3 (select max(department_id) from employees) max_id 4 from dual ; MIN_ID MAX_ID --------------- --------------- 10 110 SQL> @pln km_split SQL_ID ad2bpg2z204b5, child number 0 ------------------------------------- Plan hash value: 2189307159 ---------------------------------------------------------------------------------------------------------- | Id | Operation | Name | Starts | E-Rows | A-Rows | A-Time | Buffers | ---------------------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 1 | | 1 |00:00:00.01 | 0 | | 1 | SORT AGGREGATE | | 1 | 1 | 1 |00:00:00.01 | 1 | | 2 | INDEX FULL SCAN (MIN/MAX)| EMP_DEPARTMENT_IX | 1 | 1 | 1 |00:00:00.01 | 1 | | 3 | SORT AGGREGATE | | 1 | 1 | 1 |00:00:00.01 | 1 | | 4 | INDEX FULL SCAN (MIN/MAX)| EMP_DEPARTMENT_IX | 1 | 1 | 1 |00:00:00.01 | 1 | | 5 | FAST DUAL | | 1 | 1 | 1 |00:00:00.01 | 0 | ----------------------------------------------------------------------------------------------------------! W!(>6&!?-&%K!(>%!/7(57(!A-&!)%&6$%)!-&!-!&6;G%!$/AK!&/!(>%!(A/!X7%$6%&!-$%!&645G+!A$6((%!-&!(A/!&6;G%^?/G74!&7*^X7%$6%&L!T&6;!-!TiWFi!/B!(>%!(A/!X7%$6%&!A/7G)!>-V%!*%%!-/(>%$!-G(%$-(6V%K!6B!(>%!/7(57(!A-&U(!)%&6$%)!-&!-!&6;G%!$/AL! SQL> select /* km_union */ 2 min(department_id) id 3 from employees 4 union 5 select max(department_id) 6 from employees; ID --------------- 10 110 SQL> @pln km_union!! 00! ! ! ! ! ! ! ! ! ! !
  23. 23. ! ! ! ! !! ! SQL_ID cvgw7gu0r4w62, child number 0 ------------------------------------- Plan hash value: 1280351157 --------------------------------------------------------------------------------------------------------------------------------- | Id | Operation | Name |Starts |E-Rows |A-Rows | A-Time |Buffers | OMem | 1Mem | Used-Mem | --------------------------------------------------------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | 1 | | 2 |00:00:00.01 | 2 | | | | | 1 | SORT UNIQUE | | 1 | 2 | 2 |00:00:00.01 | 2 | 2048 | 2048 | 2048 (0)| | 2 | UNION-ALL | | 1 | | 2 |00:00:00.01 | 2 | | | | | 3 | SORT AGGREGATE | | 1 | 1 | 1 |00:00:00.01 | 1 | | | | | 4 | INDEX FULL SCAN (MIN/MAX)| EMP_DEPARTMENT_IX | 1 | 1 | 1 |00:00:00.01 | 1 | | | | | 5 | SORT AGGREGATE | | 1 | 1 | 1 |00:00:00.01 | 1 | | | | | 6 | INDEX FULL SCAN (MIN/MAX)| EMP_DEPARTMENT_IX | 1 | 1 | 1 |00:00:00.01 | 1 | | | | ---------------------------------------------------------------------------------------------------------------------------------!! :/!$%B-?(/$!(>%!X7%$+!(>6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clup_sys_id FROM td_clup_detail_mv cd JOIN td_row_level_security_mv rl ON cd.clup_sys_id = rl.clup_sys_id JOIN td_individual_mv i ON rl.user_sys_id = i.indiv_sys_id WHERE doc_type_cd IN (AGENCY, FNAS-LNR) AND agent_stat_cd = ACTIVE AND i.user_login_id = Reporting ! I&!+/7!?-!&%%K!(>%!/G+!(-*G%!A%!A-(!$/A&!B$/4!6&!:<jCPT#j<E:IWPj.gL!Y7(K!6!/$)%$!(/!)%(%$46%!A>6?>!$/A&!(/!$%(7$K!(>%$%!6&!-!]/6!(/!-!&%?7$6(+!(-*G%L!:>%!$/A&!6!(>%!&%?7$6(+!(-*G%!(>-(!-$%!-V-6G-*G%!-$%!)%(%$46%)!*+!(>%!B6G(%$!-;-6&(!7&%$jG/;6j6)L!C%$(-6!7&%$&K!*-&%)!/!(>%6$!-7(>/$6[-(6/!G%V%GK!-$%!-*G%!(/!-??%&&!-GG!)-(-!A>6G%!/(>%$!7&%$&!A6GG!*%!$%&($6?(%)!(/!/G+!-!&4-GG%$!&7*&%(!/B!)-(-L!:>%!(-*G%!?/(-66;!(>6&!-7(>/$6[-(6/!?/)%!6&!:<jWi<WgW<TIPj.gL!W!(>%!X7%$+K!(>%!7&%$U&!G/;6!6)!6&!7&%)!(/!$%($6%V%!(>%!$/A&!B$/4!(>%!&%?7$6(+!(-*G%L!Y7(K!>%$%U&!A>%$%!(>%!6&&7%!5/5&!75L!M>-(!6B!(>%!7&%$!6&!7$%&($6?(%)!-)!?-!&%%!-GG!(>%!)-(-R!W!(>-(!?-&%K!+/7!-$%!$%-)6;!5/(%(6-GG+!(>/7&-)&!/B!$/A&!6!(>%!&%?7$6(+!(-*G%!(>-(!)/U(!%%)!(/!*%!$%-)L!IGG!+/7!$%-GG+!%%)!(/!)/!6&!(/!$%-)!(>%!(-*G%!B$/4!A>6?>!+/7!%%)!(/!$%($6%V%!$/A&L! :>%!%@%?7(6/!5G-!&>/A&!+/7!(>%!A/$J!$%X76$%)!(/!$%-)!(>%!&%?7$6(+!(-*G%L! SQL> @pln korig SQL_ID bjasak8wj3q9v, child number 0 ------------------------------------- Plan hash value: 1846763385 ------------------------------------------------------------------------------------------------------------------------------------! ! ! ! 01!

×