oracle 创建表空间

第一步:使用管理员账户登录,system system

第二步:执行命令

--根据现场情况,注意设置表空间大小
create tablespace ZBQUEUE datafile 'D:BQUEUE.ora' size 100m;
--alter database datafile 'D:ORACLEPRODUCT10.2.0ORADATAORCLxxx.DBF' resize 2048m;
create user ZBQUEUE identified by ZBQUEUE default tablespace ZBQUEUE quota 50m on users;
grant all privileges to ZBQUEUE;

--查询表空间大小
--select tablespace_name,sum(bytes)/1024/1024 from dba_data_files group by tablespace_name;

原文地址:https://www.cnblogs.com/YYkun/p/14081538.html