版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
試卷科目:OracleOCP認(rèn)證考試練習(xí)OracleOCP認(rèn)證考試練習(xí)真題題庫(kù)三PAGE"pagenumber"pagenumber/SECTIONPAGES"numberofpages"numberofpagesOracleOCP認(rèn)證考試練習(xí)真題題庫(kù)三第1部分:?jiǎn)雾?xiàng)選擇題,共20題,每題只有一個(gè)正確答案,多選或少選均不得分。[單選題]1.ExaminethedescriptionoftheproductstableNamenull?TypePROD_IDnotnullNUMBERPROD_NAMEVARCHAR2(40)COSTNUMBER(8,2)RELEASE_DATEDATEWhichqueryisvalid?A)SELECTprodid,AVG(MAX(cost))FROMproductsGROUPBYprod_idB)SELECTprodid,MAX(AVG(cost))FROMproductsGROUPBYprod_idC)Selectprodid,releasedate,SUM(cost)FROMproductsGROUPBYprod_idD)SELECTprodid,releasedate,SUM(cost)FROMproductsGROUPBYprodid,release_date答案:D解析:[單選題]2.ExaminethedescriptionoftheSATES1tableNAMENULLTYPESALES_IDNOTNULLNUMBERSTORE_IDNOTNULLNUMBERITEMS_IDNUMBERQUANTITYNUMBERSALES_DATEDATESATES2isatablewiththesamedescriptionasSATES1,Somesalesdataiscontainederroneouslyinbothtables,YoumustdisplayrowsfromSATES1andSATES2andwishtoseetheduplicatestoo,Whichsetoperatorgeneratestherequiredoutput?A)MINUSB)UNIONALLC)SUBTRACTD)UNIONE)INTERSECT答案:E解析:[單選題]3.ExaminethedescriptionoftheEMPLOYEEStableNIS_DATEFORMATissettoDD-MON-YYWhichqueryrequiresexplicitdatatypeconversion?A)SELECTjoindateFROMemployeesWHEREjoindate>'10-02-2018';B)SELECTjoindate||''||salaryFROMemployeesC)SELECTsalary+'120.50'FROMemployeesD)SELECTSUBSTR(join_date,1,2)-10FROMemployeesE)SELECTjoindate+'20'FROMemployees答案:A解析:[單選題]4.YourdatabaseinstanceisstartedwithanSPFILEAPFILEisalsoavailableYouexecutethiscommandALTERSYSTEMSETDBCACHESIZE=100KWhereisthevaluechanged?A)intheSPFILEandPFTIEB)intheSPFILE,PFILE,andmemoryC)onlyintheSPFILED)intheSPFILEandinmemoryE)onlyinmemory答案:D解析:[單選題]5.ViewtheExhibitsandexaminethestructureofthecostsandPROMOTIONStablesYouwanttodisplayPRODIDSwhosepromotioncostislessthanthehighestcostPRODIDinapromotiontimeintervalExaminethisSQLstatement:Selectprod_idfromcostswherepromo_idin(selectpromo_idfrompromotionswherepromo_costA)Itexecutessuccessfullyandgivestherequiredresult.B)ItgivesanerrorbecausetheGROUPBYclauseisnotvalidC)ItexecutessuccessfullybutdoesnotgivetherequiredresultD)ItgivesanerrorbecausetheALLkeywordisnotvalid答案:C解析:[單選題]6.Inthespfileofasingleinstancedatabase,LOCALLISTENERissettoLISTENER1.TheTNSNAMESORAfileinSORACLEHOME/network/admininthedatabasehomecontains:LISTENER1=(ADDRESS=(PROTOCOL=TCP)(HOST=host1abc.com)(PORT=1521))Whichstatementistrue?A)TherearetwolistenersnamedLISTENERandLISTENER1runningsimultaneouslyusingport1521onthesamehostasthedatabaseinstancesB)ThedefinitionforLISTENER1requiresaCONNECTDATAsectiontoenabledynamicserviceregistrationC)LISTENER1mustalsobedefinedintheLISTENER.ORAfiletoenabledynamicserviceRegistrationD)TheLREGprocessregistersservicesdynamicallywiththeLISTENER_1listenerE)Dynamicserviceregistrationcannotbeusedforthisdatabaseinstance答案:A解析:[單選題]7.Whichstatementistrueaboutdatabaselinks?A)Adatabaselinkcreatedinadatabaseallowsaconnectionfromthatdatabase'sinstancetothetargetdatabase'sinstance,butnotviceversaB)PrivatedatabaselinkcreationrequiresthesameusertoexistinboththelocalandtheremotedatabasesC)ApublicdatabaselinkcanbeusedbyauserconnectedtothelocaldatabaseinstancetoconnecttoanyschemaintheremotedatabaseinstanceD)ApublicdatabaselinkcanbecreatedonlybysysE)AdatabaselinkcanbecreatedonlybetweentwoOracledatabases答案:A解析:(該題有爭(zhēng)議,很多人選E,A是筆者的選擇)[單選題]8.TheCUSTOMERStablehasaCUST_LASTNAMEcolumnofdatatypeVARCHAR2ThetablehastworowswhoseCUST_LASTNAMEvaluesareAndersonandAussonWhichqueryproducesoutputforCUST_LASTNAMEcontainingderforthefirstrowandAusforthesecond?A)SELECTREPLACE(SUBSTR(cust_last_name,-3),'AN',"O')FROMcustomers;B)SELECTINITCAPREPLACE(TRIM('SONFROMcust_last_namE.,'AN,'O'))FROMcustomers;C)SELECTREPLACE(TRIM(TRAILING"SON'FROMcustlastnamE.,'AN,'O')FROMcustomersD)SELECTREPLACE(REPLACE(custlastname,'son',''),'An','O')FROMcustomers;答案:D解析:[單選題]9.Whatistrueaboutnon-equijoinstatementperformance?A)Thejoinsyntaxusedmakesnodifferencetoperformance.B)TheBETWEENconditionusedwithannon-equijoinsometimesperformsbetterthanusingThe>=and<=conditionsC)TheBETWEENconditionusedwithannon-equijoinalwaysperformsbetterthanwhenusingThe>=and<=conditionsD)TheOraclejoinsyntaxperformsbetterthanthesol:1999compliantANSIjoinsyntaxE)TheOraclejoinsyntaxperformslesswellthanthesol:1999compliantANSIjoinsyntax答案:A解析:(兩種join此法筆者認(rèn)為并無(wú)性能上差距)[單選題]10.ExaminethedescriptionofthePRODUCTINEORMATTONtableNameNull7TypePROD_IDNOTNULLNUMBER(2)PROD_NANEVARCHAR2(10)LIST_PRICENUMBER(6,2Whichqueryretrievesthenumberofproductswithanulllistprice?A)SELECTCOUNT(listprice)FROMproductinformationWHERElistpriceNULLB)SELECTCOUNT(listprice)FROMproductinformationWHERElistpriceIsNULL.C)SELECTCOUNT(DISTINCTlistprice)PROMproductinformationWHERElistpriceIsNULLD)SELECTCOUNT(NVL(listprice,0))FROMproductinformationWHERElistpriceIsNULL答案:D解析:[單選題]11.YouexecutethiscommandCREATEBIGFILETABLESPACEbig_tbsDATAFILE'/u01/oracle/data/big_f1.dbf'SIZE20G;Sufficientstorageisavailableinfilesystem/u01Whichtwostatementsaretrueaboutthebig_tbsTablespace?(ChoosetwoA)AUTOEXTENDispossibleforthedatafileB)ItmustbebiggerthanthelargestSMALLFILEtablespaceC)AdditionaldatafilesmaynotbeaddedD)Itwillbeadictionary-managedtablespacebydefaultE)Itwillalwayshavea32Kblocksize答案:C解析:[單選題]12.WhichstatementistrueabouttheINTERSECToperatorusedincompoundQueries?A)MultipleINTERSECToperatorsarenotpossibleinthesameSQLstatementB)ItprocessesNULLSintheselectedcolumnsC)INTERSECTisoflowerprecedencethanUNIONorUNIONALLD)ItignoresNULLS答案:B解析:[單選題]13.AdatabaseisconfiguredtouseautomaticundomanagementwithtemporaryundoenabledAnUPDATEisexecutedonatemporarytable.WhereistheUNDOstored?A)intheundotablespaceB)intheSYSAUXtablespaceC)intheSGAD)inthePGAE)inthetemporarytablespace答案:E解析:[單選題]14.Youhavebeentaskedtocreateatableforabankingapplication.Oneofthecolumnsmustmeetthreerequirements:BestoredinaformatsupportingdatearithmeticwithoutusingconversionfunctionsStorealoanperiodofupto10yearsBeusedforcalculatinginterestforthenumberofdaystheloanremainsunpaidWhichDatatypeshouldyouuse?A)INTERVALYEARTOMONTHB)INTERVALDAYTOSECONDC)TIMESTAMPWITHLOCALTIMEZONED)TIMESTAMPE)TIMESTAMPWITHTIMEZONE答案:B解析:[單選題]15.Inthespfileofasingleinstancedatabase,LOCALLISTENERissettoLISTENER.1TheTNSNAMES.ORAfileinSORACLEHOME/network/admininthedatabasehomecontainsLISTENER_1=(ADDRESS=(PROTOCOL=TCP)(HOST=)(POPT=1521))Whichstatementistrue?A)DynamicserviceregistrationcannotbeusedforthisdatabaseinstanceB)TheLREGprocessregistersservicesdynamicallywiththeLISTENER1listenerC)LISTENER_1mustalsobedefinedintheLISTENER.ORAfiletoenabledynamicserviceregistrationD)TherearetwolistenersnamedLISTENERandLISTENER1runningsimultaneouslyusingport1521onthesamehostasthedatabaseinstancesE)ThedefinitionforLISTENER1requiresaCONNECTDATAsectiontoenabledynamicservice答案:D解析:[單選題]16.YouwanttowriteaquerythatpromptsfortwocolumnnamesandtheWHEREconditioneachtimeitIsexecutedinasessionbutonlypromptsforthetablenamethefirsttimeitisexecuted.ThevariablesusedinyourqueryareneverundefinedinyoursessionWhichquerycanbeused?A)SELECT&&col1&&co2FROM&tableWHERE&&condition=&&condB)SELECT&col1&COI2FROM&&tableWHERE&conditionC)SELECT&col1&CO12FROM&tableWHERE&conditionD)ELECT&&col1&&coFROM&tableWHERE&&condition=&condE)SELECT&&col1&&COL2FROM&tableWHERE&&condition答案:B解析:[單選題]17.ExaminethedescriptionoftheCUSTOMERStableNameNull?TypeCUST_IDNOTNULLVARCHAR2(6)FIRST_NAMEVARCHAR2(50)LAST_NAMENOTNULLVARCHAR2(50)ADDRESSVARCHAR2(50)CITYVARCHAR2(25)YouwanttodisplaydetailsofallcustomerswhoresideincitiesstartingwiththeletterDfollowedbyatleasttwocharactersWhichquerycanbeused?A)SELECT*FROMcustomersWHEREcityLIKE?D_%?;B)SELECT*FROMcustomersWHEREcity=?%D_?;C)SELECT*FROMcustomersWHEREcityLIKE?D_?;D)SELECT*FROMcustomersWHEREcity=?D_%?;答案:A解析:[單選題]18.YouwanttousetablecompressionsuitableforOLTPthatwill:1)CompressrowsforallDMLstatementsonthattable2)MinimizetheoverheadsassociatedwithcompressionWhichcompressionoptionisbestsuitedforthis?A)COLUMNSTORECOMPRESSFORQUERYLOWB)ROWSTORECOMPRESSBASICC)COLUMNSTORECOMPRESSFORARCHIVELOWD)COLUMNSTORECOMPRESSFORARCHIVEHIGHE)ROWSTORECOMPRESSADVANCED答案:E解析:[單選題]19.YourdatabaseinstanceisstartedwithaPFILE.Examinetheseparameters:NAMETYPEVALUEMemory_max_targetbiginteger0Memory_targetbiginteger0Sga_max_sizebiginteger2GSga_targetbiginteger2GYouwanttoincreasethesizeofthebuffercache.FreememoryisavailabletoincreasetheSizeofthebuffercache.Youexecutethecommand:SQL>ALTERSYSTEMSETDB_CACHE_SIZE=1024M;Whatistheoutcome?A)ThevalueischangedonlyinthePFILEandtakeseffectatthenextinstancestartupB)ThevalueischangedforthecurrentinstanceandinthePFILEC)ItfailsbecausetheSCOPEclauseismissingD)Changeisappliedtothecurrentinstance,butdoesnotpersistafterinstancerestart答案:D解析:[單選題]20.ExaminethedescriptionoftheCUSTOMERStable:NameNullTypeCUST_IDNOTNULLNUMBERCUST_FIRST_NAMENOTNULLVARCHAR2(20)CUST_LAST_NAMENOTNULLVARCHAR2(30)CUST_INCOME_LEVELVARCHAR2(30)CUST_CREDIT_LIMITNUMBERForcustomerswhoseincomelevelhasavalue,youwanttodisplaythefirstnameanddueamountas5%oftheircreditlimit.Customerswhosedueamountisnullshouldnotbedisplayed.Whichqueryshouldbeused?A)SELECTcust_first_name,cust_credit_limit*.05ASDUE_AMOUNTFROMcustomersWHEREcust_incoms_levelISNOTNULLANDdue_amountISNOTNULL;B)SELECTcust_first_name,cust_credit_limit*.05ASDUE_AMOUNTFROMcustomersWHEREcust_income_level!=NULLANDcust_credit_level!=NULL;C)SELECTcust_first_name,cust_credit_limit*.05ASDUE_AMOUNTFROMcustomersWHEREcust_income_level<>NULLANDdue_amount<>NULL;D)SELECTcust_first_name,cust_credit_limit*.05ASDUE_AMOUNTFROMcustomersWHEREcust_income_level!=NULLANDdue_amount!=NULL;E)SELECTcust_first_name,cust_credit_limit*.05ASDUE_AMOUNTFROMcustomersWHEREcust_income_levelISNOTNULLANDcust_credit_limitISNOTNULL;答案:E解析:第2部分:多項(xiàng)選擇題,共73題,每題至少兩個(gè)正確答案,多選或少選均不得分。[多選題]21.Whichtwostatementsaretrueaboutspace-savingfeaturesinanOracleDatabase?A)AnindexcreatedwiththeUNUSABLEattributehasnosegment.B)PrivateTemporaryTables(PTTs)storemetadatainmemoryonly.C)PrivateTemporaryTables(PTTs)whenused,arealwaysdroppedatthenextcommitstatement.D)AnindexthatisalteredtobeUNUSABLEwillretainitssegmentE)Atablethatistruncatedwillalwayshaveallofitsextentsremoved答案:AB解析:[多選題]22.YoucurrentlyhaveanactivetransactioninyoursessionandhavebeengrantedselectaccesstoV$TRANSACTIONExecuting:selectxid,statusfromv$transaction;Inyoursessionreturns:XIDSTATUS0A0007000A070000ACTIVEInwhichthreesituationswillre-executingthisquerystillreturnarowbutwithadifferentXIDIndicatinganewtransactionhasstarted?A)aftersuccessfullyexecutingaTRUNCATEstatementfollowedbyaDMLstatementB)aftersuccessfullyexecutingaCREATETABLEASSelectstatementfollowedbyaSELECTFORUPDATEstatementC)aftersuccessfullyexecutingaCREATETABLEstatementfollowedbyaCREATEINDEXstatementD)aftersuccessfullyexecutingacommitorROLLBACKfollowedbyaDMLstatementE)aftersuccessfullyexecutingaDMLstatementfollowingafailedDMLstatementF)aftersuccessfullyexecutingacommitorROLLBACKfollowedbyaSelectstatement答案:ABD解析:[多選題]23.ExaminethedescriptionoftheBOOKSTRANSACTIONStable:NAMENULL?TYPETRANSACTION_IDNOTNULLVARCHAR2(6)TRANSACTION_TYPEVARCHAR2(3)BORROWED_DATEDATEBOOK_IDVARCHAR2(6)NUMBER_IDVARCHAR2(6)ExaminethispartialSQLstatement:Select*frombooks_transactions;WhichtwoWHEREconditionsgivethesameresult?A)WHEREborroweddate=SYSDATEAND(transaction_type='RM'AND(member_id'A101'ORmemberid='A102'))B)WHEREborroweddate=SYSDATEAND(transactiontype='RM'ORmemberidIN('A101','A102'))C)WHEREborroweddate=SYSDATEAND(transactiontype='RM'ANDmember_id'A101'ORmemberid='A102')D)WHEREborroweddate=SYSDATEANDtransactiontype='RM'ORmemberidIN('A101','A102')E)WHERE(borroweddate=SYSDATEANDtransactiontype='RM')ORmemberidIN?A101','A1021)答案:DE解析:[多選題]24.Whichthreestatementsaretrue?NAMEnull?TypeTRANSACTION_IDNOTNULLVARCHAR2(6)TRANSACTION_DATEDATEAMOUNTNUMBER(10,2)CUSTOMER_IDVARCHAR2(6)Nowexaminethissequenceofstatementissuedinanewsession:INSERTINTObooksVALUES('ADV112','AdventuresofTomSawyer',null,null);SAVEPOINTa;DELETEFROMbooks;ROLLBACKTOSAVEPOINTa;ROLLBACK;A)ThesecondROLLBACKcommandrestorestherowthatwasinsertedB)ThefirstROLLBACKcommandleavestheinsertedrowlockedC)ThesecondROLLBACKcommandrestoresthe100rowsthatwereinthetableoriginallyD)ThesecondROLLBACKcommandrollsbacktheROLLBACKTOSAVEPOINTacommandE)ThefirstROLLBACKcommandleavesthetable's100originalrowslockedF)ThefirstROLLBACKcommandrestoresthe100rowsthatwereinthetableoriginally答案:BDF解析:[多選題]25.ExaminethedescriptionoftheMEMBERstable:NAMENULL?TYPEMEMBER_IDNOTNULLVARCHAR2(6)FIRST_NAMEVARCHAR2(50)LAST_NAMENOTNULLVARCHAR2(50)ADDRESSVARCHAR2(50)CITYVARCHAR2(25)Examinethepartialquery:Selectcity,last_nameLNAMEfrommembers...;YouwanttodisplayallcitiesthatcontainthestringAN.Thecitiesmustbereturnedinascendingorderwiththelastnamesfurthersortedindescendingorder.Whichtwoclausesmustyouaddtothequery?A)ORDERBY1,LNAMEDESCB)ORDERBY1,2C)WHEREcityIN(?%AN%?)D)WHEREcity=?%AN%?E)WHEREcityLIKE?%AN%?F)ORDERBYlastnameDESC,cityASC答案:AE解析:[多選題]26.YouwanttoapplytheprincipleofLeastPrivilegeinallyourlivedatabases.OneofyourrequirementsistorevokeunnecessaryprivilegesfromalluserswhohavethemusingPrivilegeAnalysis.WhichtwoaretypesofanalysesthatcanbedoneusingtheDBMSPRIVILEGECAPTUREPackage?A)analysisofprivilegesthatauserhasonotherschema'sobjectsB)analysisofprivilegesthatauserhasontheirownschemaobjectsC)analysisofprivilegesgrantedindirectlytoarolethatarethenusedbyauserwhohasbeenGrantedthatroleD)analysisofprivilegesgranteddirectlytoarolethatarethenusedbyauserwhohasbeenGrantedthatroleE)analysisofallprivilegesusedbythesysuser答案:CD解析:[多選題]27.WhichtwostatementsaretrueaboutundosegmentsandtheuseofundobytransactionsinanOracledatabaseinstance?A)Asingletransactionmayusemultipleundosegmentssimultaneously.B)UndosegmentscanbestoredintheSYSAUXtablespaceC)UndosegmentscanextendwhenatransactionfillsthelastextentoftheundosegmentD)UndosegmentscanwraparoundtothefirstextentwhenatransactionfillsthelastextendoftheUndosegmentE)UndosegmentscanbestoredintheSYSTEMtablespace答案:CE解析:[多選題]28.InthePROMOTIONStable,thePROMO_BEGIN_DATEcolumnisofdatatypeDATEandthedefaultdateformatisDD-MON-RR。WhichtwostatementsaretrueaboutexpressionsusingPROMO_BEGIN_DATEcontainedinaquery?A)PROMO_BEGIN_DATE-SYSDATEwillreturnanumberB)TO_DATE(PROMO_BEGIN_DATE*5)willreturnadateC)TO_NUMBER(PROMO_BEGIN_DATE-5)willreturnanumberD)PROMO_BEGIN_DATE-SYSDATEwillreturnanerrorE)PROMO_BEGIN_DATE-5willreturnadate答案:AE解析:[多選題]29.WhichthreestatementsaretrueaboutthenamingmethodsandtheirfeaturessupportedbyOracledatabaseusedtoresolveconnectioninformation?A)DirectoryNamingcanbeusedifConnect-TimeFailoverisrequiredB)LocalNamingrequiressettingtheTNSADMINenvironmentvariableontheclientsideC)LocalnamingcanbeusedifConnect-TimeFailoverisrequiredD)DirectoryNamingrequiressettingtheTNSADMINenvironmentvariableontheclientsideE)AclientcanconnecttoanOracledatabaseinstanceevenifnoclientsidenetworkadminhasbeenconfigureF)EasyConnectsupportsTCP/IPandSSL答案:ACE解析:[多選題]30.ExaminethedescriptionofthePRODUCTDETAILStable:NAMENULLTYPEPRODUCT_IDNOTNULLNUMBER(2)PRODUCT_NAMENOTNULLVARCHAR2(25)PRDUCT_PRICENUMBER(8,2)EXPIRY_DATEDATEWhichtwostatementsaretrue?A)PRODUCT_NAMEcannotcontainduplicatevaluesB)EXPIRY_DATEcontainstheSYSDATEbydefaultifnodateisassignedtoitC)EXPIRY_DATEcannotbeusedinarithmeticexpressionsD)PRODUCT_PRICEcanbeusedinanarithmeticexpressionevenifithasnovaluestoredinit.E)PRODUCT_PRICEcontainsthevaluezerobydefaultifnovalueisassignedtoitF)PRODUCT_IDcanbeassignedthePRIMARYKEYconstraint答案:DF解析:[多選題]31.WhichthreestatementsaretrueaboutconnectionstringsandservicenamesusedtoconnecttoanOracledatabaseinstance?A)AconnectionstringmustincludetheSIDofadatabaseinstance.B)AsingleconnectionstringcanrefertomultipledatabaseinstancesC)Aconnectionstringincludingaservicenamemustbedefinedinthetnsnames.orafileD)AservicenameiscreatedbyalistenerE)Differentconnectionstringsinthesametnsnames.orafilecancontainthesameservicenameHostandportparametersF)Asingledatabaseinstancecansupportconnectionsformultipleservicenames答案:BEF解析:[多選題]32.WhichthreestatementsaretrueaboutDeferredSegmentCreationinOracledatabases?A)Itisthedefaultbehaviorfortablesandindexes.B)Itissupportedforsys-ownedtablescontainedinlocallymanagedtablespacesC)SessionsmaydynamicallyswitchbackandforthfromDEFERREDtoIMMEDIATEsegmentCreation.D)IndexesinherittheDEFERREDorIMMEDIATEsegmentcreationattributefromtheirparenttableE)ItissupportedforIndexOrganizedTables(IOTs)containedinlocallymanagedtablespaces.答案:CDE解析:[多選題]33.WhichtwoOracledatabasespacemanagementfeaturesrequiretheuseoflocallymanagedTablespaces?A)OracleManagedFiles(OMF)B)Server-generatedtablespacespacealertsC)OnlinesegmentshrinkD)FreespacemanagementwithbitmapsE)Automaticdatafileextension(AUTOEXTEND)答案:CD解析:[多選題]34.WhichtwoaretrueaboutaSQLstatementusingSEToperatorssuchasUNION?A)Thedatatypeofeachcolumnreturnedbythesecondquerymustexactlymatchthedatatypeofthecorrespondingcolumnreturnedbythefirstquery.B)Thenumber,butnotnames,ofcolumnsmustbeidenticalforallSELECTstatementsinthequery.C)ThenamesandnumberofcolumnsmustbeidenticalforallSELECTstatementsinthequery.D)Thedatatypeofeachcolumnreturnedbythesecondqueryisautomaticallyconvertedtothedatatypeofthecorrespondingcolumnreturnedbythefirstquery.E)Thedatatypegroupofeachcolumnreturnedbythesecondquerymustmatchthedatatypegroupofthecorrespondingcolumnreturnedbythefirstquery.答案:BE解析:[多選題]35.Whichtwoarebenefitsofexternaltables?A)TheysupportUPDATESwhichtransparentlyupdatesrecordsinthefilesystemasiftheyweretableB)TheycanbequeriedwhilethedatabaseisintheMOUNTstatelikedynamicperformanceviewsC)TheysupportDELETEswhichtransparentlydeletesrecordsinthefilesystemasiftheyweretablerowsD)TheresultsofacomplexjoinoraggregatingfunctionorbothcanbeunloadedtoafilefortransportationtoanotherdatabaseE)Theycanbequeried,transformed,andjoinedwithothertableswithouthavingtoloadthedatafirst答案:DE解析:[多選題]36.WhichthreestatementsaretrueregardingtheUNIONandUNIONALLoperators?A)ThenumberofcolumnsselectedbythefirstSELECTstatementcanbegreaterthanthenumberselectedinsubsequentSELECTstatementsB)DuplicatesareeliminatedautomaticallybytheUNIONALLoperatorC)ThenumberofcolumnsselectedineachSELECTstatementmustbeidenticalD)NULISarenotignoredduringduplicatecheckingE)ThenamesofcolumnsselectedineachSELECTstatementmustbeidenticalF)ThenamesofcolumnsselectedineachSELECTstatementcanbeidenticalG)DuplicatescanoptionallybeeliminatedbytheUNIONoperator答案:CDF解析:[多選題]37.TheSALEStablehascolumnsPROD_IDandQUANTITY_SOLDofdatatypeNUMBER.Whichtwoqueriesexecutesuccessfully?A)SELECTprod_idFROMsalesWHEREquantity_sold>55000ANDCOUNT(*)>10GROUPBYprod_idHAVINGCOUNT(*)>10;B)SELECTCOUNT(prod_iD)FROMsalesGROUPBYprodidWHEREquantity_sold>55000C)SELECTprodidFROMsalesWHEREquantitysold>55000ANDCOUNT(*)>10GROUPBYCOUNT(*)>10:D)SELECTprodidFROMsalesWHEREquantitysold>55000GROUPBYprodidHAVINGCOUNT(*)>10;E)SELECTCOUNT(prod_iD)FROMsalesWHEREquantity_sold>55000GROUPBYprodid;答案:DE解析:[多選題]38.WhichtwostatementsaretrueaboutINTERVALdatatypes?A)INTERVALYEARTOMONTHcolumnssupportyearlyintervalsB)TheYEARfieldinanINTERVALYEARTOMONTHcolumnmustbeapositivevalueC)ThevalueinanINTERVALDAYTOSECONDcolumncanbecopiedintoanINTERVALYEARTOMONTHcolumnD)INTERVALYEARTOMONTHcolumnsonlysupportmonthlyintervalswithinasingleyearE)INTERVALDAYTOSECONDcolumnssupportfractionsofsecondsF)INTERVALYEARTOMONTHcolumnsonlysupportmonthlyintervalswithinarangeofYears答案:AE解析:[多選題]39.WhichtwostatementsaretrueabouttheOraclejoinandANSIjoinsyntax?A)TheOraclejoinsyntaxperformsbetterthantheSQL:1999compliantANSIjoinsyntax.B)TheOraclejoinsyntaxlackstheabilitytodoouterjoinsC)TheSQL:1999compliantANSIjoinsyntaxsupportscreationofaCartesianproductoftwotablesD)TheOraclejoinsyntaxsupportscreationofaCartesianproductoftwotablesE)TheOraclejoinsyntaxperformslesswellthantheSQL:1999compliantANSIjoinsyntax答案:CD解析:[多選題]40.ExaminethiscommandSQL>ALTERTABLEORDERSSHRINKSPACECOMPACTWhichtwostatementsaretrue?A)QueriesandDMLstatementsareallowedonORDERswhiletheSHRINKisexecutingB)DependentindexesbecomeUNUSABLEC)TheSHRINKoperationcausesrowstobemovedtoemptyspacestartingtowardtheendoftheORDERssegmentD)TheSHRINKoperationcausesrowstobemovedtoemptyspacestartingfromthebeginningoftheORDERssegment.E)OnlyqueriesareallowedonORDERswhiletheSHRINKisexecutingF)Thehigh-watermark(HWM)ofORDERsisadjusted答案:AC解析:[多選題]41.WhichtwostatementsaretrueabouttheSETVERIFYONcommand?A)Itdisplaysvaluesforvariablesprefixedwith&&B)ItdisplaysvaluesforvariablescreatedbytheDEFINEcommandC)ItcanbeusedinSQLDeveloperandSQL*PlusD)ItcanbeusedonlyinSQL*PlusE)ItdisplaysvaluesforvariablesusedonlyintheWHEREclauseofaquery答案:BC解析:[多選題]42.WhicharetwooftheaccountmanagementcapabilitiesthatcanbeconfiguredusingOracleprofiles?A)thenumberofdaysforwhichanaccountmaybeloggedintooneormoresessionsbeforeitislockedB)thenumberofdaysforwhichanaccountmaybeinactivebeforeitislockedC)themaximumnumberofsessionspermittedforauserbeforethepasswordmustbechangedD)theabilitytopreventapasswordfromeverbeingreusedE)themaximumamountofcputimeallowedforauserssessionsbeforetheiraccountislocked答案:BD解析:[多選題]43.Whichthreestatementsaretrueregardingsinglerowsubqueries?A)TheymustbeplacedontheleftsideofthecomparisonoperatororconditionB)TheymustreturnarowtopreventerrorsintheSQLstatementC)TheycanbeusedintheHAVINGclause.D)ASQLstatementmayhavemultiplesinglerowsubqueryblocksE)TheycanbeusedintheWHEREclauseF)Theymustbeplacedontherightsideofthecomparisonoperatororcondition答案:CDE解析:[多選題]44.Youexecutethiscommand:Duringtheexportoperation,youdetachfromthejobbyusingcrtl+candthenexecutethisCommandExport>STOPJOB-immediateAreyousureyouwishtostopthejob([yes]/no):yesWhichtwostatementsaretrueaboutthejob?A)YoucanreattachtoitandmonitoritB)YoucanreattachtoitbutnotmonitoritC)ItterminatesD)ItcontinuestoruninthebackaroundE)Itispausedandcanberesumed答案:AE解析:[多選題]45.WhichthreestatementsaretrueabouttheAutomaticDiagnosticRepository(ADR)?A)Itisafile-basedrepositoryheldoutsideanydatabaseB)TheADRbaseisspecifiedintheDIAGNOSTICDESTdatabaseparameteC)ItisonlyusedforOracleDatabasediagnosticinformationD)ItisheldinsideanOracledatabaseschemaE)Itcanbeusedforproblemdiagnosisofadatabasewhenthatdatabase'sinstanceisdown答案:ABE解析:[多選題]46.ExaminethiscommandALTERDATABASEMOVEDATAFILE'/U01/SALES01.DBF'TO'/U02/SALES02.DBF';Whichtwostatementsaretrue?A)DML,maybeperformedontableswithoneormoreextentsinthisdatafileduringtheexecutionofthiscommandB)ItoverwritesanyexistingfilewiththenameSALES02.DBFin/u02bydefault.C)TableswithoneormoreextentsinthisdatafilemaybequeriedduringtheexecutionofthiscommandD)Compressedobjectsinsales01.DBFwillbeuncompressedinSALES02.DBFafterthemoveE)The"To"clausecontainingthenewfilenamemustbespecifiedevenifOracleManagedFiles(OMF)isused答案:AC解析:[多選題]47.Whichtwostatementsaretrueaboutsubstitutionvariables?A)Asubstitutionvariableusedtopromptforacolumnnamemustbeenclosedindoublequotationmarks.B)AsubstitutionvariableprefixedwithsalwayspromptsonlyonceforavalueinasessionC)AsubstitutionvariableusedtopromptforacolumnnamemustbeenclosedinsinglequotationmarksD)Asubstitutionvariableprefixedwith&&promptsonlyonceforavalueinasessionunlessitissettoundefinedinthesessionE)AsubstitutionvariablecanbeusedonlyinaSELECTstatementF)Asubstitutionvariablecanbeusedwithanyclauseinaselectstatement答案:DF解析:[多選題]48.ExaminethisdescriptionoftheTRANSACTIONStableWhichtwoSQLstatementsexecutesuccessfully?A)SELECTcustomer_idCUSTID,transactiondateTRANS_DATE,amount+100DUESFROMTransactionsB)SELECTcustomer_idAS"CUSTOMER-ID",transaction_dateASDATE,amount+100?DUES?FROMtransactionsC)SELECTcustomer_idAS?CUSTOMER-ID?,transaction_dateAsDATE,amount+100?DUES?FROMtransactionsD)SELECTcustomer_idAS"CUSTOMER-ID",transaction_dateAs"DATE",amount+100DUESFROMtransactionsE)SELECTcustomer_idASCUSTOMER-ID,transaction_dateAsTRANSDATE,amount100"DUESAMOUNT"FROMtransactions答案:AD解析:[多選題]49.WhichtwostatementsaretrueabouttheconfigurationanduseofUNDORETENTIONWithnoGUARANTEEDRETE
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 教師開學(xué)前軍訓(xùn)心得體會(huì)5篇
- 物流設(shè)施與設(shè)備第二章航空管道
- 債務(wù)償付質(zhì)押合同(2篇)
- 公共事業(yè)投資合作協(xié)議書(2篇)
- 河南省安陽(yáng)市第六十二中學(xué)2022年高三語(yǔ)文下學(xué)期期末試卷含解析
- 2025年Γ-球蛋白三類項(xiàng)目合作計(jì)劃書
- 上海寫字樓租賃合同范本
- 幼兒園房屋租賃合同書范本
- 小吃街?jǐn)偽蛔赓U合同
- 長(zhǎng)期租賃合同范本
- SOR-04-014-00 藥品受托生產(chǎn)企業(yè)審計(jì)評(píng)估報(bào)告模板
- 三級(jí)電子商務(wù)師理論考試題(含答案)
- 智慧物流第10套理論題附有答案
- 2024AI時(shí)代的社交媒體營(yíng)銷進(jìn)化
- 低壓配電系統(tǒng)運(yùn)行維護(hù)操作手冊(cè)
- 2024年江蘇南京金陵中學(xué)特長(zhǎng)生選拔考試數(shù)學(xué)試題(含答案詳解)
- 2024-2030年中國(guó)水培蔬菜行業(yè)發(fā)展分析及發(fā)展前景與趨勢(shì)預(yù)測(cè)研究報(bào)告
- 水電站大壩土建安裝工程懸臂模板施工手冊(cè)
- AQ/T 1119-2023 煤礦井下人員定位系統(tǒng)通 用技術(shù)條件(正式版)
- 生理學(xué)重點(diǎn)復(fù)習(xí)資料全
- 初中生理想信念教育班會(huì)(3篇模板)
評(píng)論
0/150
提交評(píng)論