导出:
eg:exp xxx/xxxx@xx.xx.xxx.xxx:1521/nwom file=xxx.dump tables=xxx
exp oracle用户名/密码@数据库的地址/服务名 file=需要导入的文件路径 tables = table名
导入:
eg:imp xxx/xxxx@xx.xx.xxx.xxx:1521/nwom file=xxx.dump indexes=y IGNORE=Y tables=xxx &
imp oracle用户名/密码@数据库的地址/服务名 file=需要导入的文件路径 indexes=y IGNORE=Y tables = table名 &
必须指定 FULL=Y 或提供 FROMUSER/TOUSER 或 TABLES 参数,也就是说tale如果是所有表的话,则在原来写tables= 的位置写 FULL=Y。
“file = ” 在当前目录下执行不需要加路径,否则需要加上。