OracleOCP认证考试练习真题OCP052_第1页
OracleOCP认证考试练习真题OCP052_第2页
OracleOCP认证考试练习真题OCP052_第3页
OracleOCP认证考试练习真题OCP052_第4页
OracleOCP认证考试练习真题OCP052_第5页
已阅读5页,还剩53页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

试卷科目:OracleOCP认证考试练习OracleOCP认证考试练习真题OCP052PAGE"pagenumber"pagenumber/SECTIONPAGES"numberofpages"numberofpagesOracleOCP认证考试练习真题OCP052第1部分:单项选择题,共52题,每题只有一个正确答案,多选或少选均不得分。[单选题]1.USER1.EMPhasareferentialintegrityconstraintdefinedonEMP.DNOthatreferencesUSER1.DEPT.DNO.USER1executesthesecommands:SQL>UPDATEdeptSETloc='UK'wheredno=1;1rowupdated.SQL>UPDATEempSETsal=1000whereeno=100;1rowupdated.SQL>ALTERTABLEdeptDROP(dno)Whatwillbetheoutcomeandwhy?A)ItwillfailbecauseareferentialintegrityconstraintisdefinedonUSER1.EMP.B)ItwillexecutesuccessfullyanddropDEPNT.DNO.C)ItwillfailbecausethereisanuncommittedtransactiononUSER1.DEPT.D)ItwillexecutesuccessfullyanddroptheDEPT.DNOandEMP.DNOcolumns.E)ItwillfailbecausethereisanuncommittedtransactiononUSER1.EMP答案:A解析:[单选题]2.Examinethesecommandsandtheiroutput:SQL>SELECT*FROMempENOENAME--100Adam--101AlanSQL>INSERTINTOempVALUES(102,'Ben');1rowcreated.SQL>COMMIT;Commitcompleted.SQL>UPDATEempSETename='Bryan'WHEREeno=102;1rowupdated.Apowerfailureoccurs.Theinstanceisrestartedandthisqueryisexecuted.SQL>SELECTenameFROMemp;Whatistheoutcome?A)OnlyAdamandAlanaredisplayed.B)Norowsarereturned.C)OnlyAdam,Alan,andBryanaredisplayed.D)Adam,Alan,Ben,andBryanaredisplayed.E)OnlyAdam,Alan,andBenaredisplayed.答案:E解析:[单选题]3.WhichistrueaboutinvalidPL/SQLobjects?A)Theyareautomaticallyrecompiledagainstthenewdefinitionofareferencedobjectwhentheyarecalled.B)TheymustbemanuallyrecompiledbeforetheycanbeusedifaDDLisperformedonatablethatisreferencedinthePL/SQLobject.C)Theyareautomaticallyrecompiledagainstthenewdefinitionofareferencedobjectatthesametimeasthereferencedobjectismodified.D)TheycanbemanuallyrecompiledonlybyusingSQLcommands.答案:A解析:[单选题]4.Whichstructurecanspanmultipledatafiles?A)abigfiletablespaceB)apermanenttablespaceC)asegmentD)atemporarytablespaceE)anextent答案:C解析:[单选题]5.Whendoesanincrementalcheckpointoccur?A)whenanonlineredologswitchoccurs.B)whenDBWnwritesdirtybuffersaspartofitsnormalprocessing.C)whentheALTERSYSTEMCHECKPOINTstatementisexecuted.D)whenausertablespaceistabkenoffline.答案:B解析:[单选题]6.WhichstatemustadatabasebetoenableARCHIVELOG?A)NOMOUNTB)OPENINREADWRITEmodeC)OPENINREADONLYmodeD)OPENINRESTRICTEDmodeE)MOUNT答案:E解析:[单选题]7.Whereisanexpdpoperationtracked?A)dumpfilesB)controlfileC)logfilesD)AutomaticDiagnosticRepository(ADR.E)mastertable(MT)答案:E解析:[单选题]8.YouwanttoauditupdatestatementsthatrefertoUSER1.DEPT.DNAME.Whichtypeofauditingmustyouuse?A)standardauditingB)mandatoryauditingC)value-basedauditingD)fine-grainedauditing答案:D解析:[单选题]9.yousuccessfullyexecutedthesecommands:connectscott/tiger@prod1;CREAETDATABASELINKdb_prod2CONNECTTOscottIDENTIFIEDBYtigerUSING'PROD2';Whichtypeofdatabaselinkiscreated?A)privatecurrentuserdatabaselinkB)publicconnecteduserdatabaselinkC)publiccurrentuserdatabaselinkD)privatefixeduserdatabaselinkE)publicfixeduserdatabaselink答案:D解析:[单选题]10.whichistrueaboutexternaltables?A)Segmentsareallocatedforexternaltables.B)Theymayhaveindexes.C)Theydonotsupportpartitioning.D)TheORACLE_DATAPUMPaccessdrivercanbeusedtowritedatatoexternaltables.E)DMLoperationsmaybeperformedonexternaltables.答案:D解析:[单选题]11.WhichistrueabouttheAutomaticDiagnosticRepository(ADR)?A)ItisusedonlyiftheDIAGNOSTIC_DESTparameterismanuallyconfigured.B)Itonlycontainsthealertlogandtracefilesforbackgroundprocesses.C)ItslocationisalwayssetbytheORACLE_BASEvariable.D)Itincludesdiagnosticdataforcriticalerrorsforeachserverandbackgroundprocess.答案:D解析:[单选题]12.YourdatabaseisopeninARCHIVELOGmode.LOG_ARCHIVE_DESTissettoFastRecoveryArea(FRA)andItis100%fullwhenalogswitchtakesplace.Noalternativeoroptionalarchivedestinationsaredefined.Whatistheoutcome?A)Obsoletebackupsareautomaticallydeletedandnewarchivelogsaregenerated.B)Allactivesessionshanguntilthedatabaseadministrator(DBA)makesspaceavailableintheFRA.C)Thearchivelogentriesaremadeinthediagnosticdestinationandwhenspaceisavailable,newarchivelogsaregenerated.D)Allactivesessionsaredisconnectedandtheirtransactionsrolledback.E)Noarchivelogsaregenerated.答案:B解析:[单选题]13.YourDB_RECOVERY_FILE_DEST_SIZEIS8G,Currently,5Gofthespaceisusedofwhich4Gconsistsofobsoletebackups,Youexecutethiscommand;SQL>ALTERSYSTEMSETdb_recovery_file_dest_size=2G;Whatistheoutcome?A)ItchangesDB_RECOVERY_FILE_DEST_SIZEto2GanddeletestheobsoletebackupsB)ItchangesDB_RECOVERY_FILE_DEST_SIZEto5GC)ItfailsbecauseDB_RECOVERY_FILE_DEST_SIZEisastaticparameterD)ItchangesDB_RECOVERY_FILE_DEST_SIZEto2GwithoutdeletingvalidbackupsE)Itfailsbecausethenewsizeislessthan5G答案:D解析:[单选题]14.USER1grantsSELECT,INSERT,andUPDATEprivilegesonUSER1.EMPtoUSER2.Sysexecutesthiscommand:SQL>REVOKEUPDATEONuser1.empFROMuser1;Whatwillbetheoutcome?A)ItwillfailbecauseUSER1istheownerofUSER1.EMP.B)ItwillsucceedbutneitherUSER1norUSER2willbeabletoperformSELECT,INSERT,orUPDATEonUSER1.EMP.C)ItwillsucceedandonlyUSER1willbeunabletoperformSELECT,INSERT,orUPDATEonUSER1.EMP.D)ItwillsucceedandneitherUSER1norUSER2willbeabletoperformINSERTorUPDATEonUSER1.EMP,butbothwillbeabletoqueryUSER1.EMP.E)ItwillsucceedandonlyUSER2willbeunabletoperformSELECT,INSERT,orUPDATEonUSER1.EMP.答案:A解析:[单选题]15.USER1grantsSELECTandUPDATEprivilegesonUSER1.EMPtoUSER2SYSexecutesthiscommandSQL>REVOKESELECTONuser1.empFROMuser1;Whatwillbetheoutcome?A)ItwillsucceedandUSER2willbeunabletoperformSELECTonUSER1.EMPB)ItwillsucceedandUSER2willbeunabletoperformsELECTorUPDATEonUSER1EMPbecauseupdatesrequireselectbedoneinternallyC)ItwillfailbecausesyscannotrevokeobjectprivilegesforotherusersD)ItwillfailbecauseUSER1ownsUSER1.EMP答案:D解析:[单选题]16.Inoneofyourdatabases:1.USER1andUSER2havenosystemprivileges.2.ROLE1onlyhastheseprivileges:?CREATESESSION?CREATETABLE?CREATEVIEWExaminethesecommands:SQL>conn/assysdbaConnected.SQL>GRANTcreatetable,role1TOuser1WITHADMINOPTION;Grantsucceeded.SQL>connuser1/oracle_4UConnected.SQL>GRANTrole1TOuser2;Grantsucceeded.Whichcommandwouldyouexecuteandaswhichuser,torevokethecreatetableprivilegefromUSER2?A)REVOKECREATETABLEFROMuser2asSYSB)REVOECREATETABLEFROMrole1asSYSC)REVOKECREATETABLEFROMrole1asUSER1D)REVOKECREATETABLEFROMuser1asSYS答案:B解析:[单选题]17.Inoneofyourdatabases:1.USER1andUSER2havenosystemprivileges.2.ROLE1onlyhastheseprivileges:?CREATESESSION?CREATETABLE?CREATEVIEWExaminethesecommands:SQL>conn/assysdbaConnected.SQL>GRANTcreatetable,role1TOuser1WITHADMINOPTION;Grantsucceeded.SQL>connuser1/oracle_4UConnected.SQL>GRANTrole1TOuser2;Grantsucceeded.Whichcommandwouldyouexecuteandaswhichuser,torevokethecreatetableprivilegefromUSER2?A)REVOKECREATETABLEFROMuser2asUSER1B)REVOKECREATETABLEFROMuser1asSYSC)REVOKECREATETABLEFROMrole1asUSER1D)REVOKECREATETABLEFROMrole1asSYSE)REVOKECREATETABLEFROMuser2asSYS答案:D解析:[单选题]18.Inadatabase,EXAMPLEisthedefaulttablespaceandDEFERED_SEGMENT_CREATIONisFLASE.ExaminethesecommandsexecutedbySYS:SQL>CREATEUSERu1IDENTIFIEDBYoracle;SQL>CREATETABLEu1.tab1(c1number);Whatwillbetheoutcomeandwhy?A)ItwillfailbecauseU1doesnothavetheCREATESESSIONprivilege.B)ItwillfailbecauseU1hasnoquotaonEXAMPLE.C)U1.TAB1willbecreated.D)ItwillfailbecauseU1doesnothavetheCREATETABLEprivilege.E)ItwillfailbecauseU1hasnodefaulttablespace.答案:B解析:[单选题]19.whichistrueaboutinitializationparameteradministration?A)SomeDynamicparametervaluescanbemodifiedtoaffectonlyonesessionB)Dynamicparameters,whenmodified,alwaysreverttotheiroriginalvaluesafterthedatabaseinstanceisrestartedC)Staticparametervaluescanbechangedinthespfileonlybyusingthealtersystemcommandwithscope=spfilewhenthedatabaseisclosedD)Staticparametervaluescanbechangedforthecurrentinstancebyusingaltersystemcommandwithscope=memory答案:A解析:[单选题]20.YouwanttousetheALTERSYSTEMstatementwithSCOPE=MEMORYtochangeaninitializationparametervalue.Whichistrue?A)Itcanbeusedonlyifapfileisused.B)Thechangeoccursimmediatelyinmemoryforstaticparametersbutitisnotpersistentafterinstancerestart.C)Thechangeoccursimmediateinmemoryfordynamicparametersbutitisnotpersistentafterinstancerestart.D)Incanbeusedonlyifanspfileisused.答案:C解析:[单选题]21.YourdatabaseisopeninARCHIVELOGmode.LOG_ARCHIVE_DESTissettoFastRecoveryArea(FRA.anditis100%fullwhenalogswitchtakesplace.Noalternativeoroptionalarchivedestinationsaredefined.Whatistheoutcome?A)Allactivesessionshanguntilthedatabaseadministrator(DBA.makesspaceavailableintheFRAB)Noarchivelogsaregenerated.C)Thearchivelogentriesaremadeinthediagnosticdestinationandwhenspaceisavailable,newarchivelogaregenerated.D)Allactivesessionsaredisconnectedandtheirtransactionsrolledback.E)Obsoletebackupsareautomaticallydeletedandnewarchivelogsaregenerated.答案:A解析:[单选题]22.Whichcommandisusedtodisplayfilesthatnolongerconformtothebackupretentionpolicy?A)LISTEXPIREDBACKUPB)REPORTOBSOLETE.C)SHOWDATAFILEBACKUPCOPIES.D)CROSSCHECKBACKUP.答案:B解析:[单选题]23.Yourdatabaseisconfiguredinarchivelogmode.TheUSERS01tablespaceiscurrentlyonline.Youarerequiredtotakethetablespaceoffline.Whichclauseorclausesensurethatnomediarecoveryisrequiredwhenthetablespaceisbroughtbackonline?A)eithertheNORMALortheTEMPORARYclauseB)onlytheTEMPORARYclauseC)onlytheNORMALclauseD)eithertheNORMALortheIMMEDIATEclauseE)onlytheIMMEDIATEclause.答案:C解析:[单选题]24.WhichistrueaboutenablingAUTOEXTENDfordatafiles?A)Itcanbeenabledforanewdatafilethatisaddedtoatablespaceonlyiftheexistingdatafilesinthattablesapcehaveautoextendenabled.B)Itcanbeenabledonlyfordatafilesinnon-OMFtablespaces.C)Itcanbeenabledfordatafilesonlyinbigfiletablespaces.D)Itcanbeenabledfordatafilesonlyinsmallfiletablespaces.E)ItcanbeenabledforanexistingdatafileinatablespacebyusingtheALTERTABLESPACEcommand.答案:E解析:[单选题]25.WhichistrueabouttheSYSTEMandSYSAUXtablespaces?A)Bothtablespacesmustbeonlineforadatabasetobeaccessible.B)TheSYSAUXtablespacecanbemaderead-onlybuttheSYSTEMtablespacecannot.C)OnlytheSYSTEMtablespacecontainsdatadictionarytables.D)Bothtablespacescanbeusedfortemporarystorageifnotemporarytablespaceisdefined.答案:C解析:[单选题]26.Examinethesefactsaboutadatabase.1.ThedatabasedefaulttabpespaceisUSERS.2.DEFERRED_SEGMENT_CREATIONisTRUE.3.ThedefaulttablespaceofUSER1istbs1.4.USER1hasonlytheseprivileges:?CREATESESSION?CREATETABLE?UNLIMITEDquotaontbs1ExaminethesecommandsexecutedbyUSER1:SQL>CREATETABLEemp(enoNUMBER,enameVARCHAR2(20..TABLESPACETBS1;Tablecreated.SQL>CREATEINDEXemp_inxONemp(eno.TABLESPACEUSERS;Indexcreated.SQL>INSERTINTOempVALUES(NULL,?Alan?.;WhatwillbetheoutcomeoftheINSERToperationandwhy?A)ItwillfailbecauseanindexedcolumncannothaveNULLvalues.B)ArowwillbeinsertedintoEMPandanindexentrywillbemadeintoEMP_IDX.C)ItwillfailbecauseUSER1hasnoquotaonUSERS.D)ArowwillbeinsertedintoEMPandanindexentrywillbeinsertedintoavirtualcolumnofEMPbecauseUSER1hasnoquotaanUSERS.E)ArowwillbeinsertedintoEMPbutnoindexentrywillbemadeintoEXP_IDX.答案:C解析:[单选题]27.YouareinstallingOracleGridInfrastructurebyusingtheOracleUniversalInstaller(OUI..Youselectthe?InstallandConfigureGridInfrastructureforaStandaloneServer?option.WhichtaskisperformedbyOUIaspartofthisinstallation?A)creationandconfigurationofEnterpriseManagerCloudControlontheserver.B)creationofageneralpurposedatabase.C)creationofanASMdiskgroupandregistrationofASMcomponentswithOracleRestart.D)creationofprivilegedoperatingsystemgroupsthatareusedforOSauthentication.答案:C解析:[单选题]28.WhichtaskwouldyouperformbeforerunningtheOracleUniversalInstaller(OUI.insilentorsuppressedmode?A)Installthedbhomescript.B)Installthecoraenvscript.C)CreatetheoraInst.locfile.D)Createthetnsnames.orafile.E)Createtheoratabfile.F)Installtheoraenvscript.答案:C解析:[单选题]29.YourdatabaseinstanceisinNOMOUNTstate.YouselectthedeleteoptionintheDatabaseConfigurationAssistant(DBCA.foryourdatabase.Whatistheoutcome?A)DBCAisabletodeletetheservicesbutnotthedatafiles.B)DBCApromptsyoutoopenthedatabase,andthenproceedswiththedeletion.C)DBCAisabletodeletedatafilesbutnottheservices.D)DBCAshutsdowntheinstanceanddeletesthedatabase.答案:D解析:[单选题]30.WhichistrueabouttheDatabaseConfigurationAssistant(DBCA.?A)ItcanuseOracleASMforstoringdatabasefilesonlyifOracleManagedFiles(OMF.isconfigured.B)Itcanchangetheservermodefromdedicatedtosharedandviceversaforanexistingdatabase.C)Itcancreatenewdatabasetemplatesonlyfromexistingtemplatesordatabase.D)ItcanregisteradatabasewithCloudControlandconfigureDatabaseControlforthesamedatabase.答案:B解析:[单选题]31.Forwhichrequirementshouldyouconfiguresharedservers?A)accommodatinganincreasingnumberofuserswhorunshort-duration,infrequentqueriesinanOLTPenvironmentwithlimitedmemory.B)usingRecoveryManager(RMAN.torecoveradatabase.C)submittingbackupjobsatregular,24-hourintervalsinanOLTPenvironmentwithlimitedmemory.D)accommodatinganincreasingnumberofuserswhorunanalyticalqueriesinaDSSenvironmentwithlimitedmemory.E)performingbulk-loadoperationsinaDSSenvironmentwithlimitedmemory.答案:A解析:[单选题]32.Whenwouldyouusememoryadvisors?A)todeterminetheimpactofaddingmemoryonlogicalandphysicalreads.B)todeterminetheimpactofaddingmemoryonhardparsecount.C)todeterminetheimpactofaddingorreducingmemoryonDBTime.D)togeneratememory-relatedalertswhenmemorydemandexceedsaspecifiedpercentage.E)togetarecommendationwhetherAutomaticMemoryManagement(AMM.orAutomaticSharedMemoryManagement(ASMM.shouldbeimplemented.答案:C解析:[单选题]33.Whichistrueaboutmemoryadvisors?A)IfautomaticmemoryManagementisenabled,nomemoryadvisorsareavailable.B)IfautomaticmemoryManagementisenabled,theSharedPoolAdvisorandBufferCacheAdvisorareavailabletosetthemaximumsizefortheseindividualSGAcomponents.C)IfManualSharedMemoryManagementisenabled,onlytheSharedPoolAdvisorandBufferCacheAdvisorareavailable.D)IfAutomaticsharedMemoryManagementisenabled,boththeSGAAdvisorandPGAareavailable.答案:D解析:[单选题]34.Inyourdatabase:SGA_TARGET=270MPGA_AGGREGATE_TARGET=90MTheMEMORY_TARGETandMEMORY_MAX_TARGETparametersarecurrentlynotconfigured.Youexecutethecommand:ALTERSYSTEMSETMEMORY_TARGET=400M;Whatistheoutcomeandwhy?A)TheexecutionfailsbecausetheMEMORY_MAX_TARGETparametermustbeconfiguredto400MbeforeconfiguringtheMEMORY_TARGETparameter.B)TheexecutionfailsbecauseSGA_TARGETandPGA_AGGREGATE_TARGETarealreadyconfigured.C)Theexecutionissuccessfulandautomaticmemorymanagementisenabled.D)TheexecutionissuccessfulbutdoesnotenableautomaticmemorymanagementbecausetheMEMORY_MAX_TARGETparemetermustbeconfiguredtoavaluegreaterthanMEMORY_TARGET.答案:C解析:[单选题]35.ExaminethesedescriptionsofOraclemetadataanddata:1.MetadataaboutschemaobjectsbeingqueriedbySQLstatments2.PrivateCursormetadataonly3.ResultsofSQLqueriesandPL/SQLfunctions4.SharedCursorandPrivateCursorData5.TheCallStackWhichofthesearealwaysstoredinthePGA?A)1and2B)1and2C)4and5D)2and5E)1and5答案:D解析:[单选题]36.Whichistrueaboutunusableindexes?A)Rebuildinganunusableindexalwaysrequiresatleasttwicethespaceoftheoriginalindex.B)Rebuildinganunusableindexcreatesanewsegmentafterdroppingtheunusableindex.C)RebuildinganunusableindexalwaysallowsDMLstatementsontheindex'stableduringtherebuild.D)Rebuildingoccursautomaticallywhenanunusableindexischosenbytheoptimizerwhencreatinganexecutionplan.答案:B解析:[单选题]37.43.whichistruewhenadatabaseinstanceisshutdown?A)IMMEDIATE,TRANSACTIONAL,andNORMALmodesallresultinacheckpoint.B)NeithertheIMMEDIATEnortheABORTmoderollsbackuncommittedtracsctions.C)OnlyTRANSACTIONALandNORMALmodeswaitforalluncommittedtransactionstoCOMMITorROLLBACKandthenclosethedatabaseD)IMMEDIATE,TRANSACTOINAL,andNORMALmodeswaitforalluncommittedtranscatoinseitherCOMMITorROLLBACKandthenclosethedatabase答案:A解析:[单选题]38.TheORCLdatabasehasCONTROLFILEAUTOBACKUPandBACKUPOPTIMIZATIONenabled.TBS1andTBS2aretheonlyuser-definedtablespacesinORCL.USER1.EMPisableinTBS1.Examinethesecommands:$rmantarget/RMAN>BACKUPINCREMENTALLEVEL0DATABASE;RMAN>exit$sqlplus/assysdbaSQL>UPDATEuser1.empSETsal=10000WHEREeno=1;1rowupdatedSQL>COMMIT;Commitcomplete.SQL>ALTERTABLESPACEtbs1READONLY;Tablespacealtered.SQL>exit$rmantarget/RMAN>BACKUPINCREMENTALLEVEL1DATABASE;Fromwhichfilesaremodifiedblocksbackedup?A)SYSTEMandSYSAUXonlyB)SYSTEM,SYSAUX,UNDO,TEMP,TBS1,andTBS2C)SYSTEM,SYSAUX,andUNDOonlyD)SYSTEM,SYSAUX,UNDO,andTBS1onlyE)SYSTEM,SYSAUX,UNDO,andTBS2only答案:D解析:[单选题]39.TheORCLdatabasehasthisconfiguration:1.CONTROLFILEAUTOBACKUPandBACKUPOPTIMIZATIONenabled.2.TBS1andTBS2aretheonlyadministratordefinedtablespaces.3.TBS1containstableUSER1.EMP.Examinethesecommands:$rmantarget/RMAN>BACKUPINCREMENTALLEVEL0DATABASE;RMAN>exit$sqlplus/assysdbaSQL>UPDATEuser1.empSETsal=10000WHEREeno=l;1rowupdatedSQL>COMMIT;Commitcomplete.SQL>ALTERTABLESPACEtbslREADONLY;Tablespacealtered.SQL>exit$rmantarget/RMAN>BACKUPINCREMENTALLEVEL1DATABASE;Fromwhichfilesaremodifiedblocksbackedupbythelevel0backup?A)SYSTEMandSYSAUXonlyB)SYSTEM,SYSAUX,UNDO,TEMP,TBS1,andTBS2C)SYSTEM,SYSAUX,UNDO,andTBS2onlyD)SYSTEM,SYSAUX,andUNDOonlyE)SYSTEM,SYSAUX,UNDO,andTBS1only答案:B解析:[单选题]40.inwhichstatecanyoubackupadatabaseinARCHIVELOGMODEusingRMAN?A)MOUNTandOPENonlyB)NOMOUNTandMOUNTonlyC)NOMOUNT,MOUNT,andOPEND)OPENRESTRICTEDonlyE)OPENonly答案:A解析:[单选题]41.WhereisbackupmetadatastoredforusebyRecoveryManager(RMAN.?A)intheSYSAUXtablespaceB)inthediagnosticdestinationfilesC)inthecontrolfileD)intheSYSTEMtablespaceE)intheSPFILE答案:C解析:[单选题]42.Examinethesecomponents:1.Executionplanforanon-embeddedSQLstatement2.Local,global,andpackagevariablesforasession.3.ExecutionplanforaSQLstatementcontainedinaPL/SQLprogramunit.4.Resultsofexecutedqueriesandqueryfragments.5.PL/SQLfunctionresultsets.WhichofthesearestoredinthesharedSQLarea?A)1and3B)1,3,4,and5C)1and4D)1,2,and3答案:A解析:[单选题]43.TheORCLdatabasehasCONTROLFILEAUTOBACKUPandBACKUPOPTIMIZATIONenabled.USER1.EMPisatableintablespaceTBS1.TherearenoexistingbackupsofthedatabaseExaminethesecommands:$rmantarget/RMAN>BACKUPDATABASE;RMAN>exit;$sqlplus/assysdbaSQL>UPDATEUSER1.EMPsetSAL=5000WHEREeno=10;1rowupdatedSQL>COMMIT;Commitcomplete.SQL>exit;$rmantarget/RMAN>CONFIGUREEXCLUDEFORTABLESPACEtbs1;RMAN>BACKUPINCREMENTALLEVEL1DATABASE;Whatistheoutcome?A)Ittakesalevel1incrementalbackupofORCLwithoutTBS1.B)Ittakesalevel0incrementalbackupofORCLwithoutTBS1.C)Ittakesalevel1incrementalbackupofORCLwithTBS1.D)Ittakesalevel0incrementalbackupofORCLwithTBS1.答案:B解析:[单选题]44.AdatabaseinstancewasterminatedduetothelossoftheCURRENTonlineredologgroupandhasnotbeenrestarted.YouwishtorestoredatabaseavailabilitybyusingtheDataRecoveryAdvisor.ExaminethislistofRMANcommands;1.Startup2.Listfailureall;3.Advisefailureall;4.Repairfailurenoprompt;5.Alterdatabaseopen;Whataretheminimumcommandsrequiredandinwhatordermusttheybeexecutedtoachievethis?A)1,2,3,and4B)1,3,and4C)1and4D)1,3,4,and5E)1,2,3,4,and5答案:B解析:[单选题]45.AdatabaseinstancewasterminatedduetothelossoftheCURRENTonlineredologgroupandhasnotbeenrestarted.ThedatabaseisconfiguredwithFLASHBACKmodeonYouwishtorestoredatabaseavailabilitybyusingtheDataRecoveryAdvisor.ExaminethislistofRMANcommands;1.Startup2.Listfailureall;3.Advisefailureall;4.Repairfailurenoprompt;5.Alterdatabaseopen;Whataretheminimumcommandsrequiredandinwhatordermusttheybeexecutedtoachievethis?A)1,2,3,and4B)1,3,and4C)1and4D)1,3,4,and5E)1,2,3,4,and5答案:B解析:[单选题]46.AdatabaseinstancewasterminatedduotoalostdatafileandhasnotbeenrestartedYouwishtorestoreatabaseavailabilitybyusingtheDataRecoveryAdvisorExaminethislistofRMANcommands;1.Startup2.Listfailureall;3.Advisefailureall;4.Repairfailurenoprompt;5.Alterdatabaseopen;Whicharetheminimumrequiredcommandsandinwhatordermusttheybeexecutedtoarchive?A)1,3,4and5B)1and4C)1,3and4D)1,2,3,4and5E)1,2,3,and4答案:C解析:[单选题]47.WhichactionisautomaticallyperformedaspartoftheIncidentPackagingServiceinEnterpriseManagerSupportWorkbench?A)gatheringmetadatafromtheAutomaticDiagnosticRepository(ADR.B)invokingtheDataRecoveryAdvisorandSQLRepairAdvisorC)creatingaservicerequestwithMyOracleSupportD)invokingtheSQLTestCaseBuilder答案:A解析:[单选题]48.Whichistrueaboutlogicalandphysicaldatabasestructures?A)AnextentalwaysconsistsofphysicallycontiguousdatablocksinstorageB)AnundotablespacehasatempfileinsteadofadatafileC)ApermanenttablespacecanonlycontaintablessegmentsandindexsegmentsD)Atablespacecanconsistofdatablocksofdifferentsizes.E)Asegmentcanconsistofextentsofdifferentsizes.答案:E解析:[单选题]49.Yourdatabaseinstanceisintheopenstatewithuncommittedtransactions.Youplantoexecutethesecommands:SHUTDOWNABORTSTARTUPWhichistrueabouttheSTARTUPcommandassumingthatnoerrorsoccur?A)Itopensthedatabaseinread-onlymode.B)Itopensthedatabaseinread/writemodeonlyifanspfileisused.C)Itperformsaninstancerecoveryandleavesthedatabaseinstanceinmountstate.D)Itperformsaninstancerecoverybeforeopeningthedatabaseinread/writemode.答案:D解析:[单选题]50.ExaminethisLISTENER.ORAlife:LISTENER=(DESCRIPTION_LIST=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP.(HOST=.(PORT=1522SID_LIST_LISTENER=(SID_DESC=(SID_DESC=(GLOBAL_DBNAME=.(GLOBAL_HOME=/u01/app/oracle/product/11.2.0/dbhome_1.SID_NAME=orclHowshouldyouconfigureanadditionallistenerLISTENER2thatlistensforthesameSID?A)AddrelevantdetailsinSID_LIST_LISTENERundertheexistingLISTENERinLISTENER.ORAB)CreateanotherconfigurationfilecalledLISTENER2.ORAwithonlyLISTENER2detailsinitC)AddLISENER2anditsSID_LISTdetailsseparatelyunderthenameLISTENER2inLISTENER.ORAD)AddrelevantdetailsinDESCRIPTIONundertheexistingLISTENERwithadifferentportnumberinLISTENER.ORA.答案:C解析:[单选题]51.ExaminethisLISTENER.ORAfile.LISTENER=(DESCRIPTION_LIST=(DESCRIPTION=(ADDRESS_LIST(ADDRESS=(PROTOCOL=TCP.(HOST=.(PORT=1522SID_LIST_LISTENER=(SID_LIST=(SID_DESC=(GLOBAL_DBNAME=.(ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1.(SID_NAME=orcl...WhichmethodcanbeusedtoconfigureanadditionallistenerLISTENER2thatlistensforthesameservicename?A)AddrelevantdetailsinDESCRIPTIONundertheexistingLISTENERwithadifferentportnumberinLISTENER.ORA.B)CreateanotherfilecalledLISTENER2.ORAwithonlyLISTENER2detailsusingadifferentportnumberthanLISTENERC)CreateanotherfilecalledLISTENER2.ORAwithonlyLISTENER2detaillsusingthesameportnumberusedbyLISTENERD)AddLISTENER2anditsSID_LISTdetailswiththesameportnumberasLISTENERunderthenameLISTENER2inLISTENER.ORA.E)AddLISTENER2anditsSID_LISTdetailswithadifferentportnumberthenLISTENERunderthenameLISTENER2inLISTENER.ORA答案:E解析:[单选题]52.USER1.EMPhasareferentialintegrityconstraintonEMP.DNOreferencingUSER1.DEPT.DNO.USER1hasascriptcontainingthesecommandsUPDATEdeptSETloc='UK'wheredno=1;UPDATEempSETsal=1000whereeno=100;ALTERTABLEEMPshrink;Whatwillbetheoutcomeofrunningthescriptandwhy?A)ItwillfailbecausethereisanuncommittedtransactiononUSER1.DEPT.B)ItwillfailbecauseareferentialintegrityconstraintisdefinedonUSER1.EMP.C)Itwillexecutesuccessfully.D)ItwillfailbecausethereisanuncommittedtransactiononUSER1.EMP.答案:C解析:第2部分:多项选择题,共114题,每题至少两个正确答案,多选或少选均不得分。[多选题]53.EachrowintheTRANS_SUMMARYtablecontainsdetailsofoneproduct.EachrowintheTRANS_MONTHLYtablecontainstransactiondetailseitherfornewproductsorforupdatestoexistingproducts.Thereisamonthlyrequirementto:1.InsertTRANS_MONTHLYrowsfornewproductstotheTRANS_SUMMARYtable2.UpdatetheTRANS_SUMMARYtablewhenaTRANS_MONTHLYrowreferstoanexistingproduct.Whichtwocanbeusedtodothis?A)INSERTINTO..SELECTFROM..B)acalledprocedure.C)anOracleloadertypeexternaltable.D)theMERGEcommand.E)CREATETABLEASSELECT(CTAS)答案:BD解析:第3部分:问答题,共8题,请在空白处填写正确答案。[问答题]54.Whichfourstatementsaretrueabouttruncatingatable?A)Anyinserttriggersforthetablewillbeexecuted.B)Anyofthetable?sindexesarealsotruncated.C)Anydeletetriggersforthetablewillbeexecuted.D)Alltablestoragecanberetained.E)OnlyHEAPtablesmaybetruncated.F)Alltablestorageisconvertedtofreespace.G)MINEXTENTSamountofstorageforthetablecanberetained.答案:BDFG解析:[多选题]55.ExaminetheseattributesfortheprofileassignedtoUSER1whosepasswordisoracle_4U.?PASSWORD_REUSE_MAXis5.?PASSWORD_REUSE_TIMEis10.?PASSWORD_GRACE_TIMEis15.WhichtwoconditionsmustbemetforUSER1toreuseoracle_4U?A)Atleast5daysmusthavepassedsinceoracle_4Uwaslastused.B)Thepasswordmusthavechanged5timessinceoracle_4Uwaslastused.C)Atleast10daysmust

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论