【问题标题】:Can I edit the oracle instances property?我可以编辑 oracle 实例属性吗?
【发布时间】:2021-03-04 05:22:12
【问题描述】:

在Oracle中创建表时,可以指定Parallel和Degree属性。

创建表并从 all_all_tables 中选择 * 时,有一个 INSTANCES 项。用户是否可以使用 CREATE TABLE 等 DDL 语句编辑此项?如果有,请询问示例短语。

【问题讨论】:

    标签: oracle parallel-processing instance


    【解决方案1】:

    以下是设置和更改表的INSTANCES 属性的示例:

    SQL> create table test1(a number) parallel (instances 2);
    
    Table created.
    
    SQL> select instances from user_tables where table_name = 'TEST1';
    
    INSTANCES
    ----------------------------------------
             2
    
    SQL> alter table test1 parallel (instances 1);
    
    Table altered.
    
    SQL> select instances from user_tables where table_name = 'TEST1';
    
    INSTANCES
    ----------------------------------------
             1
    

    表属性在19c reference 中定义为“要扫描表的实例数,或默认值”。

    我认为INSTANCES 已被弃用,取而代之的是在会话或系统级别设置PARALLEL_FORCE_LOCALINSTANCES 语法记录在 version 7 SQL Reference 中,但未记录在 version 8i SQL Reference 中。

    【讨论】:

      猜你喜欢
      • 2010-11-19
      • 2021-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-04-22
      • 2013-04-03
      相关资源
      最近更新 更多