版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
PAGEPAGE1OracleOCP1Z0-082-CHN認(rèn)證考試題庫(kù)(附答案)一、單選題1.YourdatabaseinstanceisstartedwithanSPFILEAPFILEisalsoavailableYouexecutethismand
ALTERSYSTEMSETDBCACHESIZE=100K
Whereisthevaluechanged?A、intheSPFILEandPFTIEB、intheSPFILE,PFILE,andmemoryC、onlyintheSPFILED、intheSPFILEandinmemoryE、onlyinmemory答案:D2.Adatabaseisconfiguredtouseautomaticundomanagementwithtemporaryundoenabled.
AnUPDATEisexecutedonatemporarytable.
WhereistheUNDOstoted?A、intheSGAB、inthePGAC、intheSYSAUXtablespaceD、intheundotablespaceE、inthetemporarytablespace答案:E3.chooseoneExaminetheparametersforadatabaseinstance:NAMETYPEVALUEtemp_undo_enabledbooleanTRUEundo_managementstringAUTOundo_retentionInteger900undo_tablespacestringUNDOTBS1Yourdatabasehasthreeundotablespacesandthedefaultundotablespaceisnotautoextensible.
Resumablespaceallocationisnotenabledforanysessionsinthedatabaseinstance.
Whatistheeffectonnewtransactionswhenallundospaceinthedefaultundotablespaceisinusebyactivetransactions?A、TransactionswaituntilspacebeesavailableinUNDOTBS1.B、Transactionswritetheirundoinatemporarytablespace.C、Transactionsfail.D、TransactionswritetheirundointheSYSTEMundosegment.答案:C4.Youwanttoreducefragmentationandreclaimunusedspaceforthesalestablebutnotitsdependentobjects.Duringthisoperation,youwanttoensurethefollowing:
I.Long-runningqueriesarenotaffected.
Ii.Noextraspaceisused.
Iii.Datamanipulationlanguage(DML)operationsonthetablesucceedatalltimesthroughouttheprocessiv.Unusedspaceisreclaimedbothaboveandbelowthehighwatermark.
WhichalterTABLEoptionwouldyouremend?
您希望為sales表(而不是其依賴(lài)對(duì)象)減少碎片并回收未使用的空間。在此操作過(guò)程中,您要確保:
我長(zhǎng)時(shí)間運(yùn)行的查詢(xún)不受影響。
二、沒(méi)有額外的空間被使用。
Iii.在整個(gè)過(guò)程中,表上的數(shù)據(jù)操作語(yǔ)言(DML)操作始終成功iv.在高水位線上方和下方回收未使用的空間。
您會(huì)推薦哪種alterTABLE選項(xiàng)?
A)取消分配未使用的
B)收縮空間級(jí)聯(lián)
C)壓縮空間
D)行存儲(chǔ)壓縮基A、DEALLOCATEUNUSEDB、SHRINKSPACECASCADEC、SHRINKSPACEPACTD、ROWSTOREPRESSBASIC答案:C5.EvaluatethefollowingALTERTABLEstatement:
ALTERTABLEordersSETUNUSED(order_datE.;
Whichstatementistrue?A、AfterexecutingtheALTERTABLEmand,youcanaddanewcolumncalledORDER_DATEtotheORDERStable.B、TheORDER_DATEcolumnshouldbeemptyfortheALTERTABLEmandtoexecutesuccsessfully.C、ROLLBACKcanbeusedtogetbacktheORDER_DATEcolumnintheORDERStable.D、TheDESCRIBEmandwouldstilldisplaytheORDER_DATEcolumn.答案:A6.Examinethefollowingmand;
ALTERSYSTEMSETenable_ddl_logging=TRUE;
Whichstatementistrue?A、Onlythedatadefinitionlanguage(DDL)mandsthatresultedinerrorsareloggedinthealertlogfile.B、AllDDLmandsareloggedinthealertlogfile.C、AllDDLmandsareloggedinadifferentlogfilethatcontainsDDLstatementsandtheirexecutiondates.D、OnlyDDLmandsthatresultedinthecreationofnewsegmentsarelogged.E、AllDDLmandsareloggedinXMLformatinthealertdirectoryundertheAutomaticDiagnosticRepository(ADR)home.答案:C7.Inoneofyourdatabases,theuserHRhasthepasswordHRMGR.
Youwanttoconnecttoadatabaseinstancewhoselistenerlistensonport1531byusingthisstatement:
CONNECTHR/HRMGRorclNonameserverisused.
WhichstatementistrueaboutORCL?A、ItmustbethevalueoftheSERVICE_NAMESparameterontheclientsideB、Itmustresolvetoavalidconnectdescriptorintheserver’stnsnames.orafileC、Itmustresolvetoavalidconnectdescriptorintheclient’stnsnames.orafileD、ItmustbethenameofthedatabasetowhoseinstanceHRwishestoconnectE、ItmustbethenameoftheserverrunningthedatabasetowhoseinstanceHRwishestoconnect答案:C8.ExaminethedescriptionoftheEMPLOYEEStableNISDATEFORMATissettoDD-MON–YY.
Whichqueryrequiresexplicitdatatypeconversion?A、SELECTjoindateFROMemployeesWHEREjoindate>'10-02-2018';B、SELECTjoindate||''||salaryFROMemployeesC、SELECTsalary+'120.50'FROMemployeesD、SELECTSUBSTR(join_date,1,2)-10FROMemployeesE、SELECTjoindate+'20'FROMemployees答案:A9.Whatistrueaboutnon-equijoinstatementperformance?A、TheOraclejoinsyntaxperformslesswellthantheSQI:1999pliantANSIjoinsyntax.B、TheBETWEENconditionusedwithannon-equijoinalwaysperformsbetterthanwhenusingthe>=and<=conditions.
與非等連接一起使用的BETWEEN條件總是比使用>=和<=條件時(shí)表現(xiàn)更好。--這個(gè)說(shuō)法上有歧義always往往代表一直總是但是不可能一成不變會(huì)隨著表或者連接條件包括函數(shù)的使用產(chǎn)生不同的性能影響C、TheBETWEENconditionusedwithannon-equijoinsometimesperformsbetterthanusingthe>=and<=conditions.
與非等連接一起使用的BETWEEN條件有時(shí)比使用>=和<=條件表現(xiàn)更好。--這個(gè)是對(duì)的要看語(yǔ)句具體狀況D、Thejoinsyntaxusedmakesnodifferencetoperformance.
使用的連接語(yǔ)法對(duì)性能沒(méi)有影響。連接語(yǔ)法對(duì)性能一定有影響E、TheOraclejoinsyntaxperformsbetterthantheSQL:1999pliantANSIjoinsyntax.
Oraclejoin語(yǔ)法的性能優(yōu)于符合SQL:1999的ANSI連接語(yǔ)法。不是最優(yōu)解因?yàn)镴OIN往往是等值連接答案:C10.Examinethismandandsomepartialoutput:WhydoestheDB01.abc.serviceshowunknownstatus?A、TheserviceDB01.abc.isdynamicallyregisteredB、TheLOCAL_LISTENERdatabaseparameterisnotsettoaservicenamethatreferstoLISTENER_1C、TheserviceDB01.abc.isstaticallyregisteredD、Thelistenerisnotlisteningonthedefaultport1521E、TheSID_LIST_LISTENERsectionisnotcontainedintheLISTENER.ORAfile答案:C11.ExaminethedescriptionoftheCUSTOMERStable:YouwanttodisplaydetailsofallcustomerswhoresideincitiesstartingwiththeletterDfollowedbyatleasttwocharacters.Whichquerycanbeused?A、SELECT*FROMcustomersWHEREcityLIKE‘D_%’;B、SELECT*FROMcustomersWHEREcity=‘%D_’;C、SELECT*FROMcustomersWHEREcityLIKE‘D_’;D、SELECT*FROMcustomersWHEREcity=‘D_%’;答案:A12.Whichstatementistrueaboutaggregatefunctions?A、AggregatefunctionscanbenestedtoanynumberoflevelsB、TheAVGfunctionimplicitlyconvertsNULLStozeroC、AggregatefunctionscanbeusedinanyclauseofaSELECTstatementD、TheMAXandMINfunctionscanbeusedoncolumnswithcharacterdatatypes答案:D13.Examinethedescriptionoftheproductstable
A、SELECTprodid,AVG(MAX(cost))FROMproductsGROUPBYprod.B、SELECTprodid,MAX(AVG(cost))FROMproductsGROUPBYprodidC、Selectprodid,releasedate,SUM(cost)FROMproductsGROUPBYprodidD、SELECTprodid,releasedate,SUM(cost)FROMproductsGROUPBYprodid,releasedate答案:D14.ExaminethedescriptionoftheEMPLOYEEStable:Whichqueryisvalid?A、SELECTdept_id,AVG(MAX(salary))FROMemployeesGROUPBYdept_id;B、SELECTdept_id,join_date,SUM(salary)FROMemployeesGROUPBYdept_id;C、SELECTdept_id,join_date,SUM(salary)FROMemployeesGROUPBYdept_id,join_date;D、SELECTdept_id,MAX(AVG(salary))FROMemployeesGROUPBYdept_id;答案:C15.IntheSALESdatabase,DEFERRED_SEGMENT_CREATIONisTRUE.Examinethismand:SQL>CREATETABLET1(c1INTPRIMARYKEY,c2CLOB.;
Whichsegmentorsegments,ifany,arecreatedasaresultofexecutingthemand?A、T1,anindexsegmentfortheprimarykey,aLOBsegment,andalobindexsegmentB、nosegmentsarecreated--T1開(kāi)頭排除掉C、T1onlyD、T1andanindexsegmentcreatedfortheprimarykeyonlyE、T1,anindexsegmentfortheprimarykey,andaLOBsegmentonly答案:B16.Choosethebestanswer.WhywouldyouusetheTNSPINGhrmand[W1]?A、toverify(驗(yàn)證)ifarequestedserviceisavailableB、todetermine(保證確定)ifthelistenerfortheHRnetservicenamecanbereachedC、toverifyiftheHRdatabaseinstanceisupD、tocheckandlistmultipleORACLE_HOMElocationsontheserverE、tovalidate(驗(yàn)證證實(shí))thenetworkconnectivitybetweenaclientandthedatabaseinstance答案:B17.WhichpressionmethodisremendedforDirect-PathInsertoperations?A、COLUMNSTOREPRESSADVANCEDB、ROWSTOREPRESSADVANCEDC、COLUMNSTOREPRESSBASICD、ROWSTOREPRESSBASIC答案:B18.ExaminethedescriptionofthePROMOTIONStable:Managementrequiresareportofuniquepromotioncostsineachpromotioncategory.
Whichquerywouldsatisfythisrequirement?A、SELECTDISTINCTpromo_category,promo_costFROMpromotionsORDERBY1B、SELECTpromo_category,DISTINCTpromo_costFROMpromotionsC、SELECTDISTINCTpromo_cost,promo_categoryFROMpromotionsD、SELECTDISTINCTpromo_cost,DISTINCTpromo_categoryFROMpromotions;答案:A19.ViewtheExhibitsandexaminethestructureofthecostsandPROMOTIONStablesYouwanttodisplayPRODIDSwhosepromotioncostislessthanthehighestcostPRODIDinapromotiontimeinterval
Whatwillbetheresult?
A、Itexecutessuccessfullyandgivestherequiredresult.B、ItgivesanerrorbecausetheGROUPBYclauseisnotvalidC、ItexecutessuccessfullybutdoesnotgivetherequiredresultD、ItgivesanerrorbecausetheALLkeywordisnotvalid答案:A20.Yourdatabaseinstanceisstartedbyusingaserverparameterfile(SPFILE..
YouexecutethefollowingmandtochangethevalueoftheLOG_BUFFERinitializationparameter:ALTERSYSTEMSETLOG_BUFFER=32M;
Whatistheouteofthismand?
數(shù)據(jù)庫(kù)實(shí)例是使用服務(wù)器參數(shù)文件(SPFILE)啟動(dòng)的。
您可以執(zhí)行以下命令來(lái)更改LOG_BUFFER初始化參數(shù)的值:ALTERSYSTEMSETLOG_BUFFER=32M;
這個(gè)命令的結(jié)果是什么?A、TheparametervalueischangedanditesintoeffectassoonasspacebeesavailableintheSGA.B、Theparametervalueischangedanditesintoeffectatthenextinstancestartup.C、ItreturnsanerrorbecauseSCOPEshouldbesettoMEMORY.D、Itreturnsanerrorbecausethevalueofthisparametercannotbechangeddynamically.答案:D21.IntheORCLdatabase,UNDOTBS1istheactiveundotablespacewiththeseproperties:
1Asizeof100MB
2AUTOEXTENDisoff
3UNDO_RETENTIONissetto15minutes
4IthasRETENTIONGUARANTEEUNDOTBS1fillswithunmittedundo10minutesafterthedatabaseopens.
Whatwillhappenwhenthenextupdateisattemptedbyanytransaction?A、ItsucceedsandthegeneratedundoisstoredinSYSTEM.B、Itfailsandreturnstheerrormessage“ORA-30036:unabletoextendsegmentby8inundotablespace‘UNDOTBS1’“.C、ItsucceedsandtheleastrecentlywrittenundoblockofUNDOTBS1isoverwrittenbythegeneratedundo.D、ItsucceedsandthegeneratedundoisstoredinSYSAUX.E、ItsucceedsandtheleastrecentlyreadundoblockofUNDOTBS1isoverwrittenbythegeneratedundo.答案:B22.YouplantocreateadatabasebyusingtheDatabaseConfigurationAssistant(DBCA.,withthefollowingspecifications:Applicationswillconnecttothedatabaseviaamiddletier.Thenumberofconcurrentuserconnectionswillbehigh.Thedatabasewillhavemixedworkload,withtheexecutionofplexBIqueriesscheduledatnight.WhichDBCAoptionmustyouchoosetocreatethedatabase?A、aGeneralPurposedatabasetemplatewithdefaultmemoryallocationB、aDataWarehousedatabasetemplate,withthededicatedservermodeoptionandAMMenabledC、aGeneralPurposedatabasetemplate,withthesharedservermodeoptionandAutomaticMemoryManagement(AMM)enabledD、adefaultdatabaseconfiguration答案:C23.ExaminethedescriptionoftheSATES1table
SALES2isatablewiththesamedescriptionasSATES1Somesalesdataiscontainederroneouslyinbothtables
YoumustdisplayrowsfromsAlEs1andSALESandwishtoseetheduplicatestooWhichsetoperatorgeneratestherequiredoutput?A、MINUSB、UNIONALLC、SUBTRACTD、UNIONE、INTERSECT答案:B24.WhichstatementistrueregardingtheINTERSECToperator?
關(guān)于INTERSECT運(yùn)算符,哪個(gè)語(yǔ)句是正確的?A、ThenamesofcolumnsinallSELECTstatementsmustbeidentical.B、ItignoresNULLvalues.C、Reversingtheorderoftheintersectedtablesalterstheresult.D、ThenumberofcolumnsanddatatypesmustbeidenticalforallSELECTstatementsinthequery.答案:D25.Choosethebestanswer.Examinethesemands:
CONNECT/ASSYSDBA
SQL>CREATEDIRECTORYdumpdirAS‘/u01/app’;
Directorycreated.
SQL>GRANTREAD,WRITEONDIRECTORYdumpdirTOPUBLIC;
Grantsucceeded.
SQL>GRANTUSERTESTIDENTIFIEDBYtest;
Usercreated.
SQL>GRANTCREATESESSION,RESOURCE,UNLIMITEDTABLESPACETOtest;
Grantsucceeded.
SQL>CONNtest/test.
Connected.
SQL>CREATETABLEtest_employees(idNUMBER(3),nameVARCHAR2(20),salaryNUMBER(7));
Tablecreated.
SQL>CREATESYNONYMempFORtest_employees;
Synonymcreate.
Nowexaminethismand:$expdptest/testDIRECTORY=dumpdirDUMPFILE=test_emp.dmpLOGFILE=test.logTABLES=emp
Whichistrue?A、Itperformstheexportsuccessfully.B、Itthrowsanerrorasthetabletest_employeesisemptyandCONTENT=data_onlyisspecified.C、ItthrowsanerrorastheQUERYparameterisnotsupportedonanemptytable.D、ItthrowsanerrorasDataPumpcannotfindatablecalledTEST.EMP.答案:D26.WhichstatementistrueabouttheINTERSECToperatorusedinpoundqueries?A、MultipleINTERSECToperatorsarenotpossibleinthesameSQLstatementB、ItprocessesNULLsintheselectedcolumnsC、INTERSECTisoflowerprecedencethanUNIONorUNIONALLD、ItignoresNULLs答案:B27.Youhavebeentaskedtocreateatableforabankingapplication.Oneofthecolumnsmustmeetthreerequirements:BestoredinaformatsupportingdatearithmeticwithoutusingconversionfunctionsStorealoanperiodofupto10yearsBeusedforcalculatinginterestforthenumberofdaystheloanremainsunpaidWhichdatatypeshouldyouuse?A、INTERVALYEARTOMONTHB、INTERVALDAYTOSECONDC、TIMESTAMPWITHLOCALTIMEZONED、TIMESTAMPE、TIMESTAMPWITHTIMEZONE答案:B28.ViewtheExhibitandexaminethestructureoftheCUSTOMERStable.
UsingtheCUSTOMERStable,youmustgenerateareportthatdisplaysacreditlimitincreaseof15%forallcustomers.
Customerswithnocreditlimitshouldhave“NotAvailable”displayed.
WhichSQLstatementwouldproducetherequiredresult?A、SELECTNVL(TO_CHAR(cust_credit_limit*.15),‘NotAvailable’)“NEWCREDIT”FROMcustomersB、SELECTTO_CHAR(NVL(cust_credit_limit*.15),‘NotAvailable’))“NEWCREDIT”FROMcustomersC、SELECTNVL(cust_credit_limit*.15,‘NotAvailable’)“NEWCREDIT”FROMcustomersD、SELECTNVL(cust_credit_limit,‘NotAvailable’)*.15“NEWCREDIT”FROMcustomers答案:A29.choosethebestanswerEvaluatethefollowingSQLstatement:
ALTERTABLEhr.empSETUNUSED(mgr_iD.;
WhichstatementistrueregardingtheeffectoftheaboveSQLstatement?A、AnyviewscreatedontheEMPtablethatincludetheMGR_IDcolumnwouldbeautomaticallymodifiedandremainvalid.B、AnyconstraintsdefinedontheMGR_IDcolumnwouldberemovedbytheabovemand.C、AnysynonymexistingontheEMPtablewouldhavetobere-created.D、AnyindexcreatedontheMGRincolumnwouldcontinuetoexistuntiltheDROPUNUSEDCOLUMNSmandisexecuted.答案:B30.YouwanttowriteaquerythatpromptsfortwocolumnnamesandtheWHEREconditioneachtimeitisexecutedinasessionbutonlypromptsforthetablenamethefirsttimeitisexecuted.
Thevariablesusedinyourqueryareneverundefinedinyoursession.
Whichquerycanbeused?A、SELECT&&col1,&&col2FROM&tableWHERE&&condition=&&cond;B、SELECT&col1,&col2FROM&&tableWHERE&condition;C、SELECT&col1,&col2FROM“&table”WHERE&condition;D、SELECT‘&&col1’,‘&&col2’FROM&tableWHERE‘&&condition’=‘&cond’;E、SELECT&&col1,&&col2FROM&tableWHERE&&condition;答案:B31.YouwanttousetablepressionsuitableforOLTPthatwill:
1pressrowsforallDMLstatementsonthattable
2Minimizetheoverheadsassociatedwithpression
Whichpressionoptionisbestsuitedforthis?A、COLUMNSTOREPRESSFORQUERYLOWB、ROWSTOREPRESSBASICC、COLUMNSTOREPRESSFORARCHIVELOWD、COLUMNSTOREPRESSFORARCHIVEHIGHE、ROWSTOREPRESSADVANCED答案:E32.WhichisthedefaultcolumnorcolumnsforsortingoutputfrompoundqueriesusingSEToperatorssuchasINTERSECTinaSQLstatement?A、thefirstNUMBERorVARCHAR2columninthelastselectofthepoundqueryB、thefirstNUMBERcolumninthefirstselectofthepoundqueryC、thefirstvARCHAR2columninthefirstselectofthepoundqueryD、thefirstcolumninthefirstselectofthepoundquery答案:D33.TheCUSTOMERStablehasaCUST_LASTNAMEcolumnofdatatypeVARCHAR2ThetablehastworowswhoseCUST_LASTNAMEvaluesareAndersonandAusson
WhichqueryproducesoutputforCUST_LASTNAMEcontainingoderforthefirstrowandAusforthesecond?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;答案:D34.Whichstatementistrueaboutdatabaselinks?A、Adatabaselinkcreatedinadatabaseallowsaconnectionfromthatdatabase'sinstancetothetargetdatabase'sinstance,butnotviceversaB、PrivatedatabaselinkcreationrequiresthesameusertoexistinboththelocalandtheremotedatabasesC、ApublicdatabaselinkcanbeusedbyauserconnectedtothelocaldatabaseinstancetoconnecttoanyschemaintheremotedatabaseinstanceD、ApublicdatabaselinkcanbecreatedonlybysysE、AdatabaselinkcanbecreatedonlybetweentwoOracledatabases答案:E35.Inthespfileofasingleinstancedatabase,LOCALLISTENERissettoLISTENER1.
TheTNSNAMESORAfileinSORACLEHOME/network/admininthedatabasehomecontains:
LISTENER1=(ADDRESS=
(PROTOCOL=TCP)
(HOST=host1abc.)(PORT=1521))
Whichstatementistrue?A、TherearetwolistenersnamedLISTENERandLISTENER1runningsimultaneouslyusingport1521onthesamehostasthedatabaseinstancesB、ThedefinitionforLISTENER1requiresaCONNECTDATAsectiontoenabledynamicserviceregistrationC、LISTENER1mustalsobedefinedintheLISTENER.ORAfiletoenabledynamicserviceregistrationD、TheLREGprocessregistersservicesdynamicallywiththeLISTENER_1listenerE、Dynamicserviceregistrationcannotbeusedforthisdatabaseinstance答案:D36.ExaminethedescriptionofthePRODUCT_INFORMATIONtables:
NameNull?Type
PROD_IDNOTNULLNUMBER(2)
PROD_NAMEVARCHAR2(10)
LIST_PRICENUMBER(6,2)
Whichqueryretrievesthenumberofprofuctswithanulllistprice?A、SELECTCOUNT(list_pricE.FROMproduct_informationWHERElist_price=NULL;B、SELECTCOUNT(list_pricE.FROMproduct_informationWHERElist_priceISNULL;C、SELECTCOUNT(NVL(list_price,0))FROMproduct_informationWHERElist_priceISNULL;D、SELECTCOUNT(DISTINCTlist_pricE.FROMproduct_informationWHERElist_priceISNULL;答案:C37.Youexecutethisquery:SELECTTO_CHAR(NEXT_DAY(LAST_DAY(SYSDATE.,‘MON’),‘dd“Mondayfor”fmMonthrrrr’)Whatistheresult?A、ItexecutessuccessfullybutdoesnotreturnanyresultB、ItreturnsthedateforthefirstMondayofthenextmonthC、ItgeneratesanerrorD、ItreturnsthedateforthelastMondayofthecurrentmonth答案:B38.Examinethedetailsoftheunpressed,non-partitionedheaptableCITIES.
NameNull?Type
CITYIDNOTNULLNUMBER(4)
CITY_NAMEVARCHAR2(50)
Examinethemand:SQL>ALTERTABLEcitiesSHRINKSPACEPACT;
Whatmustyoudobeforeexecutingit?A、Ensuretherearenopendingtransactionsonthetable.B、Disableallindexesonthetable.C、Ensurefreespacethatisapproximatelyequaltothespaceusedbythetableshouldbeavailable.D、Enablerowmovementisenabled.答案:D39.ThestorestablehasacolumnSTART_DATEofdatatypeDATE,containingthedatetherowwasinserted.
YouonlywanttodisplaydetailsofrowswhereSTART_DATEiswithinthelast25months.
Whichwhereclausecanbeused?A、WHEREMONTHS_BETWEEN(SYSDATE,start_datE.<=25B、WHERETO_NUMBER(start_date-SYSDATE.<=25C、WHEREADD_MONTHS(start_date,25)<=SYSDATED、WHEREMONTHS_BETWEEN(start_date,SYSDATE.<=25答案:D多選題1.Examinethesemands
Whichtwostatementsaretrueaboutthesqlldrexecution?
A、ItoverwritesthedataforAlanandaddsdataforCurlandBobB、ItgeneratesasqlscriptthatitusestoloaddatafromEMP.DATtoEMPC、ItoverwritesalldatainEMPwithdatafromEMP.DAT.D、Itgeneratesalogthatcontainscontrolfileentries,whichcanbeusedwithnormalSQL*LoaderoperationsE、ItappendsdatafromEMP.DATtoEMP.答案:DE2.Whichthreestatementsaretrueabouttimezones,datedatatypes,andtimestampdatatypesinanOracledatabase?(Choosethree.)A、TheCURRENT_TIMESTAMPfunctionreturnsdatawithouttimezoneinformationB、ATIMESTAMPWITHLOCALTIMEZONEdatatypecolumnisstoredinthedatabaseusingthetimezoneofthesessionthatinsertedtherowC、ATIMESTAMPdatatypecolumncontainsinformationaboutyear,month,anddayD、TheDBTIMEZONEfunctioncanreturnanoffsetfromUniversalCoordinatedTime(UTC.E、TheSESSIONTIMEZONEfunctioncanreturnanoffsetfromUniversalCoordinatedTime(UTC.答案:BCE3.Whichtwostatementsaretrueaboutsinglerowfunctions?A、MOD:returnstheremainderofadivisionoperation.B、CONCAT:canbeusedtobineanynumberofvalues.C、TRUNC:canbeusedonlywithNUMBERdatatypes.D、FLOOR:returnsthesmallestintegergreaterthanorequaltoaspecifiednumber.E、CEIL:canbeusedforpositiveandnegativenumbers.答案:AE4.Inoneofyourdatabases,youcreateauser,HR,andthenexecutethismandGRANTCREATESESSIONTOhrWITHADMINOPTION:
WhichthreeactionscanHRperform?A、GranttheCREATESESSIONprivilegewithADMTNOPTIONtootherusersB、Logintothedatabaseinstance.C、RevoketheCREATEsessionprivilegefromotherusersD、ExecuteDDLstatementsintheHRschemaE、ExecuteDMLstatementsintheHRschemaF、RevoketheCREATESESSIONprivilegefromuserHR答案:ACF5.Whichthreeactivitiesarerecordedinthedatabasealertlog?A、blockcorruptionerrorsB、DataDefinitionLanguage(DDL)statementsC、Non-defaultdatabaseparametersD、deadlockerrorsE、sessionloginsandlogouts答案:ACD6.Whichthreestatementsaretrueaboutinnerandouterjoins?A、OuterjoinscanbeusedwhentherearemultiplejoinconditionsontwotablesB、OuterjoinscanonlybeusedbetweentwotablesperqueryC、AleftorrightouterjoinreturnsonlyunmatchedrowsD、AfullouterjoinreturnsmatchedandunmatchedrowsE、AninnerjoinreturnsmatchedrowsF、AfullouterjoinmustuseOraclesyntax答案:ADE7.WhichtwostatementsaretrueabouttheUNLIMITEDTABLESPACEsystemprivilegeandspacequotas?A、ItallowsaroletohaveunlimitedspaceinanytablespaceinthedatabaseB、ItisoverriddenbyaspacequotaspecifiedfortheuserC、Itallowsausertohaveunlimitedspaceonlyintheirdefaultpermanenttablespace.D、Bydefault,usershavenoquotaontheirdefaultpermanenttablespace.E、Itallowsausertohaveunlimitedspaceinanytablespaceinthedatabase答案:AE8.WhichtwostatementsaretrueaboutINTERVALdatatypes?A、INTERVALYEARTOMONTHcolumnssupportyearlyintervalsB、TheYEARfieldinanINTERVALYEARTOMONTHcolumnmustbeapositivevalueC、ThevalueinanINTERVALDAYTOSECONDcolumncanbecopiedintoanINTERVALYEARTOMONTHcolumnD、INTERVALYEARTOMONTHcolumnsonlysupportmonthlyintervalswithinasingleyearE、INTERVALDAYTOSECONDcolumnssupportfractionsofsecondsF、INTERVALYEARTOMONTHcolumnsonlysupportmonthlyintervalswithinarangeofyears答案:AE9.WhichthreestatementsaretrueaboutadvancedconnectionoptionssupportedbyOracleNetforconnectiontoOracleDatabaseinstances?(Choosethree.)A、ConnectTimeFailoverrequirestheuseofTransparentApplicationFailover(TAF.B、SourceRoutingrequirestheuseofanameserverC、SourceRoutingenablestheuseofConnectionManager(CMAN)whichenablesnetworktraffictoberoutedthroughafirewallD、LoadBalancingcanbalancethenumberofconnectionstodispatcherswhenusingaSharedServerconfigurationE、LoadBalancingrequirestheuseofanameserverF、ConnectTimeFailoverrequirestheconnectstringtohavetwoormorelisteneraddressesconfigured答案:CDF10.choosethreeWhichthreestatementsaretrueabouttimezones,datedatatypes,andtimestampdatatypesinanoracledatabase?A、TheDBTIMEZONEfunctioncanreturnanoffsetfromUniversalCoordinatedTime(UTC..B、ATIMESTAMPdatatypecolumncontainsinformationaboutyear,month,andday.C、ATIMESTAMPWITHLOCALTIMEZONEdatatypecolumnisstoredinthedatabaseusingthetimezoneofthesessionthatinsertedtherow.D、TheSESSIONTIMEZONEfunctioncanreturnanoffsetfromUniversalCoordinatedTime(UTC..E、TheCURRENT_TIMESTAMPfunctionreturnsdatawithouttimezoneinformation.答案:BCD11.choosethreewhichthreestatementsaretrueaboutGLOBALTEMPORARYTABLES?A、ADELETEandonGLOBALTEMPORARYTABLEcannotberolledbackB、GLOBALTEMPORARYTABLErowsinsertedbyasessionareavailabletoanyothersessionwhoseuserhasbeengrantedselectedonthetableC、AnyGLOBALTEMPORARYTABLErowsexstingatsessionterminationwillbedeletedD、AGLOBALTEMPORARYTABLE'sdefinitionisavailabletomultiplesessions;E、GLOBALTEMPORARYTABLEspaceallocationoccursatsessionstart.F、ATRUNCATEmandissuesinasessioncausesallrowsinaGLOBALTEMPORARYTABLEfortheissuingsessiontobedeleted.答案:CDF12.WhichthreestatementsaretrueabouttheOraclejoinandANSIjoinsyntax?(Choosethree.)A、TheOraclejoinsyntaxsupportscreationofaCartesianproductoftwotablesB、TheOraclejoinsyntaxperformsbetterthantheSQL:1999pliantANSIjoinsyntaxC、TheSQL:1999pliantANSIjoinsyntaxsupportsnaturaljoinsD、TheSQL:1999pliantANSIjoinsyntaxsupportscreationofaCartesianproductoftwotablesE、TheOraclejoinsyntaxonlysupportsrightouterjoinsF、TheOraclejoinsyntaxsupportsnaturaljoins
G)TheOraclejoinsyntaxperformslesswellthantheSQL:1999pliantANSIjoinsyntax答案:ABF13.TableEMPLOYEEScontainscolumnsincludingEMPLOYEE_ID,JOB_IDandSALARY.OnlytheEMPLOYEE_IDcolumnisindexed.Rowsexistforemployees100and200.Examinethisstatement:Whichtwostatementsaretrue?(Choosetwo.)A、Employee100willhaveSALARYsettothesamevalueastheSALARYofemployee200B、Employee200willhaveJOB_IDsettothesamevalueastheJOB_IDofemployee100C、Employee200willhaveSALARYsettothesamevalueastheSALARYofemployee100D、Employee100willhaveJOB_IDsettothesamevalueastheJOB_IDofemployee200E、Employees100and200willhavethesameJOB_IDasbeforetheupdatemandF、Employees100and200willhavethesameSALARYasbeforetheupdatemand答案:AD14.WhichthreearetypesofsegmentsinanOracleDatabase?(Choosethree.)A、undoB、indexC、storedproceduresD、sequencesE、tablesF、clusters答案:ABE15.TableORDERITEMScontainscolumnsORDERID,UNITPRICEandQUANTITY,ofdatatypeNUMBER.
ExaminetheseSQLstatements
Whichtwostatementsaretrue?
A、Statement1returnsonlyonerowofoutput.B、Statement2mayreturnmultiplerowsofoutput.C、Statement2returnsonlyonerowofoutput.D、Boththestatementsgivethesameoutput.E、BothstatementswillreturnNULLifeitherUNITPRICEorQUANTITYcontainsNULL答案:AB16.WhichthreestatementsaretrueabouttheAutomaticDiagnosticRepository(ADR)?A、Itisafile-basedrepositoryheldoutsideanydatabaseB、TheADRbaseisspecifiedintheDIAGNOSTICDESTdatabaseparameteC、ItisonlyusedforOracleDatabasediagnosticinformationD、ItisheldinsideanOracledatabaseschemaE、Itcanbeusedforproblemdiagnosisofadatabasewhenthatdatabase'sinstanceisdown答案:ABE17.TheSALEStablehascolumnsPROD_IDandQUANTITYSOLDofdatatypeNUMBER.Whichtwoqueriesexecutesuccessfully?A、SELECTprodidFROMsalesWHEREquantitysold>55000ANDCOUNT(*)>10GROUPBYprodidHAVINGCOUNT(*)>10:B、SELECTCOUNT(prodiD.FROMsalesGROUPBYprodidWHEREquantity_sold>55000C、SELECTprodidFROMsalesWHEREquantitysold>55000ANDCOUNT(*)>10GROUPBYCOUNT(*)>10:D、SELECTprodidFROMsalesWHEREquantitysold>55000GROUPBYprodidHAVINGCOUNT(*)>10;E、SELECTCOUNT(prodiD.FROMsalesWHEREquantity_sold>55000GROUPBYprodid;答案:DE18.Whichtwostatementsaretrueaboutdate/timefunctionsinasessionwhereNLS_DATE_FORMATissettoDD-MON-YYYYHH24:MI:SS?(Choosetwo.)A、CURRENT_TIMESTAMPreturnsthesamedateandtimeasSYSDATEwithadditionaldetailsoffractionalsecondsB、SYSDATEcanbequeriedonlyfromtheDUALtableC、CURRENT_DATEreturnsthecurrentdateandtimeasperthesessiontimezoneD、SYSDATEcanbeusedinexpressionsonlyifthedefaultdateformatisDD-MON-RRE、SYSDATEandCURRENT_DATEreturnthecurrentdateandtimesetfortheoperatingsystemofthedatabaseserverF、CURRENT_TIMESTAMPreturnsthesamedateasCURRENT_DATE答案:CE19.WhichtwostatementsaretrueabouttheSETVERIPYONmand?A、Itdisplaysvaluesforvariablesprefixedwith&&B、ItdisplaysvaluesforvariablescreatedbytheDEFINEmandC、ItcanbeusedinSQLDeveloperandSQL*PlusD、ItcanbeusedonlyinSQL*PlusE、ItdisplaysvaluesforvariablesusedonlyintheWHEREclauseofaquery答案:BC20.Examinethismand
Whichtwostatementsaretrue?
A、DML,maybeperformedontableswithoneormoreextentsinthisdatafileduringtheexecutionofthismandB、ItoverwritesanyexistingfilewiththenameSALES02.DBFin/u02bydefault.C、TableswithoneormoreextentsinthisdatafilemaybequeriedduringtheexecutionofthismandD、pressedobjectsinsales01.DBFwillbeunpressedinSALES02.DBFafterthemoveE、The"To"clausecontainingthenewfilenamemustbespecifiedevenifOracleManagedFiles(OMF.isused答案:AC21.Whileoneofyourdatabaseswasinmountstate,thedatafileswererenamedbecausetheyhadbeenmovedtoanewfilesystemThedatabasewasthenopenedWhichtwostatementsaretrue?A、DBADATAFILESdisplaysboththenewnameandtheoldnameforthedatafilesB、DBADATAFILESdisplaystheoriginalnameforthedatafilesC、V$DATAEILEdisplaysthenewnamesforthedatafilesD、DBADATAFILESmustberesynchronizedmanuallywiththecontrolfileinordertohaveitdisplaythenewfilenamesE、DBADATAFILESdisplaysthenewnameforthedatafiles答案:CE22.Inyourdatacenter,OracleManagedFiles(OMF.isusedforalldatabasesAlltablespacesaresmallfiletablespaces
SALE_Q1isapermanentuser-definedtablespaceinthesalesdatabase
ExaminethismandwhichisabouttobeissuedbyaDBAloggedintothesalesdatabaseALTERTABLESPACEsales_q1ADDDATAFILE;
Whicharetwoactions,eitheroneofwhichyoucouldtaketoensurethatthemandexecutessuccessfully?A、EnsurethatDB_RECOVERY_FILE_DESTandDBCREATE_FILE_DESTeachspecifylocationswithatleast50MbofavailablespaceB、AddtheAUROEXRENDowclausewithNEXTsetto100M.C、SpecifyapathintheDAMAPILEclauseofthemandspecifyingalocationwithatleast100MofavailablespaceD、EnsurethatDB_RECOVERY_FILE_DESTspecifiesalocationwithatleast100MbofavailablespaceE、EnsurethatDB_RECOVERY_FILE_DESTandDB_CREATE_FILE_DESTeachspecifylocationswithatleast50Mbofavailablespace答案:BD23.Whichthreefunctionsareperformedbydispatchersinasharedserverconfiguration?(Choosethree.)A、writinginboundrequesttothemonrequestqueuefromallsharedserverconnectionsB、checkingforoutboundsharedserverresponsesonthemonoutboundresponsequeueC、receivinginboundrequestsfromprocessesusingsharedserverconnectionsD、sendingeachconnectioninputrequesttotheappropriatesharedserverinputqueueE、broadcastingsharedserversessionresponsesbacktorequestersonallconnectionsF、sendingsharedserversessionresponsesbacktorequestersontheappropriateconnection答案:ADF24.ExaminethedescriptionoftheBOOKStable:Thetablehas100rows.Examinethissequenceofstatementsissuedinanewsession:
INSERTINTObooksVALUES(‘ADV112’,‘AdventuresofTomSawyer’,NULL,NULL);
SAVEPOINTa;
DELETEFROMbooks;
ROLLBACKTOS
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 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ì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025版信托資金借貸合同合規(guī)性審查條款3篇
- 二零二五年度古董家具修復(fù)木工合同范本4篇
- 二零二五年度智能鎖定制加工合同范本4篇
- 2025版環(huán)保木工材料供應(yīng)與分包工程合同4篇
- 2025版事業(yè)單位聘用合同續(xù)簽與績(jī)效考核及晉升標(biāo)準(zhǔn)協(xié)議3篇
- 2025版外教中介聘請(qǐng)合同標(biāo)準(zhǔn)范本3篇
- 農(nóng)產(chǎn)品倉(cāng)儲(chǔ)庫(kù)存管理與優(yōu)化考核試卷
- 2025版信托投資公司外匯存款賬戶(hù)管理合同3篇
- 2025年加盟冰淇淋店合同模板
- 2025年加盟加盟推廣合同
- 道路瀝青工程施工方案
- 《田口方法的導(dǎo)入》課件
- 內(nèi)陸?zhàn)B殖與水產(chǎn)品市場(chǎng)營(yíng)銷(xiāo)策略考核試卷
- 票據(jù)業(yè)務(wù)居間合同模板
- 承包鋼板水泥庫(kù)合同范本(2篇)
- DLT 572-2021 電力變壓器運(yùn)行規(guī)程
- 公司沒(méi)繳社保勞動(dòng)仲裁申請(qǐng)書(shū)
- 損傷力學(xué)與斷裂分析
- 2024年縣鄉(xiāng)教師選調(diào)進(jìn)城考試《教育學(xué)》題庫(kù)及完整答案(考點(diǎn)梳理)
- 車(chē)借給別人免責(zé)協(xié)議書(shū)
- 應(yīng)急預(yù)案評(píng)分標(biāo)準(zhǔn)表
評(píng)論
0/150
提交評(píng)論