|
- select * from dba_directories;
- select * from dba_tab_privs tp where tp.grantee='HR';
- select * from dba_datapump_jobs;
- select * from full_job;
- select username from dba_users;
- select * from dba_objects o where o.owner='HR';
- grant resource , connect to hr;
- grant all on directory dir1 to hr;
- select * from dba_source where name='SECURE_EMPLOYEES';
复制代码- expdp hr/oracle_4U directory=dir1 dumpfile=t_bank_invoice.dmp tables=T_BANK_INVOICE
- impdp hr/oracle_4U directory=mydir dumpfile=t_bank_invoice.dmp
- expdp \'sys/oracle_4U as sysdba\' attach=full_job
- impdp \'sys/oracle_4U as sysdba\' directory=dir1 dumpfile=full.img schemas=hr
- expdp hr/oracle_4U directory=dir1 dumpfile=my.dmp schemas=hr job_name=my_job exclude=table:"in \(\'T_BANK_INVOICE\'\)", procedure:" in \(\'SECURE_DML\'\)" "query='employees:where department_id=90'"
- SQL> conn / as sysdba
- Connected.
- SQL> create user hr identified by oracle_4U ;
- User created.
- SQL> grant connect , resource to hr;
- Grant succeeded.
- impdp \'sys/oracle_4U as sysdba\' directory=dir1 dumpfile=full.img schemas=hr
- expdp \'sys/oracle_4U as sysdba\' directory=dir1 dumpfile=tablespace.dmp tablespaces=tbs05217
- impdp \'sys/oracle_4U as sysdba\' directory=mydir dumpfile=tablespace.dmp remap_tablespace=TBS05217:USERS
复制代码
my2.par:
- directory=dir1
- dumpfile=my2.dmp
- schemas=hr
- job_name=my2_job
- exclude=table:"in ('T_BANK_INVOICE')", procedure:"in ('SECURE_DML')"
- query='employees:where department_id=90'
- flashback_time='2014-10-14:20:34:12'
复制代码
|
|