为了正常的体验网站,请在浏览器设置里面开启Javascript功能!

oracle-10g-数据库基础教程课后习题答案择题(中文)

2021-11-02 3页 doc 375KB 17阅读

用户头像 个人认证

亿彩书院

暂无简介

举报
oracle-10g-数据库基础教程课后习题答案择题(中文)oracle-10g-数据库基础教程课后习题答案择题(中文)oracle-10g-数据库基础教程课后习题答案择题(中文)PAGEPAGE\*MERGEFORMAT25oracle-10g-数据库基础教程课后习题答案择题(中文)第3章创建数据库后台进程跟踪文件的位置是(C)A.LOGFILE_DESTB.ORACLE_HOME C.BACKGROUND_DUMP_DESTD.CORE_DUMP_DEST  手动创建数据库的第一步是(C)A.启动实例 B.启动SQL*Plus 以SYSDBA身份连接OracleC.查看...
oracle-10g-数据库基础教程课后习题答案择题(中文)
oracle-10g-数据库基础教程课后习题答案择题(中文)oracle-10g-数据库基础教程课后习题答案择题(中文)PAGEPAGE\*MERGEFORMAT25oracle-10g-数据库基础教程课后习题答案择题(中文)第3章创建数据库后台进程跟踪文件的位置是(C)A.LOGFILE_DESTB.ORACLE_HOME C.BACKGROUND_DUMP_DESTD.CORE_DUMP_DEST  手动创建数据库的第一步是(C)A.启动实例 B.启动SQL*Plus 以SYSDBA身份连接OracleC.查看系统的实例名D.创建参数文件关于控制文件以下正确的是(A)A.Oracle建议至少二个控制文件存放在二个磁盘分区B.Oracle建议至少二个控制文件存放在一个磁盘分区C.Oracle建议存放一个控制文件D.一个控制文件不足以运行数据库执行CREATEDATABASE命令之前,应该发出的命令是(B)A.STARTUPINSTANCE B.STARTUPNOMOUNTC.STARTUPMOUNTD.以上都不是创建数据库时,Oracle如何得知需要创建的控制文件信息?(A)A.从初始化参数文件B.从CREATEDATABASE命令C.从环境变量D.从$ORACLE_HOME目录名为.ctl的文件哪个脚本文件创建数据字典视图?(A)A.B.C.D.创建数据库时,DATAFILE子句能定义几个数据文件?(C)A.一个B.二个C.多个;仅一个属于系统表空间D.多个;都属于系统表空间谁拥有数据字典?(A)A.SYSB.SYSTEMC.DBAD.ORACLE在CREATEDATABASE命令中,非法子句是(B) A.MAXLOGMEMBERSB.MAXLOGGROUPS C.MAXDATAFILES D.MAXLOGHISTORY创建一个数据库至少需要几个控制文件?(A) A.一个B.二个C.三个D.无第5章物理存储结构关于联机重做日志,以下哪两个说法是正确的?(BC)A.所有日志组的所有文件都是同样大小B.一组中的所有成员文件都是同样大小C.成员文件应置于不同的磁盘D.回滚段大小决定成员文件大小DBA使用哪个命令显示当前归档状态?(A)A.ARCHIVELOGLIST B.FROMARCHIVELOGSC.SELECT*FROMV$THREADD.SELECT*FROMARCHIVE_LOG_LIST创建一个数据库需要多少个控制文件?(A)A.1B.2C.3D.0将下句补充完整:控制文件的建议配置是(C)A.每数据库一个控制文件B.每磁盘一个控制文件C.二个控制文件置于二个磁盘D.二个控制文件置于一个磁盘当创建控制文件时,数据库必须处于什么状态?(B)A.加载B.未加载C.打开D.受限哪个数据字典视图显示数据库处于归档状态?(C)A.V$INSTANCEB.V$LOGC.V$DATABASED.V$THREAD把多路镜像控制文件存于不同磁盘最大的好处是(B)A.数据库性能提高B.防止失败C.提高归档速度D.能并发访问提高控制文件的写入速度哪个文件用于记录数据库的改变,并且用于实例的恢复?(B)A.ArchivelogfileB.RedologfileC.ControlfileD.Alertlogfile一个实例可以建立几个归档进程?(C)A.5B.4C.10D.取决于操作系统定义归档目标地址时,哪两个参数不能一起使用?(BC)A.LOG_ARCHIVE_DESTandLOG_ARCHIVE_DUPLEX_DESTB.LOG_ARCHIVE_DESTandLOG_ARCHIVE_DEST_1C.LOG_ARCHIVE_DESTandLOG_ARCHIVE_DEST_2D.以上都不是;可以指定所有的归档参数第6章逻辑存储结构段的集合称为(C)A.区B.段C.表空间D.数据库当数据库崩溃,何时使用回滚信息?(C)A.在崩溃之前B.恢复完成之后C.数据库重新打开之后、恢复之前D.数据库崩溃后回滚信息不被使用数据字典表和视图存储在(B)A.USERS表空间B.SYSTEM表空间C.TEMPORARY表空间D.以上三个中任意PCTFREE与PCTUSED之和不应超过(A)A.100B.50C.25D.10数据块的哪三个部分合称为块头部?(C)A.表目录、行目录和行数据B.标题、表目录、空闲区C.表目录、行目录、标题D.块头部、行数据、行头部数据库打开时,以下哪个表空间必须联机?(A)A.SYSTEM B.TEMPORARY C.ROLLBACK D.USERS指定哪个表空间参与排序操作,可以提高排序效率?BA.SYSEM B.TEMPORARY C.ROLLBACK D.USERS 临时表空间中用于排序的段是何时创建的(A)A.排序操作开始的时候 B.临时表空间创建的时候 C.当排序操作需要内存操过1KB的时候。 D.上述所有选项。以下哪个段是自管理的?(C)A.TEMPORARY B.ROLLBACK C.CACHE D.INDEX如果未定义临时表空间,哪一个会作为默认的临时表空间?(D)A.ROLLBACK B.USERS C.INDEX D.SYSTEM 回滚段的作用是(D)A.数据的读一致性B.事务回滚 C.数据库恢复D.以上都是回滚段存储(A)A.事务修改的数据原值B.事务修改的数据新值C.事务修改的数据原值和新值D.以上都不是第7章数据库实例Oracle实例是(D)A.Oracle内存结构B.OracleI/O结构C.Oracle后台进程D.以上都是SGA区包括(D)A.数据高速缓冲区B.共享池C.重做日志缓冲区D.以上都是最近使用过的SQL语句存储在(B)A.共享池B.数据高速缓冲区C.私有全局区D.用户全局区以下哪个不是Oracle后台服务进程?(B)A.DBWRB.DBCMC.LGWRD.SMON以下哪个是合法的Oracle后台服务进程?(D)A.ARCHB.LGWRC.DBWRD.以上都是将修改过的数据块写入数据文件的进程是(A) A.DBWRB.LGWRC.PMOND.SMON已提交的事务所做的改变由哪个进程记录?(D)A.DBWRB.SMONC.CKPTD.以上都不是Oracle事务提交即(B)A.数据由DBWR进程写入磁盘文件B.LGWR进程成功写入日志C.PMON进程提交D.SMON进程写数据回收表空间碎片的进程是___________(B)A.PMONB.SMON C.DBWR D.ARCH管理用户会话连接的进程是______________(A)PMONB.SMONC.SERVD.NET8第8章数据库启动与关闭实例启动时数据库所处的状态是(C)A.MOUNT B.OPEN C.NOMOUNTD.None数据库启动时,如果一个数据文件或日志文件不可用,会出现什么结果?(B)A.Oracle返回警告信息并打开数据库。B.Oracle 返回警告信息,不打开数据库。C.Oracle 返回警告信息,并进行数据库恢复。D.Oracle忽略不可用的文件。受限会话的系统权限应授予哪些用户?(B)A.在客户端与服务器之间通过SQL*NET 或NET8传输数据,需要特别安全保护的用户。B.执行数据导入、导出的DBA用户。C.上面两类用户都包括。D.上面几项都不正确。启动数据库时,如果一个或多个CONTROL_FILES参数指定的文件不存在或不可用,会出现什么样的结果?(A)A.Oracle返回警告信息,但不加载数据库。B.Oracle返回警告信息,并加载数据库。C.Oracle忽略不可用的控制文件。D.Oracle 返回警告信息,并进行数据库恢复。Bob试图正常关闭数据库,Oracle说实例处于空闲状态,他试图启动数据库,Oracle说数据库已启动,Bob最好使用什么命令强制关闭数据库?(B)A.NORMAL B.ABORT C.IMMEDIATE D.NONE Tom发出启动数据库的命令,实例和数据库经过怎样的过程最终打开?(B)A.OPEN, NOMOUNT, MOUNTB.NOMOUNT, MOUNT, OPEN C.NOMOUNT, OPEN, MOUNT D.MOUNT, OPEN, NOMOUNT Diane是一个新DBA,当数据库服务器正在运行时她发出了关闭数据库的命令,等一会儿,她发现Oracle正在等待所有用户主动断开,她使用的是哪一个关闭命令?(A)NORMAL B.ABORT C.IMMEDIATE D.NONE 下面哪个脚本文件用于创建数据字典视图?BA.A. B.  C. D. 为了执行一次完整的数据库介质恢复操作,数据库必须处于那种状态?(B)A.处于Mount状态,并且使用RESETLOG方式打开数据库。B.处于Mount状态,但不打开数据库。C.处于Mount状态,并且使用 ARCHIVELOG方式打开数据库。D. 不能执行完整的数据库介质恢复操作。数据库启动过程中哪一步读取初始化参数文件?(C)数据库打开数据库加载实例启动每个阶段第9章模式对象(1)用于删除约束的命令是哪一个?(C)A.ALTERTABLEMODIFYCONSTRAINTB.DROPCONSTRAINTC.ALTERTABLEDROPCONSTRAINTD.ALTERCONSTRAINTDROP(2)哪个不是ROWID的组成部分?(A)A.表空间B.文件编号C.对象编号D.块内行号(3)唯一值约束和主键约束的区别是什么?(D) A.唯一值约束建立唯一索引、主码约束建立非唯一索引 B.主码列可以为空、唯一值约束的列不可以为空 C.主码约束可以使用已有的索引、唯一值约束总是创建索引 D.唯一值约束的列可以为空、主码列不可以为空(4)什么是模式?(B)A.数据库对象的物理组织结构B.数据库对象的逻辑组织结构C.索引模式D.以上都不是(5)选择两个正确的答案,当创建一个表时:(AB)A.直接路径加载使用SQL*Loader实用程序不会记录在重做日志文件。B.直接加载不记录在重做日志文件。C.表的插入和更新操作不记录在重做日志文件。D.常规路径加载使用SQL*Loader实用程序不会记录在重做日志文件。(6)位图索引适合建于怎样的列?(A)A.索引基数高B.索引基数低C.插入率高D.修改率高(7)选择2个可以被PUBLIC用户组拥有的模式对象。(AC)A.数据库链接B.回滚段 C.同义词D.表(8)ALTERTABLE命令不能用于(D)A.将一个表移动到其他的表空间中B.修改表的初始分区大小C.修改表名D.禁用触发器(9)哪个约束不会自动建立索引?(B)A.主码B.外码C.唯一(10)哪个不是建立分区表的方法?(C) A.范围B.列表C.函数D.散列第10章安全管理创建用户命令中DEFAULTTABLESPACE子句指定_______的位置。(A)用户创建的数据库对象用户创建的临时对象用户创建的系统对象以上都不是资源文件中SESSIONS_PER_USER限制了什么?(B)数据库的并发会话数量每用户会话数量每用户进程数量以上都不是哪个参数限制用户在断开前的最大空闲时间?(A)A.IDLE_TIME   B.DISCONNECT_TIME C.CONNECT_TIME D.以上都不是使用ALTERUSER命令时,以下哪个子句有错误?(A)A.ADD QUOTA 5MB.IDENTIFIEDBYuseraC.DEFAULTTABLESPACESYSTEM  D.以上都不是哪个视图包含所有概要文件的资源使用参数?(B)A.DBA_PROFILE B.DBA_PROFILES C.DBA_USERS D.DBA_RESOURCES 以下哪个不是系统权限?(A)A.SELECTB.UPDATEANYC.CREATEVIEWD.CREATESESSION创建用户的命令中哪个子句限制用户对象在数据库占用的空间?(D)A.Size  B.NEXT_EXTENT C.MAX_EXTENTS D.QUOTA对表空间配额的分配限制了哪个操作?(C)A.UPDATE  B.DELETE    C.CREATE D.以上都是概要文件不能限制________。(D)A.CPU占用时间B.最大数据库连接时间C.最大会话空闲时间D.读取数据块时间以下哪个不是角色?(D)A.CONNECTB.DBAC.RESOURCED.CREATESESSION第13章SQL语言基础(1)哪个单行函数能够得到字符串的一部分?(B)A.INSERT B.SUBSTRC.LPADD.LEAST(2)哪个函数接受任何类型的参数,可以多选。(BD)A.SUBSTRB.NVLC.ROUNDD.DECODEE.SIGN(3)SIGN(ABS(NVL(-23,0)))的返回值是(A)A.1B.32C.-1D.0E.NULL(4)哪个函数能返回字符串的首字符,选择2个。(AB)A.LTRIMB.SUBSTRC.RTRIMD.INSERTE.MOD(5)哪行代码有错误?(C)A.SELECTdname,ename B.FROMempe,deptdC.WHERE= D.ORDERBY1,2(6)哪个语句不会建立隐式事务?(E)A.INSERTB.UPDATEC.DELETED.SELECTFORUPDATEE.以上语句都会建立隐式事务(7)以下查询语句是哪种连接?(D)SELECTdname,enameFROMdeptd,empeWHERE=ORDERBYdname,ename;自连接B.等值连接C.外连接D.不等值连接(8)使用多表查询时,在哪个子句指定多个表的名字?(D)A.HAVINGB.GROUPBYC.WHERED.FROM(9)这两个操作不允许使用外部联接两个表之间(AC)A.ORB。ANDC。ANDD。=(10)如果查询表A(有3行数据)和表B(有4行数据),使用select*froma,b,返回的查询结果有多少行?(D)A.7B.1C.0D.12(11)你需要把NEW_CUST表中的新客户信息导入CUST和CUST_SPECIAL表,如果客户信誉度大于10000,需要导入CUST_SPECIAL表,所有新客户信息都要导入CUST表,使用哪种技术可以尽快完成导入?(D)A.外部表B.MERGE命令C.INSERT多表插入命令D.带有WITHCHECKOPTION子句的INSERT命令(12)关于以下SQL语句的作用正确的说法是(B)ALTERTABLESETUNUSED(mgr_id);A.EMP表上的同义词需要被重建B.MGR_ID列上的约束都被取消C.任何包含MGR_ID列的视图都必须删除和重建D.MGR_ID列的索引仍然有效直到执行DROPUNUSEDCOLUMNS命令(13)什么情况下在GROUPBY子句中使用ROLLUP?(C)A.对每组进行横向统计和不分组统计B.对GROUPBY指定的列进行分组智能统计C.对GROUPBY指定的列从右到左分组统计D.对GROUPBY指定的列进行横向和纵向分组统计(14)关于子查询以下哪两种说法是正确的?(AD)外层查询返回结果之后,执行内层查询先执行子查询,再执行外层查询对于子查询返回的结果,外层查询只执行一次外层查询返回的每行结果都与内层查询结果进行比较(15)OE和SCOTT是数据库用户,ORDERS表被OE所拥有。DBA执行以下操作会导致:(B)CREATEROLEr1;GRANTSELECT,INSERTONTOr1;GRANTr1TOscott;GRANTSELECTONTOscott;REVOKESELECTONFROMscott;SCOTT能查询;SCOTT不能查询;REVOKE命令回收了SCOTT和R1的SELECT权限;REVOKE命令会发生错误,因为SELECT权限已被授予R1。(16)empdet包含外部表empno和ename列。该命令将关系到empdet表工作(C)外部数据表都是只读的,因此在外部表不能够执行DML操作,也不能创建索引A.UPDATEempdetSETename='Amit'WHEREempno=1234;B.DELETEFROMempdetWHEREenameLIKE'J%';C.CREATEVIEWempvuASSELECT*FROMempdept;D.CREATEINDEXempdet_idxONempdet(empno);ViewtheExhibitandexaminethedatainthePROMOTIONStablePROMOBEGINDATEisstoredinthedefaultdateformat,dd-mon-rrYouneedtoproduceareportthatprovidesthename,cost,andstartdateofallpromosinthePOSTcategorythatwerelaunchedbeforeJanuary1,2000WhichSQLstatementwouldyouuse?A.SELECTpromo_name,promo_cost,promo_begin_dateFROMpromotionsWHEREpromo_category='post'ANDpromo_begin_date<'01-01-00';B.SELECTpromo_name,promo_cost,promo_begin_dateFROMpromotionsWHEREpromo_costLIKE'post%'ANDpromo_begin_date<'01-01-2000';C.SELECTpromo_name,promo_cost,promo_begin_dateFROMpromotionsWHEREpromo_categoryLIKE'P%'ANDpromo_begin_date<'l-JANUARY-00';D.SELECTpromo_name,promo_cost,promo_begin_dateFROMpromotionsWHEREpromo_categoryLIKE'%post%'ANDpromo_begin_date<'l-JAN-00';Answer:DWhichstatements/commandswouldnotcauseatransactiontoend?BA.COMMITB.SELECTC.CREATED.ROLLBACKWhichtwostatementsarenottrueregardingconstraintsDA.AforeignkeycancontainNULLvaluesB.AcolumnwiththeUNIQUEconstraintcancontainNULLvaluesC.AconstraintcanbedisabledeveniftheconstraintcolumncontainsdataconstraintscanbedefinedatthecolumnlevelaswellasthetablelevelWhichstatementarenottrueregardingtheORDERBYclauseBA.ItmustbethelastclauseintheSELECTstatementB.ItcannotbeusedinaSELECTstatementcontainingaHAVINGclauseC.YoucanspecifyacolumnnamefollowedbyanexpressioninthisclauseD.YoucanspecifyacombinationofnumericpositionsandcolumnnamesinthisclauseWhichstatementistrueregardingthedefaultbehavioroftheORDERBYclause?AA.Inacharactersort,thevaluesarecase-sensitiveB.NULLvaluesarenotconsideredatallbythesortoperationC.OnlythosecolumnsthatarespecifiedintheSELECTlistcanbeusedintheORDERBYclauseD.NumericvaluesaredisplayedfromthemaximumtotheminimumvalueiftheyhavedecimalpositionsWhichthreestatementsarenottrueregardingsubqueries?CA.SubqueriescancontainGROUPBYandORDERBYclausesB.MainqueryandsubquerycangetdatafromdifferenttablesC.MainqueryandsubquerymustgetdatafromthesametablesD.MultiplecolumnsorexpressionscanbecomparedbetweenthemainqueryandsubqueryWhichstatementistrueregardingsynonyms?CA.SynonymscanbecreatedonlyforatableB.SynonymsareusedtoreferenceonlythosetablesthatareownedbyanotheruserC.ApublicsynonymandaprivatesynonymcanexistwiththesamenameforthesametableD.TheDROPSYNONYMstatementremovesthesynonym,andthetableonwhichthesynonymhasbeencreatedbecomesinvalidViewtheExhibitandexaminethestructureofthePROMOTIONStableYouneedtogenerateareportofallpromosfromthePROMOTIONStablebasedonthefollowingconditions:1.Thepromonameshouldnotbeginwith'T'or'N'2.Thepromoshouldcostmorethan$200003.Thepromoshouldhaveendedafter1stJanuary2001WhichWHEREclausewouldgivetherequiredresult?(C)A.WHEREpromo_nameNOTLIKE'T%'ORpromo_nameNOTLIKE'N%'ANDpromo_cost>20000ANDpromo_end_date>'l-JAN-0l'B.WHERE(promo_nameNOTLIKE'T%'ANDpromo_nameNOTLIKE'N%')ORpromo_cost>20000ORpromo_end_date>'l-JAN-0l'C.WHEREpromo_nameNOTLIKE'T%'ANDpromo_nameNOTLIKE'N%'ANDpromo_cost>20000ANDpromo_end_date>'l-JAN-0l'D.WHERE(promo_nameNOTLIKE'%T%'ORpromo_nameNOTLIKE'%N%')AND(promo_cost>20000ANDpromo_end_date>'l-JAN-0l')Youneedtocreateatablewiththefollowingcolumnspecifications:1.EmployeeID(numericdatatype)foreachemployee2.EmployeeName(characterdatatype)thatstorestheemployeename3.Hiredate,whichstoresthedateofjoiningtheorganizationforeachemployee4.Status(characterdatatype),thatcontainsthevalue'ACTIVE'ifnodataisentered5.Resume(characterlargeobject[CLOB]datatype),whichcontainstheresumesubmittedbytheemployeeWhichisthecorrectsyntaxtocreatethistable?(D)A.CREATETABLEEMP_1(emp_idNUMBER(4),emp_nameVARCHAR2(25),start_dateDATE,e_statusVARCHAR2(l0)DEFAULT'ACTIVE',resumeCLOB(200));B.CREATETABLE1_EMP(emp_idNUMBER(4),emp_nameVARCHAR2(25),start_dateDATE,emp_statusVARCHAR2(l0)DEFAULT'ACTIVE',resumeCLOB);C.CREATETABLEEMP_1(emp_idNUMBER(4),emp_nameVARCHAR2(25),start_dateDATE,emp_statusVARCHAR2(l0)DEFAULT"ACTIVE",resumeCLOB);D.CREATETABLEEMP_1(emp_idNUMBER,emp_nameVARCHAR2(25),start_dateDATE,emp_statusVARCHAR2(l0)DEFAULT'ACTIVE',resumeCLOB);Evaluatethefollowingquery:Whatwouldbetheoutcomeoftheabovequery?(C)A.ItproducesanerrorbecauseflowerbraceshavebeenusedB.ItproducesanerrorbecausethedatatypesarenotmatchingC.Itexecutessuccessfullyandintroducesan'sattheendofeachpromo_nameintheoutputD.Itexecutessuccessfullyanddisplaystheliteral"{'sstartdatewas}"foreachrowintheoutputWhichstatementsarenottrueregardingindexes?(B)A.Whenatableisdropped,thecorrespondingindexesareautomaticallydroppedB.AFOREIGNKEYconstraintonacolumninatableautomaticallycreatesanonuniqueindexC.AnondeferrablePRIMARYKEYorUNIQUEKEYconstraintinatableautomaticallycreatesauniqueindexD.Foreachdatamanipulationlanguage(DML)operationperformed,thecorrespondingindexesareautomaticallyupdatedWhichstatementaretrueaboutsequencescreatedinasingleinstancedatabase(D)A.ThenumbersgeneratedbyasequencecanbeusedonlyforonetableB.DELETEwouldremoveasequencefromthedatabaseC.NEXTVALisusedtorefertothelastsequencenumberthathasbeengeneratedD.WhentheMAXVALUElimitforasequenceisreached,youcanincreasetheMAXVALUElimitbyusingtheALTERSEQUENCEstatementYouissuedthefollowingcommandtodropthePRODUCTStable:(C)SQL>DROPTABLEproducts;Whatisnottheimplicationofthiscommand?A.AlldataalongwiththetablestructureisdeletedB.ThependingtransactioninthesessioniscommittedC.AllindexesonthetablewillremainbuttheyareinvalidatedD.AllviewsandsynonymswillremainbuttheyareinvalidatedWhichstatementaretrueregardingviews(C)A.AsimpleviewinwhichcolumnaliaseshavebeenusedcannotbeupdatedB.RowsaddedthroughaviewaredeletedfromthetableautomaticallywhentheviewisdroppedC.TheORREPLACEoptionisusedtochangethedefinitionofanexistingviewwithoutdroppingandre-creatingitD.TheWITHCHECKOPTIONconstraintcanbeusedinaviewdefinitiontorestrictthecolumnsdisplayedthroughtheviewViewtheExhibitandexaminethestructureoftheORDtableEvaluatethefollowingSQLstatementsthatareexecutedinausersessioninthespecifiedorder.Whatwouldbetheoutcomeoftheabovestatements?(A)A.AllthestatementswouldexecutesuccessfullyandtheORD_NOcolumnwouldcontainthevalue2fortheCUSTID101B.TheCREATESEQUENCEcommandwouldnotexecutebecausetheminimumvalueandmaximumvalueforthesequencehavenotbeenspecifiedC.TheCREATESEQUENCEcommandwouldnotexecutebecausethestartingvalueofthesequenceandtheincrementvaluehavenotbeenspecifiedD.AllthestatementswouldexecutesuccessfullyandtheORD_NOcolumnwouldhavethevalue20fortheCUST_ID101becausethedefaultCACHEvalueis20Evaluatethefollowingquery:(C)SQL>SELECTTRUNC(ROUND,-1),-1)FROMDUAL;Whatwouldbetheoutcome?A.16B.100C.160D.200Whichstatementistrueregardingsubqueries?(D)A.TheLIKEoperatorcannotbeusedwithsingle-rowsubqueriesB.TheNOTINoperatorisequivalenttoISNULLwithsingle-rowsubqueriesC.=ANYand=ALLoperatorshavethesamefunctionalityinmultiple-rowsubqueriesD.TheNOToperatorcanbeusedwithIN,ANY,andALLoperatorsinmultiple-rowsubqueriesWhichstatementarenottrueregardingthedatatypesinOracleDatabase10g(B)A.OnlyoneLONGcolumncanbeusedpertableB.ATIMESTAMPdatatypecolumnstoresonlytimevalueswithfractionalsecondsC.TheminimumcolumnwidththatcanbespecifiedforaVARCHAR2datatypecolumnisoneD.ThevalueforaCHARdatatypecolumnisblank-paddedtothemaximumdefinedcolumnwidthWhichisthevalidCREATETABLEstatement?(A)A.CREATETABLEemp9$#(emp_noNUMBER(4));B.CREATETABLE9emp$#(emp_noNUMBER(4));C.CREATETABLEemp*123(emp_noNUMBER(4));D.CREATETABLEemp9$#(emp_noNUMBER(4),dateDATE);WhichtwostatementsarenottrueregardingtheCOUNTfunction(A)A.TheCOUNTfunctioncanbeusedonlyforCHAR,VARCHAR2,andNUMBERdatatypesB.COUNT(*)returnsthenumberofrowsincludingduplicaterowsandrowscontainingNULLvalueinanyofthecolumnsC.COUNT(cust_id)returnsthenumberofrowsincludingrowswithduplicatecustomerIDsvalueintheCUST_IDcolumnD.COUNT(DISTINCTinv_amt)returnsthenumberofrowsexcludingrowscontainingduplicatesandNULLvaluesintheINV_AMTcolumnWhichstatementistrueregardingtheINTERSECToperator?(D)A.ItignoresNULLvaluesB.ReversingtheorderoftheintersectedtablesalterstheresultC.ThenamesofcolumnsinallSELECTstatementsmustbeidenticalD.ThenumberofcolumnsanddatatypesmustbeidenticalforallSELECTstatementsinthequeryTheORDERStablebelongstotheuserOE.OEhasgrantedtheSELECTprivilegeontheORDERStabletotheuserHR.WhichstatementwouldcreateasynonymORDsothatHRcanexecutethefollowingquerysuccessfully?(D)SELECT*FROMord;A.CREATESYNONYMordFORorders;ThiscommandisissuedbyOEB.CREATEPUBLICSYNONYMordFORorders;ThiscommandisissuedbyOEC.CREATESYNONYMordFOR;ThiscommandisissuedbythedatabaseadministratorD.CREATEPUBLICSYNONYMordFOR;ThiscommandisissuedbythedatabaseadministratorWhendoesnotatransactioncomplete?(A)A.whenaDELETEstatementisexecutedB.whenaROLLBACKcommandisexecutedC.whenadatadefinitionlanguage(DDL)statementisexecutedD.whenaTRUNCATEstatementisexecutedafterthependingtransactionYouexecutedtheSTARTUPMOUNTcommandtostartyourdatabase.ForwhichdatabaseoperationdoyouneedtostartthedatabaseintheMOUNTstate(C)A.renamingthecontrolfilesB.droppingauserinyourdatabaseC.enablingordisablingredologarchivingatablespaceinyourdatabaseWhichstatementaretruenotaboutthestagesofdatabasestartup(B)A.DatafilesandredologfilescanberenamedattheMOUNTstage.B.ControlfilesarerequiredtobringthedatabasetotheNOMOUNTstage.C.DatafilesandredologfilesaremadeavailabletousersattheOPENstage.D.Datafilesandonlineredologfilesarecheckedforconsistencywhileopeningthedatabase(一致性检查)Which statement regarding the contents of the V$PARAMETER view is true? (C)A. displays only the list of default values B. displays only the list of all basic parameters C. displays the currently in effect parameter values  the list of all the parameter files of a database Because of a power outage, instance failure has occurred. From what point in the redo log does recovery begin and where does it end? (B)A. current redo log and inactive redo log B. checkpoint position to end of redo log C. beginning of redo log to end of redo log D. all redo logs before the point of last commit Whichoperationdoesrequireundodata(B)A.committingatransactionB.rollingbackatransactionC.recordingatransactiontoredologfilesD.rollingforwardduringinstancerecoveryYourdatabaseisconfiguredinNOARCHIVELOGmode.Allthecontrolfileshavebeenlostduetoaharddiskfailurebutthedatafilesarenotlost.Youhavetheclosedwholedatabasebackupavailabletoyou.Whichstatementaretrueinthisscenario(D)databasecannotberecovered.B.Thedatabasecanberecoveredbyrestoringthecontrolfilesfromthebackup.C.ThedatabaseremainsopenedandyouhavetoshutitdownwiththeABORToption.D.Thedatabasecanberestoredtillthepointofthelastclosedwholedatabasebackup.AusercomplainsthathegetsthefollowingerrormessagerepeatedlyafterexecutingsomeSQLstatements.Theerrormessageforcestheusertologofffromandlogontothedatabasetocontinuehiswork.ORA-02392:exceededsessionlimitonCPUusage,youarebeingloggedoff.WhichactionwouldyoutaketoincreasethesessionlimitonCPUusage(A)A)Modifytheprofileassignedtotheuser.B)Modifytherolesassignedtotheusers.C)Modifytheobjectprivilegesassignedtotheuser.D)Modifythesystemprivilegesassignedtotheusers.WhichstatementarenottrueabouttherolesintheOracledatabase(A)A.RolesareownedbytheSYSuser.B.Rolescanbegrantedtootherroles.C.Arolecannotbeassignedexternalauthentication.D.Arolecancontainbothsystemandobjectprivileges.ViewtheExhibittoobservetheprivilegesgrantedtotheMGR_ROLErole.TheSCOTTuserhasbeengrantedtheCONNECTandRESOURCErolesonly.Thedatabaseadministrator(DBA)grantsMGR_ROLEtotheSCOTTuserbyusingthiscommand:SQL>GRANTMGR_ROLETOSCOTTWITHADMINOPTION;WhichstatementistrueabouttheSCOTTuserafterheisgrantedthisrole(C)A)TheSCOTTusercangranttheMGR_ROLEroleandtheprivilegesinittootherusers.B)TheSCOTTusercangranttheprivilegesintheMGR_ROLEroletootherusersbutnotwithADMIN_OPTION.C)TheSCOTTusercangrantonlytheMGR_ROLEroletootherusersbutnottheprivilegesinit.D)TheSCOTTusercangranttheprivilegesintheMGR_ROLEroletootherusersbutcannotrevokeprivilegesfromthem.YouexecutedthefollowingcommandtoexporttheEMPLOYEEStablefromaremoteMachine:$EXPDPDUMPFILE=my_dir:LOGFILE=data_pump_dir:TABLES=employeesWhatwouldbetheoutcomeofthiscommand(A)A)ThecommandwouldexecutesuccessfullyandtheexportdumpfilewouldbecreatedinthedestinationofthedirectoryobjectMY_DIR.B)Thecommandwouldexecutesuccessfully.ButlogfilewouldnotbecreatedasDATA_PUMP_DIRdirectoryisonlyaccessibletouserwithSYSDBAprivilege.C)ThecommandfailswithanerrorbecauseDATA_PUMP_DIRdirectoryhavehigherprecedenceovertheper-filedirectory.D)Thecommandfailswithanerrorbecausenoabsolutepathisspecifiedforlogfileanddumpfile.Youexecutethefollowingcommandtoauditthedatabaseactivities:SQL>AUDITDROPANYTABLEBYscottBYSESSIONWHENEVERSUCCESSFUL;Whatistheeffectofthiscommand(A)A)OneauditrecordiscreatedforthewholesessionifuserSCOTTsuccessfullydropsoneormoretablesinhissession.B)OneauditrecordiscreatedforeverysessionwhenanyusersuccessfullydropsatableownedbySCOTT.C)OneauditrecordiscreatedforeachsuccessfulDROPTABLEcommandexecutedbyanyusertodroptablesownedbySCOTT.D)OneauditrecordisgeneratedforthesessionwhenSCOTTgrantstheDROPANYTABLEprivilegetootherusersinhissession.Examinethefollowingcommandsexecutedinyourdatabase:SQL>ALTERSESSIONRECYCLEBIN=ON;SessionalteredSQL>CREATETABLEempTABLESPACEtbsfdASSELECT*FROM;Tablecreated.Further,youexecutedthefollowingcommandtodropthetable:SQL>DROPTABLEemp;Tabledropped.Whathappensinthisscenario(D)A)ThetableismovedtotheSYSAUXtablespace.B)ThetableismovedtotheSYSTEMtablespace.C)Thetableisremovedfromthedatabasepermanently.D)ThetableisrenamedandremainsintheTBSFDtablespace.Whataretheconsequenceso
/
本文档为【oracle-10g-数据库基础教程课后习题答案择题(中文)】,请使用软件OFFICE或WPS软件打开。作品中的文字与图均可以修改和编辑, 图片更改请在作品中右键图片并更换,文字修改请直接点击文字进行修改,也可以新增和删除文档中的内容。
[版权声明] 本站所有资料为用户分享产生,若发现您的权利被侵害,请联系客服邮件isharekefu@iask.cn,我们尽快处理。 本作品所展示的图片、画像、字体、音乐的版权可能需版权方额外授权,请谨慎使用。 网站提供的党政主题相关内容(国旗、国徽、党徽..)目的在于配合国家政策宣传,仅限个人学习分享使用,禁止用于任何广告和商用目的。
热门搜索

历史搜索

    清空历史搜索