If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Connection to INFORMIX database

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-04-11, 19:55
dba2011 dba2011 is offline
Registered User
 
Join Date: Jan 2011
Posts: 2
Connection to INFORMIX database

I am using Oracle GAteway to connect to INFORMIX database . I need the following information

Hostname,port,server alias, database

Can some one please give me commands to get this information on server having INFORMIX database.

Its on Unix server.
I know the hostname and database bt how to get port number and server alias

Thankyou
Reply With Quote
  #2 (permalink)  
Old 11-16-11, 00:25
begooden-it begooden-it is offline
Registered User
 
Join Date: Sep 2011
Location: Pont l'Abbé, Brittany, France
Posts: 183
Hi

the serveralias is contained in the $INFORMIXDIR/etc/$ONCONFIG file
look at the value for the DBSERVERALIASES.

Once you got this value, open the $INFORMIXDIR/etc/sqlhosts, find this value in the 1st column, the service name for this instance is in the 4th column. Then find the service name in the /etc/services files, and you'll get the port number.

And there you go!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On