Oracle 数据导入导出(imp/exp)

环境:windows下,oracle11g

 

1.启动oracle服务

net start OracleDBConsoleorcl
net start OracleOraDb11g_home1TNSListener
net start OracleServiceORCL

 

2.导出数据

exp  testuser/123456@pro24 tables=(testuser.table1,testuser.table2) file=D:\zhengshi151118.dmp
导出源数据库指定帐号下的指定表

 

*注1:如果密码中含有特殊字符,则需要使用 一对"""来进行转义,例如 testuser/"""1@2345"""@pro24

*注2:@pro24是实例名,需要先在tnsnames.ora中进行配置

我本机的目录是 D:\app\Administrator\product\11.2.0\dbhome_1\NETWORK\ADMIN

 

3.导入数据

这里需要看目标数据库是否有对应的表

 

*****留坑,以后再写****

 

 

posted @ 2016-03-11 14:57  已注销1  阅读(180)  评论(0编辑  收藏  举报