Вы находитесь на странице: 1из 3

Please read these topics from PeopleBooks SetTracePC peoplcode function SetTraceSQL - peoplcode function (Server level and

d peoplecode level both) part from usin! trace"# at si!non pa!e trace options can be set at server level also$ %------------------------------------------------------------------------% PeopleCode &ebu!!er Trace Settin!s % % Level T#pe of tracin! % ----- --------------% ' (ff (default) % ) Level ) - lo! connection activit# % * Level * - lo! debu! broker transactions (!etsession+ re!ister,unre!ister+ ac-uire,unac-uire) % . Level . - lo! primar# debu!!ee,debu!!er transactions (re!ister+ modechan!e+ seteventfla!+ break) % / Level / - lo! debu!!ee,debu!!er variables transactions % 0 Level 0 - lo! debu!!ee,debu!!er command responses and !otbreaks % 1arnin!2 Levels . thru 0 result in lots of transaction data bein! lo!!er and re-uire plent# of disk space$ &ebu!!er3s!Lo!4nable"' http2,,pbfin55$s#r$edu,PS(L,htmldoc,en!,psbooks,tape,chapter$htm67ile"tape,htm,tape'8$htm 9*.:/'). pplication en!ine trace ;er# interestin! <se trace )*5 for trace on statement timin!s =ead (ptimi>er hint in oracle as peoplecode optimi>ation ma# need optimi>in! underl#in! SQL , ;ie?s - http2,,do?nload$oracle$com,docs,cd,B)8.'@A'),server$)'*,b)/*)),hintsref$htm (ption ) for PC trace

(ption * for PC trace 3ake some chan!es to belo? and trace starts immediatel# after #ou save$$

Peoplecode Optimization
a$ Points of vie? for peoplecode2)$ pplication en!ine *$ PB code Peoplecode should be handled in diff ?a#s in app en!ine and pia and hence their optimi>ation has diff effects and techni-ues$ Cou can consult peoplebooks for details$ )$ pplication en!ine techni-ues for optimi>aton is as under2 $$$$check for if-then-eDit to handle cases and shorten eDecution time$$$eDit is ver# useful command $$$$use api processes ?hereever possible as in the case of eDecutin! and processin! -ueries throu!h app en!ine $$$$use file la#outs+ if possible+ for file processin! $$$$s-l,peoplecode tracin! *$ PB code $$$loads of possibilities$$$need to eDplore into peoplebooks for the diff cate!ories of commands doin! the same thin!$$$eDample+ if u r in := module+ #ou mi!ht like to eDplore !etneDtnumber() or !etneDtnumber?ith!aps() or somethin! like that for emplo#ee ids i believe$ this method is a!ain used for se-uencin! in ne?er versions of peopletools tables$ i can su!!est that #ou mi!ht Eust ask someone ?ho is an eDpert in at least . diff versions of peopletools$ usuall# if u note the diff ?a#s a particular module is implemented b# (racle Corp$ in diff version of peopletools #ou !et !et a lot of points on this t#pe of optimi>ation$ Cou can consult C=3 peopletools eDpert in #our case 2) $$$minimi>e use of secondar# pa!es in ur code and desi!n$$$if possible+ in case+ tr# to use subpa!es $$$tr# to use domodal() techni-ues in ur desi!ns$ this is a ?ork-around$ it does not necessaril# !ive an advanta!e in the real sense but the user-eDperience is enhanced and the user feels that the pa!e is respondin! better than beforeF

$$$use the tracin! to better ur s-leDecs$$$$i ?ould su!!est to use less s-leDecs since the# impact database directl#$ thou!h the# are fast and some people mi!ht su!!est to !o in for them+ it is much better ?a# to use creates-l() and 9s-l and operate for better control$ $$$al?a#s use eDception handlin! if u can$$$eDample tr#-catch$$$a!ain+ in the application en!ine peoplecode this ?ont ?ork so u need to use 9Session$PS3essa!es$count to trap ur errors at the messa!e lo! level and do the processin!$$$ $$$check out usin! 9perftime or somethin! like that in peoplebooks$ this ?ill be be reall# helpful ?hen u have lar!e chunks of peoplecode in ur pro!rams and the proEect onl# concentrates on performance optimi>ation$ CreateSQL is slo? as it is not pre-compiled and takes more time better !o for GetSQL ?hich is pre-compiled$ Following link can also be useful2 https2,,peoplebooks$uta$edu,PS(L,pt5/@books,en!,psbooks,topt,chapter$htm6 7ile"topt,htm,topt'0$htm$

Вам также может понравиться