Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7530989
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:03:50+00:00 2026-05-30T05:03:50+00:00

I am trying to use DBI (with DBD::Informix ) to connect to Informix given

  • 0

I am trying to use DBI (with DBD::Informix) to connect to Informix given only an ip address and port number. In this context, I can not depend on the sql hosts file on the machine being accurate. Is what I am doing possible?

In the documentation they mention connection strings in the form of //machine1/dbase so I gave this a try:

DBI->connect("dbi:Informix://10.1.23.232:2232/eris", $user, $pass);

but received the following error:

DBI connect(‘//10.1.23.232:2232/eris’,’someuser’,…) failed: SQL: -1804: Invalid database environment. at tools/check_informix.pl line 63

What is the correct approach to connecting to an Informix server knowing only a port and ip address?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:03:51+00:00Added an answer on May 30, 2026 at 5:03 am

    The notation using //machine/dbase is primarily for use with Informix Standard Engine, SE (and I believe the :port notation would not be recognized even then; I’d have to research to find out which port is used, but it is likely 1525 or 1526). AFAIK, it does not work with Informix Dynamic Server, IDS. You need to create an entry in the sqlhosts file for a server name, which specifies the machine (raw I/P address OK) and the port (raw port number OK), such as:

    myremoteserver   olsoctcp   10.1.23.232   2232
    

    You would then specify the connection string as:

    eris@myremoteserver
    

    You can specify any file as the sqlhosts file with the INFORMIXSQLHOSTS variable. The server name you specify in the sqlhosts file must match the actual server name on the host with I/P address 10.1.23.232 that is listening on port 2232.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use a German-style CSV file with DBI and DBD::CSV . This,
I am trying to use Class::DBI with Catalyst::Plugin::Authentication::Store::DBIC. The example given on CPAN does
I am need paint my image. I'm trying use JQuery in here this link:
I am trying to run simple perl dbi example script to connect to mysql
I am trying use MySql and Entity Framework, using Connector/Net 6.1 with this as
i'm trying use webview to load a image from sdcard i use this path
I am trying to connect to a mysql server which is running at port
With PHP, I'm trying to emulate the Perl functionality of: #!/usr/bin/perl use DBI; use
I'm trying to execute the following script: #!/usr/bin/perl -w use strict; use DBI; my
Can anyone tell me the meaning of this query below? Also I'm trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.