NEXTSTEP
Title: Simple Fetch Example For EOF 2.0 Server included in PDO 4.0 PR1
Entry Number: 2140
Last Updated: 9 Apr 1996
Keywords: EOF 2.0 Server, PDO, fetch, Sybase, Oracle, Informix
Overview
This example shows how to fetch records from any model and from any entity. The usage is as follows:
fetch -model <full model path> -entity <entity name>
The purpose of the example is to show how to link with the database client libraries (Sybase, Oracle, or Informix) on PDO HP-UX and Solaris.
The example is named fetch and is available as NeXTanswer 2139_EOF2.0_PDO4.0_Example.compressed
How To Build The Example
To build the example, you have to install the database client libraries on your PDO machine.
Then, select the appropriate Makefile.preamble for your PDO platform.
For example, if you use Oracle and Solaris, you will have to modify the Makefile.preamble-solaris to uncomment the line that includes the Makefile.preamble-solaris-oracle that you want to use.
To build an executable that links to all 3 client libraries, you just have to uncomment all 3 include lines.
Next, you have to modify the ORACLE_HOME directory in Makefile.preamble-solaris-oracle to point the correct location of your Oracle home directory. The same applies for Informix and Sybase.
Running the Example
You need to look at the different Makefile.preambles and export the proper environment variables. You also need to have an .eomodeld file and the database server must be running and accessible from your PDO machine.
Valid for: EOF 2.0 Server included in PDO 4.0 PR1 .
See Also:
PDO 4.0 PR1 General Notes and Release Notes