码迷,mamicode.com
首页 > 数据库 > 详细

ORACLE导入导出数据dmp

时间:2016-08-18 12:32:38      阅读:240      评论:0      收藏:0      [点我收藏+]

标签:

imp testwms3/isc@TESTGMMC FILE=C:\ZKGL_201407012334.dmp ignore=y fromuser=GMMCZKGL touser=testwms tables=(GMMCZKGL.t_kdttrcktz)
imp testapar/isc@TESTGMMC FILE=C:\CWYSYF_201511292330.dmp ignore=y fromuser=GMMCCWYSYF touser=testapar tables=(GMMCCWYSYF.t_chnpartspay)
imp GMMCZK/GMMCZK@ORCL FILE=C:\ZKGL_201407012334.dmp ignore=y fromuser=GMMCZKGL touser=GMMCZK tables=(GMMCZKGL.XXXX,GMMCZKGL.XXXX)

exp GMMCCWYSYF/ISCdbpassw0rd@TEST-CWYSYF file=gmmcfm.dmp log=exp.log owner=GMMCCWYSYF
exp GMMCCWYSYF/ISCdbpassw0rd@HONBAN-CWYSYF file=CWYSYF_201307022330.dmp log=exp.log owner=GMMCCWYSYF

create user testwms3 identified by isc default tablespace USR_TBLSP;
grant connect,resource,DBA to testwms3;
alter user testwms3 account unlock;

oracle 导入导出命令
sqlplus GMMCCWYSYF/ISCdbpassw0rd@TEST-CWYSYF
exp GMMCCWYSYF/ISCdbpassw0rd@CWYSYF-HONBON file=gmmccw_BANFAN_20130311.dmp owner=GMMCCWYSYF
imp testapar/isc@testgmmc file=CWYSYF_201307022330.dmp fromuser=GMMCCWYSYF touser=testapar commit=y
expdp testpoi2/isc@POITEST2 file=mytestpoi2dp.dmp owner=testpoi2
impdp testpoi2/isc@hs file=MYTESTPOI2DP.dmp fromuser=testpoi2 touser=testpoi2 commit=y
exp gmmczkgl/ISCdbpassw0rd@ZKGL-HONBAN file=gmmczk_BANFAN_20130618.dmp owner=gmmczkgl
imp gmmczk/GMMCZK@TEST-CWYSYF file=gmmczk_BANFAN_20121126.dmp fromuser=gmmczkgl touser=gmmczk commit=y
sqlplus SYS/GMMCCW@GMMCCW AS SYSDBA

 

●sqlplus登陆
sqlplus sys/isc@testgmmc as sysdba
●创建用户
create user testpoi3 IDENTIFIED by isc
account unlock;
grant dba,advisor to testpoi2;
●删除用户
drop user djcfw cascade;
●数据导出
exp testwms2/isc@test-193 OWNER=testwms2 FILE=D:\temp\testwms2.dmp
exp testapar/isc@hs OWNER=testapar FILE=D:\testwms2.dmp TABLES=DEPT
实例:
nohup exp parfile=XXXX.par &
XXXX.par(命令太长用文件)
exp testwms2/isc@test-193 BUFFER=409600 FILE=D:\temp\testwms2.dmp,D:\temp\testwms3.dmp DIRECT=Y TABLES=**,**,**(导表) filesize=30G(文件大小,单个文件太大影响导入性能) log=D:\temp\111.log
●数据导入
imp testapar/isc@testgmmc FILE=D:\dbbackup\CWYSYF_201501260938.dmp ignore=y fromuser=gmmccwysyf touser=testapar
imp test/isc FILE=D:\工作相关\工作履历\每日工作\20150601周\dbbackup\DDZS_201502052320.dmp DIRECT=Y TABLE=order_info ignore=y fromuser=GMMCDDZS touser=test


即将导出 FM 的对象...
sqlplus "/as sysdba"
conn /as sysdba
确认oracle安装状态:select status from v$instance;(动态表)
关闭:shutdown immedate
开启:startup;
查看数据库名称:show parameter(查看参数) db_name
select USERNAME from dba_users where username=‘SCOTT‘;

ORACLE导入导出数据dmp

标签:

原文地址:http://www.cnblogs.com/husam/p/5783287.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!