在 Oracle 中为 Workflow Manager 工作空间创建数据文件

标准 GIS 存储建议倾向于将索引和日志文件与矢量和表格业务表分开保存。出于性能方面的考虑,最好分开放置业务、要素和空间索引表,并根据表空间数据文件的使用模式对其进行放置。对于多版本化且非常活跃的编辑地理数据库,VERSIONS 表空间的数据库文件可能是分开的并分布于各个可用磁盘中,从而避免出现输入/输出争用情况。

创建用于存储 Workflow Manager 工作空间要素类和表的新表空间。

下表列出了要在 SQL 示例中创建的表空间。

TABLESPACE

ArcSDE_PARAMETER

WMX_BDATA

业务表

WMX_BINDEX

业务表索引

WMX_FDATA

要素表

WMX_FINDEX

要素表索引

WMX_SDATA

空间索引表

WMX_SINDEX

空间索引表索引

WMX_ADATA

添加表(版本化)

WMX_AINDEX

添加表索引

WMX_DDATA

删除表(版本化)

WMX_DINDEX

删除表索引

Workflow Manager 工作空间中创建表空间

下列脚本可用于创建使用 Oracle SQL Plus 或 Oracle SQL Developer 的表空间。

注注:

对示例进行复制和粘贴可能会导致语法错误。

ALTER SYSTEM SET WALLET OPEN IDENTIFIED BY "wmxadmin";

CREATE SMALLFILE TABLESPACE "WMX_BDATA" 
DATAFILE D:\oracle\ORADATA\WMXDB\WMX_BDATA01.dbf'SIZE 10M AUTOEXTEND ON NEXT 1M MAXSIZE 400M
LOGGING EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K 
SEGMENT SPACE MANAGEMENT AUTO
DEFAULT COMPRESS FOR OLTP STORAGE ( ENCRYPT ) ENCRYPTION USING 'AES256';

CREATE SMALLFILE TABLESPACE "WMX_BINDEX" 
DATAFILE D:\oracle\ORADATA\WMXDB\WMX_BINDEX01.dbf' SIZE 10M AUTOEXTEND ON NEXT 1M MAXSIZE 400M
LOGGING EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K 
SEGMENT SPACE MANAGEMENT AUTO
DEFAULT COMPRESS FOR OLTP STORAGE ( ENCRYPT ) ENCRYPTION USING 'AES256';

CREATE SMALLFILE TABLESPACE "WMX_FDATA" 
DATAFILE D:\oracle\ORADATA\WMXDB\WMX_FDATA01.dbf' SIZE 10M AUTOEXTEND ON NEXT 1M MAXSIZE 400M
LOGGING EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K 
SEGMENT SPACE MANAGEMENT AUTO
DEFAULT COMPRESS FOR OLTP STORAGE ( ENCRYPT ) ENCRYPTION USING 'AES256';

CREATE SMALLFILE TABLESPACE "WMX_FINDEX" 
DATAFILE D:\oracle\ORADATA\WMXDB\WMX_FINDEX01.dbf' SIZE 10M AUTOEXTEND ON NEXT 1M MAXSIZE 400M 
LOGGING EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K 
SEGMENT SPACE MANAGEMENT AUTO
DEFAULT COMPRESS FOR OLTP STORAGE ( ENCRYPT ) ENCRYPTION USING 'AES256';

CREATE SMALLFILE TABLESPACE "WMX_SDATA" 
DATAFILE D:\oracle\ORADATA\WMXDB\WMX_SDATA01.dbf'SIZE 10M AUTOEXTEND ON NEXT 1M MAXSIZE 400M
LOGGING EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K 
SEGMENT SPACE MANAGEMENT AUTO
DEFAULT COMPRESS FOR OLTP STORAGE ( ENCRYPT ) ENCRYPTION USING 'AES256';

CREATE SMALLFILE TABLESPACE "WMX_SINDEX" 
DATAFILE D:\oracle\ORADATA\WMXDB\WMX_SINDEX01.dbf' SIZE 10M AUTOEXTEND ON NEXT 1M MAXSIZE 400M
LOGGING EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K 
SEGMENT SPACE MANAGEMENT AUTO
DEFAULT COMPRESS FOR OLTP STORAGE ( ENCRYPT ) ENCRYPTION USING 'AES256';

CREATE SMALLFILE TABLESPACE "WMX_ADATA" 
DATAFILE D:\oracle\ORADATA\WMXDB\WMX_ADATA01.dbf' SIZE 10M AUTOEXTEND ON NEXT 1M MAXSIZE 400M 
LOGGING EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K 
SEGMENT SPACE MANAGEMENT AUTO
DEFAULT COMPRESS FOR OLTP STORAGE ( ENCRYPT ) ENCRYPTION USING 'AES256';

CREATE SMALLFILE TABLESPACE "WMX_AINDEX" 
DATAFILE D:\oracle\ORADATA\WMXDB\WMX_AINDEX01.dbf' SIZE 10M AUTOEXTEND ON NEXT 1M MAXSIZE 400M 
LOGGING EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K 
SEGMENT SPACE MANAGEMENT AUTO
DEFAULT COMPRESS FOR OLTP STORAGE ( ENCRYPT ) ENCRYPTION USING 'AES256';

CREATE SMALLFILE TABLESPACE "WMX_DDATA" 
DATAFILE D:\oracle\ORADATA\WMXDB\WMX_DDATA01.dbf' SIZE 10M AUTOEXTEND ON NEXT 1M MAXSIZE 400M 
LOGGING EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K 
SEGMENT SPACE MANAGEMENT AUTO
DEFAULT COMPRESS FOR OLTP STORAGE ( ENCRYPT ) ENCRYPTION USING 'AES256';

CREATE SMALLFILE TABLESPACE "WMX_DINDEX" 
DATAFILE D:\oracle\ORADATA\WMXDB\WMX_DINDEX01.dbf' SIZE 10M AUTOEXTEND ON NEXT 1M MAXSIZE 400M 
LOGGING EXTENT MANAGEMENT LOCAL UNIFORM SIZE 128K 
SEGMENT SPACE MANAGEMENT AUTO
DEFAULT COMPRESS FOR OLTP STORAGE ( ENCRYPT ) ENCRYPTION USING 'AES256';

将数据文件的初始大小设置为 10 MB,以避免在创建表空间时发生延迟。然后,可以重新调整数据文件的大小以避免产生碎片。

ALTER DATABASE DATAFILE 'D:\oracle\ORADATA\WMXDB\wmx_Bdata01.dbf' RESIZE 400M;
ALTER DATABASE DATAFILE 'D:\oracle\ORADATA\WMXDB\wmx_Bindex01.dbf' RESIZE 400M;
ALTER DATABASE DATAFILE 'D:\oracle\ORADATA\WMXDB\wmx_Fdata01.dbf' RESIZE 400M;
ALTER DATABASE DATAFILE 'D:\oracle\ORADATA\WMXDB\wmx_Findex01.dbf' RESIZE 400M;
ALTER DATABASE DATAFILE 'D:\oracle\ORADATA\WMXDB\wmx_Sdata01.dbf' RESIZE 400M;
ALTER DATABASE DATAFILE 'D:\oracle\ORADATA\WMXDB\wmx_Sindex01.dbf' RESIZE 400M;
ALTER DATABASE DATAFILE 'D:\oracle\ORADATA\WMXDB\wmx_Adata01.dbf' RESIZE 400M;
ALTER DATABASE DATAFILE 'D:\oracle\ORADATA\WMXDB\wmx_Aindex01.dbf' RESIZE 400M;
ALTER DATABASE DATAFILE 'D:\oracle\ORADATA\WMXDB\wmx_Ddata01.dbf' RESIZE 400M;
ALTER DATABASE DATAFILE 'D:\oracle\ORADATA\WMXDB\wmx_Dindex01.dbf' RESIZE 400M;

可使用 Oracle 企业管理器验证是否已经创建数据文件和表空间。

5/10/2014