home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / database / oracle / 1520 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  5.6 KB

  1. Path: sparky!uunet!munnari.oz.au!mel.dit.csiro.au!yarra!cmutual.com.au!aaj
  2. From: aaj@cmutual.com.au (Tony Jambu)
  3. Newsgroups: comp.databases.oracle
  4. Subject: Re: how to compress database and move indexes to different tablespace
  5. Message-ID: <1992Sep8.023145.3884@cmutual.com.au>
  6. Date: 8 Sep 92 02:31:45 GMT
  7. Organization: Colonial Mutual Life Australia
  8. Lines: 112
  9.  
  10. Path: cmutual.com.au!aaj
  11. Newsgroups: comp.databases.oracle
  12. Distribution: world
  13. Followup-To: 
  14. References: <1992Sep2.100626.1@bbs.mdcbbs.com>
  15. <1992Sep4.090637.346@hhcs.gov.au>
  16. From: aaj@cmutual.com.au (Tony Jambu)
  17. Organization: Colonial Mutual Life Australia 
  18. Subject: how to compress database and move indexes to different t
  19.  
  20. In article <1992Sep4.090637.346@hhcs.gov.au>, pihlab@hhcs.gov.au
  21. writes:
  22. > > However, how to I move the corrisponding indexes? I have tried using the
  23. > > "show" option of IMP to generate a file, but this file is in such a poor
  24. > > format I cannot use it without EXTENSIVE editing. Does anybody have a
  25. > > utility that will take the file generated by the "show" option and make it
  26. > > usable? The format I get is ONLY 80 column records and EVERY line is
  27. > > enclosed in double quotes.
  28. > I don't have any formatter for you.
  29. > There is an INDEXES=file (can't remember the exact name) parameter for IMPORT
  30. > which pulls out the TABLE and INDEX definitions to a flat file automatically.
  31. > It is mentioned in the V5 to V6 upgrade documentation because you had to
  32. check
  33. > that INDEX names were unique across all objects for each user.  If you can
  34. get
  35. > that working then you need only add the TABLESPACE component.
  36. > You but you might consider creating a script of CREATE INDEX statements
  37. > directly from the INDEX definitions in the database.
  38.  
  39.  
  40. The exact syntax is
  41.     imp user/password INDEXFILE=FILE file=...
  42.  
  43. Problem with this approach is that it does not include a number of objects.
  44. For example views.
  45.  
  46. Now, I have this utility that was written by a colllegue and is called 'impl2sql'.
  47. It is very useful as it formats the output from imp's SHOW in a very useable
  48. format.  To use it, 
  49.  
  50. 1. Cut starting from the 'begin' line to the 'end' line into a file, FILE
  51. 2. Decode it useing 'uudecode FILE'
  52. 3. uncompress impl2sql.Z
  53.  
  54. To use it have a read of the description in the head of the file.
  55.  
  56.  
  57. --------------------------------- ATTACHMENT ---------------------------------
  58. begin 777 impl2sql.Z
  59. M'YV0(T*\$)/&S8LY:!2,4 C"29 F11@F2-,&#AL9<^*P =$"!! 4(U(,>>/&
  60. M3ADY=.: >"(GS!@V94!0A/,&)0@4;MZ D//FSIP4(-BDF4,'!!V=4Z(P 3%G
  61. MC)PT<.@PG)+%R1,H4Y),80BBJU>$.F16!/%B9\\Y/=R ,),&9H\R>."0"4/'
  62. M!9FQ"'OVR -"A@\3,4#P$6L1HT80/@@+)>HB(QNN7KN. 4N8:1ZB9=J\:!/&
  63. M39@S)\WZ3,L4C5Z^;-W"E4O7[E@^)D H3#"QXD7'B!4/K>N8(9$B4X9(20*%
  64. M2I(G3B!'-I)&#E$0;\R ",.�L03LO0C1DFZ)LS:]O&-,.SC5$T,=_4H0-G
  65. M/73I+%W"E&C#!0P7,V 0KEET?=LT=.3A0E=5S!$3'6C0-9U*",8TDWMFU'3>
  66. M4$PY!954(X"0P!UHI#$&&B#<T=9&=SQ%!W=,U0%@&&+ !$)23*@ !1MUJ-34
  67. M4U$9I1-19*A7ET(24=&A2OX)%:!,*L$1!DH>UL'&DFSP56,99C@9(GIJ-0C"
  68. M:OR%YZ(<5)XTAT1'@2!"A&"F<88;(AC%(DQS*#E&&2IU1@8(G/&5H$D@U'%&
  69. ME"# @<9E'E+'U%$M@2:1DBVU4<:)SIVG8)X@B''@&SH1!!Z:(.2AGAR68=;&
  70. M@"!0H1-H16DY%QUA2%10F=W-P5EUH<UQV8EM7,>6<T7)48=:\;WD8$5=%@D@
  71. M7R(B2"9Z9O(TFEIYW;%7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>[LA&,ZQ"FP<@HD
  104. M:V6+XSO$(+"R>#L^V,%(EK(^CN\+!.MC)[SWS/Q5BYE>,-\0QURQSO6Q?3\>
  105. M7<2N_.4G<'FL8[Y?F@/=L#<W<,W=NO-W]_RO++>LT&W.!9F+P.A#KSK.EUY?
  106. MA3?X.E>G^-4][O0S9_P%&U< R2\.7Z"   IS- (@BX#VKD@6[E20>Q'H3O9>
  107. MOX@*2PU"(@\NWBD _K^)%._!^^YGH%"!TC>>@KHS7'?)/A[=DE\WW[U^6A2\
  108. )U@4%]KRS!ZL 
  109.  
  110. end
  111.  
  112.  
  113. -- 
  114. -----------------------------------------------------------------------------
  115.  _____       ________ / ____ |Tony Jambu, Database Administrator
  116.   /_  __       /_ __ /       |Colonial Mutual Life Australia. (ACN 004021809)
  117.  /(_)/ ((_/ \_/(///(/_)/_(   |EMAIL:  TJambu@cmutual.com.au
  118.