home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / database / oracle / 1105 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  2.4 KB

  1. Path: sparky!uunet!usc!wupost!darwin.sura.net!seismo!jean
  2. From: jean@seismo.CSS.GOV (Jean Anderson)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: Oracle Backup
  5. Message-ID: <50983@seismo.CSS.GOV>
  6. Date: 22 Jul 92 20:51:35 GMT
  7. Sender: usenet@seismo.CSS.GOV
  8. Organization: SAIC Open Systems Division, San Diego CA
  9. Lines: 41
  10. Nntp-Posting-Host: beno.css.gov
  11.  
  12. In <45406@shamash.cdc.com>, ldh@svl.cdc.com (Lawrence D. Hare) writes:
  13. > 1) How do you back up Oracle databases today?
  14.  
  15. Many of my sites do nightly full database exports out of cron.  We accept 
  16. a 24 hour "worst case" data loss. This is not as bad as it might seem.
  17. If "the worst" happens (which it has), we rebuild from the previous night's 
  18. export and re-process, catching up to real-time in a matter of hours.
  19.  
  20. Back in April, I posted the instructions somebody sent me on compressing UNIX 
  21. exports.  I have been running them since May and it has been great, reliable,
  22. reducing the amount of disk we previously had to allocate for exports. I have
  23. even had the misfortune of needing to restore from a compressed backup and
  24. it worked.
  25.  
  26. Here are the instructions again.  The credit goes to somebody who wishes to 
  27. remain anonymous because of the employer's restrictions on posting.
  28.  
  29.     I have found that the best way to do this is using Unix's named-pipes
  30.     feature.  Simply:
  31.  
  32.     % mknod /tmp/compresspipe p
  33.     % compress -c </tmp/compresspipe>/backup/oraexp/exp1MAY92.dmp &
  34.     % exp system/manager full=y ..... file=/tmp/compresspipe
  35.  
  36.     Voila!  After the compress receives an EOF (sent by exp), it
  37.     terminates, leaving a nice compressed file.  This saves using various
  38.     undocumented features (as file=stdout must be?!)
  39.  
  40.     To import, do the same thing:
  41.  
  42.     % uncompress -c </backup/oraexp/exp1MAY92.dmp >/tmp/compresspipe &
  43.     % imp system/manager .... file=/tmp/compresspipe
  44.     
  45. +-----------------------------------------------------------------------+
  46. | Jean Anderson, DBA                       email:  jean@seismo.css.gov  |
  47. | SAIC Open Systems Division, MS A2-F         or:  jean@esosun.css.gov  |
  48. | 10210 Campus Point Drive                 phone:  (619)458-2727        |
  49. | San Diego, CA  92121                       fax:  (619)458-4993        |
  50. +-----------------------------------------------------------------------+
  51. |                     std_disclaimer("mine");                           |
  52. +-----------------------------------------------------------------------+
  53.