一起学OCP:082题库及解析

  • 第1题 BIGFILE
  • 第2题 INTERSECT
  • 第3题
  • 第4题
  • 第5题 temporary undo
  • 第6题 INTERVAL
  • 第7题
  • 第8题
  • 第9题 SAVEPOINT
  • 第10题 shared server
  • 第11题
  • 第12题 自连接
  • 第13题 &&
  • 第14题 LIKE
  • 第15题
  • 第16题
  • 第17题 INVISIBLE COLUMN
  • 第18题 UNUSED
  • 第19题
  • 第20题

第1题 BIGFILE

You execute this command:
CREATE BIGFILE TABLESPACE big_tbs DATAFILE ‘/u01/oracle/data/big_f1.dbf’ SIZE 20G;
sufficient storage is available in filesyatem /u01.
Which two statements are true about the BIG_TBS tablespace(Choose two.)

A) AUTOEXTEND is possible for the datafile
B) It must be bigger than the largest SMALLFILE tablespace
C) Additional data files may not be added
D) It will be a dictonary-managed tablespace by default
E) It will always have a 32K block size
正确答案【AC】

解析:注意创建的是bigfile表空间,意味着只会有一个数据文件。一般都是自动扩展。所以AC对;从很早的版本大概是9I开始,ORACLE都是本地管理的了,所以D错。默认块大小一般是8K并且可以修改,所以E错。bigfile只是名字叫bigfile,并不意味着他一定会比其他表空间的数据文件大,所以B错(感觉这个选项有点像脑筋急转弯了)

第2题 INTERSECT

Which statement is true about the INTERSECT operator used in compound queries?

A)Multiple INTERSECT operators are not possible in the same SQL statement.
B)It processes NULLs in the selected columns.
C)INTERSECT is of lower precedence than UNION or UNION ALL.
D)It ignores NULLs
正确答案【B】

解析:INTERSECT 查询两个结果集中的交集的数据,不会忽略空值

第3题

Which three statements are true about advanced connection options supported by Oracle Net for connection to Oracle Database instances?(Choose three.)

A) Connect Time Failover requires the use of Transparent Application Failover(TAF)
B)Source Routing requires the use of a name server.
C)Source Routing enables the use of Connection Manager(CMAN) which enables network traffic to be routed through a firewall.
D)Load Balancing can balance the number of connections to dispatchers when using a Shared Server configuration.
E)Load Balancing requires the use of a name server.
F)Connect Time Failover requires the connect string to have two or more listener addresses configured.
正确答案【CDF】

第4题

Which two statements are true about date/time functions in a session where NLS_DATE_FORMAT is set to DD-MON-YYYY HH24:MI:SS?(Choose two.)

A)CURRENT_TIMESTAMP returns the same date and time as SYSDATE with additional details of fractional seconds
B) SYSDATE can be queried only from the DUAL table
C) CURRENT_DATE returns the current date and time as per the session time zone
D) SYSDATE can be used in expressions only if the default date format is DD-MON-RR
E) SYSDATE and CURRENT_DATE return the current date and time set for the operating system of the database server
F) CURRENT_TIMESTAMP returns the same date as CURRENT_DATE
正确答案【CE】

第5题 temporary undo

A database is configured to use automatic undo management with temporary undo enabled.
An UPDATE is executed on a temporary table.
Where is the UNOD stored

A) in the undo tablespace
B) in the SYSAUX tablespace
C) in the SGA
D) in the PGA
E) in the temporary tablespace
正确答案【E】

解析:temporary undo是从12C开始提供的一个新特性,ORACLE中的临时表也会产生undo信息,在12C之前临时表产生的UNDO信息是存储Undo 表空间 和 Redo 日志文件,在12C及以后的版本是存储在临时表空间里的,不会再写入undo表空间。因此选E.
相关知识点这里

第6题 INTERVAL

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 functions ;
Store a loan period of up to 10 years;
Be used for calculating interest for the number of days the loan remains unpaid;

Which data type should you use?
A) INTERVAL YEAR TO MONTH
B) INTERVAL DAY TO SECOND
C) TIMESTAMP WITH LOCAL TIMEZONE
D) TIMESTAMP
E) TIMESTAMP WITH TIMEZONE
正确答案:【B】

解析:因为是计算未付款天数的利息,用B是合适的。
相关知识点这里

第7题

In the spfile of a single instance database,LOCAL_LISTENER is set to LISTENER_1.
The TNSNAMES.ORA file in $ORACLE_HOME/network/admin in the database home contains:
LISTENER_1=
(ADDRESS=
(PROTOCOL=TCP)
(HOST=host1.abc.com)
(PORT=1521)
)
Which statement is true?

A) Dynamic service registration cannot be used for this database instance.
B) The LREG process registers services dynamically with the LISTENER_1 listener
C) LISTENER_1 must also be defined in the LISTENER.ORA file to enable dynamic service registration.
D) There are two listeners named LISTENER and LISTENER_1 running simultaneously using port 1521 on the same host as the dataase instances
E) The definition for LISTENER_1 requires a CONNECT_DATA section to enable dynamic service Registration
正确答案【D】

解析:oracle允许两个监听公用一个端口,虽然这在实际应用中没有什么意义,但是确实允许。
A选项说动态注册服务不能用于这个数据库实例,明显是错的。
B 选项我理解是LREG有前提,如果监听未启动,它就不能动态注册服务。
C选项的内容有点莫名其妙,动态注册跟是否在ora文件中定义监听没关系。
E选项同上,动态注册跟 CONNECT_DATA没什么关系。

第8题

Which three statements are true concerning logical and physical database structures?(Choose three)

A) All tablespaces may have one or more data files;
B) The extends of a segment must always reside in the same datafile
C) A smallfile tablespace might be bigger than a bigfile tablespace
D) A segment can span multiple data files in some tablespaces;
E) A segment`s blocks can be of different sizes;
F) A segment might have only one extent
G) Segments can span multiple tablespaces;
正确答案【CDF】

解析:A选项没考虑bigfile表空间,bigfile表空间只允许有一个数据文件;
B选项,不同的段可以分配到不同的表空间中(例如分区表),因此可以存放到不同的数据文件中,我觉得问题出在那个must上
E选项错,因为段中block size是一样的。
F错,segment可以粗暴的理解成表,一般都说段表,oracle中一个表不可能跨表空间存储。但是可以跨数据文件存在。因为一个表空间是可以包含多个数据文件的。

第9题 SAVEPOINT

Which two statements are true regarding a SAVEPOINT?(Choose two.)

A) Rolling back to a SAVEPOINT can undo a CREATE INDEX statement
B) Rolling back to a SAVEPOINT can undo a TRUNCATE statement
C) Only one SAVEPOINT may be issued in a transaction
D) A SAVEPOINT does not issue a COMMIT
E) Rolling back to a SAVEPOINT can undo a DELETE statement
正确答案:【DE】

解析:savepoint有个特性,只要发生commit,则事务中所有的savepoint都会消失。在oracle中,所有的ddl语句都会执行commit,因此ddl后就不用再想着用savepoint了。DDL语句包括:create table\alter table\drop table \truncate table \create index\drop index,所以A,B错。事务中可以有多个SAVEPOINT,所以C错。

第10题 shared server

Which three functions are performed by dispatchers in a shared server configuration ? (Choose three.)

A) writing inbound request to the common request from all shared server connections.
B)checking for outbound shared server responses on the common outbound response queue
C)receiving inbound requests from processes using shared server connections.
D)sending each connection input request to the appropriate shared server input queue
E)broadcasting shared server session responses back to requesters on all connections.
F)sending shared server session responses back to requesters on the appropriate connection
正确答案【ADF】

解析:ORACLE中的服务器连接有专有服务器Dedicated Server和共享服务器Shared Server链接两种。其中专有服务器链接就是一个会话进程分配一个专有的服务器进程,而在共享服务器模式下通过一调度服务来同时服务多个会话进程,将请求放到请求队列中,多个调度服务共用一个请求队列,所以A对。每个调度服务有自己的响应队列,处理后的结果也会写入各自的响应队列然后返回给客户端。

第11题

Which two statements are true about the SET VERIFY ON command?(Choose two)

A) It can be used only in SQL* PLUS
B) It displays values for variables used only in the WHERE clause of a query
C) It can be used in SQL Developer and SQL* PLUS
D) It displays values for variables created by the DEFINE command
E) It displays values for variables prefixed with &&
正确答案【CD】

解析:事实上大部分的SQL命令都可以同时在SQL* PLUS和SQL DEVELOP上执行,只所以说大部分,只是因为官方文档也没有特别说明有哪些命令不能在SQL DEVELOP上执行。所以C对;SET VERIFY ON的作用及就是校验环境变量,必须设置DEFINE后才能显示&&和&开头的变量,所以D对E错。

第12题 自连接

Which three statements are true about a self-join?(Choose three.)

A) The ON clause must be used.
B) The query must use two different aliases for the table
C) It must be an equal join
D) It must be an inner join
E) The ON clause can be used
F) It can be an outer join
正确答案:【BEF】

解析:自连接查询必须用不同的别名,否则无法区分变量,可以用ON连接但是不是必须;可以是外连接。所以BEF对。CD选项的在于不是must,而应该是can。在复习时容易产生一种带must选项就是错误的印象,这个印象很危险,还是建议弄懂题意,吃透答案。

第13题 &&

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 session
Which query can be used?

A) SELECT &&col1, &&col2 FROM &table Where &&condition = && cond;
B) SELECT &col1,&col2 FROM &&table WHERE &condition;
C) SELECT &col1,&col2 from “&table” WHERE &condition;
D) SELECT ‘&&col1‘,’&&col2’ FROM &table WEHRE ‘&&condition’ = ‘&cond’;
E) SELECT &&col1,&&col2 FROM & table WHERE &&condition.
正确答案【B】

解析:题目中要求第一次执行时只要求输入表名参数,所以B正确。(only prompts for the table name the first time)。所以复习考试不能只是单纯的背题库,一定要吃透题目和答案

第14题 LIKE

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_%’
正确答案【A】

解析:写过代码的同学应该都知道选A,以D开头的城市名称必须至少两个字符,必然是like ‘D_%’

第15题

Examine this command:
ALTER DATABASE MOVE DATAFILE ‘/u01/sales1.dbf’ TO ‘/u01/sales01.dbf’ REUSE;
Which tow statements are true?(Choose two.)

A) DML may be performed on tables with one or more extents in this data file during the executiong of this command.
B) The tablespace containing SALES1.DBF must be altered READ ONLY before executing the command
C) The tablespace containing SALES1.DBF must be altered offline before executing the command
D) if Oracle Managed Files(OMF) is used,then the file is renamed but moved to DB_CREATE_FILE_DES
E) The file is renamed and stored in the same location
正确答案【AE】

解析:从oracle12C开始,ORACLE支持在线移动数据文件,这里的在线,意味着不用设置表空间为只读,也不影响数据文件里的表的DML语句,所以A对BC错;reuse参数表明重用原来的数据文件,只是改了名字。所以E对D错。

第16题

Which three statements are true about dropping and unused columns in an Oracle database?(Choose three.)

A) A primary key column referenced by another column as a foreign key can be dropped if using the CASCADE option
B) An UNUSED column’s space is reclaimed automatically when the block containing that column is next queried
C) An UNUSED column’s space is reclaimed automatically when the row containing that column is next queried
D) Partition key columns cannot be dropped.
E) A DROP COLUMN command can be rolled back
F) A column that is set to UNUSED still counts towards the limit of 1000 columns per table
正确答案【ADF】

解析:当使用CASCADE参数时会同时删除逐渐和外键,所以A对, Partition key不能删除,所以D对,ORACLE中表的有1000列的限制,即使一个列被设置为unuse也会算到里面,所以F对;设置一个列为unuse只是隐藏,但是仍然是物理存在的,所以BC错,列即使被设置为unuse,也是可以被恢复的,所以E错。

第17题 INVISIBLE COLUMN

Examine the following command
CREATE TABLE (
prod id number(4),
Pord_name varchar2(20),
Category_id number(30),
Quantity_on_hand number(3) INVISIBLE
);
Which three statments are true about using an invisible column in the PRODUCTS table?

A) The %ROWTYPE attribute declarations in PL/SQL to access a row will not display the invisible column in the output.
B) The DESCRIBE commands in SQL * PLUS will not display the invisible column in the output.
C) Referential integrity constraint cannot be set on the invisible column.
D) The invisible column cannot be made visible and can only be marked as unused.
E) A primary key constraint can be added on the invisible column.
正确答案【ABE】

解析:可隐藏列,在select和desc都看不到该列,隐藏列可以增加主键约束,设置为隐藏后也可以重新设置可见,所以ABE对DC错。网上有些文章说用DESC可以看到隐藏列,我自己在19C下试了不行。愿意求证的可以自己尝试一下。

第18题 UNUSED

Evaluate the following ALTER TABLE statement:
ALTER TABLE orders SET UNUSED (order_date);
Which statment is true
A) After executing the ALTER TABLE command,you can add a new column called ORDER_DATE to the ORDERS table
B) The ORDER_DATE column should be empty for the ALTER TABLE command to execute succsessfully
C) ROLLBACK can be used to get back the ORDER_DATE column in the ORDER table
D) The DESCRIBE command would display the order_date column
正确答案【A】

解析:还是unused列题,看来Oracle真的很喜欢这个unused,选项A是可以的,可以添加一个order_data列,unused不要求列为空,设置为UNUSED后列可见,所以BD错。选项C完全没搞懂要说的是什么,unused列是可以恢复的,但不是通过ROLLBACK.

第19题

choose the best answer Evaluate the following SQL statement;
ALTER TABLE hr.emp SET UNUSED (mgr_id);
Which statement is true regarding the effect of the above SQL statement?

A) Any views created on the EMP table that include the MGR_ID column would be automatically modified and remain valid.
B) Any constraints defined on the MGR_ID column would be removed by the above command.
C) Any synonym existing on the EMP table would have to be re-created.
D) Any index created on the MGR in column would continue to exist until the DROP UNUSED COLUMNS command is executed.
正确答案【B】

解析:列一旦被设置为 unused 以后,基于该列的约束、索引都被删除,同时相关的视图被无法访问,但是列的数据需要 drop column 时才会被删除。(来源CUUG)

第20题

Examine the structure of the DEPARTMENTS table,

You execute the following command:
SQL> ALTER TABLE departments SET UNUSED (country);
Which two statements are true?(choose two)

A) A new column, COUNTRY, can be added to the DEPARTMENTS table after executing the command.
B) Indexes created on the COUNTRY column exist until the DROP UNUSED COLUMNS command is executed.
C) Unique key constraints defined on the COUNTRY column are removed.
D) Synonyms existing on the DEPARTMENTS table would have to be re-created.
E)Views created on the DEPARTMENTS table that include the COUNTRY column are automatically modified and remain valid.
正确答案【AC】

一起学OCP:oracle-082题库及解析(1-20)相关推荐

  1. 一起学OCP:oracle-082题库及解析(21-40)

    历史文章 一起学OCP:oracle-082题库及解析(1-20) 一起学OCP:oracle-082题库及解析(21-40) 一起学OCP:082题库及解析 历史文章 第21题 第22题 第23题 ...

  2. 一起学OCP:oracle-082题库及解析(21-40)持续更新

    更新已迁移到主号:点击这里 第21题 In your database,you want to ensure that idle sessions that are blocking active a ...

  3. OCP 11G 051题库解析汇总链接

    OCP 11G 051题库解析汇总链接   OCP 051题库 1 :  OCP-1Z0-051 第1题 CTAS语句建表注意事项  2 :  OCP-1Z0-051 第2题 视图的WITH CHEC ...

  4. oracle中级题库,Oracle选择题题库

    <Oracle选择题题库>由会员分享,可在线阅读,更多相关<Oracle选择题题库(6页珍藏版)>请在装配图网上搜索. 1.Oracle 选择题题库1. 以下命令哪个是 SQL ...

  5. oracle上机题库_oracle考试题库

    Oracle数据库有很多题,需要认真查看,仔细了解. 1月27日晚上8点,由恩墨学院朱心宇老师讲授的<11gOCP题库解析-第3讲>准时开课. <11gOCP题库解析-第3讲> ...

  6. oracle上机题库_ORACLE OCM 最新考试题库

    Oracle OCM 最新题库,100%保证质量,OCM 大师亲自为您辅导,练习中有任何问题,有OCM 大师为您答疑解惑,传授考场经验,助您一次成功. 课程介绍 1.Oracle Certified ...

  7. 二级c语言上机题库及解析,2013年计算机二级C语言上机题库及答案解析(3)

    填空题 给定程序中,函数fun的功能是:在形参ss所指字符串数组中,查找含有形参substr所指子串的所有字符串并输出,若没找到则输出相应信息.ss所指字符串数组中共有N个字符串,且串长小于M.程序中 ...

  8. Cisco认证考试教材题库合集(20套)

    由于Cisco在网络设备领域得了ingdao地位,考取Cisco的证书也成为谋求工作.升职加薪的手段.按照认证计划的不同,又分为CCNA/CCNP/CCDP/CCIE等认证,我这里收集了面 向各种计划 ...

  9. oracle 052 题库更新,OCP题库升级,新版052考试题及答案整理-18

    18.You want to Install Oracle 11g database software and create a database on ASM Immediately after t ...

  10. oracle 052 题库变了,Oracle OCP题库变了,052全新题库收集整理-30

    30.Which is true when a database instance is shut down? A. Only transactional and normal modes wait ...

最新文章

  1. 硬盘数据丢失,到底该如何修复?
  2. go语言之行--基础部分
  3. 2017《面向对象程序设计》课程作业六
  4. 一个数独引发的惨案:零知识证明(Zero-Knowledge Proof)
  5. ThinkPHP5显示数据库字段内容
  6. 库卡机器人CELL程序解析
  7. java scanner以回车结束_请问Scanner在输入回车后,如何才能退出?
  8. 解读程序员的武侠世界,顶级程序员是内外兼修的大侠,那么你呢?
  9. linux给ftp账号分配sftp权限,Linux设置用户通过SFTP访问目录的权限教程
  10. 辅助类——掌握内容管道
  11. 开博客第一天!!来几句鸡汤
  12. 雷军振臂一呼:1亿小爱同学激活是不是中国第一?百度硬刚:我才是
  13. 200多个恶意NPM程序包针对Azure 开发人员,发动供应链攻击
  14. vuex文档阅读学习1
  15. jQuery firefox chrome IE 绑定mousewheel事件
  16. MISC图片隐写之foremost
  17. USB-CAN模块使用
  18. 基于电商中台架构-商品系统设计(二):类目设计
  19. 日本最惨数学天才!37岁裸辞,房子被政府没收,向全村人乞讨,一家五口只能吃野菜.........
  20. 我的Python分析成长之路2

热门文章

  1. 刘铁猛挨踢人感言:做一个高情商的程序员
  2. bbsmax 2.0 的前世今生,这几年喳喳鸟都在做什么?
  3. 转~ubuntu的一些常用软件
  4. VB.Net程序设计:分页控件
  5. 万年历代码java功能_java 的万年历代码
  6. 【CF55D】Beautiful Numbers-数位DP+优化
  7. python excel 填充颜色_“利用python将图填充到excel案例”
  8. RTSP HTTP流媒体播放器demo
  9. 仿360加速球。(实现内存释放)
  10. 2021年机修钳工(中级)及机修钳工(中级)复审模拟考试