您的位置:首页 > 博客中心 > 数据库 >

oracle用户权限的问题

时间:2022-03-14 00:00

一、创建用户

create user username identified by password
--username 创建的用户的名称
--password 创建的用户的密码

二、赋权限

grant connect,resource to username
--username 要被赋权限的用户名
--授予权限connect(连接权限)、resource(操作权限)

如果想让用户获得最高权限,使用下面的语句:

grant dba to username
--username 要被赋权限的用户名
--给用户赋最高权限

三、用户解锁

alter user username account unlock
--用户解锁
--username 要解锁的用户

 

热门排行

今日推荐

热门手游