-- 创建表空间,(数据库文件)
create tablespace db3
datafile 'E:\tablespace\db3.dbf'
size 1m
-- 创建表空间,(数据库文件),指定数据文件在哪儿 多大 扩容
create tablespace db2
datafile 'E:\tablespace\db2.dbf'
size 1m autoextend on next 1m maxsize unlimited
-- 查询表
select * from user_tablespaces
-- 删除表空间
drop tablespace db3
-- 删除表空间及删除内容和文件
drop tablespace db3 including contents and datafiles
-- 更改表的状态
alter tablespace db3 read only
alter tablespace db3 read write
-- 创建用户,密码
create user user1 identified by user1
-- 删除用户
drop user user1
-- 创建用户,密码,同时更改默认表空间
create user user1 identified by user1
default tablespace db3
-- 创建后更改密码,更改默认表空间
alter user user1 identified by user2
alter user user1 default tablespace db3