一、AIX环境下导出oracle 10g数据库
$expdp \"\/ as sysdba\" schemas=HPRTT0824 directory=easback dumpfile=easexpdp20120824PM.dmp logfile=easexpdp20120824PM.log
二、在该windows机器上(需安装oracle数据库)还原数据库
1、将easexpdp20120824PM.dmp文件通过ftp下载至要还原的windows机器上。
2、数据库的恢复:
a)在sqlplus执行创建数据文件空间、临时空间:
create tablespace "EAS_D_HPRTT0824_STANDARD" datafile 'D:\oradata\EAS_D_HPRTT0824_STANDARD.ORA' size 2000M autoextend on;
create temporary tablespace "EAS_T_HPRTT0824_STANDARD" tempfile 'D:\oradata\EAS__HPRTT0824_STANDARD.DBF' size 500M autoextend on;
b)在sqlplus执行创建用户、分配权限:
create user HPRTT0824 identified by kingdee default tablespace EAS_D_HPRTT0824_STANDARD temporary tablespace EAS_T_HPRTT0824_STANDARD;
grant create session,create table,create procedure,create sequence,create trigger,create view,SELECT ANY DICTIONARY,CREATE MATERIALIZED VIEW,alter profile to HPRTT0824;
c)在dos命令下执行导入备份出来的数据库文件:
impdp 'sys/password@orcl as sysdba' directory=oraback dumpfile=easexpdp20120824PM.dmp logfile=easexpdp20120824PM.log exclude=statistics