考题
当函数deferDemo返回失败时,并不能destroy已create成功的资源()func deferDemo() error {err := createResource1()if err != nil { return ERR_CREATE_RESOURCE1_FAILED}defer func() { if err != nil { destroyResource1() }}()err = createResource2()if err != nil { return ERR_CREATE_RESOURCE2_FAILED}defer func() { if err != nil { destroyResource2() }}()err = createResource3()if err != nil { return ERR_CREATE_RESOURCE3_FAILED}return nil }此题为判断题(对,错)。
考题
Youwanttocreateaconsumergroup,GROUP1,andyouexecutethefollowingcommandinthecommandlineinterface:SQLEXECDBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP=’group1’,COMMENT=’NewGroup’)Thiscommanderrorsoutdisplayingthefollowingmessage:ERRORatline1:ORA01031:insufficientprivilegesORA06512:atSYS.DBMS_RMIN,line115ORA06512:atSYS.DBMS_RESOURCE_MANAGER,line108ORA06512:atline1Whatactionwouldyoutaketoovercomethiserror?()A.grantSYSDBAtotheuserB.grantSYSOPERtotheuserC.granttheRESOURCEroletotheuserD.usetheGRANTcommandtogranttheADMINISTER_RESOURCE_MANAGERprivilegetotheuserE.granttheADMINISTER_RESOURCE_MANAGERprivilegetotheuserbyusingthe DBMS_RESOURCE_MANAGER_PRIVSpackage
考题
Youhavecreatedaresourceplan,DB_PLAN,usingDBMS_RESOURCE_MANAGER.CREATE_SIMPLE_PLANandyouwanttoimposearestrictiononutilizationofresourcesbythedatabaseusers.Whichstepmustbeperformedbeforeyoucanstartusingtheresourceplan?()A.assignuserstoconsumergroupsB.settheresourceplanfortheinstanceC.configureasimpleresourceplanandspecifyplandirectivesD.configureacomplexresourceplanandspecifyplandirectives
考题
WhichDBMS_RESOURCE_MANAGERprocedureprioritizesconsumer-groupmappings?()
A.CREATE_MAPPING_PRIORITYB.SET_MAPPING_PRIORITYC.SET_MAPPING_ORDERD.PRIORITIZE_MAPPING_ORDERE.ThisfunctionalityisnotavailablethroughtheDBMS_RESOURCE_MANAGERpackage.
考题
Youarecreatingajobclass.Youhaveissuedthefollowingcommandtocreatethejobclass:SQLBEGINDBMS_SCHEDULER.CREATE_JOB_CLASS(JOB_CLASS_NAME=’LOW_PRIORITY_CLASS’,RESOURCE_CONSUMER_GROUP=’LOW_GROUP’,LOGGING_LEVEL=DBMS_SCHEDULER.LOGGING_FULL,LOG_HISTORY=1200,COMMENTS=’LOWJOBPRIORITYCLASS’);END;SQL/Whatwillbetheresultoftheabovecommand?()A.Thecommandwillbeexecutedsuccessfully.B.ThecommandwillfailbecauseRESOURCE_CONSUMER_GROUPisaninvalidparameterintheDBMS_SCHEDULER.CREATE_JOB_CLASSprocedure.C.ThecommandwillfailbecauseLOGGING_LEVELisaninvalidparameterintheDBMS_SCHEDULER.CREATE_JOB_CLASSprocedure.D.ThecommandwillfailbecauseLOG_HISTORYisaninvalidparameterintheDBMS_SCHEDULER.CREATE_JOB_CLASSprocedure.E.Thecommandwillfailbecause1200isaninvalidvaluefortheLOG_HISTORYparameterintheDBMS_SCHEDULER.CREATE_JOB_CLASSprocedure.
考题
Youhavecreatedaresourceplan,DAY.Youexecutethefollowingcode:SQLBEGINDBMS_RESOURCE_MANAGER.CREATE_SIMPLE_DIRECTIVE(PLAN=’DAY’,COMMENT=’DEPARTMENTSPLAN’,GROUP_OR_SUBPLAN=’DEPARTMENTS’,CPU_P1=0);END;Then,youissuethefollowingcode:SQLBEGINDBMS_RESOURCE_MANAGER.CREATE_SIMPLE_DIRECTIVE(PLAN=’DAY’,COMMENT=’DEPARTMENTSPLAN’,GROUP_OR_SUBPLAN=’DEVELOPERS’,CPU_P2=100);END;Whatwillbetheimpactofexecutingtheabovecode?()
考题
Youarecreatingaresourceconsumergroupusingthe DBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUPprocedure.Whichparameterwillyouusetodefinetheresourceschedulingmethodusedbetweensessionswithintheresourcegroup?()A.CPU_MTHB.NEW_CPU_MTHC.CPU_P1D.CPU_P2
考题
YouarecreatingthesimpleresourceplanusingtheDBMS_RESOURCE_MANAGER.CREATE_SIMPLE_PLANprocedure.Whichresourceallocationpolicywillbeusedfortheresourceplan?()
A.RATIOB.EMPHASISC.ACTIVE_SESS_POOL_MTHD.RESOURCE_DEGREE_LIMIT_ABSOLUTE
考题
Youwanttocreateaconsumergroup,GROUP1,andyouexecutethefollowingcommandinthecommand-lineinterface:SQLEXECDBMS_RESOURCE_MANAGER.CREATE_CONSUMER_GROUP(CONSUMER_GROUP=’group1’,COMMENT=’NewGroup’);Thiscommanderrorsoutdisplayingthefollowingmessage:ERRORatline1:ORA-29371:pendingareaisnotactiveORA-06512:atSYS.DBMS_RMIN,line115ORA-06512:atSYS.DBMS_RESOURCE_MANAGER,line108ORA-06512:atline1Whatactionwouldyoutaketoovercomethiserror?()A.activatethePendingAreabeforecreatingtheconsumergroupB.createthePendingAreabeforecreatingtheconsumergroupC.increasethesizeofthedatabasebuffercachetoaccommodatethePendingAreaD.increasethesizeofthesharedpooltoaccommodatethePendingAreaE.increasethesizeofthelargepooltoaccommodatethePendingArea
考题
【单选题】对于建立在数据库上的DDL触发器,常用的激活DDL触发器的事件不包括()A.Create_Table,Alter_Table,Drop_TableB.Create_View,Alter_View,Drop_ViewC.Create_Procedure,Alter_Procedure,Drop_ProcedureD.Rollback