1. 查看所有表空间及存储路径

select file_name, tablespace_name from dba_data_files;

2. 创建表空间

CREATE TABLESPACE xstream_tbs DATAFILE 
'/opt/oracle/app/oradata/orcl/xstream_tbs.dbf' SIZE 25M 
REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;

3. 创建用户并指定表空间

CREATE USER xstrmadmin IDENTIFIED BY admin  
DEFAULT TABLESPACE xstream_tbs 
QUOTA UNLIMITED ON xstream_tbs;

4. 授权

grant create session to xstrmadmin;
grant select any table to xstrmadmin;
grant unlimited tablespace to xstrmadmin;
grant create any table to xstrmadmin;
grant drop any table to xstrmadmin;
grant insert any table to xstrmadmin;
grant update any table to xstrmadmin;
grant connect,resource,dba to xstrmadmin;

各权限顾名思义,在此不做详细说明







相关文章:

  • 2022-03-09
  • 2022-12-23
  • 2021-12-29
  • 2021-12-18
  • 2022-01-07
  • 2021-10-23
  • 2021-09-23
  • 2021-12-19
猜你喜欢
  • 2022-12-23
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2021-10-09
  • 2022-12-23
  • 2021-11-28
相关资源
相似解决方案