Join IIUG
 for   
 

Informix News
18 Nov 13 - ZDNet - Top 20 mobile skills in demand... Read
09 Sep 13 - telecompaper - Shaspa and Tatung have shown a new smart home platform at Ifa in Berlin. Powered by the IBM Informix software... Read
06 Sep 13 - IBM data magazine - Mission Accomplished - Miami, Florida will be the backdrop for the 2014 IIUG Informix Conference... Read
01 Feb 13 - IBM Data Magazine - Are your database backups safe? Lester Knutsen (IBM Champion) writes about database back up safety using "archecker"... Read
14 Nov 12 - IBM - IBM's Big Data For Smart Grid Goes Live In Texas... Read
3 Oct 12 - The Financial - IBM and TransWorks Collaborate to Help Louisiana-Pacific Corporation Achieve Supply Chain Efficiency... Read
28 Aug 12 - techCLOUD9 - Splunk kicks up a SaaS Storm... Read
10 Aug 12 - businessCLOUD9 - Is this the other half of Cloud monitoring?... Read
3 Aug 12 - IBM data management - Supercharging the data warehouse while keeping costs down IBM Informix Warehouse Accelerator (IWA) delivers superior performance for in-memory analytics processing... Read
2 Aug 12 - channelbiz - Oninit Group launches Pay Per Pulse cloud-based service... Read
28 May 12 - Bloor - David Norfolk on the recent Informix benchmark "pretty impressive results"... Read
23 May 12 - DBTA - Informix Genero: A Way to Modernize Informix 4GL Applications... Read
9 Apr 12 - Mastering Data Management - Upping the Informix Ante: Advanced Data Tools... Read
22 Mar 12 - developerWorks - Optimizing Informix database access... Read
14 Mar 12 - BernieSpang.com - International Informix User Group set to meet in San Diego... Read
1 Mar 12 - IBM Data Management - IIUG Heads West for 2012 - Get ready for sun and sand in San Diego... Read
1 Mar 12 - IBM Data Management - Running Informix on Solid-State Drives.Speed Up Database Access... Read
26 Feb 12 - BernieSpan.com - Better results, lower cost for a broad set of new IBM clients and partners... Read
24 Feb 12 - developerWorks - Informix Warehouse Accelerator: Continuous Acceleration during Data Refresh... Read
6 Feb 12 - PRLOG - Informix port delivers unlimited database scalability for popular SaaS application ... Read
2 Feb 12 - developerWorks - Loading data with the IBM Informix TimeSeries Plug-in for Data Studio... Read
1 Feb 12 - developerWorks - 100 Tech Tips, #47: Log-in to Fix Central... Read
13 Jan 12 - MC Press online - Informix Dynamic Server Entices New Users with Free Production Edition ... Read
11 Jan 12 - Computerworld - Ecologic Analytics and Landis+Gyr -- Suitors Decide to Tie the Knot... Read
9 Jan 12 - planetIDS.com - DNS impact on Informix / Impacto do DNS no Informix... Read
8 Sep 11 - TMCnet.com - IBM Offers Database Solution to Enable Smart Meter Data Capture... Read
1 Aug 11 - IBM Data Management Magazine - IIUG user view: Happy 10th anniversary to IBM and Informix... Read
8 Jul 11 - Database Trends and Applications - Managing Time Series Data with Informix... Read
31 May 11 - Smart Grid - The meter data management pitfall utilities are overlooking... Read
27 May 11 - IBM Data Management Magazine - IIUG user view: Big data, big time ( Series data, warehouse acceleration, and 4GLs )... Read
16 May 11 - Business Wire - HiT Software Announces DBMoto for Enterprise Integration, Adds Informix. Log-based Change Data Capture... Read
21 Mar 11 - Yahoo! Finance - IBM and Cable&Wireless Worldwide Announce UK Smart Energy Cloud... Read
14 Mar 11 - MarketWatch - Fuzzy Logix and IBM Unveil In-Database Analytics for IBM Informix... Read
11 Mar 11 - InvestorPlace - It's Time to Give IBM Props: How many tech stocks are up 53% since the dot-com boom?... Read
9 Mar 11 - DBTA - Database Administration and the Goal of Diminishing Downtime... Read
2 Feb 11 - DBTAs - Informix 11.7 Flexible Grid Provides a Different Way of Looking at Database Servers... Read
27 Jan 11 - exactsolutions - Exact to Add Informix Support to Database Replay, SQL Monitoring Solutions... Read
25 Jan 11 - PR Newswire - Bank of China in the UK Works With IBM to Become a Smarter, Greener Bank... Read
12 Oct 10 - Database Trends and Applications - Informix 11.7: The Beginning of the Next Decade of IBM Informix... Read
20 Sep 10 - planetIDS.com - ITG analyst paper: Cost/Benefit case for IBM Informix as compared to Microsoft SQL Server... Read
20 Jul 10 - IBM Announcements - IBM Informix Choice Edition V11.50 helps deploy low-cost scalable and reliable solutions for Apple Macintosh and Microsoft Windows... Read
20 Jul 10 - IBM Announcements - Software withdrawal: Elite Support for Informix Ultimate-C Edition... Read
24 May 10 - eWeek Europe - IBM Supplies Database Tech For EU Smart Grid... Read
23 May 10 - SiliconIndia - IBM's smart metering system allows wise use of energy... Read
21 May 10 - CNET - IBM to help people monitor energy use... Read
20 May 10 - ebiz - IBM Teams With Hildebrand To Bring Smart Metering To Homes Across Britain... Read
19 May 10 - The New Blog Times - Misurare il consumo energetico: DEHEMS è pronto... Read
19 May 10 - ZDNet - IBM software in your home? Pact enables five-city smart meter pilot in Europe... Read
17 March 10 - ZDNet (blog) David Morgenstern - TCO: New research finds Macs in the enterprise easier, cheaper to manage than... Read
17 March 2010 - Virtualization Review - ...key components of Big Blue's platform to the commercial cloud such as its WebSphere suite of application ser vers and its DB2 and Informix databases... Read
10 February 2010 - The Wall Street Journal - International Business Machines is expanding an initiative to win over students and professors on its products. How do they lure the college crowd?... Read


End of Support Dates

IIUG on Facebook IIUG on Twitter

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum

Re: Newbie question: fresh default Mac OSX install

Posted By: Jonathan Leffler
Date: Monday, 7 May 2012, at 7:51 p.m.

In Response To: Newbie question: fresh default Mac OSX install, co (Laird Nelson)

Although I'm responding to Laird's original message, I've looked at many
(though not necessarily all) of the subsequent messages about the problem.

On Mon, May 7, 2012 at 8:59 AM, Laird Nelson <ljnelson@gmail.com> wrote:

> I have a fresh Informix 11.70 installation on Mac OSX.
>
> I can connect to the sysmaster database using dbaccess, so I know that in
> general I've got the system up and running. I haven't done anything other
> than simply start the database.
>
> I'm now attempting to hook my JDBC client up to it. I have experience
> building Informix JDBC URL strings, so I don't believe I am making a
> boneheaded error.
>
> I am getting connection refused errors.
>
> My URL is as follows:
>
>
> jdbc:informix-sqli://localhost:15222/sysmaster:INFORMIXSERVER=ol_informix1170
>
> I am connecting as user informix with the admin password I set up at
> installation time.
>
> Port 15222 is open to all computers on my network according to my firewall.
>
> I have not made any further modifications to /etc/services or
> $INFORMIX_HOME/etc/onconfig.ol_informix1170 or
> $INFORMIX_HOME/etc/sqlhosts.ol_informix1170.
>
> I would suspect that perhaps TCP connectivity is not enabled (after all,
> dbaccess works, but I'm guessing does not use TCP), but I see the following
> NETTYPE entries in my onconfig file:
>
> NETTYPE ipcshm,1,50,CPU
> NETTYPE onsoctcp,1,150,NET
> NETTYPE drsoctcp,1,150,NET
>
> After doing all this research, I find that I'm out of gas. What next?
>

There are a couple of details missing. As has already been commented and
analyzed, one aspect of the problem is the sqlhosts file; one which I've
not seen so much discussion about is the DBSERVERNAME and DBSERVERALIASES
entries in the $ONCONFIG file.

I changed my MacBook Pro machine a while ago, and did a transfer rather
than a clean install of my Informix environment. Nevertheless, at some
point (memory is fuzzy now), I ran into a problem that I couldn't do a
default connection without username and password. I fudged around it for
... months. Now I've gone and cleaned it up (thanks, Laird, for driving me
in the right general direction).

So, what is my current setup? IDS 11.70.FC2 (yes, I've been lazy).
Machine is 'Isis' (capital letter I) so normally my server would be
'isis_17', for example; the old machine (still used by other members of the
family) was 'osiris'. Because things were transferred, my server name is
'osiris_17'.

My Informix-related environment is:

DBDATE=Y4MD-
DBEDIT=vim
DYLD_LIBRARY_PATH=/usr/lib:/usr/informix/11.70.FC2/lib:/usr/informix/11.70.FC2/lib/esql
INFORMIXDIR=/usr/informix/11.70.FC2
INFORMIXSERVER=osiris_17
INFORMIXTERM=terminfo
IXD=/usr/informix/11.70.FC2
LANG=en_US.UTF-8
LD_LIBRARY_PATH=/usr/lib:/usr/gnu/lib:/usr/gcc/v4.7.0/lib
ONCONFIG=onconfig.osiris_17
PATH=.:/Users/jleffler/bin:/usr/informix/11.70.FC2/bin:/usr/gcc/v4.7.0/bin:/usr/informix/11.70.FC2:/Users/jleffler/perl/v5.14.1/bin:/usr/gnu/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
TERM=xterm-color

Clearly, this is not an out-of-the-box install; I've created myself an
INFORMIXDIR under /usr/informix with symlinks to the files in
/Applications/ibm/informix/IDS-11.70.FC2/ (so even under
/Applications/IBM/informix, I've used a version-specific sub-directory, so
I can still have IDS 11.70.FC1 installed, for example). However, this just
explains what you see in my environment; it works fine.

The relevant lines in $ONCONFIG file are:

SERVERNUM 17
DBSERVERNAME osiris_17
DBSERVERALIASES osiris_17_shm,osiris_17_tcp,osiris_17_str
NETTYPE ipcshm,1,50,CPU
NETTYPE ipcstr,1,50,CPU
NETTYPE soctcp,1,50,NET

The output from 'uname -a' is:

Darwin Isis 11.3.0 Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST
2012; root:xnu-1699.24.23~1/RELEASE_X86_64 x86_64 i386 MacBookPro8,3 Darwin

The output from 'uname -n' is:

Isis

My sqlhosts file shows signs of confusion over time. It currently contains
this (except I've tagged the blocks with '# Block A' etc so that I can
discuss them):

# Block A
osiris_17 olsoctcp Isis.local 10170
osiris_17_tcp olsoctcp Isis.local 10171
osiris_17_shm olipcshm Isis.local osiris_17_shm
osiris_17_str olipcstr Isis.local osiris_17_str

# Block B
#osiris_17 olsoctcp Isis 10170
#osiris_17_tcp olsoctcp Isis 10171
#osiris_17_shm olipcshm Isis osiris_17_shm
#osiris_17_str olipcstr Isis osiris_17_str

# Block C
#osiris_17 olsoctcp localhost 10170
#osiris_17_tcp olsoctcp localhost 10171
#osiris_17_shm olipcshm localhost osiris_17_shm
#osiris_17_str olipcstr localhost osiris_17_str

# Block D
# osiris_17 - /usr/informix/11.70.FC2
#osiris_17 olsoctcp Osiris.local 10170
#osiris_17_tcp olsoctcp Osiris.local 10171
#osiris_17_shm olipcshm Osiris.local osiris_17_shm
#osiris_17_str olipcstr Osiris.local osiris_17_str

Up until I started investigating, Blocks A and B were not in the file,
Block C was uncommented and 'working' (but only up to a point), and Block D
was commented out. Block D was in use on my previous machine, Osiris, at
some point (and so was Block C, I think).

So, Block C 'worked' (and was in use for a number of months), but didn't
work very well. The administration via the command line was fine. But
simple connections to a database required a user name and password. Since
SQLCMD can use a file with database@server, user name and password
(SQLCMDPASSWORDS is the env var), I lazily edited that and enabled
connections which would automatically collect a username and password.

Checking things out just now, Block B allowed the server to come up.
However, although the shared memory and streams connections worked, the TCP
connections didn't (SQL -25595: Invalid message received during connection
attempt.).

When I switched to Block A in the sqlhosts file, all the server names allow
me to connect locally without a password, which is a distinct improvement.

Your machine name is quite long (26 characters if I counted correctly); you
don't want it to be much longer than that. IIRC, there's a limit of 31 or
32 on the host name, either imposed by Informix or perhaps even by the IETF.

I've not configured any DRDA protocol server alias (using the drsoctcp
protocol); I've not tried using the DRDA clients on Mac. Nor have I done
anything with JDBC, so your connection string info, Laird, may be useful
if/when I try.

--
Jonathan Leffler <jonathan.leffler@gmail.com> #include <disclaimer.h>
Guardian of DBD::Informix - v2011.0612 - http://dbi.perl.org
"Blessed are we who can laugh at ourselves, for we shall never cease to be
amused."

--e89a8f2348bf8a763c04bf7af221

Messages In This Thread

[ View Thread ] [ Post Response ] [ Return to Index ] [ Read Prev Msg ] [ Read Next Msg ]

IDS Forum is maintained by Administrator with WebBBS 5.12.