文档首页 > > 工具指南> DSC SQL语法迁移工具> SQL语法迁移参考> Oracle语法迁移(至GaussDB A)> 自定义表空间

自定义表空间

分享
更新时间:2020/04/21 GMT+08:00

输入: 自定义表空间

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CREATE
     TABLE
          SEAS_VERSION_DDL_REL_ORA (
               VERSION_ORA_ID VARCHAR2 (20)
               ,TAB_OBJ_ID VARCHAR2 (20)
               ,AUDIT_ID VARCHAR2 (20)
               ,DDL_SYS CLOB
               ,DDL_USER CLOB
               ,IF_CONFORM VARCHAR2 (3)
               ,DDL_TYPE_SYS VARCHAR2 (5)
               ,DDL_REN_REASON_SYS VARCHAR2 (4000)
               ,DDL_ERR_SYS VARCHAR2 (4000)
          ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE (
               INITIAL 655360 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT
          ) TABLESPACE DRMS LOB (DDL_SYS) STORE AS BASICFILE (
               TABLESPACE DRMS ENABLE STORAGE IN ROW CHUNK 8192 RETENTION NOCACHE LOGGING STORAGE (
                    INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT
               )
          ) LOB (DDL_USER) STORE AS BASICFILE (
               TABLESPACE DRMS ENABLE STORAGE IN ROW CHUNK 8192 RETENTION NOCACHE LOGGING STORAGE (
                    INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT
               )
          )

输出

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CREATE
     TABLE
          SEAS_VERSION_DDL_REL_ORA (
               VERSION_ORA_ID VARCHAR2 (20)
               ,TAB_OBJ_ID VARCHAR2 (20)
               ,AUDIT_ID VARCHAR2 (20)
               ,DDL_SYS CLOB
               ,DDL_USER CLOB
               ,IF_CONFORM VARCHAR2 (3)
               ,DDL_TYPE_SYS VARCHAR2 (5)
               ,DDL_REN_REASON_SYS VARCHAR2 (4000)
               ,DDL_ERR_SYS VARCHAR2 (4000)
          ) /*SEGMENT CREATION IMMEDIATE*/
          /*PCTFREE 10*/
          /*PCTUSED 40*/
          /*INITRANS 1*/
          /*MAXTRANS 255*/
          /*NOCOMPRESS*/
          /*LOGGING*/
          /*STORAGE(INITIAL 655360 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645  FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT)*/
          /*TABLESPACE DRMS */
          /*LOB (DDL_SYS) STORE AS BASICFILE ( TABLESPACE DRMS ENABLE STORAGE IN ROW CHUNK 8192 RETENTION NOCACHE LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645  FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT))*/
          /*LOB (DDL_USER) STORE AS BASICFILE ( TABLESPACE DRMS ENABLE STORAGE IN ROW CHUNK 8192 RETENTION NOCACHE LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645  FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT))*/
;
分享:

    相关文档

    相关产品

文档是否有解决您的问题?

提交成功!

非常感谢您的反馈,我们会继续努力做到更好!

反馈提交失败,请稍后再试!

*必选

请至少选择或填写一项反馈信息

字符长度不能超过200

提交反馈 取消

如您有其它疑问,您也可以通过华为云社区问答频道来与我们联系探讨

智能客服提问云社区提问