




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領
文檔簡介
PAGEPAGE1OracleOCP1Z0-082-CHN認證考試題庫(附答案)一、單選題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表(而不是其依賴對象)減少碎片并回收未使用的空間。在此操作過程中,您要確保:
我長時間運行的查詢不受影響。
二、沒有額外的空間被使用。
Iii.在整個過程中,表上的數(shù)據(jù)操作語言(DML)操作始終成功iv.在高水位線上方和下方回收未使用的空間。
您會推薦哪種alterTABLE選項?
A)取消分配未使用的
B)收縮空間級聯(lián)
C)壓縮空間
D)行存儲壓縮基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條件總是比使用>=和<=條件時表現(xiàn)更好。--這個說法上有歧義always往往代表一直總是但是不可能一成不變會隨著表或者連接條件包括函數(shù)的使用產(chǎn)生不同的性能影響C、TheBETWEENconditionusedwithannon-equijoinsometimesperformsbetterthanusingthe>=and<=conditions.
與非等連接一起使用的BETWEEN條件有時比使用>=和<=條件表現(xiàn)更好。--這個是對的要看語句具體狀況D、Thejoinsyntaxusedmakesnodifferencetoperformance.
使用的連接語法對性能沒有影響。連接語法對性能一定有影響E、TheOraclejoinsyntaxperformsbetterthantheSQL:1999pliantANSIjoinsyntax.
Oraclejoin語法的性能優(yōu)于符合SQL:1999的ANSI連接語法。不是最優(yōu)解因為JOIN往往是等值連接答案: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開頭排除掉C、T1onlyD、T1andanindexsegmentcreatedfortheprimarykeyonlyE、T1,anindexsegmentfortheprimarykey,andaLOBsegmentonly答案:B16.Choosethebestanswer.WhywouldyouusetheTNSPINGhrmand[W1]?A、toverify(驗證)ifarequestedserviceisavailableB、todetermine(保證確定)ifthelistenerfortheHRnetservicenamecanbereachedC、toverifyiftheHRdatabaseinstanceisupD、tocheckandlistmultipleORACLE_HOMElocationsontheserverE、tovalidate(驗證證實)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ù)庫實例是使用服務器參數(shù)文件(SPFILE)啟動的。
您可以執(zhí)行以下命令來更改LOG_BUFFER初始化參數(shù)的值:ALTERSYSTEMSETLOG_BUFFER=32M;
這個命令的結(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?
關于INTERSECT運算符,哪個語句是正確的?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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025三月份辦公樓地下室側(cè)墻防水基面處理勞務協(xié)議
- 灌溉自動化控制系統(tǒng)考核試卷
- 環(huán)保編織品在綠色建筑內(nèi)外裝飾考核試卷
- 工業(yè)機器人焊接工藝與控制考核試卷
- 電子專用材料生命周期評價考核試卷
- 體育賽事服務與觀眾滿意度考核試卷
- 涂料店鋪布局優(yōu)化考核試卷
- 《萬里長征》新民主主義革命的興起課件
- 文案-北京明天第一城商業(yè)策劃案
- 2025第二季度離婚后量子密鑰分發(fā)設備處置協(xié)議
- 大學語文課程建設與改革實施方案
- 【上海市靜安區(qū)寶山路街道社區(qū)養(yǎng)老問題調(diào)查報告】
- 公文筐測驗(案例題解示范)
- 大學森林生態(tài)教案
- 蛙泳教學教案
- 醫(yī)學英語詞匯學(山東聯(lián)盟)智慧樹知到答案章節(jié)測試2023年山東第一醫(yī)科大學
- 口腔一般檢查方法口腔一般檢查方法
- 冠狀動脈粥樣硬化性心臟病 (心內(nèi)科)
- JJF(紡織)071-2016織物摩擦帶電荷密度測試儀(法拉第筒法)校準規(guī)范
- GB/T 4857.10-2005包裝運輸包裝件基本試驗第10部分:正弦變頻振動試驗方法
- FZ/T 07004-2019紡織行業(yè)綠色工廠評價導則
評論
0/150
提交評論