create user username identified by pwd;
--创建用户
grant dba to username;
--给用户赋权,初学可以给dba
alter user username account unlock;
--解锁
grant select any table to username;
--给用户赋予查询所有表的权限(一般不用这一步如果遇到查询权限不足时使用)
create user username identified by pwd;
--创建用户
grant dba to username;
--给用户赋权,初学可以给dba
alter user username account unlock;
--解锁
grant select any table to username;
--给用户赋予查询所有表的权限(一般不用这一步如果遇到查询权限不足时使用)