1.用户管理
(1)创建
create user 用户名 identified by 密码;
注意:只能在管理员账户下创建。
(2)授权
grant 权限1,权限2,...to 用户;
赋予连接、资源角色:
grant connect,resource to 用户;
(3)修改密码
alter user 用户名 identified by 密码;
(4)密码失效
alter user 用户名 password expire;
(5)锁定用户
alter user 用户名 account lock;
(6)解锁用户
alter user 用户名 account unlock;
(7)授予用户访问其他用户表
grant select,delete on 用户1.表名 to 用户2;
(8)回收权限
revoke select,delete on 用户1.表名 from 用户2;
2.数据库的备份及恢复(了解)
(1)备份
exp
(2)恢复
imp;
进入所在目录。