表空间
查询所有表空间1
select name from v$tablespace;
创建表空间1
create tablespace 表间名 datafile '数据文件名' size 表空间大小
删除表空间和数据文件等内容1
drop tablespace 表间名 including contents and datafiles cascade constraint;
用户
创建用户并赋予默认的表空间1
create user 用户名 identified by 密码 default tablespace 表空间表;
授权用户权限1
grant connect,resource,dba to 用户名;
权限主要有三个、connect权限:是否允许连接。resource权限:数据增删改。dba权限:数据库管理
授权用户表权限1
grant select, update, insert on 表名称 to 用户名;
授权用户存储过程权限1
grant execute on 存储过程名称 to 用户名;