f考试科目:1Z0-082
更新记录:
2021-5- 14 1~90 题
2021-5-27 91~ 122 题
1.Which two statements are true about space-saving features in an Oracle Database? 节省空间特性
A.An index created with the UNUSABLE attribute has no segment. 不可用索引自动删除索引段
B.Private Temporary Tables(PTTs)store metadata in memory only. 私有临时表元数据存在内存中
C.Private Temporary Tables(PTTs) when used, are always dropped at the next commit statement.
D.An index that is altered to be UNUSABLE will retain its segment
E.A table that is truncated will always have all of its extents removed
答案:AB
解析:
A、不可用索引会自动删除segment,但是索引分区后,某个分区的索引不可用,其它索引段还在的
B、私有临时表这个特性18C才引入
C、私有临时表和全局临时表都有ON COMMIT DELETE ROWS和ON COMMIT PRESERVE ROWS的两种分类(delete rows用于事务相关,也就在事务结束后truncate data in the temporary table,preserve rows表示在会话结束后清除临时表的数据)
D、不可用的索引会被删除段,已使用alter index unusable测试
E、普通表截断后会保留min_extents设置的初始区段大
2. Which two statements are true about views? 视图
A.A view must only refer to tables in its defining query.
B.The WITH CHECK clause prevents certain rows from being displayed when queryingthe view .
C.Views can be updated without the need to re-grant privileges on the view. 视图无需重新授权可以更新
D.The WITH CHECK clause prevents certain rows from being updated or inserted in the underlying table through the view. WITH CHECK通过视图阻止修改原表
E.Views can be indexed
答案:CD
3.Examine the description of the products table 产品表,聚合函数
A.SELECT prod_id, AVG(MAX (cost)) FROM products GROUP BY prod_id.
B.SELECT prod_id, MAX (AVG (cost)) FROM products GROUP BY prod_id:
C.Select prod_id, release_date, SUM(cost) FROM products GROUP BY prod_id
D.SELECT prod_id, release_date, SUM(cost) FROM products GROUP BY prod_id, release_date group by 字段必须在select 中
答案:D
4.You currently have an active transaction in your session and have been granted select access to V$TRANSACTION 事务
In which three situations will re-executing this query still return a row but with a different XID indicating a new transaction has started? 重新换了新的事务
A.after successfully executing a TRUNCATE statement followed by a DML statement 清空和DML后
B.after successfully executing a CREATE TABLE AS SELECT statement followed by a SELECT FOR UPDATE statement 在成功执行CREATE TABLE AS Select语句之后,执行Select FOR UPDATE语句
C.after successfully executing a CREATE TABLE statement followed by a CREATE INDEX statement
D.after successfully executing a commit or ROLLBACK followed by a DML statement在成功执行commit或ROLLBACK和DML语句之后
E.after successfully executing a DML statement following a failed DML statement
F.after successfully executing a commit or ROLLBACK followed by a Select statement
答案:ABD
5. Which two statements are true about the PMON background process? PMON 进程,监控和管理进程
A.It rolls back transactions when a process fails 进程失败,回滚事务
B.It registers database services with all local and remote listeners known to the database instance
C.It frees unused temporary segments
D.It frees resources held by abnormally terminated processes 释放异常终止进程占的资源
E.It records checkpoint information in the control file
答案:AD
6.Examine the description of the BOOKS_TRANSACTIONS table: 事务表
Which two WHERE conditions give the same result? 哪两个where条件结果相同
A.WHERE borrowed_date= SYSDATE AND (transaction_type ='RM' AND (member_id 'A101' OR member id ='A102' ))
B.WHERE borrowed_date= SYSDATE AND (transaction_type ='RM' OR member_id IN ('A101', 'A102'))
C.WHERE borrowed_date= SYSDATE AND (transaction_type ='RM' AND member_id 'A101' OR member id ='A102')
D.WHERE borrowed_date= SYSDATE AND transaction_type ='RM' OR member_id IN ('A101', 'A102') OR的理解(and连接的两个条件和or并列)
E.WHERE (borrowed_date= SYSDATE AND transaction_type ='RM') OR member_id IN A101','A1021) OR的理解 (and连接的两个条件和or并列)
答案:DE
7.Which three statements are true?
A.The second ROLLBACK command restores the row that was inserted
B.The first ROLLBACK command leaves the inserted row locked
C.The second ROLLBACK command restores the 100 rows that were in the table originally第二个回滚命令恢复原来表中的100行
D.The second ROLLBACK command rolls back the ROLLBACK TO SAVEPOINT a command
E.The first ROLLBACK command leaves the table's 100 original rows locked第一个回滚命令将表的100行原始记录锁定
F.The first ROLLBACK command restores the 100 rows that were in the table originally第一个回滚命令恢复原来表中的100行
答案:CEF
8.Which is the default column or columns for sorting output from compound queries using SET operators such as INTERSECT in a SQL statement? 默认排序列
A.the first NUMBER or VARCHAR2 column in the last select of the compound query
B.the first NUMBER column in the first select of the compound query
C.the first vARCHAR2 column in the first select of the compound query
D.the first column in the first select of the compound query
E.the first column in the last selects of the compound query 最终select的第一列
答案:D
9. Examine the description of the MEMBERS table:
You want to display all cities that contain the string AN. The cities must be returned in ascending 城市(city)正序排名
order with the last_names further sorted in descending order. last_name倒序排名
Which two clauses must you add to the query?
A.ORDER BY 1, LNAME DESC 等同于 order by city asc,lname desc
B.ORDER BY1, 2
C.WHERE city IN ('%AN%')
D.WHERE city= '%AN%'
E.WHERE city LIKE '%AN%' 包含AN
F. ORDER BY last_name DESC, city ASC
答案:AE
10.You want to apply the principle of Least Privilege in all your live databases.最小权限原则
One of your requirements is to revoke unnecessary privileges from all users who have them using Privilege Analysis. 撤销不必要的权限
Which two are types of analyses that can be done using the DBMS PRIVILEGE CAPTURE package?
A.analysis of privileges that a user has on other schema's objects 分析用户对其他对象的权限
B.analysis of privileges that a user has on their own schema objects
C.analysis of privileges granted indirectly to a role that are then used by a user who has been ranted that role 分析间接角色权限
D.analysis of privileges granted directly to a role that are then used by a user who has been granted that role
E.analysis of all privileges used by the sys user
答案:AC
11.which two statements are true about undo segments and the use of undo by transactions in an Oracle database instance 撤销段和撤销事务的理解
A.A single transaction may use multiple undo segments simultaneously.
B.Undo segments can be stored in the SYSAUX tablespace(SYSAUX是SYSTEM表空间的辅助表空间)
C.Undo segments can extend when a transaction fills the last extent of the undo segment
D.Undo segments can wrap around to the first extent when a transaction fills the last extend of the undo segment
E.Undo segments can be stored in the SYSTEM tablespace.Undo段可以存储在SYSTEM表空间中
答案:DE
12.In the PROMOTIONs table, the PROMO_BEGIN_DATE column is of data type DATE and the default date format is DD-MON-RR
Which two statements are true about expressions using PROMO_BEGIN_DATE contained in a query?
A.PROMO_BEGIN_DATE- SYSDATE will return a number 算时间天数
B.TO_DATE(PROMO_BEGIN_DATE * 5) will return a date
C.TO NUMBER(PROMO_BEGIN_DATE.- 5 will return a number
D.PROMO_BEGIN_DATE- SYSDATE will return an error
E.PROMO_BEGIN_DATE- 5 will return a date 日期-5天
答案:AE
13.Which three statements are true about the naming methods and their features supported by Oracle database used to resolve connection information? 解析连接信息的命名方法和特点
A.Directory Naming can be used if Connect-Time Failover is required 连接时间故障转移-目录命名
B.Local Naming requires setting the TNS ADMIN environment variable on the client side
C.Local naming can be used if Connect-Time Failover is required连接时间故障转移-本地命名
D.Directory Naming requires setting the TNS ADMIN environment variable on the client side
E.A client can connect to an Oracle database instance even if no client side network admin has been configure 没有客户端网络管理员,客户端也可以连接到Oracle数据库实例
F. Easy Connect supports TCP/IP and SSL
答案:ACE
14.Examine the description of the SALES1 table 销售表
SALES2 is a table with the same description as SATES1 表2和表1结构相同
Some sales_data is contained erroneously in both tables 两个表都有错误数据
You must display rows from SATES1 and SALES2 and wish to see the duplicates too Which set operator generates the required output? 展示两个表的所有数据,包括重复数据
A.MINUS
B.UNION ALL
C.SUBTRACT
D.UNION
E.INTERSECT
答案:B
15.Which two statements are true about Oracle synonyms? 别名
A.A synonym can be created on an object in a package
B.A synonym can have a synonym 同义词可以有同义词
C.Any user can create a PUBLIC synonym
D.A synonym has an object number 同义词有对象号
E.All private synonym names must be unique in the database
答案:BD
16. Examine the description of the PRODUCT_DETAILs table: 产品明细表
Which two statements are true?
A.PRODUCT_NAME cannot contain duplicate values
B.EXPIRY_DATE contains the SYSDATE by default if no date is assigned to it
C.EXPIRY_DATE cannot be used in arithmetic expressions
D.PRODUCT_PRICE can be used in an arithmetic expression even if it has no value stored in it. product_price即使为空也可以用算术表达式
E.PRODUCT_PRICE contains the value zero by default if no value is assigned to it
F.PRODUCT_ID can be assigned the PRIMARY KEY constraint. product_id可以作为主键
答案:DF
17.Which three statements are true about connection strings and service names used to connect to an Oracle database instance? 连接串和服务名
A.A connection string must include the SID of a database instance.
B.A single connection string can refer to multiple database instances单个连接字符串可以引用多个数据库实例
C.A connection string including a service name must be defined in the tnsnames.ora file
D.A service name is created by a listener
E.Different connection strings in the same tnsnames.ora file can contain the same service name host and port parameters 同一个tnsnames.ora文件里的不同连接字符串可以有相同服务名
F. A single database instance can support connections for multiple service names 单个实例支持多个服务名连接
答案:BEF
18.Which compression method is recommended for Direct-Path Insert operations? 压缩方式
A.COLUMN STORE COMPRESS ADVANCED
B.ROW STORE COMPRESS ADVANCED
C.COLUMN STORE COMPRESS BASIC
D.ROW STORE COMPRESS BASIC 行存储基本压缩
答案:D
19.Which three statements are true about Deferred Segment Creation in Oracle databases?延迟段创建
A.It is the default behavior for tables and indexes. 表和索引的默认行为
B.It is supported for sys-owned tables contained in locally managed tablespaces
C.Sessions may dynamically switch back and forth from DEFERRED to IMMEDIATE segment creation. 会话可以动态切换,在延迟段创建和立即段创建之间
D.Indexes inherit the DEFERRED or IMMEDIATE segment creation attribute from their parent table索引从父表继承延迟段创建或立即段创建属性
E.It is supported for Index Organized Tables(IOTs) contained in locally managed tablespaces.
答案:ACD
20.Which two Oracle database space management features require the use of locally managed Table spaces?什么空间管理特性,需用到本地管理表空间
A.Oracle Managed Files(OMF.
B.Server-generated tablespace space alerts 服务器生成的表空间警报
C.Online segment shrink
D.Free space management with bitmaps bitmaps的自由空间管理
E.Automatic data file extension (AUTOEXTEND
答案:BD
21.Which three statements are true about data block storage in an Oracle Database? 数据块存储
A.An index block can contain row data 索引块可以包含行数据
B.A data block header is of a fixed length
C.A table block must always contain row data
D.A block header contains a row directory pointing to all rows in the block.块头包含一个行目录,指向块中的所有行。
E.Row data is stored starting at the end of the block 从块的末尾开始存储行数据
答案:ADE
22.Which two are true about a SQL statement using SET operators such as UNION?
A.The data type of each column returned by the second query must exactly match the data type of the corresponding column returned by the first query
B.The number, but not names, of columns must be identical for all SELECT statements in the query. UNION的列数必须相同
C.The names and number of columns must be identical for all SELECT statements in the query
D.The data type of each column returned by the second query is automatically converted to the data type of the corresponding column returned by the first query
E.The data type group of each column returned by the second query must match the data type group of the corresponding column returned by the first query. UNION返回的数据类型必须相同
答案:BE
23.Which two are benefits of external tables? 外部表的好处
A.They support UPDATES which transparently updates records in the file system as if they were table
B.They can be queried while the database is in the MOUNT state like dynamic performance views
C.They support DELETEs which transparently deletes records in the file system as if they were table rows
D.The results of a complex join or aggregating function or both can be unloaded to a file for transportation to another database可以将复杂连接或聚合函数的结果卸载到文件中,以便传输到另一个数据库
E.They can be queried, transformed, and joined with other tables without having to load the data first.它们可以被查询、转换和与其他表连接,而无需首先加载数据
答案:DE
24.Which three statements are true regarding the UNION and UNION ALL operators? UNION和UNION ALL
A.The number of columns selected by the first SELECT statement can be greater than the number selected in subsequent SELECT statements
B.Duplicates are eliminated automatically by the UNION ALL operator
C.The number of columns selected in each SELECT statement must be identical .列数必须相同。
D.NULLS are not ignored during duplicate checking.在重复检查期间,null不会被忽略
E.The names of columns selected in each SELECT statement must be identical
F.The names of columns selected in each SELECT statement can be identical.列名可以相同,也可以不同
G.Duplicates can optionally be eliminated by the UNION operator
答案:CDF
25.The SALES table has columns PROD_ID and QUANTITY_SOLD of data type NUMBER. Which two queries execute successfully? 销售表
A.SELECT prod_id FROM sales WHERE quantity_sold >55000 AND COUNT(*)> 10 GROUP BY prod_id HAVING COUNT(*)>10:
B.SELECT COUNT (prod_id) FROM sales GROUP BY prod_id WHERE quantity_sold >55000
C.SELECT prod_id FROM sales WHERE quantity sold >55000 AND COUNT(*)>10 GROUP BY COUNT(*)>10:
D.SELECT prod_id FROM sales WHERE quantity sold >55000 GROUP BY prod id HAVING COUNT (*)>10;
E.SELECT COUNT (prod_id) FROM sales WHERE quantity_sold >55000 GROUP BY prod id; 答案:DE
26.Which two statements are true about INTERVAL data types? INTERVAL
A.INTERVAL YEAR TO MONTH columns support yearly intervals.支持每年的间隔
B.The YEAR field in an INTERVAL YEAR TO MONTH column must be a positive value
C.The value in an INTERVAL DAY TO SECOND column can be copied into an INTERVAL YEAR TOMONTH column
D.INTERVAL YEAR TO MONTH columns only support monthly intervals within a single year
E.INTERVAL DAY TO SECOND columns support fractions of seconds 支持几分之一秒
F. INTERVAL YEAR TO MONTH columns only support monthly intervals within a range of years
答案:AE