Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

956: Client is not in /etc/hosts.equiv on the remote host.

Status
Not open for further replies.

testhandle

Technical User
Mar 14, 2003
42
0
0
GB
Hi,

Trying to select records from different database on the same machine(cctest01) with the error

select count(*) from testdb@testdbservername:table1;


'956: Client is not in /etc/hosts.equiv on the remote host. '

Following are entries from .rhosts file

# Hostnames
#
cctest01
#
# Aliases
#
testdb
testdbservername
#

Any solution please?

Thanks
John Jayaseelan


 
create a file named hosts.equiv on your /etc directory and add the ff:

your_remote_machine your_user


or
verify your $INFORMIXSERVER if correct.
 
Thanks for the reply.

'your_remote_machine your_user'

At present the entry in the /etc/hosts.equiv is just the <server name>. The situation is source and targer informix instances are running in the same server.


'verify your $INFORMIXSERVER if correct'

Do you mean 'INFORMIXSERVER' UNIX env variable? Should I set the actual UNIX server name or DBservername specified in the config file.



 
Hi,

This error is intermittent. The following select

select count(*) from <dba>@<dbserver>:<table>

sometimes gives the result and sometimes error '956: Client is not in /etc/hosts.equiv on the remote host.'.

Thanks
 
Hi,
to provide a fast answer, please provide :
- sqlhosts file
- DBSERVERNAME and DBSERVERALIASES in your ONCONFIG file
- /etc/hosts
- uname -, or hostname result

jean
 
Hi,

Following are the info aksed.

sqlhosts file
_______
cctrain01 tcp cctest01 training
ccnewcor01 tcp cctest01 tstprod
________

DBSERVERNAME=cctrain01,ccnewcor01
No DBSERVERALIASES in your the TBCONFIG file

/etc/hosts
________
<IP address> cctest01 cctest01x
_______

hostname = cctest01

Thanks
 
You CANNOT have two values for your DBSERVERNAME parameter.

You have to set one value in DBSERVERNAME and the others will be listed in the DBSERVERALIASES, with a comma as separator.

Then you set the variable INFORMIXSERVER to the value of
DBSERVERNAME or to one of the values of DSERVERALIASES.
In IDS release < 9.4, the maximum number of aliases is
10 and begining with 9.4 it's now 32.

It's a little strange that your IDS server accept your
config file with different value in DBSERVERNAME !!



(In your sqlhosts, I presume that you have onsoctcp and
not tcp only)

Regards,

jean
 
Hi,

The DBSERVERNAME value is one only, The values given are from different config file, Source and target server are in the same system.

The informix version is online 5.0, i.e why sqlhosts has tcp.

Thanks
 
Sorry I didn't notice that you were in release 5.

INFORMIXSERVER is only for IDS 7.x or 9.x

In release 5.X, sqlhosts should be like this :

dbservername protocol hostname servicename

with:
dbservername similar to the one in $TBCONFIG
protocol: olsoctcp or oltlitcp
hostname: should be listed in /etc/hosts
servicename: should be listed in /etc/services and used as parameter for the daemon $INFORMIXDIR/lib/sqlexecd

Concerning your error -956 :
- is the .rhosts in the $HOMEDIR of the user informix or root ?
- who is starting the two daemons sqlexecd ?
- did you check the environment for you two sqlexecd ?

jean
 
Hi All,

I've already resolved the problem. The problem is not on sqlhosts nor .netrc. The problem is on setting up the php.ini file. INFORMIXSERVER,username and password should have default values instead of null strings.

Thanks anyways..

tungaw
 
Hi,

The sqlhosts file has 'tcp' for prtocol, all other parameters are fine.

- The .rhosts files are availbe in both $HOMEDIR of root & Informix.

- Sqlexecd is startes using root account.

- Env for the sqlexcd are
SQLEXEC=/opt/informix/lib/sqlturbo
PATH=/usr/sbin:/usr/local/bin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/opt/nettln
TERMCAP=/opt/informix/etc/termcap
INFORMIXTERM=termcap
INFORMIXDIR=/opt/informix

Thanks
 
Tungaw,

Plese tell where php.ini file can be found.

Searched the entire system with no result.

find / -name php.ini -print

Thanks
 
find / -name php.ini -print

did not return any results.
 
Did you install the php?.

do not use $find, instead use $locate php.ini
 
Not sure php installed. Any help to check php installation and why this needs to be installed.
The O/S is HP-UX so 'locate' command is not available.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top