版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
試卷科目:OracleOCP認(rèn)證考試練習(xí)OracleOCP認(rèn)證考試練習(xí)真題題庫三PAGE"pagenumber"pagenumber/SECTIONPAGES"numberofpages"numberofpagesOracleOCP認(rèn)證考試練習(xí)真題題庫三第1部分:單項(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解析:(該題有爭議,很多人選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)為并無性能上差距)[單選題]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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年云南省玉溪市江川區(qū)融媒體中心公開招聘畢業(yè)生備考題庫及一套完整答案詳解
- 2025年重慶標(biāo)準(zhǔn)件工業(yè)有限責(zé)任公司招聘28人備考題庫及完整答案詳解一套
- 2025年劍川縣人民醫(yī)院公開招聘編外醫(yī)療衛(wèi)生專業(yè)技術(shù)人員16人的備考題庫含答案詳解
- 2025年山東土地資本投資集團(tuán)有限公司招聘11人備考題庫完整參考答案詳解
- 2025年松江區(qū)衛(wèi)生健康系統(tǒng)編外衛(wèi)生專業(yè)技術(shù)人員招聘備考題庫(第二批)帶答案詳解
- 2025年河南省胸科醫(yī)院招聘94人備考題庫完整參考答案詳解
- 2025年瑞安市第五人民醫(yī)院招聘合同制非事業(yè)編工作人員的備考題庫及1套完整答案詳解
- 2026年度柳州市工人醫(yī)院廣西醫(yī)科大學(xué)第四附屬醫(yī)院招聘37人備考題庫參考答案詳解
- 高中生視力保護(hù)與網(wǎng)絡(luò)成癮干預(yù)策略研究教學(xué)研究課題報(bào)告
- 2025年最有趣的代數(shù)試卷及答案
- MOOC 物理與藝術(shù)-南京航空航天大學(xué) 中國大學(xué)慕課答案
- 銀行案件復(fù)盤分析報(bào)告
- 分析方法轉(zhuǎn)移方案課件
- 無創(chuàng)呼吸機(jī)面部壓瘡預(yù)防措施
- 全國高校黃大年式教師團(tuán)隊(duì)推薦匯總表
- 員工管理規(guī)章制度實(shí)施細(xì)則
- 社會心理學(xué)(西安交通大學(xué))知到章節(jié)答案智慧樹2023年
- 《安井食品價(jià)值鏈成本控制研究案例(論文)9000字》
- GB/T 4135-2016銀錠
- GB/T 33084-2016大型合金結(jié)構(gòu)鋼鍛件技術(shù)條件
- 關(guān)節(jié)鏡肘關(guān)節(jié)檢查法
評論
0/150
提交評論