home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / oracle / 2145 < prev    next >
Encoding:
Text File  |  1992-11-08  |  2.3 KB  |  64 lines

  1. Newsgroups: comp.databases.oracle
  2. Path: sparky!uunet!rde!andy
  3. From: andy@homebase.vistachrome.com (Andy Finkenstadt)
  4. Subject: Re: View questions...
  5. Message-ID: <1992Nov6.173251.22102@homebase.vistachrome.com>
  6. Reply-To: andy@homebase.vistachrome.com
  7. Organization: Vista-Chrome Incorporated
  8. References: <UN.92Nov5120254@gdstech.GRUMMAN.COM>
  9. Date: Fri, 6 Nov 1992 17:32:51 GMT
  10. Lines: 52
  11.  
  12. Views do not occupy database blocks and therefore do not occupy
  13. extents or segments.  The resulting R-table (SELECTed rows and
  14. internal queries) can occupy TEMPorary space in the database.
  15.  
  16. Temporary tablespace is allocated on a USER level, not a VIEW level.
  17. You can change a user's temporary tablespace as thus:
  18.  
  19.    SQL> ALTER USER andy 
  20.      2> TEMPORARY TABLESPACE temp
  21.      3> DEFAULT TABLESPACE largeone
  22.      4> /
  23.  
  24.    User altered.
  25.    
  26.    SQL>
  27.  
  28. I do not recall if the user has to initiate a new connection for the
  29. new settings to take place.  I am inclined to GUESS yes.  So, just
  30. have them log out and back in.
  31.  
  32. If you know that you will be executing a LONG running query that
  33. requires a good deal of ROLLBACK space in addition to TEMP space
  34. (I don't remember the conditions under which temp doesn't use up
  35. rollback entries), you can have a LARGE rollback segment in a
  36. ROLL tablespace (hint hint) and then use this in version of Oracle
  37. beyond 6.0.33 (pretty sure that's 33)
  38.  
  39.    SQL> commit;  /* end transaction which may have been in process */
  40.    SQL> SET TRANSACTION USE ROLLBACK SEGMENT LARGE_RBS;
  41.    SQL> select * from large_view ;
  42.    SQL> commit;  /* release rollback */
  43.  
  44. Hope that helps.
  45.  
  46. -Andy
  47.  
  48. un@gdstech.GRUMMAN.COM (Un Fu) writes:
  49. >How can I get the block usage of a view I created?  Looked
  50. >into "user_extents" and it only displays block usages of tables.
  51. >
  52. >Also how do I direct the creation of a view or several views to use
  53. >a temporary, TEMP_TS, tablespace.  I see one can specify which
  54. >tablespace to create a table at, but not on the 'CREATE VIEW' command.
  55. >
  56. >I have been asking lots of question lately and this newsgroup has been
  57. >tremendously responsive.  THANK YOU ALL, FOLKS!
  58.  
  59. -- 
  60. Andrew Finkenstadt, Vista-Chrome, Inc., Homes & Land Publishing Corporation
  61. GEnie Unix RoundTable Manager, andy@vistachrome.com, andy@genie.geis.com.
  62.   Send mail to ora-request@vistachrome.com to join Unix, CASE, and 
  63.   Desktop Oracle RDBMS Database discussions.
  64.