This page contains answers to common questions handled by our support staff, along with some tips and tricks that we have found useful and presented here as questions.

  1. How can I change the location of the predator database directory?
  2. How can I change the installation directory?
  3. (NT) How do I modify project settings?
  4. (NT) How do I recover the original project settings?
  5. (NT) Error mounting device?
  6. (NT) What are the commands for compiling sql.l and sql.y from Visual Studio?
  7. How do I add a new data type?
  8. Problem compiling the JDBC driver
  9. (NT) Error message when running the regression tests

 


How can I change the location of the predator database directory?

In order to change the location of the predator database directory, you must edit the file predator.options (located under INSTALL_DIR\predator). Modify the values of the variables XXXTMPDATADIR, XXXSHOREDEFDEVPATH, XXXSHORERELDISKPATH and XXXSHORELOGDIR. 

Important: Note that the directory associated to XXXSHORELOGDIR must be created when the Predator server is started otherwise an error occurs in the Shore storage manager.


Here is an example of predator.options:

XXXTMPDATADIR=F:\temp
XXXSHOREDEFDEVPATH=F:\temp\defdisk
XXXSHOREDEFDEVSIZE=100000
XXXSHORERELDISKPATH=F:\temp\reldisk
XXXSHORERELDISKSIZE=100000
XXXSHOREDISKRW=Q:\shoreobj\diskrw  (ignored in V2.0)
XXXSHORELOGDIR=F:\temp\bonnetlog

Back to Top

How can I change the installation directory ?

To change the installation directory, you should re-run the installer program. Do not simply move an existing directory to another location because the contents of project and option files is customized (by the installer) for a specific installation directory.

Back to Top

(NT) How do I modify project settings ?

The include files and precompiler options used for compilation are defined  in the files include.options and precompiler.options located in %InstallDir%\predator\nt_proj.

Other project settings (in particular the list of libraries used for linking) can be modified directly using the project\settings menu of Visual Studio.

Back to Top

(NT) How do I recover the original project settings ?

Send mail to predator-support@cs.cornell.edu

Back to Top

(NT)  Error mounting device ?

The following error message:

warning: device "Z:\Temp\defdisk" not mounted -- 1. error in Q:\shore\nov99\src\
smlayer\sm\dir.cpp:91 Malformed or invalid store id

Error: Could not mount default device
Error from Engine 0: Malformed or invalid store id
Error from Engine 0: Bad device mount
Error from Engine 0: Cannot mount default device
Error: Error in Initialization of Utils
Error from Engine 0: Malformed or invalid store id
Error from Engine 0: Bad device mount
Error from Engine 0: Cannot mount default device
Error from Engine 0: Could not mount default device
Exiting initialization thread

is generated when Shore tries to create the data and log files on a network mapped drive. These files should be created on a local device.

Back to Top

(NT)  What are the commands for compiling sql.l and sql.y from Visual Studio ?

You have to replace in the following commands Q: by %PREDATOR_DIRECTORY%\lair so that the path to flexbison is correct.

* sql.l -> right click-> settings->custom building->

Commands
--------
set FLEX_LOC=Q:\flexbison\flex247
if not exist $(InputDir)\sql.lex.C Q:\flexbison\flex -+ -I -i -Psql $(InputPath)
if exist lexsql.cc move lexsql.cc $(InputDir)\sql.lex.C

Outputs
-------
$(InputDir)\sql.lex.C

* sql.y -> right click-> settings->custom building->

Commands
--------
set BISON_HAIRY=Q:\flexbison\bison124\bison.hairy
set BISON_LOC=Q:\flexbison\bison124
set BISON_SIMPLE=Q:\flexbison\bison124\bison.simple
if not exist $(InputDir)\sql.tab.C Q:\flexbison\bison $(InputPath)
if exist $(InputDir)\sql_tab.C move $(InputDir)\sql_tab.c $(InputDir)\sql.tab.C

Outputs
-------
$(InputDir)\sql.tab.C

Back to Top

How do I add a new data type ?

You have to go and read the design document:

http://www.cs.cornell.edu/database/predator/designdoc.html#_Toc395962376

Once you understand the mechanisms involved, the most efficient approach is to look at the existing datatypes (in the newtypes directory) and slightly modify the one which is closest to your need.

            Back to Top
 

Problem compiling the JDBC driver

Add the Predator package in the classpath.

            Back to Top
 

(NT) Error message when running the regression tests

The diff binary is missing from the distribution. This binary is used to compute the difference between the expected results of the regression tests and the actual results.
Download the diff binary and put it in a directory referenced in your path environment variable.