1.cmd对话框下,登录管理方法员客户:sqlplus sys/1 as sysdba
2.建立新客户并且为客户受权:
(1)建立客户
---Create the user
create user Helq3_Pro
identified by "1"
default tablespace MOF
temporary tablespace TEMP
profile DEFAULT;
(2)为客户受权
SQL> grant dba to helq3_cpbgt_ with admin option;
SQL> grant unlimited tablespace to helq3_cpbgt_ with admin option;
SQL> grant imp_full_database to helq3_cpbgt_;
3.数据信息导进
(1)imp导进:
imp userid=helq3_cpbgt_/=E:cpcz.dmp full=yignore=y
(2)数据信息泵导进impdp
最先,建立,并且为客户受权此篇件夹
数据信息泵导进:
impdp helq3_cpbgt_/1 dumpfile=cpcz.dmp directory=expdp_dir
remap_schema=helq3_cpbgt_(导出来时的客户名):helq3_cpbgt_
4.数据信息导出来
(1)exp导出来:
exp helq3_cpbgt_/=E:cpcz.dmp log=cpcz.log
导出来带空表的数据信息库->先做查寻,再一切正常导出来:
select 'alter table '||table_name||' allocate extent;' from user_tables where
num_rows=0;
(2)expdp 数据信息泵导出来:
expdp helq3_cpbgt_/
dumpfile=cpcz.dmp directory=expdp_dir logfile=cpcz.log