--创建临时表空间
create temporary tablespace test_temp
tempfile 'C:\test_temp1.dbf'
size 10m
autoextend on
next 10m maxsize 100m
extent management local;
--创建表空间
create tablespace test_data
logging
datafile 'C:\test_data1.dbf'
size 10m
autoextend on
next 10m maxsize 100m
extent management local;
--删除临时表空间 包含内容和物理文件
--drop tablespace test_temp including contents and datafiles;
--删除临时表空间 包含内容和物理文件
--drop tablespace test_data including contents and datafiles;
--创建用户并指定表空间和临时表空间
create user user001 identified by 123456
default tablespace test_data
temporary tablespace test_temp;
--授予用户权限
grant connect ,resource to user001;
oracle创建表空间和用户的语句
最新推荐文章于 2024-07-28 21:15:38 发布