From recon@cavalry.com Thu Aug 13 23:57:04 1998 From: recon@cavalry.com (Bill Anderson) Date: Thu, 13 Aug 1998 16:57:04 -0600 Subject: [DB-SIG] Linux & Informix Message-ID: <35D36F40.6E251657@cavalry.com> Now that Informix is running where I can make good use of it,I was wondering .... I need to access an informix Database server on a remote machine (same LAN), does the informixdb module provide fo rme to do this, without installing informix on the 'client' machine? Basically, I have some web pages to develop that need to access an informix db on another machine. Currently this is being done by some particularly *nasty* perl code involving some strange pipe mechanisms and such. I am still in the early stages of pythonery, and am completely unsure how to rewrite the heinously nasty perl code to do the same in python. I put informix on my machine at home, and tried the informixdb module, it compiled, but threw lines after lines of errors when trying to import in the interactive shell for testing. Is this known to *not* work on Linux? Any and all help greatly appreciated (Hate the thought of having to write this system in perl ...) -- Bill Anderson Cyberhighway Internet Services, SYCON "Pluralitas non est ponenda sine neccesitate." Plurality should not be assumed without neccesity. From mlorton@slip.net Fri Aug 14 00:49:58 1998 From: mlorton@slip.net (Michael Lorton) Date: Thu, 13 Aug 1998 16:49:58 -0700 (PDT) Subject: [DB-SIG] Linux & Informix In-Reply-To: <35D36F40.6E251657@cavalry.com> Message-ID: On Thu, 13 Aug 1998, Bill Anderson wrote: > I need to access an informix Database server on a remote machine (same > LAN), does the informixdb module provide fo rme to do this, without > installing informix on the 'client' machine? No. The informixdb module does not provide networking, it just talks to the local interface (although a good db-networking module might be a good idea...) M. From A.M.INGRALDI@larc.nasa.gov Fri Aug 14 13:16:52 1998 From: A.M.INGRALDI@larc.nasa.gov (Anthony M. Ingraldi) Date: Fri, 14 Aug 1998 08:16:52 -0400 Subject: [DB-SIG] Linux & Informix In-Reply-To: <35D36F40.6E251657@cavalry.com> Message-ID: At 4:57 PM -0600 8/13/98, Bill Anderson wrote: >I put informix on my machine at home, and tried the informixdb module, >it compiled, but threw lines after lines of errors when trying to import >in the interactive shell for testing. Is this known to *not* work on >Linux? I don't know about any Linux-specific problems with informixdb, but it seems that a common import problem is related to how the module is linked when you build it. I had to modify the LIBS definition in the Makefile in order to get a module that would import successfully. Old LIBS definition: LIBS=-lasf -lsql -los -lgen new definition: LIBS=-lixsql -lixasf -lixgen -lixos -lixgls -lnsl -lsocket -laio -lm /usr/local/informix/lib/esql/checkapi.o -lixglx You may need a slightly different definition of LIBS in your environment. Typing "esql -libs" at a command prompt should give you the necessary linking information. SIDE NOTE: ---------- Perhaps the Makefile in the distribution should include the following for the LIBS definition: LIBS=`esql -libs` I don't know if the esql command is available in all Informix installations, so the above definition may not always work. -- Tony Ingraldi | e-mail: A.M.INGRALDI@LaRC.NASA.GOV NASA Langley Research Center | Mail Stop 267 | Phone : (757) 864-3039 Hampton, VA 23681-2199 | Fax : (757) 864-7892 From alexan@www.micex.com Fri Aug 14 13:25:45 1998 From: alexan@www.micex.com (Alexander Kuznetsov) Date: Fri, 14 Aug 1998 16:25:45 +0400 Subject: [DB-SIG] Linux & Informix References: Message-ID: <35D42CC8.BC362DD7@www.micex.com> Michael Lorton wrote: > The informixdb module does not provide networking, it just talks to the > local interface (although a good db-networking module might be a good > idea...) > OK! This idea comes to me too! And I've developed a new Informixdb module a day before. It is rewritten completely from the beginning. It's not based on the work of Greg Stein, although I used it for reference and It did help me a lot. My new informixdb module does support networking. There're also much more improvements: - correct deal with memory ( Greg Stein's module doesn't free all memory allocated in execute(), so that python process become enormous of size and often fall down, when you do coping of large tables) - you can specify user name and password like that informixdb.informixdb('mydatabase', 'user', 'password') - It executes mush faster queries with the same sql text and different parameters repeatedly. So that it prepares the query only once if it comes the same. - It is a faster at all! this list is incomplete list of new features. New Informixdb is still under development, but it seems to be stable now. I plan to make it free and it will be available on my ftp site in a few days. Can anyone help me with new informixdb home page? If you want to get informix module now, you may send request to me alexan@unicorn.micex.ru. This module developed on HP-UX with Informix Online 7.2. It will not compile under linux now. So some work should be done to support linux and SE. This is work of one day, and I'm going to do this in a few days(before putting on ftp site!). Now I have not more time to do this, Sorry :( --- Alexander Kuznetsov, alexan@unicorn.micex.ru Software Engineer Moscow Interbank Currency Exchange From klm@python.org Fri Aug 14 19:58:53 1998 From: klm@python.org (Ken Manheimer) Date: Fri, 14 Aug 1998 14:58:53 -0400 (EDT) Subject: [DB-SIG] Linux & Informix In-Reply-To: <199808141600.MAA25033@python.org> Message-ID: This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --132.151.1.90.9001.24953.903110409.19829 Content-Type: TEXT/PLAIN; CHARSET=us-ascii Content-ID: Content-Description: Masthead (DB-SIG digest, Vol 1 #45) Alexander Kuznetsov wrote: > Michael Lorton wrote: > > > The informixdb module does not provide networking, it just talks to the > > local interface (although a good db-networking module might be a good > > idea...) > > > OK! This idea comes to me too! > And I've developed a new Informixdb module a day before. > It is rewritten completely from the beginning. It's not based on the work > of Greg Stein, although I used it for reference and It did help me a lot. > My new informixdb module does support networking. There're also much more > improvements: This sort of stuff is great, and it would be really great if someone familiar with the Python db landscape could gather it all together into a Python topic guide - see http://www.python.org/topics/ . Any energetic person out there willing to take it on, or coordinate a few people to do it? Ken Manheimer klm@python.org 703 620-8990 x268 (orporation for National Research |nitiatives # If you appreciate Python, consider joining the PSA! # # . # --132.151.1.90.9001.24953.903110409.19829-- From jeremy@cnri.reston.va.us Fri Aug 14 21:07:07 1998 From: jeremy@cnri.reston.va.us (Jeremy Hylton) Date: Fri, 14 Aug 1998 16:07:07 -0400 (EDT) Subject: [DB-SIG] Linux & Informix In-Reply-To: References: <199808141600.MAA25033@python.org> Message-ID: <13780.38988.389825.959466@bitdiddle.cnri.reston.va.us> >>>>> "KLM" == Ken Manheimer writes: KLM> This sort of stuff is great, and it would be really great if KLM> someone familiar with the Python db landscape could gather it KLM> all together into a Python topic guide - see KLM> http://www.python.org/topics/ . Any energetic person out there KLM> willing to take it on, or coordinate a few people to do it? I volunteered to help put this together, but two things have prevented me from doing it: 1. I've been much busier than I expected over the last few weeks. 2. I didn't get as much feedback as I had hoped about what the current extension modules are and that sort of thing. (But thanks to everyone who did reply!) I haven't given up on writing a topic guide, but it's relatively low priority at the moment. If anyone else wants to take over, I'll contribute what I already have (and help move it forward). Jeremy From gstein@svpal.org Fri Aug 14 23:12:45 1998 From: gstein@svpal.org (Greg Stein) Date: Fri, 14 Aug 1998 15:12:45 -0700 (PDT) Subject: [DB-SIG] Linux & Informix In-Reply-To: <35D42CC8.BC362DD7@www.micex.com> Message-ID: To give credit where it is due... Michael Lorton wrote all the modules that came out of eShop two years ago. I merely did bug fixing, small improvements, evangelism, and the pass-off to third parties when eShop could no longer "own" them (due to its acquisition by MSFT). I'm glad to see that they have contributed and made an impact! It's also cool to see the same-string optimization actually completed (as the API was designed to support that technique). Cheers, -g -- Greg Stein (gstein@lyra.org) execfile("disclaimer.py") On Fri, 14 Aug 1998, Alexander Kuznetsov wrote: > Michael Lorton wrote: > > > The informixdb module does not provide networking, it just talks to the > > local interface (although a good db-networking module might be a good > > idea...) > > > > OK! This idea comes to me too! > And I've developed a new Informixdb module a day before. > It is rewritten completely from the beginning. It's not based on the work > of Greg Stein, although I used it for reference and It did help me a lot. > My new informixdb module does support networking. There're also much more > improvements: > - correct deal with memory ( Greg Stein's module doesn't free > all memory allocated in execute(), so that python process become enormous > of size and often fall down, when you do coping of large tables) > > - you can specify user name and password like that > > informixdb.informixdb('mydatabase', 'user', 'password') > > - It executes mush faster queries with the same sql text and > different parameters repeatedly. So that it prepares the query > only once if it comes the same. > > - It is a faster at all! > > this list is incomplete list of new features. > New Informixdb is still under development, but it seems to be stable now. I > plan to make it free and it will be available on my ftp site in a few days. > Can anyone help me with new informixdb home page? > If you want to get informix module now, you may send request to me > alexan@unicorn.micex.ru. > > This module developed on HP-UX with Informix Online 7.2. It will not > compile under linux now. So some work should be done to support linux and > SE. This is work of one day, and I'm going to do this in a few days(before > putting on ftp site!). Now I have not more time to do this, Sorry :( > > --- > Alexander Kuznetsov, alexan@unicorn.micex.ru > Software Engineer > Moscow Interbank Currency Exchange > > > > _______________________________________________ > DB-SIG maillist - DB-SIG@python.org > http://www.python.org/mailman/listinfo/db-sig > > From ucntcme@cyberhighway.net Tue Aug 18 23:39:19 1998 From: ucntcme@cyberhighway.net (Bill Anderson) Date: Tue, 18 Aug 1998 16:39:19 -0600 Subject: [DB-SIG] mxODBC and Informix Message-ID: <35DA0297.D0D7DA62@cyberhighway.net> As the subject intimates, I have a question about mxODBC. Is this an appropriate place? If so, would it connect to an Informix dd (7.2)? I intend to do some testing with MySQL, and then switch to Informix when it works properly with glibc (I was using suse, but when my Alpha came in I switched). I have two areas I intend to use this in, one being a POS suite, and the other being strictly web-based. Bill Anderson, From alexan@www.micex.com Wed Aug 19 08:39:18 1998 From: alexan@www.micex.com (Alexander Kuznetsov) Date: Wed, 19 Aug 1998 11:39:18 +0400 Subject: [DB-SIG] mxODBC and Informix References: <35DA0297.D0D7DA62@cyberhighway.net> Message-ID: <35DA8125.F1914EB@www.micex.com> Bill Anderson wrote: > As the subject intimates, I have a question about mxODBC. Is this an > appropriate place? If so, would it connect to an Informix dd (7.2)? > > I intend to do some testing with MySQL, and then switch to Informix when > it works properly with glibc (I was using suse, but when my Alpha came > in I switched). > > I have two areas I intend to use this in, one being a POS suite, and the > other being strictly web-based. > > Bill Anderson, Informix SE for Linux free distribution includes Informix-Net product . Informix-Net is a client library, used to connect to Informix DB servers (both ONLINE and SE). You may install only Informix-Net to your linux host and make connections to other hosts -- Alexander Kuznetsov, alexan@unicorn.micex.ru From mal@lemburg.com Wed Aug 19 08:34:49 1998 From: mal@lemburg.com (M.-A. Lemburg) Date: Wed, 19 Aug 1998 09:34:49 +0200 Subject: [DB-SIG] mxODBC and Informix References: <35DA0297.D0D7DA62@cyberhighway.net> Message-ID: <35DA8019.4C889E6C@lemburg.com> Bill Anderson wrote: > > As the subject intimates, I have a question about mxODBC. Is this an > appropriate place? If so, would it connect to an Informix dd (7.2)? If Informix provides ODBC libs for your Unix there should be no problem. You will only have to tell the extension (and possibly me ;) how the header files are named and where to find them. > I intend to do some testing with MySQL, and then switch to Informix when > it works properly with glibc (I was using suse, but when my Alpha came > in I switched). mxODBC -> MySQL works fine from what I can tell: I'm actively using MySQL and SuSE ADABAS. -- Marc-Andre Lemburg Y2000: 499 days left --------------------------------------------------------------------- : Python Pages >>> http://starship.skyport.net/~lemburg/ : ---------------------------------------------------------