Oracle 创建用户
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;
上一篇: 笔记本双显卡如何切换(图文教程)