1.修改用户密码:
以sys sysdba登录
alter user 用户名 identified by 密码;
declare
type object_list is table of t_test.object_name%type;
objs object_list;
begin
select object_name bulk collect
into objs
from t_test
where rownum <= 100;
for r in objs.first .. objs.last loop
dbms_output.put_line(' objs(r)=' || objs(r));
end loop;
end;
/
2。解锁用户:
以sys sysdba登录
alter user 用户名 account unlock;
3。创建用户:
以sys sysdba登录
create user 用户名 identified by 密码;创建后还没有任何权限
4。删除用户:
以sys sysdba登录
drop user 用户名 cascade