create temporary tablespace temp_space(临时表空间名字temp_space)
tempfile 'D:\oracledata\file_temp.dbf'
size 50m
autoextend on
next 50m maxsize 2048m
extent management local;
create tablespace file_data(表空间的名字)
logging
datafile 'D:\oracledata\file_data.dbf'
size 50m
autoextend on
next 50m maxsize 2048m
extent management local;
create user username identified by password
default tablespace file_data
temporary tablespace temp_space;
需要在system下授权。
oracle提供三种标准角色(role):connect,resource和dba.
1.connect role(连接角色)
运行select * from role_sys_privs where role='CONNECT';
2.resource role(资源角色)
3.dba role(数据库管理员角色)
dba role拥有所有的系统权限
包括无限制的空间限额和给其他用户授予各种权限的能力。
我们需要授权connect以及resource即可。
grant connect,resource to username;
可以在当前用户下取消权限
REVOKE privileges ON object FROM user;
object - 正在撤销权限的数据库对象的名称。 在撤销表的特权的情况下,它将是表名。
user - 将撤销这些权限的用户的名称。
对象可以是表,视图,序列,同义词等
如
revoke resource from username;
因篇幅问题不能全部显示,请点此查看更多更全内容