home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / database / sybase / 594 < prev    next >
Encoding:
Internet Message Format  |  1993-01-05  |  1.9 KB

  1. Path: sparky!uunet!munnari.oz.au!spool.mu.edu!agate!ucbvax!mtxinu!sybase!houdini!jeffl
  2. From: jeffl@houdini.sybase.com (Jeff Lichtman)
  3. Newsgroups: comp.databases.sybase
  4. Subject: Re: Recovering from a log segment full condition
  5. Message-ID: <27585@sybase.sybase.com>
  6. Date: 4 Jan 93 20:20:12 GMT
  7. References: <1992Dec16.205611.19776@spectrum.xerox.com> <dave.724703604@rincon> <WFINNERT.92Dec21194611@larry.shearson.com>
  8. Sender: news@Sybase.COM
  9. Organization: Committee to Increase The Entropy
  10. Lines: 25
  11.  
  12. In article <WFINNERT.92Dec21194611@larry.shearson.com>, wfinnert@larry.shearson.com (Warren Finnerty) writes:
  13. > Do any of you SYBASE types want to confess to what futz'ing around in model 
  14. > goes on in conjunction with createing objects in tempdb. ( Not at startup )
  15. > --
  16. > warren finnerty      | 388 Greenwich St.
  17.  
  18. Usually, when you create an object, that object's ID is logged in the database
  19. that the object is created in.  The server reads these object ids during
  20. recovery and remembers the last one used, so that we don't re-use an object id.
  21.  
  22. This doesn't work for tempdb, because that database is re-created every time
  23. the server boots.  We used to do the logging of object ids for tempdb in the
  24. model database, instead, which worked because tempdb is created from model.
  25. This created a bottleneck, however - when one user created a database, it would
  26. lock model and prevent other users from creating temporary tables.  We changed
  27. the server so that it doesn't log object ids for tempdb at all - instead, it
  28. relies on the creation time of tempdb (which is the boot time of the server)
  29. to distinguish when an object id is in danger of re-use, so that it can
  30. recompile stored procedures when an object id in tempdb has been re-used.
  31.  
  32. This change was implemented a long time ago.  No current version of the
  33. SQL Server should log object ids from tempdb in model.
  34. ---
  35. Jeff Lichtman at Sybase
  36. {mtxinu,pacbell}!sybase!jeffl  -or- jeffl@sybase.com
  37.