1. orcle 创建可扩展表空间

Posted on 2014-08-22 11:35  zkx4213  阅读(231)  评论(0编辑  收藏  举报

1.创建表空间

a).

create tablespace tablespacename

datafile 'D:\tablespace\tablespacename.dbf'

size 200m autoextend on

extent management local uniform size 64k

segment space management auto;

 

 b).

create tablespace test datafile 'E:\oracle\product\10.2.0\oradata\orcl\test.dbf' size 200m autoextend on next 10m maxsize unlimited;

create user test identified by test default tablespace test temporary tablespace temp;

grant connect,resource to test;
grant exp_full_database to test;
grant imp_full_database to test;

 

 

2.创建临时表空间

CREATE TEMPORARY TABLESPACE temptspmdata
TEMPFILE 'D:\tablespace\tempspmdata.dbf'
SIZE 200m
AUTOEXTEND ON
NEXT 32m MAXSIZE 2048m
EXTENT MANAGEMENT LOCAL;

 

 

 

Copyright © 2024 zkx4213
Powered by .NET 9.0 on Kubernetes