操作用户表空间
查看表空间存储位置
select * from dba_data_files;
删除表空间
drop tablespace TEST2 including contents and datafiles;
操作用户
删除用户
DROP USER C##TEST1 CASCADE;
创建流程
--创建表空间TEST_ICSP
create tablespace TEST_ICSP datafile '/opt/oracle/oradata/TEST_ICSP.dbf' size 128m autoextend on next 10m;
create user TEST_ICSP identified by 123456 default tablespace TEST_ICSP;
GRANT CONNECT TO TEST_ICSP WITH ADMIN OPTION;
GRANT DBA TO TEST_ICSP WITH ADMIN OPTION;
ALTER USER TEST_ICSP DEFAULT ROLE ALL;
GRANT UNLIMITED TABLESPACE TO TEST_ICSP WITH ADMIN OPTION;
19c:
--创建表空间TEST_ICSP
create tablespace TEST_ICSP datafile 'C:\DEVELOPTOOLS\ORACLE19C\DATABASE\TEST_ICSP.dbf' size 128m autoextend on next 10m;
create user C##TEST_ICSP identified by 123456 default tablespace TEST_ICSP;
GRANT CONNECT TO C##TEST_ICSP WITH ADMIN OPTION;
GRANT DBA TO C##TEST_ICSP WITH ADMIN OPTION;
ALTER USER C##TEST_ICSP DEFAULT ROLE ALL;
GRANT UNLIMITED TABLESPACE TO C##TEST_ICSP WITH ADMIN OPTION;