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;