如何将oracle表的内容导出到文件? [英] How can I export contents of an oracle table to a file?

查看:150
本文介绍了如何将oracle表的内容导出到文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

准备好清理一些不再使用的旧表,但是我希望能够在将数据从数据库中删除之前存档内容。

Getting ready to clean up some old tables which are no longer in use, but I would like to be able to archive the contents before removing them from the database.

是否可以将表的内容导出到文件?理想情况下,每个表中有一个文件。

Is it possible to export the contents of a table to a file? Ideally, one file per table.

推荐答案

您可以使用Oracle的导出工具: exp

You can use Oracle's export tool: exp

编辑:

exp name/pwd@dbname file=filename.dmp tables=tablename rows=y indexes=n triggers=n grants=n

这篇关于如何将oracle表的内容导出到文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆