您的位置:首页 > 数据库 > Oracle

Oracle 表空间的创建

2014-05-07 11:35 288 查看
-表空间

CREATE TABLESPACE pms

DATAFILE 'D:\oracle\product_2\tablespace\pms' size 100M

EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;

--索引表空间

CREATE TABLESPACE pms_Index

DATAFILE 'D:\oracle\product_2\tablespace\pms_index' size 100M

EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO;

--2.建用户

create user pms identified by pms

default tablespace pms;

--3.赋权

grant connect,resource to pms;

grant create any sequence to pms;

grant create any table to pms;

grant delete any table to pms;

grant insert any table to pms;

grant select any table to pms;

grant unlimited tablespace to pms;

grant execute any procedure to pms;

grant update any table to pms;

grant create any view to pms;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: