Client-Server Access
To achieve this, the SQLHOST file must be updated in a specific way using a 6th parameter in the remote definition, as shown in the following example (current node is “startrek”, i.e. where the Mimer SQL version 8 database “m8server” runs):
DEFAULT:
--
-- Database
-- ---------------------------------------------------------------------------
SINGLE
-- ===========================================================================
LOCAL:
--
-- Database Path
-- ------------------ --------------------------------------------------------
SINGLE .
m8server /database/m8server:/mnt1/m8server:/mnt2/m8server
-- ===========================================================================
REMOTE:
--
-- Database Node Protocol Interface Service
-- ------------------ ------------------ -------- --------- ------------------
example_database server_nodename '' '' 1360
m8access startrek '' '' 1360 m8server
To access the “m8server” database, the Mimer SQL version 7 application must connect to the database “m8access”.
In this case the “startrek” node must have both a Mimer SQL version 7 license (for the application) and a Mimer SQL version 8 license (for the database server). The Mimer SQL version 8 license must include a specific license in order to be able to accept client/server connections.
If you want to run a version 7 application on a version 8 database in client/server environment you have to define an entry for both MIMER8 and MIMER7 in /etc/inetd.conf and to define different port i /etc/services.
/etc/inetd.conf:
mimer8 stream tcp nowait root /usr/bin/mimtcp mimtcp –l
mimer7 stream tcp nowait root /opt/products/mimer7/bin/netsrvm netsrvm mimer tcp inetd
/etc/services:
mimer8 1360/tcp
mimer7 1371/tcp
Re-mapping Shareable Libraries
On Unix, use the dynamic link /usr/lib/libmimer.so. The example makefiles supplied in Mimer7 and Mimer SQL version 8 provide useful information about loader switches, etc.
Linking a Mimer7 application with Mimer SQL version 8 on Unix
In the following example the c-compiler “cc” is used to link a MIMER/PG application from version 7.
The shared library libmimer.so and the archive compat.a are taken from a Mimer SQL version 8 distribution on a Unix machine:
cc -o pgappl pgappl.o \
/home/mimer7/lib/pgfml.a \
/home/mimer7/lib/pgl.a \
/home/mimer7/lib/lru.a \
/home/mimer7/lib/fmlib.a \
/usr/lib/libmimer.so \
/usr/lib/compat.a -lm –lcurses
Notes
The Mimer SQL version 8 database server needs a Mimer SQL 8 license located in /etc/mimerkey on Unix.
If you re-link Mimer7 applications to use Mimer SQL version 8 shared libraries, you only need a Mimer SQL version 8 license, but it must include the necessary licenses for the Level2 interface.
A single machine will need both licenses if it runs both Mimer7 Level2 applications and a Mimer SQL version 8 database server at the same time.
Please note that the Mimer7 application needs a Mimer7 license located in /mimkey7 on Unix.
Benefits
You can easily test your applications in a Mimer SQL 8.2 environment using, for example, the client/server solution.
You will get better performance than if you re-link your applications or re-map the shared libraries.