Re: Connecting (IConnect) Solaris machine to a Linux server
Posted in 2005
Ciao,
explanation by example:
scenario:
machine A (Solaris), IDS server name A1
machine B (Linux), IDS server name B1
Configuration machine A:
onconfig file:
...
SERVERNAME A1
...
sqlhosts file:
A1 ontlitcp A portA
B1 ontlitcp B portB
/etc/services file:
...
portA 87341/tcp
portB 87342/tcp
~informix/.rhosts file (.rhosts file of user informix):
...
B informix # short host name
B.domain... informix # long hostname
Configuration machine B:
onconfig file:
...
SERVERNAME B1
...
sqlhosts file:
A1 onsoctcp A portA
B1 onsoctcp B portB
/etc/services file:
...
portA 87341/tcp
portB 87342/tcp
~informix/.rhosts file (.rhosts file of user informix):
...
A informix # short host name
A.domain... informix # long hostname
With this you should be able to connect from
IDS server A1 on machine A to IDS server B1 on
machine B and vice versa.
Note:
- no changes are needed to the environments
(environment variable seetings) on the machines.
- rlogin is not used by IDS itself. But it can be used
to test connectivity between machines, i.e. that
login without password is working.
- remote login without password for user
informix is achieved by the entries in respective
.rhosts files.
- this remote connectivity without password (trusted
user) is necessary for IDS remote queries to work.
- for other users to be able to do remote queries
I think you also have to do these entries.
Alternatively you can use the mechanism of
/etc/hosts.equiv (trusted hosts) for whole machines.
- port numbers in /etc/services have to match. They
are like telephone numbers ...
- port numbers in /etc/services need to be unique,
above I just picked arbitrary examples.
Saluti a Italia, :)
Martin
--
Martin Fuerderer
IBM Informix Development Munich, Germany
Information Management
owner-informix-list@iiug.org wrote on 11/24/2005 12:08:45 PM:
> Hi there, I have a question for you smart guys.
>
> I have Sun Solaris 9 machine where Informix IConnect 10.0 is installed.
> The machine should make use of the database server (IDS 10.0) installed
> on a Red Hat EL4 Linux server.
>
> By default Linux does not provide 'rlogin' functionality, which is the
default
> method used by Informix to make the connectivity. Now it is installed on
my box.
>
> AFAIU 'sqlhosts' files are different between the two platforms (Solaris
uses
> 'oltlitcp' protocol, while Linux uses 'olsoctcp').
>
> Furthermore (but don't know if this is an issue), the default Informix
install
> directory is different on the wto platforms ('/usr/informix' for Solaris
VS
> '/opt/informix' on Linux).
>
> How should I configure the 'sqlhosts' file on the two boxes in order to
obtain
> the connectivity?
>
> Anyhing else I should take care of?
>
> Any help would be really appreciated.
>
> Rupan3rd (Italy)
sending to informix-list