From cary@ratatosk.org Mon Aug 4 17:16:25 1997 From: cary@ratatosk.org (Cary Collett) Date: Mon, 4 Aug 1997 12:16:25 -0400 (EDT) Subject: [DB-SIG] Oracle, Python and CGI Message-ID: <199708041616.MAA11393@ratatosk.org> Well... I'm trying to access an Oracle DB from a Python script being called via CGI. When I tried to connect to Oracle, I got this error: cobj = oracledb.oracledb('ffoo/bar') OracleDbError: LOGON caused a Error while trying to retrieve text for error ORA-01019 At first I though it was because the script was running as nobody, so I set up Apache's suEXEC to change my UID and GID. posix.getuid() and getgid() verify that this it's working. (Even the effective UID and GIDs are changed.) But I still get the connect error. The script will connect fine if I run it from the command line. Also I can connect fine when running python in command line mode. Anyhow, I'm stumped, any suggestions are welcome! Cary _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From cary@ratatosk.org Mon Aug 4 18:12:18 1997 From: cary@ratatosk.org (Cary Collett) Date: Mon, 4 Aug 1997 13:12:18 -0400 (EDT) Subject: [DB-SIG] Oracle, Python and CGI In-Reply-To: <199708041706.UAA03020@port.teleport.ee> from "HANNU" at Aug 4, 97 08:06:48 pm Message-ID: <199708041712.NAA11582@ratatosk.org> > > > I'm trying to access an Oracle DB from a Python script being called via > > CGI. When I tried to connect to Oracle, I got this error: > > > > cobj = oracledb.oracledb('ffoo/bar') > > OracleDbError: LOGON caused a Error while trying to retrieve text for > > error ORA-01019 > > You probably dont have the oracle environment variables set > > you may try to set them throug os.environ before connecting or > launch the python script through a shell script doing the setting > > Hannu Krosing > Yeah, I just figured that out. I'm mildly fried (yeah, and it's only Monday). One of these days I'll remember this /before/ I post here. Cary _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From cary@ratatosk.org Mon Aug 4 20:57:56 1997 From: cary@ratatosk.org (Cary Collett) Date: Mon, 4 Aug 1997 15:57:56 -0400 (EDT) Subject: [DB-SIG] callproc and OracleDB Message-ID: <199708041957.PAA12180@ratatosk.org> Ok... (everyone getting sick of me yet?) I get an Attribute error when I try to use the callproc() method on my connection object. (Tried with a cursor object too, same, not that I expected it to work, but it was worth a try.) Oracle 7.3.2, Slowlaris 2.5.1, Python 1-4, Oracledb 0.1.3. I'm guessing that the support simply isn't there yet. If this is the case, are their plans to add it in the near future? Thanks, Cary _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From Anthony Baxter Tue Aug 5 02:43:38 1997 From: Anthony Baxter (Anthony Baxter) Date: Tue, 05 Aug 1997 11:43:38 +1000 Subject: [DB-SIG] Oracle, Python and CGI In-Reply-To: Your message of "Mon, 04 Aug 1997 12:16:25 -0400." <199708041616.MAA11393@ratatosk.org> Message-ID: <199708050143.LAA15857@shara.off.connect.com.au> >>> Cary Collett wrote > I'm trying to access an Oracle DB from a Python script being called via > CGI. When I tried to connect to Oracle, I got this error: > cobj = oracledb.oracledb('ffoo/bar') > OracleDbError: LOGON caused a Error while trying to retrieve text for > error ORA-01019 This generally means you haven't set up the appropriate environment variables. ---------8<--------snip-------------- def oracle_env(): """oracle_env - set the appropriate environment for Oracle""" import os # change the following! orahome="/opt/oracle/product/7.3.2" os.putenv("ORACLE_HOME", orahome) os.putenv("ORA_NLS", orahome+"/ocommon/nls/admin/data") os.putenv("ORACLE_TERM", "xterm") os.putenv("ORACLE_SID", "ink") os.putenv("ORACLE_DOC", "/import/oracle/doc") ---------8<--------snip-------------- _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From Anthony Baxter Tue Aug 5 03:26:06 1997 From: Anthony Baxter (Anthony Baxter) Date: Tue, 05 Aug 1997 12:26:06 +1000 Subject: [DB-SIG] callproc and OracleDB In-Reply-To: Your message of "Mon, 04 Aug 1997 15:57:56 -0400." <199708041957.PAA12180@ratatosk.org> Message-ID: <199708050226.MAA19159@shara.off.connect.com.au> >>> Cary Collett wrote > I get an Attribute error when I try to use the callproc() method on > my connection object. (Tried with a cursor object too, same, not that > I expected it to work, but it was worth a try.) Is there any reason you couldn't use cursor.execute() instead? I've not found a reason for callproc, so I don't intend to add it to the new oracledb. Anthony _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From szhao@compeople.com Fri Aug 15 13:51:02 1997 From: szhao@compeople.com (Shichang Zhao) Date: Fri, 15 Aug 1997 08:51:02 -0400 Subject: [DB-SIG] dbi interface, connection object. Message-ID: <01BCA958.607F4160@W95-Developer1.SIG> I see "commit" (commit pending transactions) and rollback interfaces, which are very useful in controlling the interaction with database. I just wonder either database connection objects should have some attributes, like autocommit flag, so that user can control the behavior when interacting with a database connection. Shichang Zhao software engineer computerpeople Pittsburgh, _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From Anthony Baxter Fri Aug 15 14:51:27 1997 From: Anthony Baxter (Anthony Baxter) Date: Fri, 15 Aug 1997 23:51:27 +1000 Subject: [DB-SIG] dbi interface, connection object. In-Reply-To: Your message of "Fri, 15 Aug 1997 08:51:02 -0400." <01BCA958.607F4160@W95-Developer1.SIG> Message-ID: <199708151351.XAA15518@jambu.off.connect.com.au> >>> Shichang Zhao wrote > I see "commit" (commit pending transactions) and rollback interfaces, > which are very useful in controlling the interaction with database. I > just wonder either database connection objects should have some > attributes, like autocommit flag, so that user can control the behavior > when interacting with a database connection. I've thought about that on occasion - I decided for my purposes, I'd prefer to know exactly when I'm committing things. I suppose making it an option to commit() when the cursor/connection is deleted might make sense, maybe... Anthony _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From mwm@contessa.phone.net Thu Aug 21 21:36:44 1997 From: mwm@contessa.phone.net (Mike Meyer) Date: Thu, 21 Aug 1997 12:36:44 PST Subject: [DB-SIG] Looking for more interfaces... Message-ID: <19970821.714DB80.B9F8@contessa.phone.net> Since the list appears inactive, I figure I would just jump in with my questions, rather than watch for a bit. Apologies if this is inappropriate. Further , I'm still getting up to speed on many of these technologies, so gentle guidance towards appropriate documentation would be appreciated in the cases where I asked a stupid question. Question set 1: Has anyone done a version of the database API for either mSQL or MySQL? How about using the ODBC version of the interface with MySQL? Question set 2: I'm contemplating a higher-level interface, something a bit more OO. This is being driven by a distributed application that has parts of objects in SQL databases, and parts of objects *NOT* in SQL databases, and etc. I'd like to be able to easily build objects that get data attributes from an SQL row, but have other attributes coming from elsewhere. Anything existing along these lines? I've seen references to OODBC, but haven't been able to turn up a description, other than pointers into MS documentation, which makes me think it's not all that usefull. Thanx, Sorry to bother you all (anybody ?), Before I end up recreating the wheel (and undoubtedly making it a shoddy, square wheel), are there any resources or scripts which deal with indexing of documents / databases with python ? (or for that matter, the concepts/algorithms behind indexing in general. the stuff i have found so far on the web is rather weak... not that i expect Oracle to be giving away any secrets) Anyway, it's just to create my own search utility for documents. Sure, I can use the free Excite utility but I was actually interested in how this works for my own interest and since I may need to build this functionality into applications. Data would be stored in pure text/html files or better still, also in wordprocessor docs. For indexing in databases, I guess we should really use internal functions provided for that database. Thanks for any help / advice, chas ps. a long time ago i did ask about converting from several wordprocessor formats to html. some people asked me to report back if i found anything - well, sorry to say that we ended up going with a great off-the-shelf java solution : www.net-it.com it did the job perfectly so we went with it.... client had the budget. _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From johnm@magnet.com Thu Aug 21 22:02:46 1997 From: johnm@magnet.com (John Mitchell) Date: Thu, 21 Aug 1997 17:02:46 -0400 (EDT) Subject: [DB-SIG] indexing with python ? In-Reply-To: <3.0.32.19970822042343.00e1f290@mail.neuronet.com.my> Message-ID: On Fri, 22 Aug 1997, chas wrote: > Sorry to bother you all (anybody ?), > > Before I end up recreating the wheel (and undoubtedly making it > a shoddy, square wheel), are there any resources or scripts which > deal with indexing of documents / databases with python ? You might try Digital Creation's "Inverted Index" stuff: http://www.digicool.com/releases/unsupported/InvertedIndex/ - j _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From jim.fulton@digicool.com Thu Aug 21 22:38:32 1997 From: jim.fulton@digicool.com (Jim Fulton) Date: Thu, 21 Aug 1997 17:38:32 -0400 Subject: [DB-SIG] indexing with python ? References: Message-ID: <33FCB558.430D@digicool.com> John Mitchell wrote: > > On Fri, 22 Aug 1997, chas wrote: > > > Sorry to bother you all (anybody ?), > > > > Before I end up recreating the wheel (and undoubtedly making it > > a shoddy, square wheel), are there any resources or scripts which > > deal with indexing of documents / databases with python ? > > You might try Digital Creation's "Inverted Index" stuff: > > http://www.digicool.com/releases/unsupported/InvertedIndex/ No! Please don't! The version we released scales horribly. Unfortunately, I don't think we'll release a free version of InvertedIndex that's any good. :-[ Eventually, we will offer a commercial Python OODBMS product that includes a much improved inverted index, as well as other indexing structures such as various database-oriented tree and set structures. In the mean time, we are willing to license this technology on a case by case basis. We are currently using this technology heavily in our own products. Jim -- Jim Fulton Digital Creations jim@digicool.com 540.371.6909 ## Python is my favorite language ## ## http://www.python.org/ ## _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From jim.fulton@digicool.com Thu Aug 21 22:40:39 1997 From: jim.fulton@digicool.com (Jim Fulton) Date: Thu, 21 Aug 1997 17:40:39 -0400 Subject: [DB-SIG] indexing with python ? References: <33FCB558.430D@digicool.com> Message-ID: <33FCB5D7.7F85@digicool.com> BTW, we've got some pretty neat technology we'd like to talk to Magnet about. A while back, you discussed the possibility of some of our folks giving a presentation to Magnet management. Has there been any progress on this? Jim -- Jim Fulton Digital Creations jim@digicool.com 540.371.6909 ## Python is my favorite language ## ## http://www.python.org/ ## _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From ted_horst@il.us.swissbank.com Thu Aug 21 22:25:40 1997 From: ted_horst@il.us.swissbank.com (Ted Horst) Date: Thu, 21 Aug 97 16:25:40 -0500 Subject: [DB-SIG] indexing with python ? References: <3.0.32.19970822042343.00e1f290@mail.neuronet.com.my> Message-ID: <9708212125.AA05024@ch1d162nwk> You might have a look at glimpse. I haven't looked at it in a while, but it is freely available AFAIK. I might be interesting to make a python module for building and searching glimpse indexes. The WWW home page for glimpse is in http://glimpse.cs.arizona.edu:1994/ The complete source code for glimpse and glimpseindex, as well as manual pages and other stuff can be obtained from ftp://cs.arizona.edu/glimpse/glimpse.2.1.src.tar.Z _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From sweeting@neuronet.com.my Thu Aug 21 23:06:45 1997 From: sweeting@neuronet.com.my (chas) Date: Fri, 22 Aug 1997 06:06:45 +0800 Subject: [DB-SIG] indexing with python ? Message-ID: <3.0.32.19970822060805.00e2bd38@mail.neuronet.com.my> thanks for the original tip, John - will look at the theory of it anyway, cheers, chas ------------------------------------ >> > Before I end up recreating the wheel (and undoubtedly making it >> > a shoddy, square wheel), are there any resources or scripts which >> > deal with indexing of documents / databases with python ? >> >> You might try Digital Creation's "Inverted Index" stuff: >> >> http://www.digicool.com/releases/unsupported/InvertedIndex/ > >No! Please don't! The version we released scales horribly. thanks for the warning. explains why no link on that page. and pls ignore my previous email on this Paul. sounds familiar too : we were looking at one based on Verity (Allaire's Forums using Cold Fusion) but the verity indexing is really resource intensive and Verity seems to be incredibly buggy. (i heard Verity was also based on perl somewhere along the line) >Unfortunately, I don't think we'll release a free version of >InvertedIndex that's any good. :-[ okey dokey. >Eventually, we will offer a commercial Python OODBMS product that >includes a much improved inverted index, as well as other indexing >structures such as various database-oriented tree and set structures. In >the mean time, we are willing to license this technology on a case by >case basis. We are currently using this technology heavily in our own >products. well - i'm afraid the budget for our application at the moment is zilch since it's just for simple discussion forums (web-board type things) for the company... and they don't view my time as a cost for some weird reason. But i don't mind since i've always been interested in how indexing works so will check your white paper anyway for the basics. thank you. chas _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From mclay@nist.gov Thu Aug 21 18:12:26 1997 From: mclay@nist.gov (Michael McLay) Date: Thu, 21 Aug 1997 13:12:26 -0400 Subject: [DB-SIG] indexing with python ? In-Reply-To: <9708212125.AA05024@ch1d162nwk> References: <3.0.32.19970822042343.00e1f290@mail.neuronet.com.my> <9708212125.AA05024@ch1d162nwk> Message-ID: <199708211712.NAA01027@fermi.eeel.nist.gov> Ted Horst writes: > > You might have a look at glimpse. I haven't looked at it in a while, but it > is freely available AFAIK. I might be interesting to make a python module for > building and searching glimpse indexes. I looked at doing that a couple years ago. They have a couple functino calls that are over 1000 lines of code that kind of scared me off of that idea. It's not very pretty code. _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From pa@tekla.fi Fri Aug 22 07:24:30 1997 From: pa@tekla.fi (Harri Pasanen) Date: Fri, 22 Aug 1997 09:24:30 +0300 Subject: [DB-SIG] indexing with python ? In-Reply-To: <199708211712.NAA01027@fermi.eeel.nist.gov> References: <3.0.32.19970822042343.00e1f290@mail.neuronet.com.my> <9708212125.AA05024@ch1d162nwk> <199708211712.NAA01027@fermi.eeel.nist.gov> Message-ID: <9708220624.AA30167@tahma.tekla.fi> Michael McLay writes: > Ted Horst writes: > > > > You might have a look at glimpse. I haven't looked at it in a > > while, but it is freely available AFAIK. > > I might be interesting to make a python module for > > building and searching glimpse indexes. > > I looked at doing that a couple years ago. They have a couple > function calls that are over 1000 lines of code that kind of scared me > off of that idea. It's not very pretty code. > Also, commercial use of glimpse requires some kind of a license. Harri _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From bertil_reinhammar@ivab.se Fri Aug 22 07:27:43 1997 From: bertil_reinhammar@ivab.se (Bertil Reinhammar) Date: Fri, 22 Aug 1997 08:27:43 +0200 Subject: [DB-SIG] informixdb DBAPI Message-ID: <01BCAED5.44699B10@brian.doceye.ivab.se> !!! So I finally found the time and effort to fetch these files from the = repository. These files are from pre-Jayant Kelkar-addings as we seems to have technical problems to maintain communication. I will try to get time to study his work and incorporate. informixdb.tar.gz is for un*x informixdb.zip is for windows. Please wait some time for ftpmaster@python.org to move the files. Sorry about the delay. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - = - - Bertil Reinhammar WM-Data Infrateknik AB phn. +46 13 200100 Teknikringen 9 fax. +46 13 214897 SE58330 Link=F6ping bertil_reinhammar@ivab.se Sweden _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From klm@python.org Wed Aug 27 15:09:20 1997 From: klm@python.org (Ken Manheimer) Date: Wed, 27 Aug 1997 10:09:20 -0400 (EDT) Subject: [DB-SIG] Re: informixdb DBAPI In-Reply-To: <01BCAED5.44699B10@brian.doceye.ivab.se> Message-ID: On Fri, 22 Aug 1997, Bertil Reinhammar wrote: > So I finally found the time and effort to fetch these files from the > repository. > These files are from pre-Jayant Kelkar-addings as we seems to have > technical problems to maintain communication. I will try to get time to > study his work and incorporate. > informixdb.tar.gz is for un*x > informixdb.zip is for windows. > Please wait some time for ftpmaster@python.org to move the files. > Sorry about the delay. The new versions are in place. Thanks for providing them, to replace the broken substitutes that we mistakenly had adopted! Ken Manheimer klm@cnri.reston.va.us 703 620-8990 x268 (orporation for National Research |nitiatives # If you appreciate Python, consider joining the PSA! # # . # _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________