--创建临时表空间
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-03-13 16:17:23 发布
本文介绍如何在Oracle数据库中创建临时表空间和普通表空间,并演示如何创建用户并分配这些表空间作为默认表空间及临时表空间。此外,还展示了如何为用户授予权限。
5431

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



