签到成功

知道了

CNDBA社区CNDBA社区

Orcle 12c 新特性---Default Tablespace Clause

2017-08-09 16:52 1864 0 原创 Oracle 12C
作者: Expect-乐

 说明

When you create the PDB from the CDB seed or an application seed and specify the DEFAULT TABLESPACE clause, Oracle Database creates a smallfile tablespace and sets it as the default tablespace for the PDB. When you create the PDB using a method other than the using the CDB seed or application seed, such as cloning a PDB or plugging in an unplugged PDB, the default tablespace must be a tablespace that already exists in the source PDB.http://www.cndba.cn/Expect-le/article/2086http://www.cndba.cn/Expect-le/article/2086

12.1中,只支持通过种子PDB来创建新的PDB时,才可以指定默认表空间。12.2中,通过CREATE PLUGGABLE DATABASE语句创建的PDB,就可以指定默认表空间。

一是通过CDB seed 或者application seed来创建的PDB,指定的默认表空间,Oracle会自动创建相关表空间。

http://www.cndba.cn/Expect-le/article/2086

二是通过克隆其他PDB或者plug其他PDB,那么默认的表空间必须要存在于那个PDB中。http://www.cndba.cn/Expect-le/article/2086http://www.cndba.cn/Expect-le/article/2086http://www.cndba.cn/Expect-le/article/2086http://www.cndba.cn/Expect-le/article/2086

语法

http://www.cndba.cn/Expect-le/article/2086

create pluggable database sihong admin user cndba identified by cndba
file_name_convert=('/u01/app/oracle/oradata/orcl/pdbseed/','/u01/app/oracle/oradata/orcl/sihong/')
DEFAULT TABLESPACE sihongs;

http://www.cndba.cn/Expect-le/article/2086
http://www.cndba.cn/Expect-le/article/2086

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

Default Tablespace Clause

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
Expect-乐

Expect-乐

关注

Without the continuous bitter cold, there can be no fragrant plum blossom

  • 336
    原创
  • 6
    翻译
  • 100
    转载
  • 41
    评论
  • 访问:1569168次
  • 积分:1957
  • 等级:核心会员
  • 排名:第4名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ