Oracle新建用户&用户解锁

Oracle用户管理指南
本文详细介绍如何在Oracle数据库中创建用户并授予多种权限,包括创建会话、表空间管理等,并展示了如何查看用户状态、解锁及修改用户密码的方法。

DBA用户登录ORACLE:

创建用户并授权:

create user wz_test identified by bangsun;

grant create session to wz_test;

grant unlimited tablespace to wz_test;

grant create tablespace to wz_test;

grant alter tablespace to wz_test;

grant drop tablespace to wz_test;

grant manage tablespace to wz_test;

grant create table to wz_test;

grant create view to wz_test; 

grant create trigger to wz_test;

grant create procedure to wz_test;

grant create sequence to wz_test;

grant create rollback segment to wz_test;

grant alter rollback segment to wz_test;

grant drop rollback segment to wz_test;

grant create synonym to wz_test;

grant create public synonym to wz_test;

grant drop public synonym to wz_test;

grant create user to wz_test;

grant alter user to wz_test;

grant become user to wz_test;

grant drop user to wz_test;

grant create role to wz_test;

grant create profile to wz_test;

grant alter profile to wz_test;

grant drop profile to wz_test;

grant select any dictionary to wz_test;


察看用户状态(是否被锁)

select * from dba_users where username='wz_test'

解锁

ALTER USER wz_test ACCOUNT UNLOCK;

修改用户密码

alter user wz_test identified by newpass;



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值