(1)用具有dba权限的账户登录,查询用户的进程,然后kill.
select sid,serial# from v$session where username='ENVISIONV5';
alter system kill session 'sid,serial#';
(2)删除用户及用户下的所有表
drop user envisionV5 cascade;
查询是否已被删除:
select * from dba_users where username = 'envisionV5';
--no rows selected
(3)创建用户并赋予管理员权限:
create user envisionV5 identified by envisionV5;
grant dba to envisionV5;
(4)导入空库:
imp userid=envisionV5/envisionV5@orcl full=y file=D:\OAV5\blank14646to14949.dmp ignore=y ;