[INS-08109] :https://blog.csdn.net/u012830807/article/details/17302919
[INS-13001]:https://blog.csdn.net/dingchenxixi/article/details/72870688
--查询所有的表空间
select distinct tablespace_name from dba_free_space;
--创建表空间mytest
--表空间的数据文件保存路径、大小
--不自动扩展
create tablespace mytest
datafile 'D:oracleappAdministratororadataorclmytest.dbf'
size 20m
autoextend on;
--删除表空间同时删除表空间所在的物理文件
drop tablespace mytest including contents and datafiles;
--创建用户
create user test
identified by "456852"
default tablespace MYTEST
temporary tablespace TEMP;
--授权
grant dba to test with admin option;
--删除用户
drop user test;
--查询所有的用户
select * from all_users;
--oracle怎么查询表空间所在的路径
select * from dba_data_files;
查看有效表
SELECT table_name FROM user_tables ORDER BY Table_name;