oracle创建表空间

create tablespace "T_OA" datafile 'D:/oradata/T_OA.dbf' size 8M  autoextend on  next 5M  maxsize 200M;
create tablespace T_WFENGINE datafile 'D:/oradata/T_WFENGINE.dbf' size 8M  autoextend on  next 5M  maxsize 10M;    
create tablespace T_PUBLISH datafile 'D:/oradata/T_PUBLISH.dbf' size 8M  autoextend on  next 5M  maxsize 200M;
create tablespace T_portal datafile 'D:/oradata/T_portal.dbf' size 8M  autoextend on  next 5M  maxsize 200M;   
create tablespace I_OA datafile 'D:/oradata/I_OA.dbf' size 8M  autoextend on  next 5M  maxsize 200M;
create tablespace I_WFENGINE datafile 'D:/oradata/I_WFENGINE.dbf' size 8M  autoextend on  next 5M  maxsize 200M;  
create tablespace I_PUBLISH datafile 'D:/oradata/I_PUBLISH.dbf' size 8M  autoextend on  next 5M  maxsize 200M;
create tablespace T_WORKFLOW datafile 'D:/oradata/T_WORKFLOW.dbf' size 20M  autoextend on  next 5M  maxsize 200M;




create user oa identified by "oa" default tablespace T_OA;
grant resource,connect,dba to oa; 


create user workflowengine identified by "workflowengine" default tablespace T_WFENGINE;
grant resource,connect,dba to workflowengine; 


create user nwpub identified by "nwpub" default tablespace T_PUBLISH;
grant resource,connect,dba to nwpub; 


create user portal identified by "portal" default tablespace T_portal;
grant resource,connect,dba to portal; 


create user workflow identified by "workflow" default tablespace T_WORKFLOW;
grant resource,connect,dba to workflow;


grant select any table to oa
ALTER USER OA QUOTA UNLIMITED ON T_OA
grant select any table to workflow
ALTER USER WORKFLOW QUOTA UNLIMITED ON T_WORKFLOW


exp system/starsino@anjioa file=d:/anjiaoa.dmp owner=(oa,workflow)
imp system/starsino@anjioa file=d:/anjiaoa.dmp full=y
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值