Tech

Guides
 

Use multiple dump files for large Oracle exports

By Bob Watkins, Special to ZDNet Asia
Thursday, June 14, 2007 09:55 AM

Even as far back as Oracle 8i, the Export utility could handle large exports by splitting them into multiple output files. Bob Watkins reviews how this is done prior to Oracle 10g.

Oracle's Export utility (exp) is a useful part of an overall backup strategy. It allows you to restore as little as a single table, which is something that's difficult to do with regular datafile-based backups. But as databases and individual tables have grown in size, it's become difficult to create an export file large enough to contain the data.

Many DBAs still don't realize that Export can use multiple output files to store the exported data. If one disk volume doesn't have enough space, or the database exceeds the operating system's size limit for a single file, it's easy to split the export into multiple files.

Ever since Oracle 8i, the FILE parameter has been able to take multiple pathnames separated by commas. The FILESIZE parameter lets you indicate how much data to put into a file before switching to the next one. If Export runs out of names in the FILE list, it will begin prompting for additional ones.

For example, let's say that a full database export will require 6 GB of space, and the size limit for your operating system is 2 GB. You want to put the data on the /exp filesystem in the prod directory. The parameter file would include the following:

FILE=/exp/prod/exp01.dmp,/exp/prod/exp02.dmp,/exp/prod/exp03.dmp
FILESIZE=2G

In Oracle 10g, the new Data Pump export (expdp) works in a similar way but with some changes. Pathnames are not hard-coded as in earlier versions; instead, Directory objects are used to point to operating system directories. The FILE parameter is replaced by DUMPFILE, and for convenience, you can specify a wildcard to autogenerate names instead of listing them all.

In Oracle 10g, if you had created a Directory object named EXPDIR to point to /exp/prod, the above parameters would look like this:

DUMPFILE=expdir:exp%U.dmp
FILESIZE=2G

Filenames of exp01.dmp, exp02.dmp, and exp03.dmp would be generated during the Export.

Bob Watkins (OCP, MCITP, MCDBA, MCT) is a computer professional with 25 years of experience as a technical trainer, consultant, and database administrator. He is a Senior Consultant and Managing Partner at B. Watkins, a database consulting and training firm in the Dallas / Fort Worth area. Visit Bob's site.



WORTHWHILE?

0

0 votes
Blog

Talkback 0 comments

There are currently no comments for this post.

Guest user

Guest user

Level: 
Joined: —
Already a member? Log in »



 

Loading...

  • HPC Applications

    Ever wondered if High Performing Computing systems really matter in our day-to-day world? HPC is not just reserved for the some obscure high-end scientific studies.

    David Scott from Intel Corporation gives you a quick tour to the process of developing HPC applications and the interesting world of HPC Applications in today's industries, including the lucrative oil industry.
    Play video


  • Maximize IT Spend: Business Acceleration

    How do you ensure your IT solutions are well integrated and streamlined across your enterprise? Rajendhiran Sanggaran from Oracle explains the processes and important considerations required to enable IT to fuel your business to the next level of growth.
    Play video

Whitepapers / Case Studies

Downloads

Database News


Tech Jobs Now!

Tags

  1. access
  2. active
  3. analysis
  4. availability
  5. data
  6. directory
  7. do
  8. double-take
  9. excel
  10. field
  11. high
  12. java
  13. management
  14. microsoft
  15. page
  16. ports
  17. project
  18. secure
  19. server
  20. service
  21. services
  22. should
  23. simply
  24. sql
  25. time
  26. tips
  27. use
  28. using
  29. windows
  30. word