`

导出、导入数据库一个表

阅读更多
----  导出、导入数据库一个表
exp gds/gds@GDS_192.168.1.10 tables=(usersynclog_tab) file=c:\gds_user20110110.dmp log=c:\gds_user20110110.log
imp gds1/gds1@GDS_192.168.1.10 tables=(usersynclog_tab) file=c:\gds_user20110110.dmp log=c:\user_tab.log fromuser=gds touser=gds1
imp gds2/gds2@GDS_192.168.1.10 tables=(usersynclog_tab) file=c:\gds_user20110110.dmp log=c:\user_tab.log fromuser=gds touser=gds2


----  导出、导入数据库多个表(1)
exp gds/gds@GDS_192.168.1.10 tables=(usersynclog_tab,table1,table2,table2) file=c:\gds_user20110110.dmp log=c:\gds_user20110110.log
imp gds1/gds1@GDS_192.168.1.10 tables=(usersynclog_tab,table1,table2,table2) file=c:\gds_user20110110.dmp log=c:\user_tab.log fromuser=gds touser=gds1


----  导出、导入数据库多个表(2)
exp gds/gds@GDS_192.168.1.10   file=c:\gds_user20110110.dmp log=c:\gds_user20110110.log
imp gds1/gds1@GDS_192.168.1.10  file=c:\gds_user20110110.dmp log=c:\user_tab.log fromuser=gds touser=gds1


exp :导出
imp :导入
gds/gds@GDS_192.168.1.10 :用户密码和ip地址
tables=(usersynclog_tab,table1,table2,table2):要操作的表
file=c:\gds_user20110110.dmp log=c:\gds_user20110110.log:日志
fromuser=gds touser=gds1 :从哪个用户到那个用户
分享到:
评论
1 楼 javawjy 2011-12-30  
    

相关推荐

Global site tag (gtag.js) - Google Analytics