Ingres
Ingres is one of the pioneer databases for mysql, oracle and postgres. It is not present in the linux distributions (at least not debian) and has to be installed manually.
Installation
From source
The source is downloadable at http://esd.actian.com/product/Community_Projects/Ingres_Database/Linux_X86_64-bit/Ingres_10.1_Build_125/ingres-10.1.0-125-gpl-src.tgz/http But i bailed out rather quickly with a LOT of problems to which no single clue could be found on internet forums. So it's the easy way i chose, and that's in the next chapter.
Binary
You will need to register with actian first : http://www.actian.com. And download the appropriate file. For me it was the "Community Edition" (free), ingres-10.1.0-125-gpl-linux-ingbuild-x86_64.tgz. This file was a NON-RPM, 64 bits version. And this really installed out of the box.
It really boils down to :
| changetitle | |
|---|---|
And answer a LOT of questions. You will be left with an installation in /opt/Ingres/IngresII if you stick with the defaults. And nothing will run. You will have to run the environment script to get correct paths for the executables.
| changetitle | |
|---|---|
And :
| changetitle | |
|---|---|
The installation script should have started ingres, but you can do it yourself with.
etc.
Usage
Actually it started flowing back a little after playing around with ingres. The commands are executed with ''. And i even remembered you can edit the buffer with ''.
For the remainder, here are just some commands to use :
show tables
A very elaborate query is needed to filter the system tables out :
| changetitle | |
|---|---|
But it is much easier to use the help command :
| changetitle | |
|---|---|
This will print the tables of the database. And these commands all do what you'd expect them to do :
pitfall This last command reports the last column as 'al_cco' but that is abbreviated. It's really called al_ccode. So a command like below will fail.
| changetitle | |
|---|---|
It needs to be :
| changetitle | |
|---|---|
Joins are straightforward:
| changetitle | |
|---|---|
php calling
Note ! You will also need to invoke the ingres script to use this !! There is a php module for ingres, but you will need pecl get it.
You also need to enable the ingres module, the pecl step will warn you for this. To have it working in apache and also the commandline, edit these files :
And in both add this line, in the "Dynamic Extensions" section:
| changetitle | |
|---|---|
After this you can run this simple script to connect to ingres.
| changetitle | |
|---|---|