Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I export contents of an oracle table to a file?

Tags:

export

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.

like image 356
chris Avatar asked Jan 26 '12 16:01

chris


1 Answers

You can use Oracle's export tool: exp

Edit:

exp name/pwd@dbname file=filename.dmp tables=tablename rows=y indexes=n triggers=n grants=n
like image 64
vc 74 Avatar answered Nov 01 '22 11:11

vc 74