Manage vector storage

一、创建表空间
create tablespace gis_data datafile '%oracle_base%\oradata\acf\gis_data_01.dbf' size 301m uniform size 128k;
create tablespace versioned_data datafile '%oracle_base%\oradata\acf\versioned_data_01.dbf' size 101m uniform size 4M;

 

二、创建用户并授权
create user gisadmin identified by gisadmin default tablespace gis_data;
grant create session,create procedure,create table,create sequence,create trigger to gisadmin;
alter user gisadmin quota unlimited on gis_data;
alter user gisadmin quota unlimited on versioned_data;

 

三、导出dbtune表内容
sdedbtune -o export -f c:\dbtune_ex07.sde -u sde -p sde

 

四、往导出的文件中添加如下参数
GEOMETRY_STORAGE      "SDEOLB"
ATTRIBUTE_BINARY      "BOLB"
UI_TEXT               "USER INTERFACE TEXT"

B_INDEX_ROWID         "TABLESPACE gis_data  PCTFREE 0 INITRANS 4 NOLOGGING"
B_INDEX_SHAPE         "TABLESPACE gis_data  PCTFREE 0 INITRANS 4 NOLOGGING"
B_INDEX_USER          "TABLESPACE gis_data  PCTFREE 0 INITRANS 4 NOLOGGING"
B_STORAGE             "TABLESPACE gis_data  PCTFREE 0 INITRANS 4"


F_INDEX_AREA          "TABLESPACE gis_data  PCTFREE 0 INITRANS 4 NOLOGGING" 
F_INDEX_FID           "TABLESPACE gis_data  PCTFREE 0 INITRANS 4 NOLOGGING" 
F_INDEX_LEN           "TABLESPACE gis_data  PCTFREE 0 INITRANS 4 NOLOGGING"  
F_STORAGE             "TABLESPACE gis_data  PCTFREE 0 INITRANS 4"

S_INDEX_ALL           "TABLESPACE gis_data  PCTFREE 0 INITRANS 4 NOLOGGING"
S_INDEX_SP_FID        "TABLESPACE gis_data  PCTFREE 0 INITRANS 4 NOLOGGING" 
S_STORAGE             "TABLESPACE gis_data  PCTFREE 0 INITRANS 4"
 

A_INDEX_ROWID         "TABLESPACE versioned_data  PCTFREE 0 INITRANS 4 NOLOGGING"
A_INDEX_SHAPE         "TABLESPACE versioned_data  PCTFREE 0 INITRANS 4 NOLOGGING" 
A_INDEX_STATEID       "TABLESPACE versioned_data  PCTFREE 0 INITRANS 4 NOLOGGING"
A_INDEX_USER          "TABLESPACE versioned_data  PCTFREE 0 INITRANS 4 NOLOGGING"
A_INDEX_XML           "TABLESPACE versioned_data  PCTFREE 0 INITRANS 4 NOLOGGING"
A_STORAGE             "TABLESPACE versioned_data  PCTFREE 0 INITRANS 4"


D_INDEX_DELETED_AT    "TABLESPACE versioned_data  PCTFREE 0 INITRANS 4 NOLOGGING"
D_INDEX_STATE_ROWID   "TABLESPACE versioned_data  PCTFREE 0 INITRANS 4 NOLOGGING"
D_STORAGE             "TABLESPACE versioned_data  PCTFREE 0 INITRANS 4"


END

 

5、保存后,导入dbtune表的内容
sdedbtune -o import -f c:\dbtune_ex07.sde -u sde -p sde

 

6、导入数据即可

 

你可能感兴趣的:(oracle,C++,c,UI,F#)