Re: Z * Database Connection Verbindungsprobleme

Andreas Jung <[email protected]>
Newsgroups gmane.comp.web.zope.german
Organization ZOPYX Ltd & Co. KG
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Peter Zechmeister wrote:
> Hallo,
> 
> unser ZEO ist mit einem externen RDBS verbunden - Oracle.
> Wir machen das mit dem ZcxOracleDA.
> Eigentlich funktioniert das ja, aber es gibt Probleme mit einer
> Firewall, die zwischen der Zope- und der Oracle- Maschine steht. Diese
> kappt nach einer gewissen Zeit die TCP-Verbindung, wenn sich nichts tut.
> Der Connector bekommt davon aber nichts mit und glaubt nach wie vor eine
> bestehende Verbindung zu haben. Das nächste SQL-Statement (Z SQL Method)
> wartet sich dann zu Tode.
> Es dürfte einen Workaround geben, indem man in der Applikation, vor den
> SQL-Statements dem Connector sagt, er möge eine neue Verbindung
> aufmachen (dabei schließt er selbst eine allfällige noch bestehende
> alte). 
> Aber das kanns ja wohl nicht sein. Das stellt ja das ganze Konzept
> infrage. Gibts da nicht eine elegantere Lösung?


Laut Dokumentation macht cx_oracle Connection Pooling. Alternative
kannst Du cx_oracle + SQLAlchemy + SqlalchemyDA probieren und Dich auf
das Pooling von SQLAlchemy verlassen (hoffentlich).

Andreas

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwXkzsACgkQCJIWIbr9KYyWewCguny/exY01T+CKHeRzRWSpKYR
sBsAoMtGpwrQrBRFVFkudXOftZHmp35Y
=9zLz
-----END PGP SIGNATURE-----



_______________________________________________
zope mailing list
[email protected]
https://mail.dzug.org/mailman/listinfo/zope
lists.vcf (text/x-vcard, 316 B)
begin:vcard
fn:Andreas Jung
n:Jung;Andreas
org:ZOPYX Ltd. & Co. KG
adr;quoted-printable:;;Charlottenstr. 37/1;T=C3=BCbingen;;72070;Germany
email;internet:[email protected]
title:CEO
tel;work:+49-7071-793376
tel;fax:+49-7071-7936840
tel;home:+49-7071-793257
x-mozilla-html:FALSE
url:www.zopyx.com
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.