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: Re: JDBC connection (Hopping)

Posted By: Marcus Haarmann
Date: Tuesday, 10 November 2009, at 6:56 p.m.

In Response To: Re: JDBC connection (Hopping) (VIKAS HIVARKAR)

Hi,

I remember we once did something like this.
We connected to the primary server as usual
and then made queries with databasename@database_instance:tablename
Alternatively we might have executed "database
databasename@database_instance"
statement on the connection and then use normal statements, I cannot
remember and
I have no hands on the sources right now, cause it was in an old
company.
I do not think it is possible to connect indirectly to the second
instance via a JDBC String.
Both is worth a try, if you need to connect to both databases within the
same connection.
In case you need both databases in one transaction, maybe you should use
XA,
but this is more complex because you need a TransactionManager.

Marcus

-----Original Message-----
From: VIKAS HIVARKAR [mailto:vikas.hivarkar@gmail.com]
Sent: Tuesday, November 10, 2009 10:21 AM
To: ids@iiug.org
Subject: Re: JDBC connection (Hopping) [18025]

Hi,

yes, direct connection is fast and working but for some reasons i have
to get this via via connection working and that too with in the
connection string.

Even I'm hoping for some hint, I'm having a look at dynamic sqlhosts
lookup but nothing working yet.

Regards,
Vikas

************************************************************************
*******
Don't know more. I don't do JDBC at all myself. Note that direct remote
connections to a remote server tend to be faster than a forwarded
connection through the local server to the remote.

Art

Art S. Kagel
Oninit (www.oninit.com)
IIUG Board of Directors (art@iiug.org)

Disclaimer: Please keep in mind that my own opinions are my own opinions
and do not reflect on my employer, Oninit, the IIUG, nor any other
organization with which I am associated either explicitly or implicitly.
Neither do those opinions reflect those of other individuals affiliated
with any entity with which I am affiliated nor those of the entities
themselves.

On Mon, Nov 9, 2009 at 10:21 AM, VIKAS HIVARKAR
<vikas.hivarkar@gmail.com>wrote:

> Hello Art,
>
> --You can test the remote connection between the two servers using
> dbaccess as follows
> INFORMIXSERVER=INFORMIXSERVER_1
> dbaccess test_2@INFORMIXSERVER_2 -
>
> The above test works in a flash and i am able to connect the test_2
> database on INFORMIXSERVER_2 instance from INFORMIXSERVER_1 on HOST_1
> !
>
> I tried
> jdbc:informix-sqli://HOST_1:1980/test_2@INFORMIXSERVER_2
> :INFORMIXSERVER=INFORMIXSERVER_1
>
> But it interprets "test_2@INFORMIXSERVER_2" as the name of the
> database and not as test_2 database on INFORMIXSERVER_2 instance.
>
> As you mentioned that the JDBC connection should work I also checked
> for the topic on "Dynamically Reading the Informix SQLHOSTS file" here

> i tried
>
>
>
>
jdbc:informix-sqli://HOST_1:1980/test_2:INFORMIXSERVER=INFORMIXSERVER_2;
SQLH_TYPE=FILE;SQLH_FILE=/opt/informix/ids/etc/sqlhosts
>
> But no luck eighter.
>
>
>
>
************************************************************************
*******
>
> You can certainly connect directly to the INFORMIXSERVER_2 on HOST_2
> to access the test_2 database there or you can connect to
> INFORMIXSERVER_1 on
> HOST_1 and access the test_2 database remotely through the
> INFORMIXSERVER_1 server which will connect to INFORMIXSERVER_2 on your

> behalf (as long as the remote server is defined in the sqlhosts file
> on the local machine). Your connection string should look something
> like:
>
> jdbc:informix-sqli://HOST_1:1980/test_2@INFORMIXSERVER_2
> :INFORMIXSERVER=INFORMIXSERVER_1
>
> You can test the remote connection between the two servers using
> dbaccess as
> follows:
>
> INFORMIXSERVER=INFORMIXSERVER_1
> dbaccess test_2@INFORMIXSERVER_2 -
>
> If that works, the jdbc connection should work as well.
>
> Art
>
> Art S. Kagel
> Oninit (www.oninit.com)
> IIUG Board of Directors (art@iiug.org)
>
> Disclaimer: Please keep in mind that my own opinions are my own
> opinions and do not reflect on my employer, Oninit, the IIUG, nor any
> other organization with which I am associated either explicitly or
> implicitly. Neither do those opinions reflect those of other
> individuals affiliated with any entity with which I am affiliated nor
> those of the entities themselves.
>
> On Mon, Nov 9, 2009 at 7:18 AM, VIKAS HIVARKAR
> <vikas.hivarkar@gmail.com>wrote:
>
> > Hi all,
> >
> > My last post was not very clear so I try again.
> >
> > I have :
> > INFORMIXSERVER_1 running on HOST_1 against port 1980
> > INFORMIXSERVER_2 running on HOST_2 against port 1990
> >
> > Both HOST entires are present in /etc/hosts, sqlhosts and
> > /etc/services
> and
> > both instances are online!
> > I can simply edit the env on HOST_1 to point to INFORMIXSERVER_2
> > then do
> a
> > dbaccess and connect the INFORMIXSERVER_2.
> >
> > Now comes the JDBC part :(
> > I'm using a front end tool "SQLWorkbench" which uses the
> > "com.informix.jdbc.IfxDriver" & the connection string is as:
> >
> > jdbc:informix-sqli://HOST_1:1980/test_1:INFORMIXSERVER=INFORMIXSERVE
> > R_1 Every thing works fine and I'm able to connect to test_1 db
> >
> > But when i try the following
> > jdbc:informix-sqli://HOST_1:1990/test_2:INFORMIXSERVER=INFORMIXSERVE
> > R_2
> >
> > Error:'Can't load driver java.lang.reflect.InvocationTargetException
> >
> > Any comment If such connection is possible where I connect to HOST_1

> > but then try to access a database test_2 on INFORMIXSERVER_2 via
> > port 1990, if yes that what should i check for?
> >
> > May be not the best way to do this but....
> >
> > Regards,
> > Vikas

************************************************************************
*******
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.