创建用户:
create user wang identified by password default tablespace test1_tablespace temporary tablespace temptest1_tablespace;
查看创建的用户:
select username from dba_users;
给创建的用户授权:
grant connect to wang;
连接用户:
connect wang/password;
更改密码:
alter user wang identified by newpassword;
不希望某用户登录,而又不删除其用户,可以将用户锁定:
alter user wang account lock;
删除用户:(加上cascade将用户连同创建的东西全部删除)
drop user wang cascade;
