oracle中的imp/exp命令只能在CMD中执行,下面是列举俩个例子:
导出数据库:Exp 数据库用户名/密码@数据库实例 file= d:\daochu.dmp(导出文件的地址和名称) [tables=(emp,dept)](导出的表,导出全部,就不用添加了)
exep test/orcl@orclpc file=e:\test.dmp
导入数据库,首先要新建表空间和用户,然后把数据库导入到新建的表空间和用户下。
导入数据库:imp new_user/orcl@orclpc file=e:\test.dmp fromuser=test touser=new_user [tables=(dept)]