1.创建表空间:
1).查看空间文件:
select tablespace_name, file_id, file_name, round(bytes / (1024 * 1024), 0) total_space from dba_data_files ;
2).创建表空:
create tablespace TB_MDM datafile '+DATA1' size 30G autoextend on next 500M maxsize unlimited;
扩容
alter tablespace TB_MDM add datafile '+DATA1' size 30g autoextend on next 500M maxsize unlimited;
2.创建临时表空间:
1).查看临时文件信息:
select * from dba_temp_files;
2).创建表空间
create temporary tablespace HIP_TEMP_TEST01 tempfile '/opt/oracle/oradata/orcl/hip_test_temp01.dbf' size 50m autoextend on next 50m maxsize unlimited;
3.创建用户
1).查看用户:
select * from dba_users
2).创建用户:
create user username identified by password default tablespace user_data temporary tablespace user_temp;
4.授予角色
grant connect,resource,dba to username;
5.授予系统权限
grant unlimited tablespace to HIP_TEST;
5.空间不限制配额
alter user HIP_TEST quota unlimited on HIPTEST;
继续阅读与本文标签相同的文章
-
新功能初探 | RDS MySQL 8.0 支持 DML 语句 returning
2026-05-18栏目: 教程
-
浅谈分布式计算的开发与实现(二)
2026-05-18栏目: 教程
-
Apache Flink Meetup · 北京站,可能有你最想听的内容!
2026-05-18栏目: 教程
-
在闲鱼实习做Flutter是什么感受?
2026-05-18栏目: 教程
-
阿里云智能--基础产品技术月刊 2019年8月
2026-05-18栏目: 教程
