oracle 学习笔记(一)--用户管理

ORACLE用户管理

创建用户:create user <username> identified by <passwd>

default tablespace <default tablespace>

temporary tablespace <temporary tablespace>;

更改密码:alter user 用户名 identified by 新密码;

锁定用户:alter user 用户名 account lock;

解锁用户:alter user 用户名 account unlock;

删除用户:drop user 用户名cascade;

cascade:级联删除

给用户授权:grant 权限 to 用户名;

说到权限,就不得不说到角色,角色就是权限的集合

创建角色:create role 角色名;

为角色赋权限:grant 权限 to 角色名;

将角色赋给用户:grant 角色 to 用户;

猜你喜欢

转载自blog.csdn.net/yu1665090104/article/details/78993480