oracle创建表空间

时间:2022-07-16 12:16:55
#创建表空间语句:
create tablespace user_data datafile 'D:\user_data.dbf' size 50m autoextend on next 50m maxsize 20480m extent management local;

#创建表空间内的用户:
create user username identified by password default tablespace user_data;

#给用户授予权限 :
grant connect,resource,dba to username;
#删除用户
drop user username cascade;

#删除表空间
drop tablespace user_data including contents and datafiles;