以下命令,详细用法可在“运行”中输入cmd进入命令窗口键入 :
1、导出命令
导出整个库:exp 用户名/口令@数据库名 导出的文件存储路径,
例如:exp username/password@SID file=D:\test.dmp
导出库中的表:exp 用户名/口令@数据库名 导出的文件存储路径 tables=(table1,table2)
例如:exp username/password@SID file=D:\test.dmp tables=(table1,table2)
2、导入命令
导入整个库:imp usename/password@SID full=y file= D:\test.dmp ignore=y
usename/password是用户名和密码
D:\test.dmp 要导入的文件
full=y是导入整个文件
ignore=y是忽略创建错误
D:\test.dmp 要导入的文件
full=y是导入整个文件
ignore=y是忽略创建错误
导入某几张表:imp usename/password@SID full=y file= D:\test.dmp tables=(table1,table2)
usename/password是用户名和密码
D:\test.dmp 要导入的文件
full=y是导入整个文件
ignore=y是忽略创建错误
D:\test.dmp 要导入的文件
full=y是导入整个文件
ignore=y是忽略创建错误