Antwort: Re: Antwort: Re: Antwort: Re: [Zope-DB] DCOracle2 - Invalid
connection string
Carsten.Hoff@BASF-IT-Services.com
Carsten.Hoff@BASF-IT-Services.com
Mon, 3 Dec 2001 15:19:53 +0100
Hi,
see my comments,
excuses for my ugly reply but I have to use lotus notes...
Dario Lopez-K=E4sten <dario@ita.chalmers.se> am 03.12.2001 10:56:44
An: zope-db@zope.org
Kopie: (Blindkopie: Carsten Hoff/BASF-IT-S/BASF)
Thema: Re: Antwort: Re: Antwort: Re: [Zope-DB] DCOracle2 - Invalid
connection string
From: <Carsten.Hoff@BASF-IT-Services.com>
>
> Hi Matthew,
> calling /etc/rc.d/init.d/zope start as root does not change anything =
(or
am
> I misunderstanding your request to start it manually, I did not find =
any
> other start script).
zstart in the zope-directory
zstart does not exist??!
> I have put on the tracedump and dco2 throws an oci/oracle error
> (ORA-12154), that it is unable to resolve the services name.
> But calling sqlplus with the same connect string works, so I assume
correct
> tnsname.ora and sqlnet.oras. The instance I want to connect is an 8.1=
.6
> installation on a hpux node in the same network (using tcp as connect=
> mode).
ok, checklist (sorry if they sound obvious, but i list them so we can
eliminate error sources):
1) are you trying sqlplus on the machine where Zope is installed?
and is the connections succesfull (i.e. you can run a query)
are you using the same shemaname as zope is to connect to th db?
Yes, yes, yes.
2) are you trying sqlplus as the user zope runs as?
(i.e. has root got the proper environment to do sqlqueries?
if you are running form init.d, and it chroots to nobody,
has nobody access to the oracle environment)
Yes,
I have tried to run sqlplus as root with manual setted env for oracle -=
>
o.k.
then I have started with the same user in the same env zope with the zo=
pe
script under /etc/rc.d/init.d
3) in the connectstring, user/pwd@<tnsname>, is <tnsname> exactly
the string that identifies that source?
Yes
4) have you got several oracle products installed? if so are you
sure that zope is using the proper environment?
No.
there, I am all out of ideas to try.
hope this helps,
Currently I am wondering, where I have to set the ORACLE_HOME,
LD_LIBRARY_PATH.
I have set them in the zope script /etc/...
Uncommenting these environment parameters lead to an error in the produ=
cts
overview.
So I assume this place could not be so wrong (or should I use z2.py?)
Thanks for any hints
carsten
/dario
Note to Matthew:
Oracle is our standard datbase. We use it to keep *ALL* our content
and then some in it. All we use zope for is the application logic.
I guess that we could pass as heavy duty users of DCO2 and oracle.
the application we are building is a HA Student/Staff university
portal and Learning Managemnet System, that ideally is going to
save money and free time, while expanding the service level to both
students and staff and providing new services not previously possible.
- --------------------------------------------------------------------
Dario Lopez-K=E4sten Systems Developer Chalmers Univ. of Technolog=
y
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
=