一、IMP命令:
若果是本地没有IMP命令,可以参照这个
安装本地客户端,里面包含了IMP命令;
二、导入:
//dmp里面对应用户的所有表 导入库对应的用户
imp user/pwd@ip:port/DBName file='文件位置/文件名' tables='*','*';
//把几张表导入库
imp 用户名/密码@数据库连接串 fromuser=sxdl touser=sxdl file=文件路径 ignore=y
三、导出:
exp user/pwd@ip:port/DBName file='文件路径' tables='*','*'
注:
[* 代表表名]