1、创建之前,可以先查看一下当前数据库的表空间
select tablespace_name from dba_data_files;
2、创建表空间
lylxspace:表空间名称
datafile:指定dbf文件在linux的存放地址
size:可以理解为文件初始化大小
autoextend:当size堆满后,每次自动扩展的大小
create tablespace lylxspace datafile '/oradata/ORADB/lylxspace.dbf' size 10240M autoextend on next 1024M maxsize 10240M;
3、创建用户,如果已有用户可以不进行操作
create user lylx identified by lylx default tablespace lylxspace;
4、授权用户
grant create session to lylx;
grant create table to lylx;
grant create tablespace to lylx;
grant create view to lylx;
grant connect,resource,dba to lylx;
alter user lylx default tablespace lylxspace;
307

被折叠的 条评论
为什么被折叠?



