**实现思路:**现将当前用户删除(删除用户时会自动删除当前用户下的相关表),创建用户并赋予权限,最后导入DMP文件。
drop user test001 cascade;--删除用户
create user test001 identified by test001;--创建用户
grant connect,dba to test001;--给用户赋权限
imp test001/test001@orcl file=D:\20200506.dmp full=y ignore=y;--导入
**实现思路:**现将当前用户删除(删除用户时会自动删除当前用户下的相关表),创建用户并赋予权限,最后导入DMP文件。
drop user test001 cascade;--删除用户
create user test001 identified by test001;--创建用户
grant connect,dba to test001;--给用户赋权限
imp test001/test001@orcl file=D:\20200506.dmp full=y ignore=y;--导入