Database Management for Smalltalk

Archive for December, 2007

Thu 20th Dec 2007   09:12 PM
posted by John Clapperton

Q:  “I’m not using transaction logging, why do I need to designate a Transaction Log Space?”

A:  One virtual space in each disjoint set of virtual spaces used in an application must be designated as the location for the Transaction Log (flagged as ‘TL’ in the Control Panel), even if transaction logging is disabled, since transactions may include objects in any of that disjoint set which are connected to the image in which the transaction exists, and the TL space co-ordinates these.  If transaction logging is disabled then any space may be designated as the TL space, even if it contains application domain objects.  However if logging is enabled the TL space may contain only the Transaction Log; VOSS enforces this and any transaction which attempts to commit objects into the TL space will be forced to rollback if logging is enabled.

For full data integrity in the event of random power failures etc, logging should be enabled and a separate virtual space created and designated at TL space, preferably located on a different disk drive.

Logging is enabled like this:

  VOManagers logging: true.

VOManagers is a global variable holding the sole instance of VOManagerManager.

All virtual spaces connected to an image share the same TransactionLog since a transaction may include objects in any connected virtual space.

Thu 20th Dec 2007   08:12 PM
posted by John Clapperton

Q:  “I would like the development image to behave the same as the runtime, that is, non-interactive mode.  How do I do this?”

A:  Like this:

  VOSS interactive: false.

Thu 20th Dec 2007   03:12 PM
posted by John Clapperton

Q:  “I’m confused about image ids, names and logon/logoff.”

A:  The name of an image is documentary only, and is set by VOSSServer>>imageName:.

The (default) ImageID is a random 6-digit integer assigned automatically (during VOSSRoot class>>initializeVOSS), identifies the image in system log messages written to <myspace>.log, and also may be used to control the number of concurrent images logged on to any virtual space.

Neither the ImageID nor ImageName are prompted for interactively on initialization of the runtime version of VOSS, only in the development version.  The ImageName may be set at any time by

  LocalVOSSServer imageName: aString.
or
  LocalVOSSServer renameImage. “via a dialog box”

 The name of a virtual space is its file pathname.

  VOManager newForExistingSpace: ‘D:\vospaces\myspace’.

creates a new instance of VOManager which connects the image to the files and assumes that they exist; i.e. it will fail if they don’t all exist.

  VOManager newWithFullPathName: ‘D:\vospaces\myspace’.

assumes they don’t exist and will fail if any of them does exist.
Connect/Disconnect means a VOManager which knows the file pathname is created/removed.

Log-on/Log-off means the VOManager opens/closes the files and registers its log-on/log-off in the virtual space by a system transaction, so there is a persistent log of which images logged-on/off and when.

Thu 20th Dec 2007   03:12 PM
posted by John Clapperton

Q:  “As each image has an id, how does that work from a runtime image which might be installed on multiple PCs?  Any special requirements for generating runtime?”

A:  In a runtime image, the global variable ImageID is a random 6-digit number allocated when VOSS is initialized by the statement:

  VOSSRoot initializeVOSS.

It’s used to control the number of concurrent images logged on to any virtual space, which is relevant only when VOSS is used in client/fileserver configuration, i.e. VOSS installed on the client machines, all connected to the same virtual space files.  When VOSS is configured as a server, serving each remote client by a separate background process in the same image, imageID is relevant only in multi-processor servers, where each server cpu is running a separate image.  There is a small chance that two images could be allocated the same ImageID, if this happens then the second to log-on will be told it is already logged-on.  Re-initializing VOSS in that image will allocate another ImageID.

This can also happen after a crash where an attempt to log-on, although finding the virtual space in good condition, finds that the image is still recorded as logged-on, in this case it is automatically logged-off and the user is asked to log-on again; no re-initialization is necessary.

 
cialis cod buy fioricet with codeine buy mulberry grey hobo adipex non prescription phentermine effectiveness medicin depression buy christian louboutin black petal crepe sandals tramax tramadol ultram drug test dice games instructions phentermine in florida buy proscar no prescription gambling resource pain medication ultram drug zolpidem buy soma where phentermine without rx fendi black leather peekaboo bag accutane and results no rx pharmacy viagra cheap prescription cialis in stock poker ambien symptoms cheap prescription drug women's health online weight loss program clomid pill salvatore ferragamo pink varina ballet shoes prescription drugs generic medicines brand product gucci black monogram handbag levitra professional international mail order buying viagra online in britain revatio cost pharmacy mexico fat burning pills that really work house of bingo download mexico pain meds uk casino online weight loss pill helps digestion casino game online play online poker software klonopin half life christian louboutin black sequins helmut pumps canada cialis online non prescription relief for severe pain cialis prescription burberry black check low top trainers caribbean stud poker clonazepam recreational mecca bingo online gambling bonuses mylan xanax christian louboutin globe 100 suede boots blackjack game funny casino chip how does cialis work cheap phentermine no prescription needed soma overdose weight loss home remedies video online slots lexapro paxil gucci brown boots phentermine 37.5 overnight delivery generic tadalafil casino 770 gel viagra blackjack sites craps strategy augmentin cheap cheap phentermine and adipex without perscription chanel patent pink ballerina flats american casino jimmy choo red perforated ornament lohla bag buy prescription drugs with no prescription lancel golden wrinkle premier flirt discount sildenafil where to play bingo hoyle casino cheap generic viagra online hydroxyzine hcl 25 lasix diuretics effects carisoprodol natural appetite suppressants viagra online best price online casino register valium on line casino slots online weight loss supplement diet pill lancel black wrinkle premier flirt cartier black shoulder bag valium cheap professional blackjack buy cialis delived next day cialis free sample canada find tadalafil generic soma tory burch deep blue tory logo rain boots cialis vs cialis professional buy a weight loss program bingo gambling drugs on line gambling online sites christian louboutin black sequins very prive pumps herbal weight loss buy zolpidem canadian prescription drugs saints and sinners bingo carisoprodol no prescription no deposit casino bonus code pheromones for sale gala bingo online no prescription needed online pharmacies cialis day next jimmy choo beige perforated ornament lohla bag buying medications online without a prescription back pain pills prada grey stitched wallet canada cialis generic cymbalta vs effexor fendi light coffee monogram handbag appetite suppressant buy high stakes poker discount plavix ultram online prescription cialis dosages valentino blue snakeskin clutch louis vuitton monogram vernis white roxbury drive drugs used in treating depression find tadalafil valium without a prescription super poker gambling systems can women take viagra phentermine no prescriptions generic nexium miu miu crimson shoulder bag order levitra on line how fast does meridia work methylprednisolone purchase celine black shoulder bag ultram best price phentermine hci bingo games on pc tylenol with codeine dose buy prescription drugs xanax cialis prescription ultram effects meridia no rx poker canada givenchy blue shoulder bag