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: connect through java using group_name con mgr

Posted By: PING TANG
Date: Wednesday, 22 April 2009, at 5:40 p.m.

In Response To: connect through java using group_name con mgr (KAMRAN HAQ)

Kamran:

If you want to access all nodes as a group, you could modify and add a mach_group to the oncmsm's sqlhosts as below.

g_mach group - - e=ids_net_RSS
ids_net_primary ontlitcp 192.168.0.16 sql_net_primary g=g_mach
ids_net_secondary ontlitcp 192.168.0.15 sql_net_secondary g=g_mach
ids_net_RSS ontlitcp 192.168.0.14 sql_net_RSS g=g_mach
mach_group group - - e=payroll <==
oltp onsoctcp 192.168.0.16 9991 g=mach_group <==
report onsoctcp 192.168.0.16 9992 g=mach_group <==
payroll onsoctcp 192.168.0.16 9993 g=mach_group <==

Regards,

--- On Wed, 4/22/09, PING TANG <ptang83@yahoo.com> wrote:

> From: PING TANG <ptang83@yahoo.com>
> Subject: Re: connect through java using group_name con mgr [15579]
> To: ids@iiug.org
> Date: Wednesday, April 22, 2009, 4:25 PM
> Hi Kamran
>
> Regarding to your first problem. Onstat -g cmsm should
> display information feeding by your cmconfig file.
> Basically, it will display SLA and FOC rule.
> So it will not display information from your sqlhosts
> file.
>
> About your second problem. You used the wrong port number
> for oltp. I have changed the port number as below.
> Basically, you should use the port number for oltp which was
> defined in your oncmsm's sqlhosts file.
> jdbc:informix-sqli://192.168.0.16:9991/cards:informixserver=oltp
>
> Your group was defined in the sqlhosts for oncmsm, you
> can't access the server via g_mach. The g_mach group was
> used by oncmsm to connect to each nodes when oncmsm was
> brought up. If you want to access a single node via group,
> you have to define the group in your server sqlhosts file.
>
> Regards,
>
> -Ping
>
> > a)
> >
> jdbc:informix-sqli://192.168.0.16:9022/cards:informixserver=oltp
> >
> > b)
> >
> jdbc:informix-sqli://192.168.0.16:9022/cards:informixserver=g_mach
> >
>
>
> --- On Wed, 4/22/09, KAMRAN HAQ <khaq@i2cinc.com>
> wrote:
>
> > From: KAMRAN HAQ <khaq@i2cinc.com>
> > Subject: connect through java using group_name con
> mgr [15579]
> > To: ids@iiug.org
> > Date: Wednesday, April 22, 2009, 6:20 AM
> > Hi
> >
> > At end of this message is the information of our HDR
> > configuration at primary
> > server alongwith connection manager configuration.
> > it includes how we set environment for database and
> > connection manager, how we
> > run the connection manager and what we got in
> connection
> > managers log.
> >
> > Problem 1: connection manager log shows that it run
> > successfully but onstst
> > g cmsm command dont show the information
> about
> > other group members (we
> > defined in the group in sqlhosts file).
> >
> > Problem 2: We are able to connect through java
> application
> > using following
> > string
> >
> >
> jdbc:informix-sqli://192.168.0.16:9022/cards:informixserver=ids_net_primary
> >
> >
> > but unable to connect through following connection
> strings
> >
> >
> > a)
> >
> jdbc:informix-sqli://192.168.0.16:9022/cards:informixserver=oltp
> >
> > b)
> >
> jdbc:informix-sqli://192.168.0.16:9022/cards:informixserver=g_mach
> >
> >
> > for both a & b we get following error
> > message
> >
> > INFORMIXSERVER does not match either DBSERVERNAME or
> > DBSERVERALIASES.
> >
> > How can we connect through using group-name (g_mach)
> > And using connection manager group member (oltp)
> >
> > regards,
> > Kamran
> >
> > Primary Database Server's IP : 192.168.0.16
> > Connection manager IP : 192.168.0.16
> > Secondary Database Server IP : 192.168.0.15
> > RSS Database Server IP : 192.168.0.14
> >
> > -- sqlhosts entry
> >
> > g_mach group - - e=ids_net_RSS
> > ids_net_primary ontlitcp 192.168.0.16 sql_net_primary
> > g=g_mach
> > ids_net_secondary ontlitcp 192.168.0.15
> sql_net_secondary
> > g=g_mach
> > ids_net_RSS ontlitcp 192.168.0.14 sql_net_RSS g=g_mach
>
> > oltp onsoctcp 192.168.0.16 9991
> > report onsoctcp 192.168.0.16 9992
> > payroll onsoctcp 192.168.0.16 9993
> >
> > -- /etc/services
> > sqlturbo_pri 9201/tcp
> > sql_net_primary 9202/tcp
> > sqlturbo_sec 8201/tcp
> > sql_net_secondary 8202/tcp
> > sqlturbo_RSS 9203/tcp
> > sql_net_RSS 9204/tcp
> >
> > /etc/hosts
> > 192.168.0.16 sunpak04.i2c.com sunpak04
> > 192.168.0.15 sunpak03
> > 192.168.0.14 sunpak02.i2c.com sunpak02
> >
> > -- onconfig
> > SERVERNUM 88
> > DBSERVERNAME ids_primary
> > DBSERVERALIASES ids_net_primary
> > #DBSERVERALIASES g_mach
> >
> > HA_ALIAS ids_net_primary
> > #HA_ALIAS g_mach
> >
> > DRAUTO 0
> > DRINTERVAL 30
> > DRTIMEOUT 30
> > HA_ALIAS ids_net_primary
> > #HA_ALIAS g_mach
> > DRLOSTFOUND /export/informix11-50-3/etc/dr.lostfound
> > DRIDXAUTO 0
> > LOG_INDEX_BUILDS 1
> > SDS_ENABLE 0
> > SDS_TIMEOUT 20
> > SDS_PAGING
> > REDIRECTED_WRITES 0
> > FAILOVER_CALLBACK
> > TEMPTAB_NOLOG 1
> >
> > -- enviornment script
> > INFORMIXDIR=/export/informix11-50-3 ;export
> INFORMIXDIR
> > INFORMIXSERVER=ids_primary ;export INFORMIXSERVER
> > #INFORMIXSERVER=g_mach ;export INFORMIXSERVER
> > ONCONFIG=onconfig_test02 ;export ONCONFIG
> > INFORMIXSTACKSIZE=128 ;export INFORMIXSTACKSIZE
> >
> >
> PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/sfw/bin:/sbin:/usr/sfw/sparc-sun-solaris2.10/bin/:/usr/local/ssl/bin:$INFORMIXDIR/bin:$I
> >
> > NFORMIXDIR/etc ; export PATH
> > INFORMIXSERVERALIAS=ids_net_primary ;export
> > INFORMIXSERVERALIAS
> > #INFORMIXSERVERALIAS=g_mach ;export
> INFORMIXSERVERALIAS
> > IDSNETSERVICE=sql_net_test-9201
> > IDSSHMSERVICE=sqlturbo_test-9202
> > INFORMIXSQLHOSTS=/export/informix11-50-3/etc/sqlhosts
> > ;export INFORMIXSQLHOSTS
> > ONCONFIGFILE=$INFORMIXDIR/etc/onconfig_test02 ;export
> > ONCONFIGFILE
> >
> > -- cmsm.cfg
> > NAME cm_test
> > SLA oltp=primary
> > SLA report=HDR
> > SLA payroll=RSS
> > FOC HDR+RSS,0
> > SLA_WORKERS 16
> > DEBUG 1 # debug information
> > LOGFILE /export/informix11-50-3/tmp/cmlog.log
> >
> > -- password file
> > ids_net_primary - informix password
> > ids_net_secondary - informix password
> > #ids_net_rss1_12 - informix password
> >
> > -- script to run connection manager (con_mgr_test)
> > INFORMIXDIR=/export/informix11-50-3 ;export
> INFORMIXDIR
> > INFORMIXSQLHOSTS=/export/informix11-50-3/etc/sqlhosts
> > ;export INFORMIXSQLHOSTS
> > INFORMIXSERVER=ids_net_primary ;export INFORMIXSERVER
>
> >
> >
> PATH=/usr/sbin:/usr/bin:/usr/local/bin:/usr/sfw/bin:/sbin:/usr/sfw/sparc-sun-solaris2.10/bin/:/usr/local/ssl/bin:$INFORMIXDIR/bin:$I
> >
> > NFORMIXDIR/etc ; export PATH
> >
> > -- How we started connection manager
> > oncmsm -c /export/informix11-50-3/etc/cmsm.cfg
> >
> > -- connection manager status don't show information
> about
> > RSS and secondary
> > server
> > onstat -g cmsm
> >
> > -- output of above command
> > IBM Informix Dynamic Server Version 11.50.FC3 --
> On-Line
> > (Prim) -- Up 02:49:00
> > -- 328704 Kbytes
> > CM name host sla define foc flag connections
> >
> > -- connection manager is closed successfully with
> following
> > command
> > oncmsm -k cm_test
> >
> > -- output of connection manager log
> >
> > Thu Apr 16 19:15:02 2009
> > 19:15:02 IBM Informix Connection Manager
> > 19:15:02 Connection Manager name is cm_test
> > 19:15:02 Starting Connection Manager...
> > 19:15:04 Current max open fd is 32767
> > 19:15:04 switch to daemon mode
> > 19:15:04 new daemon pid is 18724 [cmsm_main.c:2525]
> > 19:15:04
> > fcntl(/export/informix11-50-3/tmp/cmsm.pid.cm_test)
> success
> > errno = 0
> > [cmsm_main.c:1781]
> > 19:15:04 dbservername = ids_primary
> > 19:15:04 nettype = onipcshm
> > 19:15:04 hostname = 192.168.0.16
> > 19:15:04 servicename = sqlturbo_primary
> > 19:15:04 options =
> > 19:15:04 listener oltp initializing
> > 19:15:04 create new thread 5 for ids_primary
> > [cmsm_sla.c:557]
> > 19:15:04 19:15:04 CONNECT to
> >
> sysmaster@ids_primary|onipcshm|192.168.0.16|sqlturbo_pri
> > listener report
> > initializing [cmsm_
> > server.ec:123]
> >
> > 19:15:04 listener payroll initializing
> > 19:15:04 Listener oltp=primary is active with 16
> worker
> > threads
> > 19:15:04 Listener report=HDR is active with 16 worker
> > threads
> > 19:15:04 Listener payroll=RSS is active with 16
> worker
> > threads
> > 19:15:04 CONNECT to
> >
> sysmaster@ids_primary|onipcshm|192.168.0.16|sqlturbo_pri
> > SQLCODE = (0,0,) [cmsm_server.ec:139]
> > 19:15:04 Connection Manager successfully connected to
> > ids_primary
> > 19:15:04 ids_primary protocols = 1
> [cmsm_server.ec:1147]
> > 19:15:04 adding ids_primary alias ids_net_primary
> with
> > protocol ontlitcp 1
> > [cmsm_server.ec:1237]
> > 19:15:04 fetch sysconfig_cursor sqlcode = (100,0,)
> > [cmsm_server.ec:1187]
> > 19:15:04 Adding server ids_primary
> [cmsm_server.ec:1572]
> > 19:15:04 Arbitrator FOC string = HDR+RSS,0
> > 19:15:04 Arbitrator setting primary name =
> ids_primary
> > [cmsm_arb.c:518]
> > 19:15:04 FOC[0] = HDR
> > 19:15:04 FOC[1] = RSS
> > 19:15:04 FOC timeout = 0
> > 19:15:04 Adding server ids_net_RSS
> [cmsm_server.ec:1572]
> > 19:15:04 create new thread 55 for ids_net_RSS
> > [cmsm_sla.c:557]
> > 19:15:04 CONNECT to
> >
> sysmaster@ids_net_RSS|ontlitcp|192.168.0.14|sql_net_RSS
> > [cmsm_server.ec:123]
> > 19:15:04 Adding server ids_net_secondary
> > [cmsm_server.ec:1572]
> > 19:15:04 create new thread 56 for ids_net_secondary
> > [cmsm_sla.c:557]
> > 19:15:04 CONNECT to
> >
> sysmaster@ids_net_secondary|ontlitcp|192.168.0.15|sql_net_secondary
> > USER
> > informix [cmsm_server.ec:123]
> > 19:15:05 CONNECT to
> >
> sysmaster@ids_net_RSS|ontlitcp|192.168.0.14|sql_net_RSS
> > SQLCODE = (0,0,) [cmsm_server.ec:139]
> > 19:15:05 Connection Manager successfully connected to
> > ids_net_RSS
> > 19:15:05 ids_net_RSS protocols = 1
> [cmsm_server.ec:1147]
> > 19:15:05 fetch sysconfig_cursor sqlcode = (100,0,)
> > [cmsm_server.ec:1187]
> > 19:15:05 Arbitrator FOC string = HDR+RSS,0
> > 19:15:05 Arbitrator setting primary name =
> ids_net_primary
> > [cmsm_arb.c:518]
> > 19:15:05 FOC[0] = HDR
> > 19:15:05 FOC[1] = RSS
> > 19:15:05 FOC timeout = 0
> > 19:15:05 get ids_net_RSS CM_ADM event 8:3 cm_test
> > [cmsm_server.ec:1042]
> > 19:15:05 CONNECT to
> >
> sysmaster@ids_net_secondary|ontlitcp|192.168.0.15|sql_net_secondary
> > SQLCODE =
> > (0,0,) [cmsm_server.ec:1
> > 39]
> > 19:15:05 Connection Manager successfully connected to
> > ids_net_secondary
> > 19:15:05 ids_net_secondary protocols = 1
> > [cmsm_server.ec:1147]
> > 19:15:05 fetch sysconfig_cursor sqlcode = (100,0,)
> > [cmsm_server.ec:1187]
> > 19:15:05 get ids_net_secondary CM_ADM event 8:3
> cm_test
> > [cmsm_server.ec:1042]
> > 19:15:05 Connection Manager started successfully
> > 19:15:48 oncmsm is shutting down
> > 19:15:48 oncmsm is disconnecting from server ...
> > 19:15:48 Connection Manager disconnected from
> > ids_net_secondary
> > 19:15:48 shutting down, monitor ids_net_secondary
> exit
> > [cmsm_server.ec:1630]
> > 19:15:49 Connection Manager disconnected from
> ids_primary
> > 19:15:49 shutting down, monitor ids_primary exit
> > [cmsm_server.ec:1630]
> > 19:15:49 Connection Manager disconnected from
> ids_net_RSS
> > 19:15:49 shutting down, monitor ids_net_RSS exit
> > [cmsm_server.ec:1630]
> > 19:15:49 oncmsm has shut down successfully
> >
> >
> >
> *******************************************************************************
> >
> > Forum Note: Use "Reply" to post a response in the
> > discussion forum.
> >
> >
>
>
>
>

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.