From davids@SDSC.EDU Thu Nov 1 00:03:34 2001 From: davids@SDSC.EDU (David Stockwell) Date: Wed, 31 Oct 2001 16:03:34 -0800 Subject: [Zope-DB] SybaseDA datasources help Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0006_01C16225.980AA130 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit OK, I fixed db.py and go it working. Now I want to add a Sybase Database and I need to enter a datasource, which is defined elsewhere in the Sybase system. Can anyone help me here? I want to define a remote source. Thanks ------=_NextPart_000_0006_01C16225.980AA130 Content-Type: text/x-vcard; name="David Stockwell.vcf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="David Stockwell.vcf" BEGIN:VCARD VERSION:2.1 N:Stockwell;David FN:David Stockwell ORG:San Diego Supercomputer Center;San Diego Supercomputer Center TITLE:Assistant Research Scientist NOTE;ENCODING=3DQUOTED-PRINTABLE:=3D0D=3D0A------------=3D0D=3D0AFrom: = davids@SDSC.EDU on behalf of David Stockwell [=3D davids@SDSC.EDU]=3D0D=3D0ASent: Tuesday, March 21, 2000 2:30 = PM=3D0D=3D0ATo: Tony Fo=3D untain; Peter Arzberger; David Stockwell; Mark Diggory=3D0D=3D0ASubject: = EI meet=3D ing writeup=3D0D=3D0A=3D0D=3D0AHi,=3D0D=3D0A=3D0D=3D0AThe write-up of = the meeting today is a=3D t = =3D0D=3D0A=3D0D=3D0Ahttp://biodi.sdsc.edu/Doc/Manage/meeting2.html.=3D0D=3D= 0A=3D0D=3D0AChe=3D ers=3D0D=3D0A=3D0D=3D0A=3D0D=3D0A-- =3D0D=3D0A=3D0D=3D0ADavid Stockwell, = Ph.D.=3D0D=3D0AAssistant Re=3D search Scientist=3D0D=3D0ASan Diego Supercomputer Center=3D0D=3D0Atel. = 858 8220942=3D =3D0D=3D0A=3D0D=3D0ACheck out http://biodi.sdsc.edu=3D0D=3D0A=3D0D=3D0A TEL;WORK;VOICE:858 - 822 0942 ADR;WORK:;;9500 Gilman Dr;La Jolla;CA;92093;USA LABEL;WORK;ENCODING=3DQUOTED-PRINTABLE:9500 Gilman Dr=3D0D=3D0ALa Jolla, = CA 92093=3D0D=3D0AUSA URL:http://biodi.sdsc.edu URL:http://biodi.sdsc.edu EMAIL;PREF;INTERNET:davids@SDSC.EDU REV:20010619T000615Z END:VCARD ------=_NextPart_000_0006_01C16225.980AA130-- From matt@virtualspectator.com Thu Nov 1 08:55:39 2001 From: matt@virtualspectator.com (matt) Date: Thu, 1 Nov 2001 21:55:39 +1300 Subject: [Zope-DB] BerkeleyDB slow Message-ID: <00fa01c162b2$faec5ea0$0901a8c0@matthome> This is a multi-part message in MIME format. ------=_NextPart_000_00F7_01C1631F.F1919330 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Chris Withers pointed me here to find an answer. The following is a = copy of the emails from the main zope mailing list. Hi, I am finding that writes to the ZODB are far slower when the storage is = BerkeleyDB instead of Data.fs. I should also mention that I run this = through ZEO, if that has anything to do with it. I now have quite a few = folders, some with up to 1000 objects in them. I know ZEO is not very = write friendly, but if I switch the Storage back to main .. i.e. = Data.fs(Still as a zeo client), and import data into it, then I find it = is 5-10 times faster when doing something as simple as editing small = dtml method. My current system is the following : Zope Version (Zope 2.4.0 (source release, python 2.1, linux2), = python 2.1.0, freebsd4) =20 Python Version 2.1 (#1, Jul 18 2001, 17:06:28) [GCC 2.95.3 = [FreeBSD] 20010315 (release)] =20 System Platform freebsd4 =20 I was wondering if this behaviour was common. regards Matt ________ Reply from Chris Withers Indeed. It's two to five times slower. Ask Barry why (->zodb-dev@zope.org) cheers Chris __________________________ ------=_NextPart_000_00F7_01C1631F.F1919330 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Chris Withers pointed me here to find = an=20 answer.  The following is a copy of the emails from the main zope = mailing=20 list.
 
Hi,
 
I am finding that writes to the ZODB = are far slower=20 when the storage is BerkeleyDB instead of Data.fs.  I should also = mention=20 that I run this through ZEO, if that has anything to do with it.  I = now=20 have quite a few folders, some with up to 1000 objects in them.  I = know ZEO=20 is not very write friendly, but if I switch the Storage back to main .. = i.e.=20 Data.fs(Still as a zeo client), and import data into it, then I find it = is 5-10=20 times faster when doing something as simple as editing small dtml=20 method.
 
My current system is the following = :
 
Zope Version
(Zope 2.4.0 (source release, python 2.1, = linux2),=20 python 2.1.0, freebsd4)
Python Version
2.1 (#1, Jul 18 2001, 17:06:28) [GCC 2.95.3 = [FreeBSD]=20 20010315 (release)]
System Platform
freebsd4 =
 
I was wondering if this behaviour was=20 common.
 
regards
Matt
 
________
 
Reply from Chris Withers
 

Indeed. It's two to five = times=20 slower.

Ask Barry why=20 (->zodb-dev@zope.org)

cheers

Chris
__________________________
 
------=_NextPart_000_00F7_01C1631F.F1919330-- From matt@zope.com Thu Nov 1 14:52:23 2001 From: matt@zope.com (Matthew T. Kromer) Date: Thu, 01 Nov 2001 09:52:23 -0500 Subject: [Zope-DB] BerkeleyDB slow References: <00fa01c162b2$faec5ea0$0901a8c0@matthome> Message-ID: <3BE161A7.9000601@zope.com> Hey name-kin, You actually wanted zodb-dev@zope.org not zope-db@zope.org. However, it is true that right now Berkeley DB storages are running slower than Data.fs. There are a couple of factors involved; 1) Datafs (FileStorage) is a log oriented file -- ie appends just happen on the end of the file. You dont get much faster than just appending data. By the same token, that's why you have to pack the database periodically. 2) Berkleley storage is still evolving; in the past few months I've heard of several performance tunes, such as increasing the number of locks in the storage, etc. In theory, the Berkeley storage shouldnt be that much slower; most updates should happen to shared memory areas and be destaged asynchronously. However, I am not a new Berkeley DB whiz (I used 1.85 extensively, but thats way old now). If I recall correctly (and I may be mistaken) ZEO serially commits objects to the Storage. So, latencies in your writes will tend to affect your queue times significantly. A good question to ask the zodb-dev list would be "can ZEO be modified to do concurrent wites for some storages?" I may be barking up the wrong tree, but I think some storage methods should be able to support concurrent writes to the storage whereas FileStorage can't (since you can't simultaneously append without getting bad results). matt wrote: > Chris Withers pointed me here to find an answer. The following is a > copy of the emails from the main zope mailing list. > > > > Hi, > > > > I am finding that writes to the ZODB are far slower when the storage > is BerkeleyDB instead of Data.fs. I should also mention that I run > this through ZEO, if that has anything to do with it. I now have > quite a few folders, some with up to 1000 objects in them. I know ZEO > is not very write friendly, but if I switch the Storage back to main > .. i.e. Data.fs(Still as a zeo client), and import data into it, then > I find it is 5-10 times faster when doing something as simple as > editing small dtml method. > > > > My current system is the following : > > > > Zope Version > > (Zope 2.4.0 (source release, python 2.1, linux2), python 2.1.0, freebsd4) > > Python Version > > 2.1 (#1, Jul 18 2001, 17:06:28) [GCC 2.95.3 [FreeBSD] 20010315 (release)] > > System Platform > > freebsd4 > > > > I was wondering if this behaviour was common. > > > > regards > > Matt > > > > ________ > > > > Reply from Chris Withers > > > > > Indeed. It's two to five times slower. > > Ask Barry why (->zodb-dev@zope.org) > > cheers > > Chris > > __________________________ > > > From Jean Pierre Litsas" Hi, I am using Zope 2.4.2 to calling a external method to select some rows in PostgreSQL 7.1.3, this external method use PgSQL 1.6 and i am having this error : Error Type: AttributeError Error Value: 'PgSQL' module has no attribute 'connect' The same script works OK if is called from command prompt but with Zope not. My system to work with Zope: Zope Version: (Zope 2.4.2 (binary release, python 2.1, linux2-x86), python 2.1.0, linux2) Python Version: 2.1 (#2, Jun 22 2001, 10:20:42) [GCC 2.7.2.3] System Platform: linux2 RedHat 7.2 PostgreSQL 7.1.3 PgSQL 1.6 egenix-mx-base-2.0.2 To command prompt: RedHat 7.2 PostgreSQL 7.1.3 PgSQL 1.6 egenix-mx-base-2.0.2 Python2: Python 2.1.1 (#1, Aug 13 2001, 19:37:40) [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-96)] on linux2 My script: import sys import PgSQL def test( ): cnx=PgSQL.connect(database='GDigital',user='postgres') cur=cnx.cursor() cue.execute("SELECT * FROM caduser") cur.close() del cnx return '%s' % 0 if __name__ = '__main__': test() Thanks. Pierre. Sao Paulo - Brazil From gerhard@bigfoot.de Sun Nov 4 20:30:48 2001 From: gerhard@bigfoot.de (Gerhard =?unknown-8bit?Q?H=E4ring?=) Date: Sun, 4 Nov 2001 21:30:48 +0100 Subject: [Zope-DB] Postgres + PgSQL In-Reply-To: <001a01c16566$cf3dd4d0$1e01a8c0@des1> References: <001a01c16566$cf3dd4d0$1e01a8c0@des1> Message-ID: <20011104213047.A5929@lilith.hqd-internal> On Sun, Nov 04, 2001 at 04:24:10PM -0300, Jean Pierre Litsas wrote: > Hi, > > I am using Zope 2.4.2 to calling a external method to select some rows in > PostgreSQL 7.1.3, this external method use PgSQL 1.6 and i am having this > error : > Error Type: AttributeError > Error Value: 'PgSQL' module has no attribute 'connect' I'm not sure if this is a feature of Python or Zope, but there's an incompletely loaded PgSQL in memory. Restart Zope and you will be fine. Is there a way to let Zope do the equivalent of "unload module", btw.? You probably have already done this, but: you need to edit PgSQL.py and exchange the order of two import statements so that they read like this instead of the other way round. This is so that PgSQL does *not* use Zope's internal DateTime module: try: from mx import DateTime except: import DateTime from libpq import * This won't be necessary anymore in pyPgSQL 2.0. The pyPgSQL DA will also be in CVS, soon. Gerhard -- mail: gerhard bigfoot de registered Linux user #64239 web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id 86AB43C0 public key fingerprint: DEC1 1D02 5743 1159 CD20 A4B6 7B22 6575 86AB 43C0 reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b'))) From Jean Pierre Litsas" Thanks gerhard, external method running ok now. Pierre. On Sun, Nov 04, 2001 at 04:24:10PM -0300, Jean Pierre Litsas wrote: > Hi, > > I am using Zope 2.4.2 to calling a external method to select some rows in > PostgreSQL 7.1.3, this external method use PgSQL 1.6 and i am having this > error : > Error Type: AttributeError > Error Value: 'PgSQL' module has no attribute 'connect' I'm not sure if this is a feature of Python or Zope, but there's an incompletely loaded PgSQL in memory. Restart Zope and you will be fine. Is there a way to let Zope do the equivalent of "unload module", btw.? You probably have already done this, but: you need to edit PgSQL.py and exchange the order of two import statements so that they read like this instead of the other way round. This is so that PgSQL does *not* use Zope's internal DateTime module: try: from mx import DateTime except: import DateTime from libpq import * This won't be necessary anymore in pyPgSQL 2.0. The pyPgSQL DA will also be in CVS, soon. Gerhard -- mail: gerhard bigfoot de registered Linux user #64239 web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id 86AB43C0 public key fingerprint: DEC1 1D02 5743 1159 CD20 A4B6 7B22 6575 86AB 43C0 reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b'))) From florian.schuler@braunconsulting.de Mon Nov 5 12:17:54 2001 From: florian.schuler@braunconsulting.de (Florian Schuler) Date: Mon, 5 Nov 2001 13:17:54 +0100 Subject: [Zope-DB] Problems with "Subselect" in SQL statment Message-ID: Hello List, I have a problem using ZSQL Methods. If I do something like this: select * from person where id != (Select userid from projektmitglieder where projektid='20'); Zope gives me an error ! Error Type: ProgrammingError Error Value: ERROR: More than one tuple returned by a subselect used as an expression. select * from person where id != (Select userid from projektmitglieder where projektid='20'); But if I try this on the test chapter of my DB adapter is works and the ZSQL Method also works well if I call it manually !! Does someone knows a solution Thanks in advance Florian Schuler From fog@debian.org Mon Nov 5 12:29:28 2001 From: fog@debian.org (Federico Di Gregorio) Date: 05 Nov 2001 13:29:28 +0100 Subject: [Zope-DB] Problems with "Subselect" in SQL statment In-Reply-To: References: Message-ID: <1004963368.5420.10.camel@nenya> --=-7D/8i7Vb5RvYj5i8I/dr Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Mon, 2001-11-05 at 13:17, Florian Schuler wrote: > Hello List, >=20 > I have a problem using ZSQL Methods. If I do something like this: >=20 > select * from person where id !=3D (Select userid from projektmitglieder > where projektid=3D'20'); >=20 > Zope gives me an error !=20 > Error Type: ProgrammingError > Error Value: ERROR: More than one tuple returned by a subselect used as > an expression. select * from person where id !=3D (Select userid from > projektmitglieder where projektid=3D'20'); what adapter are you using? --=20 Federico Di Gregorio Debian GNU/Linux Developer & Italian Press Contact fog@debian.org INIT.D Developer fog@initd.org The number of the beast: vi vi vi. -- Delexa Jones --=-7D/8i7Vb5RvYj5i8I/dr Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iEYEABECAAYFAjvmhigACgkQvcCgrgZGjevz4wCgqm3q6q2Qr72EbjAE5I2o/eqN CjcAn1SwcvpND2mPEaoe7B0j0jYkzr5c =iTf0 -----END PGP SIGNATURE----- --=-7D/8i7Vb5RvYj5i8I/dr-- From tflorac@onf.fr Mon Nov 5 12:59:44 2001 From: tflorac@onf.fr (Thierry FLORAC) Date: Mon, 5 Nov 2001 13:59:44 +0100 Subject: [Zope-DB] Re: [Zope] Problems with "Subselect" in SQL statment In-Reply-To: ; from florian.schuler@braunconsulting.de on Mon, Nov 05, 2001 at 13:17:54 +0100 References: Message-ID: <20011105135944.M608@thfl-1103-1.omi.onf.fr> On 05.11.2001 - 13:17 Florian Schuler wrote: > Hello List, > > I have a problem using ZSQL Methods. If I do something like this: > > select * from person where id != (Select userid from projektmitglieder > where projektid='20'); > > Zope gives me an error ! You should probably use : select * from person where id not in (select userid ... ); and this even if your subrequest is known to always retrieve only one row !! Thierry From ruger@comnett.net Tue Nov 6 00:32:02 2001 From: ruger@comnett.net (D. Rick Anderson) Date: Mon, 05 Nov 2001 16:32:02 -0800 Subject: [Zope-DB] Sybase DA Message-ID: <3BE72F82.3050800@comnett.net> --------------040009070507040209060107 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I am trying to get the Sybase DA to work on a RH 7.1 system with Sybase 12.5 and Zope 2.3.2. I had to modify the Setup file from: sy_occ sy_occ.c -I$(SYBASE)/include -L$(SYBASE)/lib -lcomn -lcs -lct -lintl -ls ybtcl -linsck -lm to: sy_occ sy_occ.c -I$(SYBASE)/include -L$(SYBASE)/OCS/lib -lcomn -lcs -lct -lintl -lsybtcl -lsybdb just to get sy_occ.so to compile. The libraries that were used by the original Setup weren't all there so I modified it to reflect all of them in the $SYBASE/OCS/lib directory. I then imported the sy_occ.so into Python and the DA installed just fine. When I try to create a connection in Zope it gives me: Invalid connection string: database: 14852, password: blatherskite, server: 192.168.0.23, transactional: Y, user: blatherskite [Powered by Zope] Traceback (innermost last): File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /usr/local/Zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook (Object: RoleManager) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_edit) File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_edit) File /usr/local/Zope/lib/python/Shared/DC/ZRDB/Connection.py, line 167, in manage_edit (Object: RoleManager) File /usr/local/Zope/lib/python/Shared/DC/ZRDB/Connection.py, line 161, in edit (Object: RoleManager) File /usr/local/Zope/lib/python/Shared/DC/ZRDB/Connection.py, line 240, in connect (Object: RoleManager) File /usr/ local/Zope/lib/python/Products/SybaseDAv2/db.py, line 149, in __init__ File /usr/local/Zope/lib/python/Products/SybaseDAv2/db.py, line 309, in _error BadRequest: (see above) Any ideas? Is this caused by the changes I made to the Setup file? Any help would be greatly appreciated. Thanks, Rick -- ************************************************ Rick Anderson Work: (702)397-6445 System Administrator Cell: (702)275-1855 ComNett Computer Services http://www.comnett.net ************************************************ --------------040009070507040209060107 Content-Type: multipart/related; boundary="------------000508090306090901010901" --------------000508090306090901010901 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I am trying to get the Sybase DA to work on a RH 7.1 system with Sybase 12.5 and Zope 2.3.2. I had to modify the Setup file from:

sy_occ sy_occ.c -I$(SYBASE)/include -L$(SYBASE)/lib  -lcomn -lcs -lct -lintl -ls
ybtcl -linsck -lm

to:

sy_occ sy_occ.c -I$(SYBASE)/include -L$(SYBASE)/OCS/lib  -lcomn -lcs -lct -lintl
 -lsybtcl -lsybdb

just to get sy_occ.so to compile. The libraries that were used by the original Setup weren't all there so I modified it to reflect all of them in the $SYBASE/OCS/lib directory. I then imported the sy_occ.so into Python and the DA installed just fine. When I try to create a connection in Zope it gives me:

Invalid connection string: database: 14852, password: blatherskite, server: 192.168.0.23, transactional: Y, user: blatherskite

Powered by Zope

Traceback (innermost last):
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 187, in publish
  File /usr/local/Zope/lib/python/Zope/__init__.py, line 221, in zpublisher_exception_hook
    (Object: RoleManager)
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 171, in publish
  File /usr/local/Zope/lib/python/ZPublisher/mapply.py, line 160, in mapply
    (Object: manage_edit)
  File /usr/local/Zope/lib/python/ZPublisher/Publish.py, line 112, in call_object
    (Object: manage_edit)
  File /usr/local/Zope/lib/python/Shared/DC/ZRDB/Connection.py, line 167, in manage_edit
    (Object: RoleManager)
  File /usr/local/Zope/lib/python/Shared/DC/ZRDB/Connection.py, line 161, in edit
    (Object: RoleManager)
  File /usr/local/Zope/lib/python/Shared/DC/ZRDB/Connection.py, line 240, in connect
    (Object: RoleManager)
  File /usr/

local/Zope/lib/python/Products/SybaseDAv2/db.py, line 149, in __init__
  File /usr/local/Zope/lib/python/Products/SybaseDAv2/db.py, line 309, in _error
BadRequest: (see above)

Any ideas? Is this caused by the changes I made to the Setup file? Any help would be greatly appreciated.

Thanks,

Rick
-- ************************************************ Rick Anderson Work: (702)397-6445 System Administrator Cell: (702)275-1855 ComNett Computer Services http://www.comnett.net ************************************************




--------------000508090306090901010901--

--------------040009070507040209060107--



From burt@dfki.de  Tue Nov  6 17:11:30 2001
From: burt@dfki.de (Alastair Burt)
Date: 06 Nov 2001 18:11:30 +0100
Subject: [Zope-DB] Corrupt Data.fs
Message-ID: 

I posted two articles to the zope@zope.org mailing list[1] about this
topic. Since I got only one oblique response, I am posting here to try to
regain my faith in the ZODB. These are the problems that have seriously
weakened my faith in the ZODB:

  1. My Data.fs got corrupted and Zope would not restart. I have no idea
     how this happend. Possible contributory causes might be no disk space
     left or two Zope instances trying to serve the same Data.fs.

  2. The fsrecover utility could not help me very much (nor
     tranalyzer). They both bomb out. Tranalyzer tells me that there is a "
     transaction lengths mismatch". Frustratingly, I can see actions in the
     Data.fs (mostly changes to a Wiki) that tranalyzer fails to recognise
     even when I give it a "-s" flag to start searching for transactions
     after the problem with the transaction length.

  3. One of the more worrying aspects of this corruption is that backups do
     not seem to be much help to me. As far as I can tell, Zope was happily
     serving requests for weeks from a database that it would not be able
     to restart from. The backups made during this time are pretty much
     unusable. I guess one way to counter this would be to kill and restart
     Zope at regular intervals.

Given these problems, can I trust the ZODB with valuable data again?

--- Alastair
 
Footnotes: 
[1]  http://lists.zope.org/pipermail/zope/2001-November/103196.html
http://lists.zope.org/pipermail/zope/2001-November/103206.html



From matt@zope.com  Tue Nov  6 18:35:49 2001
From: matt@zope.com (Matthew T. Kromer)
Date: Tue, 06 Nov 2001 13:35:49 -0500
Subject: [Zope-DB] Corrupt Data.fs
References: 
Message-ID: <3BE82D85.3020401@zope.com>

Hi Alastair,

You'll want to ask this of ZODB-Dev, not Zope-DB -- this list is for 
interactions with RDBMS systems.

Alastair Burt wrote:

>I posted two articles to the zope@zope.org mailing list[1] about this
>topic. Since I got only one oblique response, I am posting here to try to
>regain my faith in the ZODB. These are the problems that have seriously
>weakened my faith in the ZODB:
>
>  1. My Data.fs got corrupted and Zope would not restart. I have no idea
>     how this happend. Possible contributory causes might be no disk space
>     left or two Zope instances trying to serve the same Data.fs.
>
>  2. The fsrecover utility could not help me very much (nor
>     tranalyzer). They both bomb out. Tranalyzer tells me that there is a "
>     transaction lengths mismatch". Frustratingly, I can see actions in the
>     Data.fs (mostly changes to a Wiki) that tranalyzer fails to recognise
>     even when I give it a "-s" flag to start searching for transactions
>     after the problem with the transaction length.
>
>  3. One of the more worrying aspects of this corruption is that backups do
>     not seem to be much help to me. As far as I can tell, Zope was happily
>     serving requests for weeks from a database that it would not be able
>     to restart from. The backups made during this time are pretty much
>     unusable. I guess one way to counter this would be to kill and restart
>     Zope at regular intervals.
>
>Given these problems, can I trust the ZODB with valuable data again?
>




From ajp@eutechnyx.com  Wed Nov  7 12:40:32 2001
From: ajp@eutechnyx.com (Andrew Perella)
Date: Wed, 7 Nov 2001 12:40:32 -0000
Subject: [Zope-DB] links between zope sites
Message-ID: 

I have one zope server serving two sites
1) a genereal zope site
2) a zwiki

I would like to be able to access the zwiki info from the other site. For
example I would like to get at the recentchanges info generated on the
recentchanges zwiki page ie:




_____________________________________________________________________
This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. No communication sent by e-mail to or from Eutechnyx is intended to give rise to contractual or other legal liability, apart from liability which cannot be excluded under English law. 

This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre. 

www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322


From ajp@eutechnyx.com  Wed Nov  7 12:42:18 2001
From: ajp@eutechnyx.com (Andrew Perella)
Date: Wed, 7 Nov 2001 12:42:18 -0000
Subject: [Zope-DB] re: links between zope sites
Message-ID: 

woops I pressed send to early!

I wanted to add the wiki page script that I wnted to run from the other
site:

not so important
Page Size Last modified    UserName
[]

( pages) Regards, Andrew > -----Original Message----- > From: Andrew Perella [mailto:ajp@eutechnyx.com] > Sent: 07 November 2001 12:41 > To: zope-db@zope.org > Subject: links between zope sites > > > I have one zope server serving two sites > 1) a genereal zope site > 2) a zwiki > > I would like to be able to access the zwiki info from the other > site. For example I would like to get at the recentchanges info > generated on the recentchanges zwiki page ie: > > > _____________________________________________________________________ This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. No communication sent by e-mail to or from Eutechnyx is intended to give rise to contractual or other legal liability, apart from liability which cannot be excluded under English law. This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre. www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322 From matt@zope.com Wed Nov 7 14:07:39 2001 From: matt@zope.com (Matthew T. Kromer) Date: Wed, 7 Nov 2001 09:07:39 -0500 Subject: [Zope-DB] re: links between zope sites In-Reply-To: Message-ID: Note that 'aq_parent' means 'the item I was accessed through' ie your parent container. So, if you replace aq_parent with a fully qualified path component, you should be able to have it work from anywhere else from the site. For instance if your wiki is in /sitea/notices/myWiki you could replace 'aq_parent' with 'sitea.notices.myWiki'. Note that this question really belonged on Zope@zope.org, not zope-db. On Wednesday, November 7, 2001, at 07:42 AM, Andrew Perella wrote: > woops I pressed send to early! > > I wanted to add the wiki page script that I wnted to run from the other > site: > > [...] > sort=bobobase_modification_time reverse> > [...] > > > Regards, > Andrew > >> -----Original Message----- >> From: Andrew Perella [mailto:ajp@eutechnyx.com] >> Sent: 07 November 2001 12:41 >> To: zope-db@zope.org >> Subject: links between zope sites >> >> >> I have one zope server serving two sites >> 1) a genereal zope site >> 2) a zwiki >> >> I would like to be able to access the zwiki info from the other >> site. For example I would like to get at the recentchanges info >> generated on the recentchanges zwiki page ie: From ajp@eutechnyx.com Wed Nov 7 15:53:04 2001 From: ajp@eutechnyx.com (Andrew Perella) Date: Wed, 7 Nov 2001 15:53:04 -0000 Subject: [Zope-DB] re: links between zope sites In-Reply-To: Message-ID: Thankyou for your help. It works now. A. _____________________________________________________________________ This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. No communication sent by e-mail to or from Eutechnyx is intended to give rise to contractual or other legal liability, apart from liability which cannot be excluded under English law. This message has been checked for all known viruses by Star Internet delivered through the MessageLabs Virus Control Centre. www.eutechnyx.com Eutechnyx Limited. Registered in England No: 2172322 From dario@ita.chalmers.se Thu Nov 8 08:12:02 2001 From: dario@ita.chalmers.se (=?iso-8859-1?Q?Dario_Lopez-K=E4sten?=) Date: Thu, 8 Nov 2001 09:12:02 +0100 Subject: [Zope-DB] How does DCO2 use bind variables? Message-ID: <001601c1682d$0bfde450$33de1081@ita.chalmers.se> Hello! After inspecting the internals of our Oracle DB, we have reason to suspect that the Zope Oracle DA/DCO2 does not automatically use bind variables for its SQL queries, but instead forces Oracle to recompile every single sql statement, resulting in _really_ bad performance from our DB. Can anybody (like, uh, Matt :-)) provide som light and/or guidance on this issue? If there in fact is bind var support, how can I make use of them from Zope? Thanks. /dario - -------------------------------------------------------------------- Dario Lopez-Kästen Systems Developer Chalmers Univ. of Technology dario@ita.chalmers.se ICQ will yield no hits IT Systems & Services From greg@message-us.com Thu Nov 8 11:10:04 2001 From: greg@message-us.com (Greg McCall) Date: Thu, 8 Nov 2001 22:10:04 +1100 Subject: [Zope-DB] How to insert csv file data into a MySQL database table Message-ID: <000101c16845$fc5efc00$bc3d30cb@messageus.com> Hi If I have a file in a directory with MySQL database connection in the directory. The file contains lines with each line containing comma separated fields. The database works and I can make routines to list, display, edit & delete the records using Znolk I can also insert the file from the MySQL command line in a UNIX shell How do I read each line using an SQL INSERT (or UPDATE) in Zope. (python or DTML ?? and how?) regards Greg __________________________________ Greg McCall - greg.mccall@telstra.com http://www.message-us.com From matt@zope.com Thu Nov 8 13:08:18 2001 From: matt@zope.com (Matthew T. Kromer) Date: Thu, 8 Nov 2001 08:08:18 -0500 Subject: [Zope-DB] How does DCO2 use bind variables? In-Reply-To: <001601c1682d$0bfde450$33de1081@ita.chalmers.se> Message-ID: Heh, You got me, ZOracleDA (and all of Zope's SQL) uses query strings ONLY to manipulate=20= data, which is really inefficient. DCOracle2 does binds quite well, but not if the outer application=20 doesn't use it... :( FIXING the Zope SQL stuff to use binds is on my to-do list after 2.5=20 goes out. It will probably still reprep statements all the time (since it will be=20= grabbing different cursors each transaction) but Oracle has a statement=20= cache for prepare in the SGA, so it should be able to accelerate the=20 prepare with that statement cache. On Thursday, November 8, 2001, at 03:12 AM, Dario Lopez-K=E4sten wrote: > Hello! > > After inspecting the internals of our Oracle DB, we have reason to=20 > suspect > that the Zope Oracle DA/DCO2 does not automatically use bind variables=20= > for > its SQL queries, but instead forces Oracle to recompile every single = sql > statement, resulting in _really_ bad performance from our DB. > > Can anybody (like, uh, Matt :-)) provide som light and/or guidance on=20= > this > issue? > > If there in fact is bind var support, how can I make use of them from=20= > Zope? > > Thanks. > > /dario > > - -------------------------------------------------------------------- > Dario Lopez-K=E4sten Systems Developer Chalmers Univ. of = Technology > dario@ita.chalmers.se ICQ will yield no hits IT Systems & Services > > > > _______________________________________________ > Zope-DB mailing list > Zope-DB@zope.org > http://lists.zope.org/mailman/listinfo/zope-db From ruger@comnett.net Thu Nov 8 16:01:09 2001 From: ruger@comnett.net (D. Rick Anderson) Date: Thu, 08 Nov 2001 08:01:09 -0800 Subject: [Zope-DB] more Sybase Message-ID: <3BEAAC45.5050408@comnett.net> I'm still having problems with this Sybase DA. What I'm wondering is if it needs LD_LIBRARY_PATH to be set for it to work. The problem is that I'm running the Oracle DA as well and it needs that env variable to work properly. Could this be my problem? Thanks, Rick -- ************************************************ Rick Anderson Work: (702)397-6445 System Administrator Cell: (702)275-1855 ComNett Computer Services http://www.comnett.net ************************************************ From dieter@handshake.de Thu Nov 8 20:51:26 2001 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 8 Nov 2001 21:51:26 +0100 Subject: [Zope-DB] more Sybase In-Reply-To: <3BEAAC45.5050408@comnett.net> References: <3BEAAC45.5050408@comnett.net> Message-ID: <15338.61518.273341.934107@linux.local> D. Rick Anderson writes: > I'm still having problems with this Sybase DA. What I'm wondering is if > it needs LD_LIBRARY_PATH to be set for it to work. The problem is that > I'm running the Oracle DA as well and it needs that env variable to work > properly. Could this be my problem? "LD_LIBRARY_PATH" is required whenever a program needs (indirect) access to a shared object which is not in a standard location. What a standard location is can be configured. Under Linux, the configuration is in "/etc/ld.so.conf". Dieter From guidotobar@yahoo.com Sun Nov 11 00:20:31 2001 From: guidotobar@yahoo.com (guido tobar) Date: Sat, 10 Nov 2001 16:20:31 -0800 (PST) Subject: [Zope-DB] Help with ZSQL results How-to Message-ID: <20011111002031.86562.qmail@web12602.mail.yahoo.com> I red "how-to ZSQL results" is excelent but in the last DTML method appear: if true.. if false... The author put 'vedovelli' like a static parameter in script of python called isContact, however I would like to know How Do I put a dynamic parameter?, for example in web page I put Stefano, in other moment vedovelli, John, Steve, but like a form. Something like this: And I forget, I use Gadfly database. Thanks for your help. __________________________________________________ Do You Yahoo!? Find a job, post your resume. http://careers.yahoo.com From hannu@tm.ee Sat Nov 10 21:48:23 2001 From: hannu@tm.ee (Hannu Krosing) Date: Sun, 11 Nov 2001 02:48:23 +0500 Subject: [Zope-DB] Help with ZSQL results How-to References: <20011111002031.86562.qmail@web12602.mail.yahoo.com> Message-ID: <3BEDA0A7.A0542864@tm.ee> guido tobar wrote: > > I red "how-to ZSQL results" is excelent but in the > last DTML method appear: > > > if true.. > > if false... > > > > The author put 'vedovelli' like a static parameter in > script of python called isContact, however I would > like to know How Do I put a dynamic parameter?, for > example in web page I put Stefano, in other moment > vedovelli, John, Steve, but like a form. > Something like this: > > the right syntax is > This _is_ exactly how you should use it ;) -------- Hannu From ruger@comnett.net Tue Nov 13 19:50:22 2001 From: ruger@comnett.net (D. Rick Anderson) Date: Tue, 13 Nov 2001 11:50:22 -0800 Subject: [Zope-DB] Sybase .. still =) Message-ID: <3BF1797E.9070908@comnett.net> I'm still having problems with the Sybase DA. The Sybase server that we're using is Adaptive Server 6.0.3 running on Netware 5.0. Every linux Sybase client that I've tried has given me compilation problems so far and the one that I doctored to work ended up being unable to connect. I've tried the verion 10.x open client from Sybase and their 12.5 client with the eval download. The one I'm trying it on now is the 11.0.3.3-6 rpm version with the 10.0.4-6 development libraries (don't ask me .. that's how they had them grouped), but I'm still having problems getting the sy_occ.so to compile. Is there a certain Sybase client that I need to be using? If so then where can I get it? All of the linux clients I've used so far have been missing either .so files or .h files. I've set the env variable correctly and I've adjusted the Setup file if the dev libraries happen to be in a different directory. Thanks, Rick -- ************************************************ Rick Anderson Work: (702)397-6445 System Administrator Cell: (702)275-1855 ComNett Computer Services http://www.comnett.net ************************************************ From matt@zope.com Thu Nov 8 13:08:18 2001 From: matt@zope.com (Matthew T. Kromer) Date: Thu, 8 Nov 2001 08:08:18 -0500 Subject: [Zope-DB] How does DCO2 use bind variables? In-Reply-To: <001601c1682d$0bfde450$33de1081@ita.chalmers.se> Message-ID: Heh, You got me, ZOracleDA (and all of Zope's SQL) uses query strings ONLY to manipulate=20= data, which is really inefficient. DCOracle2 does binds quite well, but not if the outer application=20 doesn't use it... :( FIXING the Zope SQL stuff to use binds is on my to-do list after 2.5=20 goes out. It will probably still reprep statements all the time (since it will be=20= grabbing different cursors each transaction) but Oracle has a statement=20= cache for prepare in the SGA, so it should be able to accelerate the=20 prepare with that statement cache. On Thursday, November 8, 2001, at 03:12 AM, Dario Lopez-K=E4sten wrote: > Hello! > > After inspecting the internals of our Oracle DB, we have reason to=20 > suspect > that the Zope Oracle DA/DCO2 does not automatically use bind variables=20= > for > its SQL queries, but instead forces Oracle to recompile every single = sql > statement, resulting in _really_ bad performance from our DB. > > Can anybody (like, uh, Matt :-)) provide som light and/or guidance on=20= > this > issue? > > If there in fact is bind var support, how can I make use of them from=20= > Zope? > > Thanks. > > /dario > > - -------------------------------------------------------------------- > Dario Lopez-K=E4sten Systems Developer Chalmers Univ. of = Technology > dario@ita.chalmers.se ICQ will yield no hits IT Systems & Services > > > > _______________________________________________ > Zope-DB mailing list > Zope-DB@zope.org > http://lists.zope.org/mailman/listinfo/zope-db From metin.deniz@CommerzbankIB.com Thu Nov 15 14:40:42 2001 From: metin.deniz@CommerzbankIB.com (Deniz, Metin) Date: Thu, 15 Nov 2001 15:40:42 +0100 Subject: [Zope-DB] Zope: how to execute a sql-method from within a self created form Message-ID: <4D445EA25BABD411B7B800508BAF0AB715ADD1@xmx8fraib.fra.ib.commerzbank.com> Hi everybody, i have the following problem: i have created a form and enter some values(vorname, nachname). After pressing the submit-button, the sql-method which is being called pops up and expects me to enter the values once again. I would rather have the method to execute the sql statement right away. Below are the source code for the form and the sql-methods statement. sql-method: parameters: vorname nachname INSERT INTO personen (vorname, nachname) VALUES ( , ) form:

Vorname

Nachname

Thank you very much in advance. Metin Deniz From matt@zope.com Thu Nov 15 15:14:07 2001 From: matt@zope.com (Matthew T. Kromer) Date: Thu, 15 Nov 2001 10:14:07 -0500 Subject: [Zope-DB] Zope: how to execute a sql-method from within a self created form References: <4D445EA25BABD411B7B800508BAF0AB715ADD1@xmx8fraib.fra.ib.commerzbank.com> Message-ID: <3BF3DBBF.8050709@zope.com> Hello, Metin, What you probably want to do is have the form ACTION point to a different mechanism, such as one that does In that way, you dont have to have the clutter of a page which does both form processing and form presentation (ie a page that posts back to itself) Deniz, Metin wrote: >Hi everybody, > >i have the following problem: > >i have created a form and enter some values(vorname, nachname). >After pressing the submit-button, the sql-method which is being called pops >up and expects me to enter the values once again. I would rather have the >method to execute the sql statement right away. > >Below are the source code for the form and the sql-methods statement. > >sql-method: >parameters: vorname nachname > >INSERT INTO personen >(vorname, nachname) >VALUES >( >, > >) > >form: > > >

>

>Vorname >

>Nachname >

> >

> > > >Thank you very much in advance. > > >Metin Deniz > >_______________________________________________ >Zope-DB mailing list >Zope-DB@zope.org >http://lists.zope.org/mailman/listinfo/zope-db > From Thomas_Janke@prisma-edv.de Fri Nov 16 11:30:59 2001 From: Thomas_Janke@prisma-edv.de (Thomas_Janke@prisma-edv.de) Date: Fri, 16 Nov 2001 12:30:59 +0100 Subject: [Zope-DB] Z SybaseDA on AIX using Sybase 12.5 Message-ID: Hi, Sorry for writing to you in so many different ways, but I do not know, which of these email-adresses works. I have recently had some experience with compiling the sy_occ.so library under AIX 5.1 running Sybase 12_5 ASE and OC/S. Here are the results. 1) On AIX, the libsybtcl is just named libtcl, because there is not script-language TCL, which was the only reason for the Sybase-people to call it that way on Linux systems. 2) Sybase 12.5 splits into ASE (Adaptive Server Enterprise ) and OSC (Open Client/Server). You have to set the followin environment variables SYBASE=/usr/local/sybase SYBASE_OCS=OCS-12_5 SYBASE_ASE=ASE-12_5 LD_LIBRARY_PATH=$SYBASE/$SYBASE_OCS/lib 3) The library "libinsck" is not given as a static library, but only as a dynamic one with full version numbers. E.g. libinsck.so.12.5.0. For some reason, compiling sy_occ.so depends on static linked libraries unter AIX. So you have to create a sym-link "libinsck.a" pointing to "libinsck.so.12.5.0". 4) The Setup file for AIX5.1 and Sybase 12.5 is the following *shared* sy_occ sy_occ.c -I$(SYBASE)/$(SYBASE_OCS)/include -L$(SYBASE)/$(SYBASE_OCS)/lib -lcomn -lcs -lct -lintl -ltcl -linsck -lm With these changes, everything works fine. I hope, you find these information usefull and will adapt your Product to cope with AIX and Sybase 12.5. BTW: What about that Sybase Stored Procedures thing? I could really do with them. Yours Thomas Janke From hadenpeterson@yahoo.com Sun Nov 18 18:52:57 2001 From: hadenpeterson@yahoo.com (Haden Peterson) Date: Sun, 18 Nov 2001 10:52:57 -0800 (PST) Subject: [Zope-DB] Guide to ZOracleDA/DCOracle2? Message-ID: <20011118185257.7379.qmail@web11608.mail.yahoo.com> Is there any kind of installation guide (other than the included README) for ZOracle database adapter? I'm attempting to install it on a Win2K sytem and need answers to a few questions... What's differentiates ZOracleDA from DCOracle? Do I need to build one or both of these into a binary with a C compiler? (just typing 'make' doesn't do anything) Or does Python build some kind of persistent file? What are files with extensions .pyc and .pyd - executables? Do I have to manually set up the PYTHONPATH and ORACLE_HOME environment variables? Any help - greatly appreciated! __________________________________________________ Do You Yahoo!? Find the one for you at Yahoo! Personals http://personals.yahoo.com From matt@zope.com Tue Nov 20 13:11:22 2001 From: matt@zope.com (Matthew T. Kromer) Date: Tue, 20 Nov 2001 08:11:22 -0500 Subject: [Zope-DB] Guide to ZOracleDA/DCOracle2? References: <20011118185257.7379.qmail@web11608.mail.yahoo.com> Message-ID: <008401c171c4$da51b0c0$6400a8c0@mtplsnt1.mi.home.com> Hi Haden. ZOracleDA is the Zope Oracle datapter; you only need it if you want to access DCOracle2 from Zope. All of the files are together for the convienience of Zope users (and mine, w.r.t packaging). If you dont use Zope, you can just use DCOracle2/DCOracle2 and the corresponding binary for your platform from the binaries directory, or build from the src directory. .pyc files are "compiled" python bytecodes, .pyd files are "python-DLL" files (ie REAL compiled files). You still have to set up ORACLE_HOME like normal; but on NT systems, that's probably taken care of you by a registry setting (so you dont need it). Pretty much the same for PYTHONPATH -- it will probably be derived from your registry entries for Python, so you'd only need to set it if you installed DCOracle2 in a place the interpreter would not find it. ----- Original Message ----- From: "Haden Peterson" To: Sent: Sunday, November 18, 2001 1:52 PM Subject: [Zope-DB] Guide to ZOracleDA/DCOracle2? > Is there any kind of installation guide (other than > the included README) for ZOracle database adapter? > > I'm attempting to install it on a Win2K sytem and need > answers to a few questions... > > What's differentiates ZOracleDA from DCOracle? > Do I need to build one or both of these into a binary > with a C compiler? (just typing 'make' doesn't do > anything) Or does Python build some kind of persistent > file? > > What are files with extensions .pyc and .pyd - > executables? > > Do I have to manually set up the PYTHONPATH and > ORACLE_HOME environment variables? > > Any help - greatly appreciated! From friedman@emax.ca Wed Nov 21 17:14:37 2001 From: friedman@emax.ca (Barry Friedman) Date: Wed, 21 Nov 2001 12:14:37 -0500 Subject: [Zope-DB] Looking for documentation Message-ID: <20011121121437.A21166@nortelnetworks.com> There are a number of references to the "searchable-object interface specification." Such as in Appendix B of the Zope Book. Does this specification exist anywhere? Thanks, -- Barry Friedman Emax Computer Systems Inc., 440 Laurier Ave. W., Ottawa, Ont. Canada K1R 7X6 ESN: 395-4270 NET: friedman@emax.ca Phone: (613) 782-2389 Fax: 782-2228 From hadenpeterson@yahoo.com Wed Nov 21 21:50:20 2001 From: hadenpeterson@yahoo.com (Haden Peterson) Date: Wed, 21 Nov 2001 13:50:20 -0800 (PST) Subject: [Zope-DB] Looking For Python15.dll? In-Reply-To: <008401c171c4$da51b0c0$6400a8c0@mtplsnt1.mi.home.com> Message-ID: <20011121215020.31892.qmail@web11604.mail.yahoo.com> Thanks for taking the time to answer my questions. I do want to access DCOracle2 from Zope but as a preliminary, I get a small Python program to connect to an Oracle instance as the scripts that are included under ZOracleDA\test would apear to do. But - when open up a command prompt and type "python pathToSciptName\Pythonscript.py" I get an error that it can't find Python15.dll. I see that there's a Python21.dll - but no 15. Do I need to get another package containing this earlier version? Thanks. __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 From stschmid@iew.unizh.ch Thu Nov 22 12:57:01 2001 From: stschmid@iew.unizh.ch (Stefan Schmid) Date: Thu, 22 Nov 2001 13:57:01 +0100 Subject: [Zope-DB] Strange problem with ZSQL Method called from another ZSQL Method Message-ID: Hi, I have recently started to use Zope with MySQL and have encountered some strange problems with ZSQL methods. I needed a mechanism to generate a unique id (sequence number) that I can use in a later INSERT statement. So I created a single-row table 'objectid' containing a value 'oid' that is updated each time I want the next value in the sequence. # ZSQL Method next_objectid UPDATE objectid SET oid = LAST_INSERT_ID(oid+1) SELECT LAST_INSERT_ID() AS oid FROM objectid This ZSQL method works as expected when called from a DTML Document but calls from a second ZSQL method (i.e. 'insert_test') generate a sequence of numbers that increase by 2 each time. # ZSQL Method insert_test INSERT INTO test(oid, descr) VALUES (, "Test") Is anybody noticing anything similar, or if you have any opinion on what might be going on, please reply. I'm using Zope 2.4.1, ZMySQLDA 2.0.7, MySQLdb 0.9.0 and MySQL 3.23.41 on WinNT 4.0 SP6. Thanks, Stefan From chrisw@nipltd.com Thu Nov 22 14:25:47 2001 From: chrisw@nipltd.com (Chris Withers) Date: Thu, 22 Nov 2001 14:25:47 +0000 Subject: [Zope-DB] Re: [Zope] Looking for documentation References: <20011121121437.A21166@nortelnetworks.com> Message-ID: <3BFD0AEB.50459475@nipltd.com> Barry Friedman wrote: > > There are a number of references to the "searchable-object interface specification." > Such as in Appendix B of the Zope Book. Does this specification exist anywhere? No Chris From dieter@handshake.de Thu Nov 22 17:43:35 2001 From: dieter@handshake.de (dieter@handshake.de) Date: Thu, 22 Nov 2001 18:43:35 +0100 Subject: [Zope-DB] Re: [Zope] Looking for documentation In-Reply-To: <20011121121437.A21166@nortelnetworks.com> References: <20011121121437.A21166@nortelnetworks.com> Message-ID: <15357.14663.613385.110355@linux.local> Barry Friedman writes: > There are a number of references to the "searchable-object interface s= pecification." > Such as in Appendix B of the Zope Book. Does this specification exist= anywhere? Not that I know of, but the interface is quite trivial: _searchable_arguments(self) returns a mapping with argument descriptions: Its "keys()" returns the list of argument names "[argname]" is a dictionary describing the argument. It can have keys "default" and "type" with obvious meaning _searchable_result_columns(self) returns a sequence of result column descriptions Each column description consists of a dictionary with keys "name", "type", "width", "null". __call__(self,....): executes the search. Parameters in REQUEST or explicitely provided as keyword parameters. Viele Gr=FC=DFe Dieter From dieter@handshake.de Thu Nov 22 18:03:19 2001 From: dieter@handshake.de (Dieter Maurer) Date: Thu, 22 Nov 2001 19:03:19 +0100 Subject: [Zope-DB] Strange problem with ZSQL Method called from another ZSQL Method In-Reply-To: References: Message-ID: <15357.15847.111680.124421@linux.local> Stefan Schmid writes: > .... > # ZSQL Method next_objectid > UPDATE objectid SET oid = LAST_INSERT_ID(oid+1) > > SELECT LAST_INSERT_ID() AS oid FROM objectid > > This ZSQL method works as expected when called from a DTML Document but > calls from a second ZSQL method (i.e. 'insert_test') generate a sequence of > numbers that increase by 2 each time. I believe to remember that I saw a similar problem description (long ago, --> mailing list archives). But, I fear, it has not been resolved... Dieter From stephan.goeldi@datacomm.ch Fri Nov 23 14:48:08 2001 From: stephan.goeldi@datacomm.ch (Stephan Goeldi) Date: Fri, 23 Nov 2001 14:48:08 Subject: [Zope-DB] ZODB and ZSQL Message-ID: Let's assume I have two databases. An external connected SQL database and the ZODB. In the external DB I have a table with two columns: 'name' and 'email'. In the ZODB I have a table with the columns 'name' and 'place'. How can I extract data from both in one turn using the foreign key 'name'? e.g. I want this result: name - email - place Is this possible? _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From dario@ita.chalmers.se Fri Nov 23 15:22:34 2001 From: dario@ita.chalmers.se (=?Windows-1252?Q?Dario_Lopez-K=E4sten?=) Date: Fri, 23 Nov 2001 16:22:34 +0100 Subject: [Zope-DB] ZODB and ZSQL References: Message-ID: <004001c17432$ad8cfed0$33de1081@ita.chalmers.se> Hm.. dunno if it will work, but do this in a python script for instance: ---- # get name somehow place = email = context.sql_to_retrieve_email(=name) return {'name': name, 'place': place, 'email': email} --- hope this points somewhat in the general direction. /dario ----- Original Message ----- From: "Stephan Goeldi" To: Sent: Friday, November 23, 2001 2:48 PM Subject: [Zope-DB] ZODB and ZSQL > Let's assume I have two databases. An external connected SQL database and > the ZODB. In the external DB I have a table with two columns: 'name' and > 'email'. In the ZODB I have a table with the columns 'name' and 'place'. How > can I extract data from both in one turn using the foreign key 'name'? e.g. > I want this result: > > name - email - place > From Thomas_Janke@prisma-edv.de Fri Nov 23 16:16:19 2001 From: Thomas_Janke@prisma-edv.de (Thomas_Janke@prisma-edv.de) Date: Fri, 23 Nov 2001 17:16:19 +0100 Subject: [Zope-DB] Bug: ZopeRDB does not handle empty column names Message-ID: Hi, I think, I found a bug. Hopefully somebody will forward this report to the responsible person. I executed the following statement successfully with Sybase-isql SELECT topic_name, count(topic_name) FROM topics, problems WHERE topics.topic_id = problems.topic_id GROUP BY topics.topic_name This prints a table like this: topic_name -------------------------------------------------- ----------- Sybase 1 Windows2000 2 ZOPE 7 test 2 tre 2 The second column has no name, because it's a calculated column. When executing the same code within an ZSQL-Method, I get the error Error: ... : Empty column name, I also found the snipped of code, which causes the error: Its in zope/lib/python/Shared/DC/ZRDB/Results.py in Class Results in def __init__ ----------------------------------------------------------------------------------------- for item in items: name=item['name'] name=strip(name) if not name: raise ValueError, 'Empty column name, %s' % name /* <=== This is the problem */ if schema.has_key(name): raise ValueError, 'Duplicate column name, %s' % name schema[name]=i n=lower(name) if n != name: aliases.append((n, SQLAlias(name))) n=upper(name) if n != name: aliases.append((n, SQLAlias(name))) dd[name]=item names.append(name) i=i+1 ---------------------------------------------------------------------------------------------------- After testing for a while and trying to persuate ZRDB to accept empty column names, I found a better way. I changed the first line of my code into: SELECT topic_name, problems = count(topic_name) so I gave it a name and worked arround the problem. Just one question remaines. Why is it not possible to have the number of the column as the column name, if there is none? I hope, this really is seen as a problem too and somebody will go and find a more flexible solution for it. Yours Thomas PS: WHOW!! Did I really write that much stuff? 8) From dieter@handshake.de Fri Nov 23 18:08:34 2001 From: dieter@handshake.de (Dieter Maurer) Date: Fri, 23 Nov 2001 19:08:34 +0100 Subject: [Zope-DB] Bug: ZopeRDB does not handle empty column names In-Reply-To: References: Message-ID: <15358.37026.282382.28130@linux.local> Thomas_Janke@prisma-edv.de writes: > .... > SELECT topic_name, count(topic_name) > .... > When executing > the same code within an ZSQL-Method, I get the error > > Error: ... : Empty column name, Zope wants to allow you to access column values by name. Therefore, it requires, there is a name and that the name is unique. I do not think this will be considered a bug. Use "SELECT topic_name, count(topic_name) AS topic_name_count" and both Zope and you will be happy. Dieter From hadenpeterson@yahoo.com Fri Nov 23 22:51:58 2001 From: hadenpeterson@yahoo.com (Haden Peterson) Date: Fri, 23 Nov 2001 14:51:58 -0800 (PST) Subject: [Zope-DB] Inquring Minds Want to Know Message-ID: <20011123225158.87743.qmail@web11603.mail.yahoo.com> I seem to be missing some key point along the road to installation enlightenment - re:to connect to Oracle w/ Python.(Not trying to connect through Zope...yet.) In a Win32 environment, I've unzipped DCO2-Beta5.zip which extracts as zoracleda\... and tried to run a test script by using the following: "python d:\website\lib\python\products\Zoracleda\test\test1.py" I get a popup window complaining that python15.dll can't be located in any of the search directories on my path - which is right, but puzzling since the version of .dll that came with my distribution is python21.dll. I tried re-naming the ZOracleda directory to DCOracle2 as indicated in the README. "python d:\website\lib\python\products\DCOracle2\test\test1.py" Here I get - "No module named DCOracle2.dco2" - which would seem to indicate that Python can't find it - a path problem. I'm assuming that it's looking for the file named dco2.pyd that lives in DCOracle2\DOracle2. Or does it expect a .py file? Do I have to have a PYTHONPATH environment var set to point to this file? (I've tried it along with including it in regular PATH but without success.) Do I need to build a binary or is this file (dco2.pyd) the binary it's looking for? I tried running nmake against the makefile in the top level (ZOracleDA) directory, but it didn't understand the one of the directives. If you've been through this already - I'd be most appreciative. Thanks. __________________________________________________ Do You Yahoo!? Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 From bbhaydon@yahoo.com Sat Nov 24 07:46:02 2001 From: bbhaydon@yahoo.com (Brett Haydon) Date: Sat, 24 Nov 2001 18:46:02 +1100 Subject: [Zope-DB] ZSQL dictionaries method Message-ID: I'm using Zope 2.5 + ZODBC on Win2000 azsqlmethod.names() works and so does data_dictionary() but dictionaries() just brings up an error instead of a list of dictionaries. Any ideas. Brett From bbhaydon@yahoo.com Sat Nov 24 16:33:12 2001 From: bbhaydon@yahoo.com (Brett Haydon) Date: Sun, 25 Nov 2001 03:33:12 +1100 Subject: [Zope-DB] Z MySQLdb Bug?? Message-ID: I was just switching from ZODBC to ZMySQLdb and I noticed that suddenly my sql methods which included the LIMIT keyword stopped working. ie select * from tablename limit 10 Brett bbhaydon at iprimus.com.au From bbhaydon@yahoo.com Sat Nov 24 16:49:23 2001 From: bbhaydon@yahoo.com (Brett Haydon) Date: Sun, 25 Nov 2001 03:49:23 +1100 Subject: [Zope-DB] RE: Z MySQLdb No Bug?? In-Reply-To: Message-ID: Heh! just worked it out (Maximum Rows Retrieved Property) time to get some ZZZZ Brett > -----Original Message----- > From: Brett Haydon [mailto:bbhaydon@yahoo.com] > Sent: Sunday, 25 November 2001 3:33 AM > To: zope-db@zope.org > Subject: Z MySQLdb Bug?? > > > I was just switching from ZODBC to ZMySQLdb > and I noticed that > suddenly my sql methods which included the > LIMIT keyword stopped working. > > ie > select * from tablename limit 10 > > Brett > bbhaydon at iprimus.com.au > > From dieter@handshake.de Sat Nov 24 18:57:58 2001 From: dieter@handshake.de (Dieter Maurer) Date: Sat, 24 Nov 2001 19:57:58 +0100 Subject: [Zope-DB] ZSQL dictionaries method In-Reply-To: References: Message-ID: <15359.60854.825580.195509@linux.local> Brett Haydon writes: > I'm using Zope 2.5 + ZODBC on Win2000 > > azsqlmethod.names() works and so does data_dictionary() > but dictionaries() just brings up an error instead of a > list of dictionaries. There are two kinds of "Results" objects: one with a "dictionaries" method and one without. For unknown reasons, ZODBC uses the one without. This, probably, is a bug. There should not be two independent implementations for "Results" (but they should share most methods, such as e.g. "dictionaries"). Can you put it into the "Collector"? Dieter From liam_herron@hotmail.com Sat Nov 24 21:06:37 2001 From: liam_herron@hotmail.com (Liam Herron) Date: Sat, 24 Nov 2001 16:06:37 -0500 Subject: [Zope-DB] Problems with new attributes on Pluggable Brains classes Message-ID: I have two problems with pluggable brains: 1) I cannot have the class I use for the Pluggable Brain be subclassed from another class. When I attempt this, I get AttributeError on the attributes which I am trying to subclass from: class A: def __init__(self): self.testattr1 = "HELLO" class B(A): def __init__(self): A.__init__(self) class B is what I want the Z SQL Method to plug into. I just want to have other attributes as well. 2) To work around the problem in 1, I tried to flatten my class hierarchy and I still get the AttributeError: class B: def __init__(self): self.testattr1 = "HELLO" Here is the actual traceback: Error Type: AttributeError Error Value: testattr1 Traceback (innermost last): File /home/herronli/Zope-2.4.3-linux2-x86/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /home/herronli/Zope-2.4.3-linux2-x86/lib/python/ZPublisher/Publish.py, line 187, in publish File /home/herronli/Zope-2.4.3-linux2-x86/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: sqlOptionQueryByUnderlying) File /home/herronli/Zope-2.4.3-linux2-x86/lib/python/ZPublisher/Publish.py, line 171, in publish File /home/herronli/Zope-2.4.3-linux2-x86/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_test) File /home/herronli/Zope-2.4.3-linux2-x86/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: manage_test) File /home/herronli/Zope-2.4.3-linux2-x86/lib/python/Shared/DC/ZRDB/DA.py, line 397, in manage_test (Object: sqlOptionQueryByUnderlying) File /home/herronli/Zope-2.4.3-linux2-x86/lib/python/DocumentTemplate/DT_String.py, line 546, in __call__ (Object: ) File /home/herronli/Zope-2.4.3-linux2-x86/lib/python/DocumentTemplate/DT_In.py, line 653, in renderwb (Object: sqlOptionQueryByUnderlying) File /usr/local/Zope-2.4.3-linux2-x86/lib/python/Shared/DC/ZRDB/Results.py, line 188, in __getitem__ File /usr/local/Zope-2.4.3-linux2-x86/lib/python/Shared/DC/ZRDB/Results.py, line 164, in __init__ File /usr/local/Zope-2.4.3-linux2-x86/Extensions/LEO.py, line 11, in __init__ AttributeError: (see above) Am I not allowed to add another attribute to this Record object? How did they restrict this? I looked at the code for pluggable brains and I cannot seem to see where it restricts me from adding new attributes PLEASE HELP! Liam Herron _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp From dieter@handshake.de Sun Nov 25 19:10:18 2001 From: dieter@handshake.de (Dieter Maurer) Date: Sun, 25 Nov 2001 20:10:18 +0100 Subject: [Zope-DB] Problems with new attributes on Pluggable Brains classes In-Reply-To: References: Message-ID: <15361.16922.964167.338265@linux.local> Liam Herron writes: > I have two problems with pluggable brains: > 1) I cannot have the class I use for the Pluggable Brain be subclassed > from another class. When I attempt this, I get AttributeError on > the attributes which I am trying to subclass from: > > class A: > def __init__(self): > self.testattr1 = "HELLO" > > class B(A): > def __init__(self): > A.__init__(self) The problem is *NOT* the inheritance structure but the assignment to the attribute (therefore, nothing changes when you flatten your class hierarchy). I have been bitten by this feature, too. I posted a problem description to "zope-dev" (--> mailing list archives) and made a Collector entry (now probably lost due to the ill fate of the old collector). Maybe, you search my post and recreate a Collector entry. However, I do not have much hope that the problem (bug) will get fixed in the near future. Dieter From matt@zope.com Sat Nov 24 14:39:05 2001 From: matt@zope.com (Matthew T. Kromer) Date: Sat, 24 Nov 2001 09:39:05 -0500 Subject: [Zope-DB] ZSQL dictionaries method References: Message-ID: <000501c17601$9e0a3b00$0501010a@mi.org> Well, I'm ignorant enough to not know that names() and data_dictionary() and dictonaries() were part of the interface on SQL methods ;) I normally work under them, not on top of them. What you can do is file a report in the Zope bug collector -- www.zope.org has a link to it -- and that will keep nagging me to fix it when I get back into the office from my vacation. ----- Original Message ----- From: "Brett Haydon" To: Sent: Saturday, November 24, 2001 2:46 AM Subject: [Zope-DB] ZSQL dictionaries method > I'm using Zope 2.5 + ZODBC on Win2000 > > azsqlmethod.names() works and so does data_dictionary() > but dictionaries() just brings up an error instead of a > list of dictionaries. > > Any ideas. > > Brett > > > > _______________________________________________ > Zope-DB mailing list > Zope-DB@zope.org > http://lists.zope.org/mailman/listinfo/zope-db > From matt@zope.com Sat Nov 24 14:40:19 2001 From: matt@zope.com (Matthew T. Kromer) Date: Sat, 24 Nov 2001 09:40:19 -0500 Subject: [Zope-DB] Re: Looking For Python15.dll? References: <20011121215020.31892.qmail@web11604.mail.yahoo.com> Message-ID: <000901c17601$9fdeace0$0501010a@mi.org> If you get the latest CVS builds (or the PR1 download) there is a dco2-win32-python21.pyd file -- copy that file into the DCOracle2 subdirectory as dco2.pyd -- this will give you the one that is linked against Python 2.1. ----- Original Message ----- From: "Haden Peterson" To: Cc: Sent: Wednesday, November 21, 2001 4:50 PM Subject: Looking For Python15.dll? > Thanks for taking the time to answer my questions. > > I do want to access DCOracle2 from Zope but as a > preliminary, I get a small Python > program to connect to an Oracle instance as the > scripts that are included under ZOracleDA\test would > apear to do. > > But - when open up a command prompt and type "python > pathToSciptName\Pythonscript.py" > > I get an error that it can't find Python15.dll. I see > that there's a Python21.dll - but no 15. > > Do I need to get another package containing this > earlier version? > > Thanks. > > __________________________________________________ > Do You Yahoo!? > Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. > http://geocities.yahoo.com/ps/info1 > From florian.schuler@braunconsulting.de Mon Nov 26 08:46:51 2001 From: florian.schuler@braunconsulting.de (Florian Schuler) Date: Mon, 26 Nov 2001 09:46:51 +0100 Subject: [Zope-DB] Admintool for PostgreSQL Message-ID: Hello everybody, I=B4m using a Postgresql db. To administrate I'm using MS Access 97 = with an ODBC driver. Ok, here is my problem.=20 MS Access only supports text-fields with a length of 255 chars. That is not enough for me :-).=20 Does somebody of you knows a good admin tool for ODBC db ? OK, MS = Access in no admin tool but is=B4s easy to input data per d&d Do I need a newer version of MS Access ? Thanks in advance Florian From =?ISO-8859-1?B?R2VpciBC5mtob2x0?= Mon Nov 26 10:10:40 2001 From: =?ISO-8859-1?B?R2VpciBC5mtob2x0?= (=?ISO-8859-1?B?R2VpciBC5mtob2x0?=) Date: Mon, 26 Nov 2001 11:10:40 +0100 Subject: [Zope-DB] DCO2 and CLOBS Message-ID: <1025949494.20011126111040@funcom.com> zope-db, Has anyone succeeded in adding data to an oracle CLOB through ZSQL-methods , or do i need to go directly for external methods/stored procedures to accomplish this ? -- Geir Bækholt web-developer geirh@funcom.com funcom oslo | webdev-team From zope@toenjes.com Mon Nov 26 13:00:23 2001 From: zope@toenjes.com (Trevor Toenjes) Date: Mon, 26 Nov 2001 08:00:23 -0500 Subject: [Zope-DB] Admintool for PostgreSQL In-Reply-To: Message-ID: http://sourceforge.net/projects/phppgadmin/ > -----Original Message----- > From: zope-db-admin@zope.org [mailto:zope-db-admin@zope.org]On Behalf O= f > Florian Schuler > Sent: Monday, November 26, 2001 3:47 AM > To: Zope-DB Mailingliste (E-Mail) > Subject: [Zope-DB] Admintool for PostgreSQL > > > Hello everybody, > > I=B4m using a Postgresql db. To administrate I'm using MS Access 97 wit= h > an ODBC driver. > Ok, here is my problem. > MS Access only supports text-fields with a length of 255 chars. > That is not enough for me :-). > Does somebody of you knows a good admin tool for ODBC db ? OK, MS Acces= s > in no admin tool but is=B4s easy to input data per d&d > Do I need a newer version of MS Access ? > > Thanks in advance > > > Florian > > _______________________________________________ > Zope-DB mailing list > Zope-DB@zope.org > http://lists.zope.org/mailman/listinfo/zope-db From matt@zope.com Mon Nov 26 15:20:10 2001 From: matt@zope.com (Matthew T. Kromer) Date: Mon, 26 Nov 2001 10:20:10 -0500 Subject: [Zope-DB] DCO2 and CLOBS References: <1025949494.20011126111040@funcom.com> Message-ID: <3C025DAA.6010906@zope.com> Geir B=E6kholt wrote: >zope-db, > >Has anyone succeeded in adding data to an oracle CLOB through >ZSQL-methods , or do i need to go directly for external >methods/stored procedures to accomplish this ? > > Hi Geir, You might need to fiddle around a bit with a combination of SQL method=20 and python script. You can insert an EMPTY_CLOB() into a table row, then select it for=20 update; but DCO2 isn't smart enough to let you instantiate a LOB outside=20 of Oracle and then insert it automatically. So, you might INSERT INTO MY_TABLE (MY_CLOB, LOBID) VALUES ( EMPTY_CLOB(), MY_LOBID= ) SELECT MY_CLOB FROM MY_TABLE WHERE LOBID =3D MY_LOBID FOR UPDATE then you'll get a writable LOB object back from the database, so you can=20 call its read() write() trim() and length() methods. You'll notice the=20 problem that unless you use a stored procedure, you've got two SQL=20 statments being executed. Fortunately, DCO2's ZOracleDA provides stored=20 procedure wrappers, to make invoking Oracle stored procedures from Zope=20 a bit easier (although the default permisison excludes execute=20 permission so you have to enable it explicitly -- just to 'help' people=20 accidentally not expose their stored procedures to the world). You have to usually do an extra gymnastic step to get the LOB object,=20 since the result from a SQL method is a result set, so you have to pull=20 out the first cell (iterate over "all" of 1 rows then use the named colum= n). =20 From Carsten.Hoff@BASF-IT-Services.com Wed Nov 28 16:36:08 2001 From: Carsten.Hoff@BASF-IT-Services.com (Carsten.Hoff@BASF-IT-Services.com) Date: Wed, 28 Nov 2001 17:36:08 +0100 Subject: [Zope-DB] DCOracle2 - Invalid connection string Message-ID: Hello together, both, compiling or installation of binaries, leads to the following prob. Test scripts say connection successfully tested. But inside Zope the Connection method gives: invalid connection string. env for ORACLE_HOME and LD_LIBRARY_PATH are set in the zope start script. System RH7.1 both python 1.5.2 and 2.1, Oracle Client 8.1.7., DCOracle2-PR1.tar.gz, Zope 2.4.3. What am I doing wrong TIA carsten From matt@zope.com Thu Nov 29 22:09:22 2001 From: matt@zope.com (Matthew T. Kromer) Date: Thu, 29 Nov 2001 17:09:22 -0500 Subject: [Zope-DB] DCOracle2 - Invalid connection string References: Message-ID: <3C06B212.9010906@zope.com> Carsten.Hoff@BASF-IT-Services.com wrote: >Hello together, >both, compiling or installation of binaries, leads to the following prob. >Test scripts say connection successfully tested. >But inside Zope the Connection method gives: >invalid connection string. > >env for ORACLE_HOME and LD_LIBRARY_PATH are set in the zope start script. > >System RH7.1 both python 1.5.2 and 2.1, Oracle Client 8.1.7., >DCOracle2-PR1.tar.gz, Zope 2.4.3. > >What am I doing wrong >TIA carsten > Did I ever get back to you on this, Carsten? Anyway, most of this time it has to do the the Oracle naming services, ie sqlnet.ora and tnsnames.ora. Often the installer put in a NAMES.DEFAULT_DOMAIN in the sqlnet.ora, but the name is unqualified in tnsnames.ora. Usually there's like a sqlnet.log file generated when the name isn't being resolved properly. From Carsten.Hoff@BASF-IT-Services.com Fri Nov 30 15:31:11 2001 From: Carsten.Hoff@BASF-IT-Services.com (Carsten.Hoff@BASF-IT-Services.com) Date: Fri, 30 Nov 2001 16:31:11 +0100 Subject: Antwort: Re: [Zope-DB] DCOracle2 - Invalid connection string Message-ID: Hi Matthew, thanks for your tip, but there is no sqlnet.log indicating a connection problem. Is there a place to find other error logs. The host name is fully qualified in the tnsnames.ora and I get with the same connection string a connection with sqlplus for the prompt. I have set the environment for zope in the script /ect/rc.d/init.d/zope in the following way: --- schnipp ---- INSTANCE_HOME=/var/zope INSTANCE_NAME=`basename ${INSTANCE_HOME}` export ORACLE_HOME=/opt/oracle/OraHome1 export LD_LIBRARY_PATH=/opt/oracle/OraHome1/lib export PATH=$PATH:$ORACLE_HOME/bin # make sure starter script exists --- schnapp --- is this correct? the product is correct loaded, so I assume this... Thanks for any other tips carsten "Matthew T. Kromer" am 29.11.2001 23:09:22 An: Carsten Hoff/BASF-IT-S/BASF@EUROPE Kopie: zope-db@zope.org Thema: Re: [Zope-DB] DCOracle2 - Invalid connection string Carsten.Hoff@BASF-IT-Services.com wrote: >Hello together, >both, compiling or installation of binaries, leads to the following prob. >Test scripts say connection successfully tested. >But inside Zope the Connection method gives: >invalid connection string. > >env for ORACLE_HOME and LD_LIBRARY_PATH are set in the zope start script. > >System RH7.1 both python 1.5.2 and 2.1, Oracle Client 8.1.7., >DCOracle2-PR1.tar.gz, Zope 2.4.3. > >What am I doing wrong >TIA carsten > Did I ever get back to you on this, Carsten? Anyway, most of this time it has to do the the Oracle naming services, ie sqlnet.ora and tnsnames.ora. Often the installer put in a NAMES.DEFAULT_DOMAIN in the sqlnet.ora, but the name is unqualified in tnsnames.ora. Usually there's like a sqlnet.log file generated when the name isn't being resolved properly. From matt@zope.com Fri Nov 30 17:53:17 2001 From: matt@zope.com (Matthew T. Kromer) Date: Fri, 30 Nov 2001 12:53:17 -0500 Subject: Antwort: Re: [Zope-DB] DCOracle2 - Invalid connection string References: Message-ID: <3C07C78D.30001@zope.com> Carsten.Hoff@BASF-IT-Services.com wrote: > >Hi Matthew, >thanks for your tip, but there is no sqlnet.log indicating a connection problem. >Is there a place to find other error logs. >The host name is fully qualified in the tnsnames.ora and I get with the same >connection string a connection with sqlplus for the prompt. >I have set the environment for zope in the script /ect/rc.d/init.d/zope in the >following way: > >--- schnipp ---- >INSTANCE_HOME=/var/zope >INSTANCE_NAME=`basename ${INSTANCE_HOME}` >export ORACLE_HOME=/opt/oracle/OraHome1 >export LD_LIBRARY_PATH=/opt/oracle/OraHome1/lib >export PATH=$PATH:$ORACLE_HOME/bin > ># make sure starter script exists >--- schnapp --- > Aha! Launching Zope from init can be different -- can you launch Zope manually and confirm that you still have errors with the connection string? Also, could you also export DCO2TRACEDUMP=/tmp/dco2.tracedump before starting Zope, and send me the tracedump file it writes to tmp? Zope can say "invalid connection string" even when the Oracle connection string is good -- it can cover up other errors that occured while trying to connect. Also, because I'm curious, do you mind letting me know how you're using Zope and DCO2? I like to have a notion of how people are using the software.