home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / database / oracle / 1498 < prev    next >
Encoding:
Internet Message Format  |  1992-09-04  |  1.7 KB

  1. Path: sparky!uunet!cs.utexas.edu!rutgers!ub!dsinc!pitt.edu!gvls1!tredysvr!cellar!kml
  2. From: kml@cellar.org (John Galt)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: how to compress database and move indexes to different tablespac
  5. Message-ID: <uDskqB5w164w@cellar.org>
  6. Date: 4 Sep 92 11:57:05 GMT
  7. References: <1992Sep2.100626.1@bbs.mdcbbs.com>
  8. Sender: bbs@cellar.org (The Cellar BBS)
  9. Organization: The Cellar BBS and public access system
  10. Lines: 30
  11.  
  12. suskind@bbs.mdcbbs.com writes:
  13.  
  14. > I am trying to compress my database. While I am at it I am moving stuff
  15. > into various tablespaces to improve performance and layout. My original
  16. > database has only ONE tablespace "system". My new database will have
  17. > "system", "user", "temp", and "index". I can see how to easily move
  18. > a user's tables into the "user" tablespace by only giving him resource
  19. > in that tablespace and altering his user account so "user" is his default
  20. > tablespace. 
  21. > However, how to I move the corrisponding indexes? I have tried using the
  22.  
  23. The way to do this is to use the "indexfile" option of import.  It creates
  24. the scripts for all tables (rem'd out) and indexes in the export file.
  25. Edit the resulting file; it contains a few syntactical errors: remove the
  26. quotes around the tablespace specifiers (and change them to "index" while
  27. you're at it) and replace the "connect" lines with correct commands
  28. (for running in SQL*Plus).  Then import, using Indexes=N, then run the 
  29. indexfile script.
  30.  
  31. A final note - INDEX is a reserved word, may want to call the tablespace
  32. INDEXES.
  33.  
  34. Reply to kml@cellar.org if you need any followup.
  35.  
  36. Kevin.
  37.  
  38.  
  39.        As a matter of fact, no, I don't have a life.
  40.   kml%cellar@tredysvr.tredydev.unisys.com - My other account is a Mercedes.
  41.