用户:是在实例下建立的 不同实例可以建相同用户名字 是管理表的基本单位
表空间:逻辑单位,当数据库很大时 ,会将数据库细分为表空间
数据文件:数据文件,多个数据文件 组成表空间
创建表空间
create tablespace oracletable datafile 'd:\oracle_t\oracle_1.dbf’size 100m autoextend on next 10m;
删除表空间
drop tablespace oracletable;
创建用户
create user liang identified by 123456 default tablespace oracletable;
给用户授权
Oracle数据库中常用角色
connect --连接角色,基本角色
resource–开发者角色
dba–超级管理员角色
grant dba to liang