False(*) False(*)
C
Coorrrreecct t CCoorrrreecctt
2.
2. IdIdenentitifyfyeexaxampmplelessofofbbenenefefititssofofuusisingngPPLSLSQLQL_O_OPTPTIMIMIZIZE_E_LELE V
VELEL..(C(Chohoososeeththreree)e) MaMarkrkffororRRevevieieww (1)Points
(1)Points
(Chooseallcorrectanswers) (Chooseallcorrectanswers)
Modifysourcecodeto
Modifysourcecodetooptimizefrequently-usedoptimizefrequently-usedelementsatthetop.elementsatthetop.
ControlwhatPL/SQLdoeswithuselesscode.(*) ControlwhatPL/SQLdoeswithuselesscode.(*)
Backwardcompatiblewi
BackwardcompatiblewithpreviousversionsofthpreviousversionsoftheOracledatabase.(*)theOracledatabase.(*)
Separatingcompiledco
Separatingcompiledcodesothatseparateunitdesothatseparateunitsmayberepeatedasneedsmayberepeatedasneedee d.
d.
Copycompiledcodefro
Copycompiledcodefromonesubprogramintoanmonesubprogramintoanothersubprogram.(*)othersubprogram.(*)
C
Coorrrreecct t CCoorrrreecctt
3.
3. NaNatitivevemmacachihineneccododeePLPL/S/SQLQLwwililllalalwawaysyseexexecucuteteffasasteterrthth anbytecodePL/SQLbec
anbytecodePL/SQLbecauseitneednotbeinteauseitneednotbeinterpretedatruntime.Truerpretedatruntime.TrueorFalseorFalse ? ? MMaarrkk ffoorr RReevviieeww (1)Points (1)Points True(*) True(*) False False C Coorrrreecct t CCoorrrreecctt
Trusted by over 1 million members
Try Scribd
FREE for 30 days to access over 125 million titles without ads or interruptions!
Start Free Trial
Cancel Anytime.
Trusted by over 1 million members
Try Scribd
FREE for 30 days to access over 125 million titles without ads or interruptions!
Start Free Trial
4.
4. IdIdenentitifyfyssomomeebebenenefifitstsooffususininggcocondndititioionanallcocompmpililatatioion.n. (
(ChChoooosesettwowo)) MaMarkrkffororRRevevieieww (1)Points
(1)Points
(Chooseallcorrectanswers) (Chooseallcorrectanswers)
Usenewfeatureswith
Usenewfeatureswiththelatestdatabaserelethelatestdatabasereleaseanddisablethemwithaseanddisablethemwith olderdatabaseversions(*)
olderdatabaseversions(*)
SpeedupthecompilationtimeofalengthyPL/SQLsubprogram. SpeedupthecompilationtimeofalengthyPL/SQLsubprogram.
Determineinitializati
Determineinitializationvaluesduringstartuonvaluesduringstartupofadatabasesession.pofadatabasesession.
Activatedebuggingor
Activatedebuggingortracingstatementsinthtracingstatementsinthedevelopmentenvironmentedevelopmentenvironment (*)
(*)
C
Coorrrreecct t CCoorrrreecctt
5.
5. InInttheheffolollolowiwingngeexaxampmplele,,whwhatatsstatatetemementntbbelelonongsgsiinnLiLinene A? A? ALTERSESSIONSETPLSQL_CCFLAGS='debug:true'; ALTERSESSIONSETPLSQL_CCFLAGS='debug:true'; CREATEORREPLACEPROCEDUREtestprocISBEGIN CREATEORREPLACEPROCEDUREtestprocISBEGIN ... ... $IF$$debug$THEN $IF$$debug$THEN DBMS_OUTPUT.PUT_LINE('Thiscodewasexecuted'); DBMS_OUTPUT.PUT_LINE('Thiscodewasexecuted'); --LineA --LineA ... ... ENDtestproc; ENDtestproc; ALTERSESSIONSETPLSQL_CCFLAGS='debug:false'; ALTERSESSIONSETPLSQL_CCFLAGS='debug:false'; MarkforReview MarkforReview (1)Points (1)Points $ENDIF $ENDIF $$END; $$END; $END(*) $END(*) $ELSIF $ELSIF
Trusted by over 1 million members
Try Scribd
FREE for 30 days to access over 125 million titles without ads or interruptions!
Start Free Trial
C
Coorrrreecct t CCoorrrreecctt
6.
6. ToToiincncluludedesselelecectitiononssofofccododeefoforrcocompmpililatatioionnbabaseseddononuu ser-d
ser-defineefinedvaldvalues,ues,usetusethePLhePLSQL_CSQL_CCFLAGCFLAGSparSparameteameters.Trs.TrueorueorFalrFalse?se? MarkMarkforfor Review Review (1)Points (1)Points True(*) True(*) False False C Coorrrreecct t CCoorrrreecctt 7.
7. ObObfufuscscatatioionndodoesesnnototaallllowowaanynyononeetotosseeeetthehessouourcrceecocodede ,inc
,includinludingthegtheowneowner.Trr.TrueorueorFalsFalse?e? MarkMarkforRforRevieweview (1)Points (1)Points True(*) True(*) False False C Coorrrreecct t CCoorrrreecctt 8.
8. WhWhicichhisisNNOTOTaabbenenefefititooffobobfufuscscatatioion?n? MaMarkrkffororRRevevieieww (1)Points (1)Points Sourcecodeisnotloadedinthedatadictionary. Sourcecodeisnotloadedinthedatadictionary. Sourcecodeishiddenfromallusers. Sourcecodeishiddenfromallusers. Sourcecodeisvisibletotheowner.(*) Sourcecodeisvisibletotheowner.(*) Protectionforintellectualpropertyisprovided. Protectionforintellectualpropertyisprovided. C Coorrrreecct t CCoorrrreecctt
Trusted by over 1 million members
Try Scribd
FREE for 30 days to access over 125 million titles without ads or interruptions!
Start Free Trial
True True False(*) False(*) C Coorrrreecct t CCoorrrreecctt 10
10.. WhWhatatddoeoessththeefofollllowowininggststatatememenenttdodo?? DBMS_WARNING.ADD_WARNI
DBMS_WARNING.ADD_WARNING_SETTING_CAT('PERFORMANG_SETTING_CAT('PERFORMANCE','ENABLE','SESSION');NCE','ENABLE','SESSION'); MarkforReview
MarkforReview (1)Points
(1)Points
EnablesthePERFORMANC
EnablesthePERFORMANCEwarningcategory,settEwarningcategory,settingothercategorysettiningothercategorysettingg stodisabled.
stodisabled.
EnablesthePERFORMANC
EnablesthePERFORMANCEwarningcategory,leavEwarningcategory,leavingothercategorysettiningothercategorysettingg sunchanged.
sunchanged.
AddthePERFORMANCEwarningcategoryintoaPL/SQLvariable. AddthePERFORMANCEwarningcategoryintoaPL/SQLvariable.
Disablesallwarningc
Disablesallwarningcategories,thenenablesategories,thenenablesthePERFORMANCEcategory.thePERFORMANCEcategory.
EnablesthePERFORMANC
EnablesthePERFORMANCEwarningcategory,leavEwarningcategory,leavingothercategorysettiningothercategorysettingg sunchanged,forthecurrentsession.(*)
sunchanged,forthecurrentsession.(*)
C
Coorrrreecct t CCoorrrreecctt
11.
11. InInthetheUSUSER_ER_ERRERRORSORSdadatatadicdictiotionarnaryvyviewiew,i,ifafanenerrorroririspsprefrefixeixedwdwithith"W"W arning,"thecommandc
arning,"thecommandcompletesbuthasasideompletesbuthasasideeffecttheuserneedstoeffecttheuserneedstoknowabouknowabou t.Forallothererror
t.Forallothererrors,thecommandterminates,thecommandterminatesabnormally.TrueorFalsabnormally.TrueorFalse?se? MarkforReview MarkforReview (1)Points (1)Points True(*) True(*) False False C Coorrrreecct t CCoorrrreecctt
Trusted by over 1 million members
Try Scribd
FREE for 30 days to access over 125 million titles without ads or interruptions!
Start Free Trial
and and ALTERSESSION ALTERSESSION SETPLSQL_WARNINGS='ENABLE:SEVERE'; SETPLSQL_WARNINGS='ENABLE:SEVERE'; MarkforReview MarkforReview (1)Points (1)Points True True False(*) False(*) C Coorrrreecct t CCoorrrreecctt Section14 Section14 (Answerallquestionsinthissection) (Answerallquestionsinthissection) 13
13.. InIntthihissscscenenararioio,,ththeefofollllowowininggststatatususiissgigivevennfoforreaeachch procedure:
procedure:
ProcedureAislocalandhasatimestampof10AM ProcedureAislocalandhasatimestampof10AM ProcedureBisrem
ProcedureBisremoteandhasalocalandoteandhasalocalandremotetimestampof10:3remotetimestampof10:30AM0AM InTimestampMode,Pro
InTimestampMode,ProcedureA,whichisdepencedureA,whichisdependentonProcedureB,willdentonProcedureB,willexecuteexecute successfullyat11AM.TrueorFalse? successfullyat11AM.TrueorFalse? MarkforReview MarkforReview (1)Points (1)Points True(*) True(*) False False C Coorrrreecct t CCoorrrreecctt 14
14.. IfIfttwoworrelelatatededoobjbjecectstsaarereiinndidiffffererenenttdadatatababaseses,s,tthehedd ependencybetweenthem
ependencybetweenthemisautomaticallyrecordisautomaticallyrecordedonthedependentobjecedonthedependentobject'sdatat'sdata d
dicictitiononarary.y.TTrurueeororFFaalslse?e? MaMarkrkffororRRevevieieww (1)Points
(1)Points
True True
Trusted by over 1 million members
Try Scribd
FREE for 30 days to access over 125 million titles without ads or interruptions!
Start Free Trial
15
15.. PrPrococededurureeBBhahassititsslolocacallvavaririabableleeempmp_n_numumbeberrchchanangegeddtoto emp_name.Thedataty
emp_name.Thedatatypeofemp_idischangedpeofemp_idischangedfromnumbertointeger.Ifromnumbertointeger.Itiscomptiscomp iledsuccessfully.In
iledsuccessfully.InSignatureMode,ProcedurSignatureMode,ProcedureA,whichisdependentoeA,whichisdependentonremotenremote Pr
PrococededurureeB,B,wwililllcocompmpilileeananddexexececututeesusuccccesessfsfulullyly..TrTrueueoorrFaFalslse?e? MaMarkrkfforor Review Review (1)Points (1)Points True(*) True(*) False False C Coorrrreecct t CCoorrrreecctt 16
16.. AAchchanangegeiinnaareremomoteterrefefererenenceceddsusubpbprorogrgramamiissauautotomamatiticaca llyrecordedasinvali
llyrecordedasinvalidifitsbaseobjectchadifitsbaseobjectchangesandthatnewstatusngesandthatnewstatusisrelayeisrelaye dtothedependentobj
dtothedependentobject'sstatusandautomatect'sstatusandautomaticallymarkedasinvalid.icallymarkedasinvalid.TrueorTrueor Fal
False?se? MarMarkfkfororRevReviewiew (1)Points (1)Points True True False(*) False(*) C Coorrrreecct t CCoorrrreecctt 17
17.. PrPrococededurureeBBhahassaanenewwININOOUTUTppararamametetereraaddddededttooitit..ItItcc ompilessuccessfully.
ompilessuccessfully.InSignaturemode,ProceInSignaturemode,ProcedureA,whichisdependendureA,whichisdependentonremotonremo te
tePProrocecedudurereBB,,wiwillllffaiail.l.TTrurueeororFFalalsese?? MaMarkrkffororRRevevieieww (1)Points (1)Points True(*) True(*) False False I Innccoorrrreecct t IInnccoorrrreecctt.. RReeffeerr ttoo SSeeccttiioonn 1144 LLeessssoonn 22.. 1 188 EExxaammiinnee tthhee ffoolllloowwiinngg ccooddee::
Trusted by over 1 million members
Try Scribd
FREE for 30 days to access over 125 million titles without ads or interruptions!
Start Free Trial
Trusted by over 1 million members
Try Scribd
FREE for 30 days to access over 125 million titles without ads or interruptions!
Start Free Trial
Cancel Anytime.
Whichofthefollowing
Whichofthefollowingstatementsaboutdependstatementsaboutdependenciesaretrue?(Chooseenciesaretrue?(Choosetwo.)two.) MarkforReview MarkforReview (1)Points (1)Points (Chooseallcorrectanswers) (Chooseallcorrectanswers) ED_PROCisindirectlydependentonDEPARTMENTS(*) ED_PROCisindirectlydependentonDEPARTMENTS(*) EMPLOYEESisreferencedbyED_VIEW(*) EMPLOYEESisreferencedbyED_VIEW(*) ED_CURSisdirectlydependentonED_VIEW ED_CURSisdirectlydependentonED_VIEW ED_PROCisreferencedbyED_VIEW ED_PROCisreferencedbyED_VIEW ED_PROCisdirectlydependentonEMPLOYEES ED_PROCisdirectlydependentonEMPLOYEES C Coorrrreecct t CCoorrrreecctt 19
19.. UsUsererBBOBOBwwanantststtooknknowowwwhihichchoobjbjecectstsrrefefererenencecehhisisDDEPEPARAR TMENTStable.Whichof
TMENTStable.WhichofthefollowingmustheethefollowingmustheexecutetopopulatetheDExecutetopopulatetheDEPTREE_TEMPTREE_TEM P PTTAABB ttaabbllee?? MMaarrkk ffoorr RReevviieeww (1)Points (1)Points BEGIN BEGIN utldtree('DEPARTMENTS'); utldtree('DEPARTMENTS'); END; END; BEGIN BEGIN deptree_fill('TABLE','BOB','DEPARTMENTS'); deptree_fill('TABLE','BOB','DEPARTMENTS'); END; END; (*) (*)
Trusted by over 1 million members
Try Scribd
FREE for 30 days to access over 125 million titles without ads or interruptions!
Start Free Trial
Cancel Anytime.
Trusted by over 1 million members
Try Scribd
FREE for 30 days to access over 125 million titles without ads or interruptions!
Start Free Trial
Cancel Anytime.
20
20.. WhWhicichhofofttheheffolollolowiwingngiissNONOTTcrcreaeateteddwhwhenenttheheuutltldtdtreree.e. s sqqll ssccrriipptt iiss rruunn?? MMaarrkk ffoorr RReevviieeww (1)Points (1)Points TheDEPTREEview TheDEPTREEview TheDEPTREE_FILLprocedure TheDEPTREE_FILLprocedure TheUSER_DEPENDENCIESview(*) TheUSER_DEPENDENCIESview(*) TheDEPTREE_TEMPTABtable TheDEPTREE_TEMPTABtable C Coorrrreecct t CCoorrrreecctt 21.
21. AsAsingingleleproprocedcedureurecacanbnbebebothothaarefrefereerencencedodobjebjectctandandaadepdependendententobobjecjec t t.. TTrruuee oorr FFaallssee?? MMaarrkk ffoorr RReevviieeww (1)Points (1)Points True(*) True(*) False False C Coorrrreecct t CCoorrrreecctt 22
22.. FuFuncnctitiononFFETETCHCH_E_EMPMPrrefefererenencecessththeeEMEMPLPLOYOYEEEESStatablble.e.TThehett ableismodifiedby:
ableismodifiedby:
ALTERTABLEemployeesADD(resumeCLOB); ALTERTABLEemployeesADD(resumeCLOB); WhenwilltheORACLEs
WhenwilltheORACLEservertrytorecompileFervertrytorecompileFETCH_EMPautomatically?ETCH_EMPautomatically? MarkforReview
MarkforReview (1)Points
Trusted by over 1 million members
Try Scribd
FREE for 30 days to access over 125 million titles without ads or interruptions!
Start Free Trial
Cancel Anytime. 2 233.. EExxaammiinnee tthhee ffoolllloowwiinngg ccooddee:: CREATEFUNCTIONdeptfunc CREATEFUNCTIONdeptfunc RETURNNUMBERIS RETURNNUMBERIS v_countNUMBER(6); v_countNUMBER(6); BEGIN BEGIN SELECTCOUNT(*)INTOv_countFROMdepartments; SELECTCOUNT(*)INTOv_countFROMdepartments; RETURNv_count; RETURNv_count; END; END; Whichofthefollowing
WhichofthefollowingwilldisplaythedependwilldisplaythedependencybetweenDEPTFUNCandencybetweenDEPTFUNCandDEPARTMEDEPARTME NTS? NTS? MarkforReview MarkforReview (1)Points (1)Points SELECTname,type SELECTname,type FROMuser_dependencies FROMuser_dependencies WHEREnameIN('DEPTFUNC','DEPARTMENTS'); WHEREnameIN('DEPTFUNC','DEPARTMENTS'); SELECTname,type,referenced_name,referenced_type SELECTname,type,referenced_name,referenced_type FROMuser_dependencies FROMuser_dependencies WHEREreferenced_name='DEPARTMENTS' WHEREreferenced_name='DEPARTMENTS' ANDreferenced_type='TABLE'; ANDreferenced_type='TABLE'; (*) (*) SELECTname,type,referenced_name,referenced_type SELECTname,type,referenced_name,referenced_type FROMuser_dependencies FROMuser_dependencies WHEREname='DEPARTMENTS' WHEREname='DEPARTMENTS' ANDtype='TABLE'; ANDtype='TABLE'; SELECTobject_name,object_type SELECTobject_name,object_type FROMuser_objects FROMuser_objects WHEREobject_nameIN('DEPARTMENTS','DEPTFUNC') WHEREobject_nameIN('DEPARTMENTS','DEPTFUNC') ANDreferenced='YES'; ANDreferenced='YES';
Trusted by over 1 million members
Try Scribd
FREE for 30 days to access over 125 million titles without ads or interruptions!
Start Free Trial
Cancel Anytime.
Trusted by over 1 million members
Try Scribd
FREE for 30 days to access over 125 million titles without ads or interruptions!
Start Free Trial
Cancel Anytime.
Thespecificationand
ThespecificationandbodyofEMPPACKareinvabodyofEMPPACKareinvalidated,butCALL_EMPremlidated,butCALL_EMPremaa insvalid.
insvalid.
ThebodyofEMPPACKis
ThebodyofEMPPACKisinvalidated,butthespinvalidated,butthespecificationremainsvalidecificationremainsvalid.. (*)
(*)
EMPPACK.GET_EMPisinv
EMPPACK.GET_EMPisinvalidated,butotherprocalidated,butotherproceduresinEMPPACKremaineduresinEMPPACKremainvv alid.
alid.
Nothingisinvalidated
NothingisinvalidatedbecausethePL/SQLcodebecausethePL/SQLcodedoesnotreferencetheGdoesnotreferencetheGEE NDERcolumn.
NDERcolumn.
C
Coorrrreecct t CCoorrrreecctt
25
25.. AASESELELECTCTffrorommththeeDEDEPTPTREREEEtatablbleedidispsplalaysysttabableleLLOCOCATATIOIONSNS atnestedlevel0and
atnestedlevel0andprocedureLOCPROCatneprocedureLOCPROCatnestedlevel2.Thisshowsstedlevel2.ThisshowsthatLOCPthatLOCP ROCisdirectlydepend
ROCisdirectlydependentonLOCATIONS.TrueoentonLOCATIONS.TrueorFalse?rFalse? MarkforReviewMarkforReview (1)Points (1)Points True True False(*) False(*) C Coorrrreecct t CCoorrrreecctt