From Shaun Lessman Fri May 2 22:15:53 1997 From: Shaun Lessman (Shaun Lessman) Date: Fri, 2 May 1997 16:15:53 -0500 (CDT) Subject: [PYTHON DB-SIG] Socksifying oradbmodule Message-ID: Has anyone successfully socksified (SOCKS5) the oracle database module? I've been playing around with it a bit without success. I'm guessing that's because the actual connect procedures are in Oracle's libs and can't be socksified externally. Too bad, because I've got a SOCKS5 replacement for the socketmodule that works pretty well and can do just about everything except Oracle. Always something to work toward, I guess. :) Shaun Lessman --------------------------------------------------------------------- | Synapse, L.L.C. | Network Administrator, Synapse Internet | | 2620 Thousand Oaks Blvd +-----------------------------------------+ | Suite 2220 | slessman@mem.net | (901) 797-8274 | | Memphis Tennessee +-----------------------------------------+ | 38118-2434 | SALPYSALPYSALPYSALPYSALPYSALPYSALPYSALP | --------------------------------------------------------------------- _______________ 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 Sat May 3 07:15:09 1997 From: Anthony Baxter (Anthony Baxter) Date: Sat, 03 May 1997 16:15:09 +1000 Subject: [PYTHON DB-SIG] Socksifying oradbmodule In-Reply-To: Your message of "Fri, 02 May 1997 16:15:53 EST." Message-ID: <199705030615.QAA15613@shara.off.connect.com.au> I reckon you've got buggerall chance of doing it - unless you can use the runsocks type script, which does shared library funkiness. Ask Oracle to add it. (ha. ha. ha.) Anthony. >>> Shaun Lessman wrote > Has anyone successfully socksified (SOCKS5) the oracle database module? I've > been playing around with it a bit without success. I'm guessing that's because > the actual connect procedures are in Oracle's libs and can't be socksified > externally. Too bad, because I've got a SOCKS5 replacement for the socketmodule > that works pretty well and can do just about everything except Oracle. Always > something to work toward, I guess. :) _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From Shaun Lessman Sat May 3 16:05:26 1997 From: Shaun Lessman (Shaun Lessman) Date: Sat, 3 May 1997 10:05:26 -0500 (CDT) Subject: [PYTHON DB-SIG] Socksifying oradbmodule In-Reply-To: <199705030615.QAA15613@shara.off.connect.com.au> Message-ID: > > Has anyone successfully socksified (SOCKS5) the oracle database module? > I reckon you've got buggerall chance of doing it - unless you can use > the runsocks type script, which does shared library funkiness. Ask Oracle > to add it. (ha. ha. ha.) Yeah, I know I can do it if I launch my script like: #!/usr/local/bin/bash export LD_LIBRARY_PATH=/usr/local/lib export _RLD_LIST=libsocks5_sh.so:DEFAULT /usr/local/bin/python /usr/local/lib/site-python/DBClean_radacct.py That's a pain, though. Be nice to just do: import SOCKSoracledb oracledb=SOCKSoracledb Ah, well. Pity that Oracle said they have no plans to support SOCKS firewalls. I could take care of it with a packet proxy on port 1521 of the SOCKS5 host, but why add more complexity? Hmmm, I wonder if it's possible to set the LD_LIBRARY_PATH and _RLD_LIST from within the script before the oradbmodule is imported? I know it can't be done with: import os os.environ['_RLD_LIST']='libsocks5_sh.so:DEFAULT' os.environ['LS_LIBRARY_PATH']='/usr/local/lib' import oracledb Does anyone know of another way to do this? Or even if it's possible? I don't know enough about how rld interacts with python to know... Shaun Lessman --------------------------------------------------------------------- | Synapse, L.L.C. | Network Administrator, Synapse Internet | | 2620 Thousand Oaks Blvd +-----------------------------------------+ | Suite 2220 | slessman@mem.net | (901) 797-8274 | | Memphis Tennessee +-----------------------------------------+ | 38118-2434 | SALPYSALPYSALPYSALPYSALPYSALPYSALPYSALP | --------------------------------------------------------------------- _______________ 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 May 9 13:44:34 1997 From: pa@tekla.fi (Harri Pasanen) Date: Fri, 9 May 1997 15:44:34 +0300 Subject: [PYTHON DB-SIG] Re: [PYTHONWIN-SIG] Info about Python and ODBC uploaded In-Reply-To: <3.0.32.19970509152334.00ececa8@neuronet.com.my> References: <3.0.32.19970509152334.00ececa8@neuronet.com.my> Message-ID: <9705091244.AA04786@tahma.tekla.fi> chas writes: > > ps. anyone ever come across an IOERROR problem on NT with python cgi scripts > ... they function fine from the command line but when called > via the web, i keep getting a bizarre error : > > open ("domains.txt", "r") IOError: (2, 'No such file or directory' > > the file most certainly does exist (as witnessed by > the success of the script from the command line)... and the > IUSER with MSIIS has full control over the directory .... > frustrating. > Just a guess: The current directory may be whatever. You should probably use an absolute path to your file. Hope this helps, Harri _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From bill@rfa.org Fri May 9 12:30:04 1997 From: bill@rfa.org (Bill Eldridge) Date: Fri May 09 11:30:04 1997 Subject: [PYTHON DB-SIG] Re: [PYTHONWIN-SIG] Info about Python and ODBC uploaded Message-ID: <19970509113004bill@rfa.org@eldridgeb.rfa.org> Try: http://www.python.org/ftp/python/pythonwin/html/odbc.html I assume that was the ODBC documentation referred to. -- Bill Eldridge TechOps Radio Free Asia bill@rfa.org _______________ 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 May 9 13:44:34 1997 From: pa@tekla.fi (Harri Pasanen) Date: Fri, 9 May 1997 15:44:34 +0300 Subject: [PYTHON DB-SIG] Re: [PYTHONWIN-SIG] Info about Python and ODBC uploaded In-Reply-To: <3.0.32.19970509152334.00ececa8@neuronet.com.my> References: <3.0.32.19970509152334.00ececa8@neuronet.com.my> Message-ID: <9705091244.AA04786@tahma.tekla.fi> chas writes: > > ps. anyone ever come across an IOERROR problem on NT with python cgi scripts > ... they function fine from the command line but when called > via the web, i keep getting a bizarre error : > > open ("domains.txt", "r") IOError: (2, 'No such file or directory' > > the file most certainly does exist (as witnessed by > the success of the script from the command line)... and the > IUSER with MSIIS has full control over the directory .... > frustrating. > Just a guess: The current directory may be whatever. You should probably use an absolute path to your file. Hope this helps, Harri _______________ 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 Fri May 9 14:28:17 1997 From: sweeting@neuronet.com.my (chas) Date: Fri, 9 May 1997 21:28:17 +0800 Subject: [PYTHON DB-SIG] Re: [PYTHONWIN-SIG] Info about Python and ODBC uploaded Message-ID: <3.0.32.19970509212206.00ec18e0@neuronet.com.my> Nice guess Harri ! This did in fact do the trick. Thank you. Strange that I didn't use the absolute path with another cgi script in the past but had no trouble with file i/o ... the only difference being that I'm now working in virtual directories with MSIIS whereas before I used the default d:\inetpub\scripts\ directory. Oh well, at least it works. Thank you again. chas >Just a guess: > >The current directory may be whatever. You should probably use an >absolute path to your file. > >Hope this helps, > >Harri > >> ps. anyone ever come across an IOERROR problem on NT with python cgi scripts >> ... they function fine from the command line but when called >> via the web, i keep getting a bizarre error : >> >> open ("domains.txt", "r") IOError: (2, 'No such file or directory' >> >> the file most certainly does exist (as witnessed by >> the success of the script from the command line)... and the >> IUSER with MSIIS has full control over the directory .... >> frustrating. _______________ 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 Fri May 9 08:29:46 1997 From: sweeting@neuronet.com.my (chas) Date: Fri, 9 May 1997 15:29:46 +0800 Subject: [PYTHON DB-SIG] Re: [PYTHONWIN-SIG] Info about Python and ODBC uploaded Message-ID: <3.0.32.19970509152334.00ececa8@neuronet.com.my> >I've just uploaded some documentation about Python and ODBC (python_odbc. >tar.gz) . >Here is the readme for that file -- > went looking for that documentation but no joy.... the python ftp site is a maze. don't suppose you have the exact location ? but just a general question on databases : if i am creating web-to-database apps with python, without a commercial database, which is the best way to go ? msql and postgres are only available on unix. i would like to keep developing on NT but have the option of running the same apps on unix at a later date... that is after all, python's supposed strength, no ? odbc seems the way to go for windows but for unix ? for cross platform, i am using flat files at the moment but that is not too scalable me thinks. (or is python really that fast with lists ?) thank you very much for any advice and excuse my dragging the intelligence level of SIGs down. chas ps. anyone ever come across an IOERROR problem on NT with python cgi scripts ... they function fine from the command line but when called via the web, i keep getting a bizarre error : open ("domains.txt", "r") IOError: (2, 'No such file or directory' the file most certainly does exist (as witnessed by the success of the script from the command line)... and the IUSER with MSIIS has full control over the directory .... frustrating. apologies for the bad form if i am posting all of this in the wrong places.... >The tar.gz file contains a detailed explanation about the >LMS (Library Management System ) written using Python and ODBC. >I hope this might help others who have been looking for some >info and examples about Python and ODBC. > >If you have questions please post them to the pythonwin list. > >hiren@digital-nirvana.com > > > >_______________ >PYTHONWIN-SIG - SIG on Win95/NT/3.1 GUI version of Python > >send messages to: pythonwin-sig@python.org >administrivia to: pythonwin-sig-request@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 andreas.hausleitner@khsa.khs-linz.ac.at Tue May 13 10:38:42 1997 From: andreas.hausleitner@khsa.khs-linz.ac.at (Andreas Hausleitner) Date: Tue, 13 May 1997 10:38:42 +0100 Subject: [PYTHON DB-SIG] Database API on SGI/Irix5.3 Message-ID: <337836A2.DF78FA57@khsa.khs-linz.ac.at> I have tried to create a sharded library of the files in oracledb-0.1.2 for Python1.3. I am always getting unresolved symbols or a core dump. Do you know anybody, who has compiled the library for the SGI/Irix5.3 or who has any hints to get successful. Thanks in advance, Andreas -- Andreas Hausleitner University of Art and Industrial Design Center for Informatics Services (ZID) Information Systems Hauptplatz 8, A-4010 Linz, Austria - Europe email: a.hausleitner@khsa.khs-linz.ac.at phone: (++43)/+732 78 51 73 - 265 fax: (++43)/+732 78 35 08 _______________ 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 May 13 11:40:34 1997 From: Anthony Baxter (Anthony Baxter) Date: Tue, 13 May 1997 20:40:34 +1000 Subject: [PYTHON DB-SIG] Database API on SGI/Irix5.3 In-Reply-To: Your message of "Tue, 13 May 1997 10:38:42 +0100." <337836A2.DF78FA57@khsa.khs-linz.ac.at> Message-ID: <199705131040.UAA18362@jambu.off.connect.com.au> >>> Andreas Hausleitner wrote > I have tried to create a sharded library of the files in oracledb-0.1.2 > for Python1.3. I am always getting unresolved symbols or a core dump. > Do you know anybody, who has compiled the library for the SGI/Irix5.3 > or who has any hints to get successful. What are the undefined symbols you are getting, and what commands are you using to build with. What version of Oracle are you linking against? _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From jiang@geosun.indstate.edu Thu May 15 17:27:46 1997 From: jiang@geosun.indstate.edu (Yu Jiang) Date: Thu, 15 May 1997 11:27:46 -0500 Subject: No subject Message-ID: <199705151627.LAA23331@geosun.indstate.edu> Hi Everybody: I am installing oracledb on Solaries, and experienced errors as: .................. 'ASHAREDMODULESXTRA='\ 'OPT=-g -Dsolaries -I./' asharedmodule;\ Based on the following words in Makefile: > > CFLAGS=-g -Dsolaries -I./ > # ABOVE, > # A_OSF is defined to trigger all of the platform specific variable > # declarations for a dec alpha running osf(from oratypes.h). Also > # note that the current directory is included because it is the > # location of oratypes.h, ociapr.h, and ocidfn.h > I tried to fullfil OPT line as: CFLAGS=-g -Dsolaries -I./MYORAHOME_path to allow oratypes.h, ociapr.h to be accessed. But did not work too. By the way, I installed my python locally. Please help me out. Huey _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From jiang@geosun.indstate.edu Mon May 19 20:19:05 1997 From: jiang@geosun.indstate.edu (Yu Jiang) Date: Mon, 19 May 1997 14:19:05 -0500 Subject: [PYTHON DB-SIG] oracledb install Message-ID: <199705191919.OAA07265@geosun.indstate.edu> Hi Everybody: I tried to install oracledb for many times but failed with error message as: make: Fatal error: Don't know how to make target 'oradbmodule.o' Indeed, I cannot find this oradbmodule.o and dbi.o. I can find oracledb.c, dbi.h and dbi.c. I wonder if I need to install something before I release this oracledb-0.1.2.tar? Huey _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From da@maigret.cog.brown.edu Tue May 20 18:57:16 1997 From: da@maigret.cog.brown.edu (David Ascher) Date: Tue, 20 May 1997 13:57:16 -0400 (EDT) Subject: [PYTHON DB-SIG] Sybase / MS-SQL Message-ID: Has anyone got any sort of interface working between Python and the Sybase server (which I understand is the same as M$-SQL Server)? --da _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________ From c9450880@zeus.hud.ac.uk Sat May 24 12:00:48 1997 From: c9450880@zeus.hud.ac.uk (MR. D.HUSBAND) Date: Sat, 24 May 1997 12:00:48 +0100 Subject: [PYTHON DB-SIG] mSQL Help Message-ID: <199705241100.MAA01881@fireball.csm> Could anyone who knows how to use the mSQL module tell me how to create new tables and do searches from a python program. As this little project is intended to be a database front end, how can you display a group of records from a database in a browser. -Dave c9450880@zeus.hud.ac.uk _______________ DB-SIG - SIG on Tabular Databases in Python send messages to: db-sig@python.org administrivia to: db-sig-request@python.org _______________