(1)查看用户的连接状况
select username,sid,serial# from v$session
如下结果:
username sid serial#
NETBNEW 513 22974
NETBNEW 514 18183
NETBNEW 516 21573
NETBNEW 531 9
WUZHQ 532 4562
(2)找到要删除用户的sid,和serial,并删除
如:你要删除用户’WUZHQ’,可以这样做:
alter system kill session’532,4562’
drop user DMS43DB cascade;
create user DMS43DB
default tablespace USERS
temporary tablespace TEMP
identified by DMS43DB;
grant connect,resource,create view to DMS43DB;
imp userid=system/oracle@alms fromuser=DMS43DB touser=DMS43DB file=20120413.dmp
imp userid=system/oracle fromuser=DMS43DB touser=DMS43DB file=2011-1-14-43db.dmp
exp 用户名/密码@数据库实例 file=”位置” full=y
exp DMSDB/DMSDB@orcl file=”c:\a.dmp” full=y
exp DMS43DB/DMS43DB@orcl file=”c:\nick.dmp” full=y