【Oracle OCP考试】1z0-082(2)

1.Which two statements are true about views used for viewing tablespace and datafile information? (Choose two)

A . Tablespace free space can be viewed in V$TABLESPACE

B . V$TABLESPACE displays information that is contained in the
controlfile about tablespaces

C . V$TABLESPACE displays information about tablespaces contained in
the data dictionary
D . Tablespace free space can be viewed in DBA_TABLESPACES
E . A datafile can be renamed when the database is in MOUNT state and the new file name is displayed when querying DBA_DATA_FILES after the database is opened

标准答案 :BE

2.Which three statements are true about views in an Oracle Database?(Choose three)

A . Rows inserted into a table using a view are retained in the table
if the view is dropped.
B . A view can be created that refers to a non-existent table in its defining query.
C . Views have no object number.
D . Views have no segment.
E . A SELECT statement cannot contain a WHERE clause when querying a view containing a WHERE clause in its defining query.
F . Views can join tables only if they belong to the same schema.

标准答案:ABD

3.Which two statements are true about views?(choose two)

A . Views can be updated without the need to re-grant privileges on
the view.
B . Views can be indexed.
C . The WITH CHECK clause prevents certain rows from being updated or inserted in the underlying table through the view.
D . The WITH CHECK clause prevents certain rows from being displayed when querying the view.
E . Tables in the defining query of a view must always exist in order to create the view.

标准答案 :AC

4.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 querying the 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.
E. Views can be indexed

标准答案 :CD

【总结】
1.V$TABLESPACE,也叫做“表空间视图”,是Oracle数据库中的一个系统视图,它包含了当前实例上每个表空间的当前信息,以及表空间、段和文件的详细信息。它常用来检查表空间和文件的当前状态以及检查表空间使用情况等。

V$TABLESPACE的使用方法:

(1)查看表空间的信息:

SELECT ts.tablespace_name,
ts.status,
tf.file_name,
tf.bytes / 1024 / 1024 文件大小,
tf.autoextensible,
tf.maxbytes / 1024 / 1024 最大文件大小
FROM v$tablespace ts, v$datafile tf
WHERE ts.ts# = tf.ts#;

(2)查询表空间的使用情况:

SELECT ts.tablespace_name,
ts.contents,
ts.extent_management,
ts.allocation_type,
df.bytes / 1024 / 1024 空间大小,
nvl(sum(dfs.bytes) / 1024 / 1024, 0) 已使用,
nvl(sbts.bytes / 1024 / 1024, 0) 空闲空间
FROM v$tablespace ts, v$datafile df, v$tablespace_usage_metrics dfs, v$sort_segment sbts
WHERE ts.ts# = df.ts#
AND dfs.tablespace_id (+) = df.ts#
AND sbts.tablespace_id (+) = df.ts#
AND dfs.tablespace_name (+) = ts.tablespace_name
GROUP BY ts.tablespace_name, ts.contents, ts.extent_management, ts.allocation_type, df.bytes, nvl(sbts.bytes, 0);

2.无需重新授予视图权限即可更新视图。
3.WITH CHECK子句防止某些行通过视图更新或插入到基础表中。
4.视图没有段,有对象编号,不能被索引。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 数据库MySQL OCP 8.0 1Z0-908题库是针对MySQL数据库的认证考试的相关题库。MySQL是一种开源的关系型数据库管理系统,OCP 8.0是指MySQL的最新版本,1Z0-908则是该版本的认证考试代码。 这个题库包含了考试中可能遇到的各种题目,涵盖了MySQL数据库的各个方面,包括数据库的基本原理、SQL编程语言、索引、事务管理、备份与恢复等等。 通过学习这个题库,可以增强对MySQL数据库的理解和应用能力。掌握MySQL数据库的基本原理可以帮助我们了解数据库管理系统的工作原理,进而能够更好地进行数据库设计和管理。 同时,学习SQL编程语言可以帮助我们掌握MySQL数据库的增删改查等基本操作,以及高级的查询和数据处理技巧。 此外,掌握索引的原理和使用方法可以提高查询的效率,事务管理的学习可以帮助我们保证数据的一致性和完整性,备份与恢复的学习可以帮助我们保护数据免受损失。 总而言之,通过学习数据库MySQL OCP 8.0 1Z0-908题库,可以全面提升对MySQL数据库的掌握程度,为日后的数据库开发和管理工作打下坚实的基础。 ### 回答2: 很高兴能回答关于数据库MySQL OCP 8.0 1Z0-908题库的问题。 首先,MySQL OCP 8.0 1Z0-908题库是MySQL数据库相关的认证考试,旨在评估考生在MySQL数据库开发方面的专业能力和知识水平。 这个题库涵盖了广泛的MySQL数据库知识,包括SQL语法、数据库管理、数据查询、数据操作、性能优化等方面的内容。考生需要通过这些题目来展示他们对MySQL数据库的理解能力和实践经验。考试内容丰富多样,从基础知识到高级技术都有涉及。 通过准备MySQL OCP 8.0 1Z0-908题库,考生可以更好地掌握MySQL数据库的相关知识,并具备一定的实践能力。这对于那些在数据库开发、数据管理、数据分析等领域工作的人来说尤为重要。 此外,MySQL数据库广泛应用于各行各业,包括互联网、电商、金融、医疗等各个领域,因此具备MySQL OCP 8.0 1Z0-908认证的考生,在职业发展中将具备更强的竞争力。 总结起来,MySQL OCP 8.0 1Z0-908题库是提升个人职业素质和专业能力的一个重要途径。我们可以通过系统地学习和准备这个题库,进一步提高对MySQL数据库的理解和应用能力,为自己的职业发展打下坚实的基础。 ### 回答3: 老哥,你好!关于数据库MySQL OCP 8.0 1Z0-908题库的问题,我来给你详细解答。 MySQL OCP 8.0 1Z0-908题库是一套关于MySQL数据库的认证题库,专门针对MySQL 8.0版本的OCP考试。这套题库包含了一系列问题和练习,旨在测试考生对MySQL数据库的理解和应用能力。 在MySQL OCP 8.0 1Z0-908题库中,你将接触到各种与MySQL数据库有关的主题,包括数据库设计、表的创建、数据类型的选择、查询语句的优化、索引的使用、事务处理、存储过程、触发器等等。这些问题旨在考验你对MySQL数据库各个方面的了解和运用能力。 通过参与MySQL OCP 8.0 1Z0-908题库的学习和练习,你可以提升你的MySQL数据库技能,更好地理解和应用MySQL数据库,进而在OCP考试中取得好的成绩。这套题库可以帮助你检验你的学习成果,让你更加熟悉MySQL数据库的各种特性和操作。 总之,MySQL OCP 8.0 1Z0-908题库是一套有针对性的MySQL数据库认证题库,通过参与这套题库的学习和练习,可以加深对MySQL数据库的理解和应用技能。希望这个回答对你有帮助,如果还有其他问题,请随时提问。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值