Previous Previous Next

Objectivity/DB Basics Tutorial
This tutorial describes basic Objectivity/DB concepts and gives a guided tour of an existing federated database, as displayed by Objectivity/Assist.
The following is assumed:
You have copied your Objectivity license into a file called oolicense.txt in your Objectivity/DB installation folder or directory:
installDir/oolicense.txt
You can install the Objectivity/DB software in any location you want. However, the recommended installDir locations with a typical installation are as follows:
Setting up the sample data
Before you start this tutorial, you must perform the following steps to set up the sample data.
On Windows
1.    
Click Start > Programs (or All Programs) > Objectivity x.x > Objectivity Network Services. Make sure the Objectivity Lock Server is listed as "installed" and "running."
2.    
Open a command prompt—for example, click Start > Programs (or All Programs) > Accessories > Command Prompt.
3.    
In the command prompt, change to the installDir\samples\objydbTutorial folder, where installDir is the directory in which you installed Objectivity/DB. Make sure you have read and write permission to the objydbTutorial folder.
4.    
From inside the objydbTutorial directory, enter the following commands:
ooinstallfd RentalCompany.boot
oolicense -fromdefault RentalCompany.boot
5.    
On UNIX and Macintosh
1.    
oocheckls
If the lock server is not running, start it by following steps in the Lock Server chapter in the Objectivity/DB Administration online book.
2.    
Change to the installDir/samples directory, where installDir is the directory in which you installed Objectivity/DB.
3.    
Set up the objydbTutorial directory so that you have read and write permissions using one of the following approaches:
Copy the objydbTutorial directory and its contents to a separate location, set the permissions, and change to that directory. For example, enter the following at a command prompt, where homeDir represents your home directory:
cp -r installDir/samples/objydbTutorial homeDir
chmod 777 homeDir/objydbTutorial
chmod 777 homeDir/objydbTutorial/*
cd homeDir/objydbTutorial
Set the permissions on the objydbTutorial directory inside your installation hierarchy to enable you to read and write in that directory. Then change to the objydbTutorial directory. For example:
chmod 777 objydbTutorial
chmod 777 objydbTutorial/*
cd objydbTutorial
On the Macintosh platform, you can use sudo to execute the above commands with root permissions. For example:
sudo chmod 777 objydbTutorial
4.    
ooinstallfd RentalCompany.boot
oolicense -fromdefault RentalCompany.boot
5.    
 
 

Previous Previous Next
Copyright © 2012, Objectivity, Inc. All rights reserved.