ITPub博客

首页 > Linux操作系统 > Linux操作系统 > create table进阶学习系列(八)

create table进阶学习系列(八)

原创 Linux操作系统 作者:wisdomone1 时间:2013-01-22 18:17:37 0 删除 编辑
create table进阶学习系列(八)
  继续学习create table table_properties子句
语法:
SQL> select cache from user_tables where table_name='T_PROP';
CACHE
----------------------------------------
    N
SQL> drop table t_prop purge;
Table dropped.
SQL> create table t_prop(a int) cache;
Table created.
SQL> select cache from user_tables where table_name='T_PROP';
CACHE
----------------------------------------
    Y
 
----parallel选项的值=cpu个数*parallel_thread_per_cpu,一般不用配置此值,由oracle自动计算得到 
PARALLEL  Specify PARALLEL if you want Oracle to select a degree of parallelism equal to the number of CPUs
available on all participating instances times the value of the PARALLEL_THREADS_PER_CPU initialization parameter.
    
SQL> create table t_prop(a int);
Table created.
SQL> select degree from user_tables where table_name='T_PROP';
DEGREE
----------------------------------------------------------------
         1
SQL> drop table t_prop purge;
Table dropped.
SQL> create table t_prop(a int) parallel 3;
Table created.
SQL> select degree from user_tables where table_name='T_PROP';
DEGREE
----------------------------------------------------------------
         3
        

SQL> create table t_prop(a int);
Table created.
SQL> select dependencies from user_tables where table_name='T_PROP';
DEPENDENCIES
----------------
DISABLED
SQL> drop table t_prop purge;
Table dropped.
---rowdependences用于高级复制环境,increases the size of each row by 6 bytes
SQL> create table t_prop(a int) rowdependencies;
Table created.
SQL> select dependencies from user_tables where table_name='T_PROP';
DEPENDENCIES
----------------
ENABLED        
   
语义:
测试:
后记: 
 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9240380/viewspace-753075/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
提供针对oracle初学者及进阶的数据库培训,欢迎大家咨询: 微信: wisdomone 微信公众号: lovedb 工作经历: 中国普天 北京科蓝 北京云和恩墨 北京神州新桥

注册时间:2008-04-04

  • 博文量
    2189
  • 访问量
    12690058