Running the Server (NT)
You can run the Predator V2.0 server in the following ways:
![]() |
using the Windows Start button: Start/Programs/Predator V2/PredatorV2 Server | ||||
![]() |
From
the command line:
|
By default, the server is listening on port 6005. You can modify the port on which the server is listening and set other command line options: to do so, read the server description and edit the script runserver.cmd.
By default, the data files and log files are stored in %InstallDir%\predator-db\. You might want to change the location of these files (e.g., because you want to install the data on a separate partition). To do so, edit the option file : %InstallDir%\predator\predator.options.
When you start the server, a few diagnostic messages will be printed to the window. When you run the server with new data files and log files, the following message will be printed: The system cannot find the specified file. This is a message generated by Shore on Windows NT when a new file is accessed.
Running the Text Client (NT)
Once the Predator server is running, you can run the simple Predator V2.0 text client in the following ways:
![]() |
using the Windows Start button: Start/Programs/Predator V2/PredatorV2 Text Client | ||||
![]() |
From
the command line:
|
Note that the script txtclient.cmd takes as argument the port on which the Predator server is listening. You can edit this script in order to modify the default command line options.
See the tutorial for a description of the data definition and data manipulation commands. Here are some administrative commands interpreted at the client.Running the Test Suites (NT)
Once the predator server is running, you can run the regression tests in the following ways:
![]() |
using the Windows Start button: Start/Programs/Predator V2/PredatorV2 Tests | ||||
![]() |
From
the command line:
|
The regression tests are a battery of SQL queries, which test all components of the system. The result of each test query is compared to the expected result. The test queries and the files storing the expected results are located in subfolders of the following directory %InstallDir%\lair\suites.
Installing the ODBC driver (NT)
The Readme file in %InstallDir%\predator\odbc describes the ODBC 2.3 driver for Predator and how to install it.
Building and Running the Java Clients (NT)
Only the source code is provided for the Java Clients. We provide the VisualJ++ project files so that you can build the following executables:
![]() |
Jaguar client: the java equivalent to txtclient. |
![]() |
JDBC Gui: a simple GUI implemented on top of the Predator JDBC driver. |
![]() |
JGui: a simple applet for accessing Predator. |
These Java executables are built on top of the Jaguar Client Library. This library should be built first:
![]() |
Start Visual J++ |
![]() |
Open the Predator project : %InstallDir%\predator\java\predator\predator.sln |
![]() |
Build the solution |
![]() |
You can then open, build and run one of the following solution:
![]() |
Jaguar client: %InstallDir%\predator\java\predator\jaguar\jaguar.sln |
![]() |
JDBC driver: %InstallDir%\predator\java\JDBCDriver\JDBCDriver.sln |
![]() |
JDBC Gui: %InstallDir%\predator\java\interfaces\interfaces.sln |
![]() |
JGui: %InstallDir%\predator\java\interfaces\JGui\JGui.sln |
Building the Server (NT)
In order to build the Predator server:
![]() |
Start Visual C++ 6.0 |
![]() |
Open the Predator workspace: %InstallDir%\predator\nt_proj\predator.dsw |
![]() |
Select predserver as the active project (Project/Set Active Project/predserver) |
![]() |
Build preserver.exe (Build/build predserver.exe) |
The settings are adapted to your installation. You should not have to modify these settings. The include files and the precompiler options are set in the files %InstallDir%\predator\nt_proj\include.options and %InstallDir%\predator\nt_proj\precompiler.options.
Building the Text Client and cgi client (NT)
The text client and cgi client both rely on the client library, which in turn relies on the socket library from predator.
In order to build the text client {resp. the cgi client} :
![]() |
Start Visual C++ 6.0 |
![]() |
Open the Predator workspace: %InstallDir%\predator\nt_proj\predator.dsw |
![]() |
Select txtclient {resp. cgisql}) as the active project (Project/Set Active Project/predserver{resp. cgisql}) |
![]() |
Build txtclient.exe {resp. cgisql.exe} (Build/build predserver.exe {resp. cgisql.exe} ) |
Using the query tree display tool QPDisp (NT)
The Readme file in %InstallDir%\predator\java\qpdisp describes the QPDisp tool, how to install it and how to use it. See the tutorial for more details concerning QPDisp.