1、在SQL Developer工具中,执行该语句
create temporary tablespace wjy_temptempfile 'wjy_temp.dbf'size 2Gextent management local;
2、查看创建的表空间
3、依次执行以下语句,分别是:
创建表空间、创建用户并指定该用户的表空间、授予用户对表空间以及临时表空间的操作权限
create tablespace wjy_dataloggingdatafile 'wjy_data01.dbf'size 1Gautoextend onnext 50M maxsize unlimitedextent management local;create tablespace wjy_indexdatafile 'wjy_index01.dbf'size 500Mautoextend onnext 50M maxsize unlimitedextent management local;--wjy 创建用户create user wjyidentified by "123456"default tablespace wjy_datatemporary tablespace wjy_tempprofile DEFAULT;grant connect to wjy;grant dba to wjy;grant unlimited tablespace to wjy;
设置完,通过PL/SQL工具连接数据库,创建表:
如果觉得《Oracle创建表空间 创建用户并指定该用户的表空间 授权》对你有帮助,请点赞、收藏,并留下你的观点哦!