OCP考题学习
- 格式:pdf
- 大小:454.20 KB
- 文档页数:6
ocp认证考试题库
OCP模拟试题(数据库方向)
1. 选择题
关于Oracle数据库中的数据文件(datafiles),以下哪项说法是正确的?
A. 数据文件只能存储在一个表空间中。
B. 一个数据文件可以属于多个表空间。
C. 一个表空间可以包含多个数据文件。
D. 数据文件的大小是固定的,创建后不能更改。
2. 简答题
描述Oracle数据库中redo log文件的作用及其在数据库恢复中的重要性。
3. SQL操作题
给定一个名为employees的表,其中包含
employee_id, first_name, last_name, email, hire_date, 和 salary等列。
请编写一个SQL查询,找出2022年1月1日之后入职且薪水高于50000的员工。
OCP模拟试题(PL/SQL方向)
1. 选择题
在PL/SQL中,哪个关键字用于声明一个常量?
A. VARIABLE
B. CONSTANT
C. DECLARE
D. STATIC
2. 简答题
解释PL/SQL中的异常处理机制,并举例说明如何在代码中使用BEGIN, EXCEPTION, 和 END块来处理异常。
3. 编程题
编写一个PL/SQL程序,该程序接收一个数字作为输入参数,并计算从1到该数字的所有整数的和。
如果输入的数字小于1,程序应该抛出一个异常。
ocp082题库讲解摘要:一、OCP 082 题库简介二、OCP 082 题库重点内容概述三、OCP 082 题库学习方法与策略四、OCP 082 题库实战经验分享五、总结与建议正文:OCP 082 题库是Oracle 认证体系中的一门重要课程,主要针对Oracle 数据库管理员(Oracle Certified Professional,简称OCP)的认证考试。
通过学习OCP 082 题库,考生可以全面掌握Oracle 数据库的管理、维护、优化等技术,为Oracle 数据库的稳定运行提供有力保障。
本文将从OCP 082 题库简介、重点内容概述、学习方法与策略、实战经验分享等方面进行详细讲解,帮助考生更好地备战OCP 082 题库考试。
一、OCP 082 题库简介OCP 082 题库是Oracle 认证体系中的一门课程,主要面向已经掌握Oracle 数据库基础知识的考生。
通过学习本课程,考生将深入学习Oracle 数据库的管理、维护、优化等技术,提高自己在Oracle 数据库领域的专业技能。
OCP 082 题库涵盖了Oracle 数据库的各个层面,包括数据库架构、表空间管理、数据泵、备份与恢复、性能优化等内容。
二、OCP 082 题库重点内容概述1.数据库架构:了解Oracle 数据库的各个组件及其作用,包括实例、表空间、数据文件、控制文件等。
2.表空间管理:学习如何创建、扩容、删除表空间,以及如何为表空间分配和管理存储资源。
3.数据泵:掌握Oracle 数据泵的工作原理、配置方法以及如何使用数据泵进行数据导入和导出。
4.备份与恢复:学习Oracle 数据库的备份策略、备份方法以及恢复过程,包括RMAN 全备份、增量备份、归档日志备份等。
5.性能优化:掌握如何分析Oracle 数据库的性能瓶颈,并学习性能优化的相关技术和方法,如SQL 优化、索引优化、内存优化等。
三、OCP 082 题库学习方法与策略1.系统学习:按照OCP 082 题库的课程大纲,从基础知识开始,逐步深入学习,形成完整的知识体系。
ocp 考试题型OCP(Oracle Certified Professional)认证是针对Oracle数据库专业人员的一种全球性认证。
凭借OCP认证,可以证明自己在设计、开发和管理Oracle数据库方面具备专业的技能和知识。
在考试中,存在不同类型的题型,以下将对OCP考试题型进行详细的介绍。
1. 单选题单选题是OCP考试中最常见的题型之一。
在单选题中,为了测试考生对特定概念、技术或应用的理解和掌握程度,会提供一个问题和多个备选答案,考生需要选择出唯一正确的答案。
举例:Question: Oracle数据库中,以下哪个命令用于创建一个新的表?A. CREATE INDEXB. CREATE TRIGGERC. CREATE PROCEDURED. CREATE TABLE在这个问题中,正确答案是D,因为在Oracle数据库中,创建新表需要使用CREATE TABLE命令。
2. 多选题多选题是OCP考试中的另一个常见题型。
与单选题类似,多选题也会提供一个问题和多个备选答案,但考生需要选择所有正确的答案。
举例:Question: 以下哪些语句可以修改Oracle数据库中已有表的列?A. ALTER TABLEB. UPDATE TABLEC. MODIFY COLUMND. CHANGE COLUMN在这个问题中,正确答案是A和C,因为ALTER TABLE和MODIFY COLUMN可以用于修改已有表的列。
3. 填空题填空题是OCP考试中用于测试考生对特定概念或语法的掌握程度的一种题型。
考生需要根据问题的要求,在空白处填写正确的答案。
举例:Question: 使用Oracle SQL语句查询表中的所有数据,可使用_____命令。
在这个问题中,正确答案是SELECT。
4. 情景题情景题是对考生在实际工作场景中解决问题的能力的测试。
会给出一个具体的情景描述,考生需要根据情境选择合适的解决方案。
举例:Question: 在一个高负载的Oracle数据库环境中,发现部分查询性能下降。
ocp考试试题
OCP考试试题涵盖了Oracle数据库管理领域的多个方面,包括数据库设计、SQL编程、PL/SQL编程、数据库性能调优、数据库安全等。
以下是OCP考试试题的简要介绍:
1.数据库设计:主要测试考生设计数据库结构、关系、数据
完整性和安全性的能力。
2.SQL编程:测试考生编写、优化SQL查询和语句的能力,
以及使用SQL进行数据操作和数据检索的能力。
3.PL/SQL编程:测试考生编写、调试和管理PL/SQL程序的
能力,以及在存储过程、函数和触发器中使用PL/SQL进行编程的能力。
4.数据库性能调优:测试考生分析数据库性能问题、优化数
据库性能的能力,包括查询优化、索引优化、分区优化等方面。
5.数据库安全:测试考生设置和管理数据库安全的能力,包
括用户管理、权限管理、审计等方面的知识。
此外,OCP考试试题还可能涉及到Oracle的其他方面,如Oracle的网络管理、集群技术等。
考生需要全面掌握Oracle 数据库管理知识,才能顺利通过OCP考试。
ocp考试题库OCP(Oracle Certified Professional)考试是由甲骨文公司推出的一项技术认证考试,旨在验证考生对Oracle数据库管理和开发的专业技能。
为了帮助考生更好地备考和应对这一考试,必须建立一个全面而有效的OCP考试题库。
本文将介绍并论述如何构建一个具有质量保证的OCP考试题库。
一、题库的重要性题库是考试准备的关键组成部分。
它不仅提供了考生熟悉OCP考试题型和格式的机会,更重要的是,它能够帮助考生了解和学习OCP 考试的知识点和技能要求。
一个好的题库应该包含全面、准确、有针对性的考题,能够覆盖OCP考试的各个方面,帮助考生全面而高效地准备这个考试。
二、题库的内容组成1. 基础知识题:涵盖数据库原理、SQL语言基础、PL/SQL编程等基础知识。
2. 实践题:通过给出实际情境,要求考生运用自己的知识和技能进行问题解决。
3. 综合题:综合考察考生的数据库管理和开发能力,要求考生综合运用所学知识解决复杂问题。
4. 案例题:通过给出真实的案例,要求考生分析问题、设计解决方案、进行性能调优等能力。
5. 预测题:根据考试的历年趋势和重点,预测考试可能出现的题目类型和内容。
三、题目质量保证题目质量是题库的核心,它决定了考生备考的效果。
为了保证题目的质量,应该遵循以下原则:1. 准确性:题目的表述应该准确、清晰,不留歧义。
2. 实用性:题目应该基于实际情境和现实问题,能够反映实际工作中的要求。
3. 平衡性:题目应该涵盖OCP考试的各个知识点和技能要求,保持全面性。
4. 难度适中:题目的难度应该符合考试要求,既不能过于简单,也不能过于复杂。
5. 多样性:题目应该多样化,涵盖不同类型的题目,如选择题、填空题、案例分析题等。
四、题目的编写与审核题目的编写和审核都需要经过专业人员的严格把关,确保题目的质量和准确性。
编写人员应具备丰富的数据库管理和开发经验,熟悉OCP考试的考点和要求。
在编写和审核过程中,应遵循以下原则:1. 标准化:题目应该按照固定的格式和规范进行编写。
ocp 082试题
题目1:关于Oracle数据库,以下哪个选项是正确的?
A) SQL Plus只能用于Oracle数据库的连接
B) SQL Plus可以与SQL Developer同时使用
C) SQL Developer只能用于Oracle数据库的连接
D) SQL Developer不支持与其他数据库的连接
正确答案:B
解析:实际上,SQL Plus和SQL Developer都可以用于Oracle数据库的连接。
因此,选项A和选项C都不正确。
另外,SQL Developer不仅支持Oracle数据库,还可以与其他数据库进行连接,所以选项D也不正确。
题目2:关于SQL语句中的INTERSECT操作符,以下哪个选项是正确的?
A) 在同一个SQL语句中可以多次使用INTERSECT操作符
B) INTERSECT操作符会处理选择列中的空值
C) INTERSECT操作符的优先级高于UNION或UNION ALL
D) INTERSECT操作符会忽略空值
正确答案:B
解析:INTERSECT操作符用于查询两个结果集的交集,它不会忽略空值。
因此,选项A和选项D都不正确。
另外,根据运算符的优先级规则,INTERSECT操作符的优先级低于UNION和UNION ALL。
所以选项C也不正确。
052题库解析OCP考试052最新考试题库原题-4-20180601题库新特点:●更加灵活,题库的顺序与考试时的顺序每场都在变化●更加考验知识点的掌握,题库答案为二,考试时要求选择最佳一个答案●不断有新的考题出现,目前最新已经更新到130道题1、Yourdatabase Is configuredIn archivelogmode.TheUSERS01tablespaceIscurrently online.You arerequiredtotakethetablespaceoffline.Which clauseorclausesensurethatnomediarecoveryis requiredwhen thetablespaceIs broughtbackonline?•❑A)eitherthe NORMALor theTEMPORARYclause•❑B)onlythe NORMALclause•❑C)only the TEMPORARYclause•❑D)eitherthe NORMALor the IMMEDIATEclause•❑E)onlytheIMMEDIATEclause•Answer:B1offlinetemporary表空间时,如果表空间中没有offline的数据文件,则online该表空间时不需要介质恢复。
2offlinetemporary表空间时,不会对已经offline的数据文件执行检查点操作,仅仅对online的数据文件执行检查点操作3offlinetemporary表空间时,对于离线表空间之前已经offline的数据文件,则online该表空间时,offline数据文件需要介质恢复。
•2、Which twostatementsaretrueabouttablespaces?•❑A)Adatabasecancon tain multipleundotablespaces.•❑B)A databasecancontainonlya singletemporarytablespace.•❑C)A databaseinstancestoresundo data In the SYSTEM tablespaceIf no undo tablespace exists.•❑D)Adatabaseinstancehangs Ifthe SYSAUXtablespace beesunavailable.•❑E)Adatabasewithalocally managedSYSTEMtablespace canhavedictionary-manageduser tablepaces.•Answer:AE•3、You wanttoInstallOracle 11gdatabase softwareand createadatabaseonASMImmediatelyafter the Install. Yourplan is toinstallbothOracledatabaseand Grid Infrastructure.Which twoaretruein this scenario?•❑A)GridInfrastructuremustbe installed first.•❑B)Both products mustbe Installedbythe sameOS user. •❑C)Eachproduct mustbe Installed Ina different ORACLE_HOME.•❑D)BothproductscansharetheOSgroup assigned totheir OSDBA and OSOPER privileged groups•❑E)Bothproductsmustbe installedbyusing thesame ORACLE_BASE.•❑F)Bothproducts mustbe of thesameversion.•Answer:AC4、Which istrue aboutinvalidPL/SQLobjects?•❑A)Theyareautomaticallyrepiled againstthenewdefinitionof areferencedobjectatthesametimeas thereferencedobjectis modified.•❑B)Theycanbe manuallyrepiledonly byusingSQL mands.•❑C)Theyareautomaticallyrepiled againstthe new definitionof areferencedobjectwhen they arecalled.•❑D)Theymust be manuallyrepiledbeforetheycanbeused if a DDL isperformed on atable that is referencedin thePL/SQL object.•Answer:D5、Whichis trueaboutthe SYSTEMand SYSAUXtablespaces? •❑A)TheSYSAUXtablespacecanbe maderead-onlybut the SYSTEMtablespacecannot.•❑B)Bothtablespacescanbe used fortemporarystorageif no temporary tablespaceis defined.•❑C)Only the SYSTEMtablespacecontainsdatadictionary tables.•❑D)Bothtablespaces mustbe online foradatabasetobe accessible.•Answer:A6、Whichtwoaretrueaboutroles?•❑A)A rolecanbe password-protected.•❑B)A rolecanbe grantedtoanotherrole.•❑C)Onlyone defaultrolecanbe grantedto a user.•❑D)A rolecan be grantedonly multiplesystemprivileges not multipleobjectprivileges.•❑E)A rolecan be created onlybyauser withthe SYSDBA privilege.•Answer:AB7、YouareplanningasoftwareinstallationforbothOracleDatabase11g Release1and Release2.Youplantohaveatleaseone databaseforeach releasemanagedbyGridInfrastructureforaStandaloneServer. Whichthreearetrue inthisscenario?•A)Oracle11gRelease1databasesmustbemanagedbyGridInfrastructure 11gRelease1.•B)Both databasescanbemanagedby GridInfrastructure11gRelease2. •C) BothOracleversionsandGridInfrastructure canbeowned by thesame O/Saccount.•D) GirdInfrastructuremustbe installedbeforebothOracleDatabase versions.•E)Eachversionofthe databasemaybemanagedby aseparateversionof Grid Infrastructure.•F)BothOracleversionsand Grid Infrastructurecanbe installedunderthe sameORCALE_BASE.•Answer:ADE•8、Which twoaretrueaboutdatadictionaryand dynamic performance views(v$views)?•A)Alldatabaseusershaveaccess toALL_* views.•B)Datadictionaryviewoutputissubject toreadconsistency. •C)Thedefiningqueries forOracle supplied dynamic performance viewsarestoredIn the datadictionary.•D)Allv$viewsdisplayoutput when queries, iftheinstance isin nomountstate•E)Alldatabaseusershaveaccess toallv$views.•Answer:AB9、YOURDB_RECOVERY_FILE_DEST_SIZEIs8G. Currently,5GofthespaceIsused ofwhich4Gconsistsofobsoletebackups.Youexecutethismand:SQL>ALTERSYSTEMSETdb_recovery_file_dest_size=2G;Whati sthe oute?•A)ItchangesDB_RECOVERY_FILE_DEST_SIZEto5G.•B)ItchangesDB_RECOVERY_FILE_DEST_SIZEto2Gwithout deletingvalidbackups.•C)It fallsbecauseDB_RECOVERY_FILE_DEST_SIZEis astatic parameter.•D)It changesDB_RECOVERY_FILE_DEST_SIZEto2Gand deletesthe obsoletebackups.•E)Itfailsbecause the newsizeis lessthan 5G.•Answer:D10、Whichis trueaboutlogicalandphysicaldatabasestructures? (Choosethe best answer)•A.Anundotablespacehas a tempfile insteadof a datafile.•B.Asegmentcanconsistofextentsof differentsizes.•C.Apermanenttablespace canonlycontaintablessegments and index segments.•D.Atablespacecanconsistofdatablocksofdifferentsizes.•E. Anextentalwaysconsists of physicallycontiguousdata blocksin storage.•CorrectAnswer: B•11、Inwhichstatecanyou backup a database in ARCHIVELOGMODEusingRMAN?•A.NOMOUNT,MOUNT,ANDOPEN•B.NOMOUNTANDMOUNTONLY•C.OPENONLY •D.MOUNT AND OPENONLY•E. OPEN RESTRICTEDONLY•CorrectAnswer: D12、Examine these factsaboutadatabase: 1. USERSisthedatabasedefaulttablespace.2. USER1,USER2,ANDUSER3havetheCREATE SESSIONprivilege.3. TheyalsohaveUNLIMITED QUOTAonthe defaulttablespaceUSERS.4. Theyhaveno otherprivileges. Examinethesemands: SQL>conn/ assysdbaConnected.SQL>GRANTCREATETABLETOuser1WITHADMINOPTION;Grantsucceeded. SQL>connuser1/oracle_4U Connected.SQL> GRANTCREATETABLETOuser2;Grantsucceeded.SQL>GRANTCREATETABLETOuser3WITHADMINOPTION;Grantsucceeded.12、Whichtwoaretrue?•A.Any user with createtablewithadmin optioncanrevokecreatetable fromuser1.•B.IfSYSrevokescreatetablefromuser1,it isrevokedfromuser2butnot fromuser3.•C.OnlySYSandUSER1canrevokeCREATETABLEfromUSER3.•D.OnlySYSC ANREVOKE CREATETABLEFROM USER1.•E.If SYSrevokescreatetablefromuser1, itis notrevokedfromUSER2and USER3.•CorrectAnswer: AE13、Which twoaretrueaboutexternaltables?•A.Theysupport the ORACLE_DATAPUMPaccessdriver.•B.Theyhaveextents. •C.TheysupportallDMLoperations.•D.Theycanalways be updatedusing SQL.•E. Theycanbe storedinan ASMClusterFileSystem(ACFS).•CorrectAnswer: AE14、Inoneof your databases:* ThedatabasedefaulttablespaceisEXAMPLE.*Deferred_segment_creation is false.Examine these mands: SQL>createuser user1identifiedbyoracle_4upasswordexpire;Usercreated.SQL> alter user user1account unlock;Useraltered.SQL>grantcreatesessiontouser1;Grantsucceeded.SQL>grantcreatetable touser1 withadminoption;Grantsucceeded.14、Which threearetrue?•er1 can login tothe databaseinstance.•er1cangrant thecreatetable privilegetootherusers.•er1 cancreate tablesin the exampletablespace.•er1 must changeit’s passwordatfirstlogin.•E. user1cancreateindexes in exampletablespace.•CorrectAnswer: ABD15、Which istrue when adatabaseinstanceis shutdown? •A.Only transactionalandnormalmodeswait forallunmittedtransactionstomitorrollback and thenclosethe database.•B.Immediate,transactional,and normalmodes allresultin a checkpoint.•C.Neitherthe immediatenor the abortmode rollsback unmittedtransactions.•D.Immediate,transactional,and normalmodes waitforallunmittedtransactionseithertomitor rollbackandthen closethe database.•CorrectAnswer:AB。
ocp背题窍门摘要:1.OCP 是什么2.OCP 考试的重要性3.OCP 备考的窍门4.如何提高OCP 考试通过率5.总结正文:OCP(Oracle Certified Professional)是Oracle 公司设立的一项专业认证考试,旨在检验考生对Oracle 数据库技术的掌握程度。
通过OCP 认证,可以证明自己在Oracle 数据库领域的专业能力和技术水平,为职业生涯增添砝码。
本文将为您介绍OCP 背题窍门,帮助您更好地备考OCP 考试。
首先,了解OCP 考试的重要性。
随着Oracle 数据库在市场上的广泛应用,企业对拥有OCP 认证的专业人才需求越来越大。
具备OCP 认证的专业人士在求职市场上具有更高的竞争力,能够获得更好的工作机会和晋升空间。
同时,OCP 认证也是衡量个人技能水平的重要标准,有助于提高自己在团队中的地位。
接下来,为您分享OCP 备考的窍门。
首先,做好学习计划。
根据考试大纲,合理安排学习时间,确保每个知识点都能得到充分掌握。
其次,精选学习资料。
市面上关于OCP 考试的教材和辅导资料繁多,选择适合自己的学习资料至关重要。
可以参考Oracle 官方教材,结合网上的学习资源,为自己制定一套全面的学习方案。
最后,多做练习题。
通过大量做题,可以加深对知识点的理解,提高解题速度和准确率。
此外,如何提高OCP 考试通过率也是备考过程中需要关注的问题。
建议参加考前培训班,通过专业讲师的辅导,可以更快地掌握重点难点,提高学习效率。
同时,结交志同道合的考友,共同讨论问题,互相督促学习,可以让备考过程更加充实和有趣。
总之,OCP 背题窍门的关键在于制定合理的学习计划,选择优质的学习资料,多做练习题,参加考前培训和结交考友。
ocp考试题型摘要:一、OCP 考试简介1.OCP 考试是什么2.考试的目的和意义二、OCP 考试题型介绍1.选择题2.填空题3.简答题4.案例分析题三、各种题型的特点和应对策略1.选择题2.填空题3.简答题4.案例分析题四、备考建议1.熟悉考试大纲和题型2.制定合理的备考计划3.多做练习题,提高解题能力4.参加模拟考试,熟悉考试流程正文:OCP 考试,即Oracle Certified Professional(Oracle 认证专业人员)考试,是由Oracle 公司举办的一项全球性的认证考试。
该考试旨在检验考生在Oracle 数据库管理、应用开发、中间件等方面的专业技能和知识水平,帮助企业选拔优秀的Oracle 技术人才,提高整体竞争力。
OCP 考试题型丰富,涵盖了选择题、填空题、简答题和案例分析题等多种形式。
下面我们将详细介绍这些题型的特点和应对策略,帮助大家更好地备考。
1.选择题选择题是OCP 考试中最常见的题型,通常占总题量的50% 左右。
选择题要求考生从多个选项中选择一个正确答案,题干和选项通常以问答形式出现。
应对选择题的关键是熟悉考试大纲要求的知识点,加强对概念的理解和记忆。
2.填空题填空题要求考生在给定的空格内填入正确答案,通常占总题量的20% 左右。
这类题目主要考察考生对知识点细节的掌握程度。
应对填空题的方法是仔细审题,认真分析题干和选项,确保答案准确无误。
3.简答题简答题要求考生用自己的语言描述问题的解决过程或解释概念,通常占总题量的20% 左右。
这类题目考察考生的理解能力、逻辑思维能力和表达能力。
应对简答题的方法是明确题意,条理清晰地列出关键点,并保证文字表述准确。
4.案例分析题案例分析题通常以实际应用场景为背景,要求考生针对某个问题提出解决方案或改进措施。
这类题目占总题量的10% 左右,考察考生的实际操作能力和对知识的综合运用能力。
应对案例分析题的方法是认真阅读案例材料,提炼关键信息,结合所学知识提出具体、可行的解决方案。
OracleOCP认证考试练习真题题库三说明:答案和解析在试卷最后第1部分:单项选择题,共20题,每题只有一个正确答案,多选或少选均不得分。
1.[单选题]Examine the description of the products tableName null? TypePROD_ID not null NUMBERPROD_NAME VARCHAR2(40)COST NUMBER(8,2)RELEASE_DATE DATEWhich query is valid?A)SELECT prod id,AVG(MAX (cost)) FROM products GROUP BY prod_idB)SELECT prod id, MAX (AVG (cost)) FROM products GROUP BY prod_idC)Select prod id, release date, SUM(cost) FROM products GROUP BY prod_idD)SELECT prod id, release date, SUM(cost) FROM products GROUP BY prod id, release_date2.[单选题]Examine the description of the SATES1 tableNAME NULL TYPESALES_ID NOT NULL NUMBERSTORE_ID NOT NULL NUMBERITEMS_ID NUMBERQUANTITY NUMBERSALES_DATE DATESATES2 is a table with the same description as SATES1,Some sales data is contained erroneously in both tables,You must display rows from SATES1 and SATES2 and wish to see the duplicates too,Which set operator generates the required output?A)MINUSB)UNION ALLC)SUBTRACTD)UNIONE)INTERSECT3.[单选题]Examine the description of the EMPLOYEES tableNIS_DATE FORMAT is set to DD-MON-YYWhich query requires explicit data type conversion?A)SELECT join date FROM employees WHERE join date >'10-02-2018';B)SELECT join date || ' '|| salary FROM employeesC)SELECT salary + '120.50' FROM employeesD)SELECT SUBSTR( join_date, 1, 2)-10 FROM employeesE)SELECT join date + '20' FROM employees4.[单选题]Your database instance is started with an SPFILEAPFILE is also availableYou execute this commandALTER SYSTEM SET DB CACHE SIZE=100KWhere is the value changed?A)in the SPFILE and PFTIEB)in the SPFILE, PFILE, and memoryC)only in the SPFILED)in the SPFILE and in memoryE)only in memory5.[单选题]View the Exhibits and examine the structure of the costs and PROMOTIONS tablesYou want to display PROD IDS whose promotion cost is less than the highest cost PROD ID in a promotion time intervalExamine this SQL statement:Select prod_id from costs where promo_id in(select promo_id from promotions where promo_costA)It executes successfully and gives the required result.B)It gives an error because the GROUP BY clause is not validC)It executes successfully but does not give the required resultD)It gives an error because the ALL keyword is not valid6.[单选题]In the spfile of a single instance database, LOCAL LISTENER is set to LISTENER 1.The TNSNAMES ORAfile in SORACLE HOME/network/admin in the database home contains:LISTENER 1 =(ADDRESS=(PROTOCOL= TCP)(HOST =host1 abc. com)(PORT=1521))Which statement is true?A)There are two listeners named LISTENER and LISTENER 1 running simultaneously using port 1521 on the same host as the database instancesB)The definition for LISTENER 1 requires a CONNECT DATAsection to enable dynamic service registrationC)LISTENER 1 must also be defined in the LISTENER. ORAfile to enable dynamic serviceRegistrationD)The LREG process registers services dynamically with the LISTENER_1 listenerE)Dynamic service registration cannot be used for this database instance7.[单选题]Which statement is true about database links?A)Adatabase link created in a database allows a connection from that database's instance to the target database's instance, but not vice versaB)Private database link creation requires the same user to exist in both the local and the remote databasesC)Apublic database link can be used by a user connected to the local database instance to connect to any schema in the remote database instanceD)Apublic database link can be created only by sysE)Adatabase link can be created only between two Oracle databases8.[单选题]The CUSTOMERS table has a CUST_LAST NAME column of data type VARCHAR2The table has two rows whose CUST_LAST NAME values are Anderson and AussonWhich query produces output for CUST_LAST NAME containing der for the first row and Aus for the second?A)SELECT REPLACE(SUBSTR(cust_last_name, -3),'AN', "O') FROM customers;B)SELECT INITCAPREPLACE(TRIM('SON FROM cust_last_namE.,'AN,'O')) FROM customers;C)SELECT REPLACE(TRIM(TRAILING "SON' FROM cust last namE.,'AN, 'O') FROM customersD)SELECT REPLACE(REPLACE(cust last name, ' son', ' '),'An', 'O') FROM customers;9.[单选题]What is true about non-equijoin statement performance?A)The join syntax used makes no difference to performance.B)The BETWEEN condition used with an non-equijoin sometimes performs better than usingThe >=and<= conditionsC)The BETWEEN condition used with an non-equijoin always performs better than when usingThe>=and <= conditionsD)The Oracle join syntax performs better than the sol: 1999 compliantANSI join syntaxE)The Oracle join syntax performs less well than the sol: 1999 compliantANSI join syntax10.[单选题]Examine the description of the PRODUCT INEORMATTON tableName Null7 Type-------------------------------- ------------- -----------------------------------PROD_ID NOT NULL NUMBER(2)PROD_NANE VARCHAR2(10)LIST_PRICE NUMBER(6,2Which query retrieves the number of products with a null list price?A)SELECT COUNT(list price)FROM product information WHERE list price NULLB)SELECT COUNT(list price) FROM product information WHERE list price Is NULL.C)SELECT COUNT(DISTINCT list price )PROM product information WHERE list price Is NULLD)SELECT COUNT(NVL(list price, 0)) FROM product information WHERE list price Is NULL11.[单选题]You execute this commandCREATE BIGFILE TABLESPACE big_tbsDATAFILE ' /u01/oracle/data/big_f1.dbf 'SIZE 20G;Sufficient storage is available in filesystem /u01Which two statements are true about the big_tbs Tablespace? (Choose twoA)AUTOEXTEND is possible for the datafileB)It must be bigger than the largest SMALLFILE tablespaceC)Additional data files may not be addedD)It will be a dictionary-managed tablespace by defaultE)It will always have a 32K block size12.[单选题]Which statement is true about the INTERSECT operator used in compoundQueries?A)Multiple INTERSECT operators are not possible in the same SQL statementB)It processes NULLS in the selected columnsC)INTERSECT is of lower precedence than UNION or UNIONALLD)It ignores NULLS13.[单选题]A database is configured to use automatic undo management with temporary undo enabled An UPDATE is executed on a temporary table. Where is the UNDO stored?A)in the undo tablespaceB)in the SYSAUX tablespaceC)in the SGAD)in the PGAE)in the temporary tablespace14.[单选题]You have been tasked to create a table for a banking application. One of the columns must meet three requirements:Be stored in a format supporting date arithmetic without using conversion functionsStore a loan period of up to10 yearsBe used for calculating interest for the number of days the loan remains unpaid WhichData type should you use?A)INTERVALYEARTOMONTHB)INTERVALDAYTOSECONDC)TIMESTAMPWITHLOCALTIMEZONED)TIMESTAMPE)TIMESTAMPWITHTIMEZONE15.[单选题]In the spfile of a single instance database, LOCALLISTENER is set to LISTENER.1 The TNSNAMES.ORA file in SORACLE HOME/network/admin in the database home containsLISTENER_ 1 =(ADDRESS=(PROTOCOL=TCP)(HOST=)(POPT=1521))Which statement is true?A)Dynamic service registration cannot be used for this database instanceB)The LREG process registers services dynamically with the LISTENER1 listenerC)LISTENER_1 must also be defined in the LISTENER.ORA file to enable dynamic service registrationD)There are two listeners named LISTENER and LISTENER1 running simultaneously using port 1521 on the same host as the database instancesE)The definition for LISTENER 1 requires a CONNECT DATA section to enable dynamic service16.[单选题]You want to write a query that prompts for two column names and the WHERE condition each time it Is executed in a session but only prompts for the table name the first time it is executed. The variables used in your query are never undefined in your sessionWhich query can be used?A)SELECT &&col1&&co2 FROM &table WHERE &&condition=&&condB)SELECT &col1&COI2 FROM &&table WHERE &conditionC)SELECT &col1&CO12 FROM &table WHERE &conditionD)ELECT &&col1&&co FROM &table WHERE &&condition=&condE)SELECT &&col1&&COL2 FROM &table WHER E&&condition17.[单选题]Examine the description of the CUSTOMERS tableName Null? Type--------------------------------- ----------------- ----------------------CUST_ID NOT NULL VARCHAR2(6)FIRST_NAME VARCHAR2(50)LAST_NAME NOT NULL VARCHAR2(50)ADDRESS VARCHAR2(50)CITY VARCHAR2(25)You want to display details of all customers who reside in cities starting with the letter D followed by at least two charactersWhich query can be used?A)SELECT * FROM customers WHERE city LIKE ‘D_%’;B)SELECT * FROM customers WHERE city = ‘%D_’;C)SELECT * FROM customers WHERE city LIKE ‘D_’;D)SELECT * FROM customers WHERE city = ‘D_%’;18.[单选题]You want to use table compression suitable for OLTP that will:1)Compress rows for all DML statements on that table2)Minimize the overheads associated with compressionWhich compression option is best suited for this?A)COLUMN STORE COMPRESS FOR QUERY LOWB)ROW STORE COMPRESS BASICC)COLUMN STORE COMPRESS FOR ARCHIVE LOWD)COLUMN STORE COMPRESS FOR ARCHIVE HIGHE)ROW STORE COMPRESS ADVANCED19.[单选题]Your data base instance is started with a PFILE.Examine these parameters:NAME TYPE VALUE----------------------------------- -------------------- -----------------------Memory_max_target big integer 0Memory_target big integer 0Sga_max_size big integer 2GSga_target big integer 2GYou want to increase the size of the buffer cache. Free memory is available to increase the Size of the buffer cache. You execute the command: SQL>ALTER SYSTEM SETDB_CACHE_SIZE=1024M;What is the outcome?A)The value is changed only in the PFILE and takes effect at the next instance startupB)The value is changed for the current instance and in the PFILEC)It fails because the SCOPE clause is missingD)Change is applied to the current instance, but does not persist after instance restart20.[单选题]Examine the description of the CUSTOMERS table:Name Null Type------------------------------------------------------------------------------------------CUST_ID NOT NULL NUMBERCUST_FIRST_NAME NOT NULL VARCHAR2(20)CUST_LAST_NAME NOT NULL VARCHAR2(30)CUST_INCOME_LEVEL VARCHAR2(30)CUST_CREDIT_LIMIT NUMBERFor customers whose income level has a value, you want to display the first name and due amount as 5% of their credit limit. Customers whose due amount is null should not be displayed.Which query should be used?A)SELECT cust_first_name, cust_credit_limit*.05ASDUE_AMOUNT FROM customers WHERE cust_incoms_level IS NOT NULL AND due_amount IS NOT NULL;B)SELECT cust_first_name,cust_cred it_limit*.05ASDUE_AMOUNT FROM customers WHERE cust_income_level!=NULL AND cust_cred it_level!=NULL;C)SELECT cust_first_name,cust_cred it_limit*.05ASDUE_AMOUN TFROM customers WHERE cust_income_level<>NULL AND due_amount<>NULL;D)SELECT cust_first_name,cust_cred it_limit*.05ASDUE_AMOUNT FROM customers WHERE cust_income_level!=NULL AND due_amount !=NULL;E)SELECT cust_first_name,cust_credit_limit*.05AS DUE_AMOUNT FROM customers WHERE cust_income_level ISNOT NULL AND cust_credit_limit IS NOT NULL;第2部分:多项选择题,共73题,每题至少两个正确答案,多选或少选均不得分。