|
先登录到应用服务器关闭tomcat
然后关闭 要删除的用户的所有连接
select a.sid, a.serial#,‘‘‘‘ ||a.sid|| ‘,‘||a.serial#|| ‘‘‘‘ from v$session a
where a.USERNAME= ‘HECUAT‘ ;
alter system kill session ‘419,34697‘ ;
|
重置用户
drop user hecprd cascade;
create user HECPRD identified by hecprd default tablespace HECPRD temporary tablespace TEMP;
grant dba to HECPRD;
grant connect to HECPRD;
grant create any materialized view to HECPRD;
grant create any synonym to HECPRD;
grant create any table to HECPRD;
grant create any view to HECPRD;
grant select any dictionary to HECPRD;
grant read ,write on directory DATA_PUMP_DIR to HECPRD;
|
导入数据
把导出的文件上传或者移动到 目标数据库服务器 DATA_PUMP_DIR 目录下
chown oracle:oracle 源数据库导出文件
chmod 777 源数据库导出文件 cp 文件 目录
| impdp hecprd/hecprd remap_schema=hecuat:hecprd remap_tablespace=hecuat:hecprd directory =DATA_PUMP_DIR dumpfile=20161002_uat.dmp logfile =20161002_uat.log transform=oid:n |
|