设为首页 收藏本站
查看: 1481|回复: 0

[经验分享] OCP-1Z0-053-V13.02-245题

[复制链接]

尚未签到

发表于 2015-11-8 15:09:46 | 显示全部楼层 |阅读模式
245.Which statements are true regarding system-partitioned tables? (Choose all that apply.)
A. Only a single partitioning key column can be specified.
B. All DML statements must use partition-extended syntax.
C. The same physical attributes must be specified for each partition.
D. Unique local indexes cannot be created on a system-partitioned table.
E. Traditional partition pruning and partitionwise joins are not supported on these tables.
Answer: DE
答案解析:
参考:http://docs.oracle.com/cd/E11882_01/appdev.112/e10765/dom_idx.htm#ADDCI4490


从以下官方文档得知,ABC是错误的,D是正确的,排除法,选DE。
题问:哪一个是关于系统分区表的真实陈述?
A.只有一个分区键列可以被指定。System partitioning does not use partitioning keys。
B.所有DML语句必须使用分区扩展语法。错误。
Both INSERT and MERGE statements (not shown here)must use the partition extended syntax to identify the partition to which the row should be added.
While delete and update operations do not require the partition extended syntax。
C.必须为每个分区指定同样的物理属性。错误。Each partition can have different physical attributes


D.唯一本地索引不能在系统分区表上被创建。
E.传统的分区修剪和智能化分区连接不支持这些表。



  
Using System Partitioning
  
  
  System Partitioning enables you to create a single table consisting of multiple physical partitions. System partitioning does not use partitioning keys.Instead, it creates the number of partitions specified. Therefore, the resulting partitions have no bounds (range), values (list), or a partitioning method.
  Because there are no partitioning keys, you must explicitly map the distributed table rows to the destination partition. When inserting a row, for example, youmust use the partition extended syntax to specify the partition to which a row must be mapped.
Advantages of System Partitioned Tables
  The main advantages of system-partitioned tables is that it can be used to create and maintain tables that are equipartitioned with respect to another table. For example, thismeans that a dependent table could be created as a system-partitioned table, with the same number of partitions as the base table. It follows that sucha system-partitioned table can be used to store index data for a domain index, with the following implications:

  •   Pruning follows the base table pruning rules: when a partition is accessed in the base table, the corresponding partition can be accessed in the system-partitioned table.
  • DDLs of the base table can be duplicated on the system-partitioned table. Therefore, if a partition is dropped on the base table, the corresponding partition on the system-partitioned table isdropped automatically.


      
    Creating a System-Partitioned Table
      
      
      Example 8-16 describes how to create a system-partitionedtable with four partitions. Each partition can have different physical attributes.
    Example 8-16 Creating a System-Partitioned Table
    CREATE TABLE SystemPartitionedTable (c1 integer, c2 integer)PARTITION BY SYSTEM(  PARTITION p1 TABLESPACE tbs_1,  PARTITION p2 TABLESPACE tbs_2,  PARTITION p3 TABLESPACE tbs_3,  PARTITION p4 TABLESPACE tbs_4);
    Inserting Data into a System-Partitioned Table
      Example 8-17 demonstrates how to insert datainto a system-partitioned table. Both INSERT and MERGE statements (not shown here) must use the partitionextended syntax to identify the partition to which the row should be added. The tuple (4,5) couldhave been inserted into any of the four partitions created inExample 8-16. DATAOBJ_TO_PARTITION canalso be used, as demonstrated by Example 8-18.
      Example 8-17 Inserting Data into a System-Partitioned Table
    INSERT INTO SystemPartitionedTable PARTITION (p1) VALUES (4,5);  Example 8-18 Inserting Data into a System-Partitioned Table Using DATAOBJ_TO_PARTITION
    INSERT INTO SystemPartitionedTable PARTITION  (DATAOBJ_TO_PARTITION (base_table, :physical_partid))  VALUES (...);Note that the first line of code shows how to insert data into a named partition, while the second line of code shows that data can also be inserted into a partition based on the partition's order.The support for bind variables, illustrated on the third code line, is important because it allows cursor sharing betweenINSERT statements.

    Deleting and Updating Data in a System-Partitioned Table
      While delete and update operations do not require the partition extended syntax, Oracle recommends that you use it if at all possible. Because there is no partitionpruning, the entire table is scanned to execute the operation if the partition-extended syntax is omitted. This highlights the fact that there is no implicit mapping between the rows and the partitions.
      

      Supporting Operations with System-Partitioned Tables

    • The following operations continue to be supported by system partitioning:

      •   Partition maintenance operations and other DDLs, with the exception of:

        •   ALTER INDEX SPLIT PARTITION
        •   ALTER TABLE SPLIT PARTITION
        •   CREATE TABLE (as SELECT)

      •   Creation of local indexes, with the exception of unique local indexes because they require a partitioning key D正确
      •   Creation of local bitmapped indexes
      •   Creation of global indexes
      •   All DML operations
      •   INSERT AS SELECT operations with partition extended syntax, as shown in Example 8-19:
          Example 8-19 Inserting Data into a Particular Partition of a Table
        INSERT INTO TableName   PARTITION ( PartitionName|    DATAOBJ_TO_PARTITION(base_table, :physical_partid))  ASSubQuery
      The following operations are no longer supported by system partitioning because system partitioning does not use a partitioning method, and therefore does not distribute rows to partitions.

      •   CREATE TABLE AS SELECT An alternative approach is to first create the table, and then insert rows into each partition.
      •   INSERT INTO TableName AS SubQuery


         版权声明:本文为博主原创文章,未经博主允许不得转载。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-136677-1-1.html 上篇帖子: OCP-1Z0-053-V12.02-40题 下篇帖子: OCP-1Z0-053-V12.02-281题
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表