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

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

IDS Forum

How to conect Java Aplication using Connection Mgr

Posted By: OMER KHAN
Date: Wednesday, 24 December 2008, at 10:56 a.m.

Hello,

I am unable to connect database using connection manger, setting for connection manager is as follows.

Values in password file.
------------------------
ids_net_mcp_test02 - informix informix
ids_net_mcp_test_rep02 - informix informix
ids_net_mcp_rss1 - informix informix

Values in configuration file
----------------------------
INFORMIXDIR=/export/informix11-50-3 ;export INFORMIXDIR
INFORMIXSQLHOSTS=/export/informix11-50-3/etc/sqlhosts ;export INFORMIXSQLHOSTS
INFORMIXSERVER=ids_net_mcp_test02 ;export INFORMIXSERVER

Values in Connection Manager Configuration file
-----------------------------------------------
#**************************************************************************
# Title: cmsm.cfg
# Description: Test Connection Manager Configuration file.
#**************************************************************************
# Connection Manager name
NAME cm_test
# re-route Informix clients to the primary for transaction processing
SLA oltp=primary

# re-route Informix clients to any secondary node for reporting
SLA report=HDR

# Failover Configuration
#FOC SDS+HDR+RSS,0
FOC HDR+RSS,0

# worker threads for each SLA listener, default is 8
SLA_WORKERS 16
DEBUG 1 # debug information
# Connection Manager message file
LOGFILE /export/informix11-50-3/tmp/cmlog.log

Values in sqlhost file
----------------------
# Primary ################################
ids_mcp_test02 onipcshm 192.168.0.16 sqlturbo_mcp_test02
ids_net_mcp_test02 ontlitcp 192.168.0.16 sql_net_mcp_test02
# Secondary ##############################
ids_mcp_test_rep02 onipcshm 192.168.0.15 sqlturbo_mcp_test_rep02
ids_net_mcp_test_rep02 ontlitcp 192.168.0.15 sql_net_mcp_test_rep02
# RSS ####################################
ids_mcp_rss1 onipcshm 192.168.0.14 sqlturbo_mcp_rss1
ids_net_mcp_rss1 ontlitcp 192.168.0.14 sql_net_mcp_rss1
########### Entries for Connection Manager ##############################
oltp onsoctcp 192.168.0.16 9991
report onsoctcp 192.168.0.16 9992
payroll onsoctcp 192.168.0.16 9993

Command used for starting Connection Manager.
----------------------------------------------
oncmsm -c /export/informix11-50-3/etc/cmsm.cfg

Output of cmsm log file
-----------------------
#--------------------------- Start -------------------------------#
Wed Dec 24 20:04:20 2008
20:04:20 IBM Informix Connection Manager
20:04:20 Connection Manager name is cm_test
20:04:20 Starting Connection Manager...
20:04:22 Current max open fd is 32767
20:04:22 switch to daemon mode
20:04:22 new daemon pid is 9033 [cmsm_main.c:2525]
20:04:22 fcntl(/export/informix11-50-3/tmp/cmsm.pid.cm_test) success errno = 0 [cmsm_main.c:1781]
20:04:22 dbservername = ids_net_mcp_test02
20:04:22 nettype = ontlitcp
20:04:22 hostname = 192.168.0.16
20:04:22 servicename = sql_net_mcp_test02
20:04:22 options =
20:04:22 create new thread 3 for ids_net_mcp_test02 [cmsm_sla.c:557]
20:04:22 CONNECT to sysmaster@ids_net_mcp_test02|ontlitcp|192.168.0.16|sql_net_mcp_test02 USER informix [cmsm_server.ec:123]20:04:22
listener oltp initializing
20:04:22 listener report initializing
20:04:22 Listener report=HDR is active with 16 worker threads
20:04:22 Listener oltp=primary is active with 16 worker threads
20:04:22 CONNECT to sysmaster@ids_net_mcp_test02|ontlitcp|192.168.0.16|sql_net_mcp_test02 SQLCODE = (0,0,) [cmsm_server.ec:139]
20:04:22 Connection Manager successfully connected to ids_net_mcp_test02
20:04:22 ids_net_mcp_test02 protocols = 1 [cmsm_server.ec:1147]
20:04:22 fetch sysconfig_cursor sqlcode = (100,0,) [cmsm_server.ec:1187]
20:04:22 Adding server ids_mcp_test02 [cmsm_server.ec:1572]
20:04:22 create new thread 38 for ids_mcp_test02 [cmsm_sla.c:557]
20:04:22 CONNECT to sysmaster@ids_mcp_test02|onipcshm|192.168.0.16|sqlturbo_mcp_test02 [cmsm_server.ec:123]
20:04:22 Arbitrator FOC string = HDR+RSS,0
20:04:22 Arbitrator setting primary name = ids_mcp_test02 [cmsm_arb.c:518]
20:04:22 FOC[0] = HDR
20:04:22 FOC[1] = RSS
20:04:22 FOC timeout = 0
20:04:22 Adding server ids_net_mcp_rss1 [cmsm_server.ec:1572]
20:04:22 create new thread 39 for ids_net_mcp_rss1 [cmsm_sla.c:557]
20:04:22 CONNECT to sysmaster@ids_net_mcp_rss1|ontlitcp|192.168.0.14|sql_net_mcp_rss1 USER informix [cmsm_server.ec:123]
20:04:22 Adding server ids_net_mcp_test_rep02 [cmsm_server.ec:1572]
20:04:22 create new thread 40 for ids_net_mcp_test_rep02 [cmsm_sla.c:557]
20:04:22 CONNECT to sysmaster@ids_net_mcp_test_rep02|ontlitcp|192.168.0.15|sql_net_mcp_test_rep02 USER informix [cmsm_server.ec:123]
20:04:22 CONNECT to sysmaster@ids_mcp_test02|onipcshm|192.168.0.16|sqlturbo_mcp_test02 SQLCODE = (0,0,) [cmsm_server.ec:139]
20:04:22 Connection Manager successfully connected to ids_mcp_test02
20:04:22 ids_mcp_test02 protocols = 1 [cmsm_server.ec:1147]
20:04:22 get ids_net_mcp_test02 CM_ADM event 8:3 cm_test [cmsm_server.ec:1042]
20:04:22 Arbitrator received CM event, subtype=3, cm=cm_test [cmsm_arb.c:533]
20:04:22 Arbitrator reinitialized CM names [cmsm_arb.c:479]
20:04:22 Arbitrator added CM name = cm_test [cmsm_arb.c:418]
20:04:22 Arbitrator is active on CM = cm_test
20:04:22 adding ids_mcp_test02 alias ids_net_mcp_test02 with protocol ontlitcp 1 [cmsm_server.ec:1237]
20:04:22 fetch sysconfig_cursor sqlcode = (100,0,) [cmsm_server.ec:1187]
20:04:22 CONNECT to sysmaster@ids_net_mcp_test_rep02|ontlitcp|192.168.0.15|sql_net_mcp_test_rep02 SQLCODE = (0,0,) [cmsm_server.ec:139]
20:04:22 Connection Manager successfully connected to ids_net_mcp_test_rep02
20:04:22 ids_net_mcp_test_rep02 protocols = 1 [cmsm_server.ec:1147]
20:04:22 Adding server ids_mcp_test02 [cmsm_server.ec:1572]
20:04:22 Adding server ids_net_mcp_rss1 [cmsm_server.ec:1572]
20:04:22 Adding server ids_net_mcp_test_rep02 [cmsm_server.ec:1572]
20:04:22 fetch sysconfig_cursor sqlcode = (100,0,) [cmsm_server.ec:1187]
20:04:22 Arbitrator FOC string = HDR+RSS,0
20:04:22 Arbitrator setting primary name = ids_net_mcp_test02 [cmsm_arb.c:518]
20:04:22 FOC[0] = HDR
20:04:22 FOC[1] = RSS
20:04:22 FOC timeout = 0
20:04:22 CONNECT to sysmaster@ids_net_mcp_rss1|ontlitcp|192.168.0.14|sql_net_mcp_rss1 SQLCODE = (0,0,) [cmsm_server.ec:139]
20:04:22 Connection Manager successfully connected to ids_net_mcp_rss1
20:04:22 ids_net_mcp_rss1 protocols = 1 [cmsm_server.ec:1147]
20:04:22 get ids_net_mcp_test_rep02 CM_ADM event 8:3 cm_test [cmsm_server.ec:1042]
20:04:22 fetch sysconfig_cursor sqlcode = (100,0,) [cmsm_server.ec:1187]
20:04:22 get ids_net_mcp_rss1 CM_ADM event 8:3 cm_test [cmsm_server.ec:1042]
20:04:23 Connection Manager started successfully

#--------------------------- End -------------------------------#

Output of onstat -g cmsm
-------------------------
CM name host sla define foc flag connections
cm_test 192.168.0.16 oltp primary HDR+RSS,0 3 0
cm_test 192.168.0.16 report HDR HDR+RSS,0 3 0

I am using following syntax for connecting using JDBC Driver
jdbc:informix-sqli://192.168.0.16:9991/demo_db:informixserver=oltp

Please let me know that where i am wrong, and how i could connect my application with the connection manager, so that i could test the HA feature.

Thanks in advance for your anticipation.

Regards,
Omer Saeed Khan

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

IDS Forum is maintained by Administrator with WebBBS 5.12.