Re: ZcxOracleDA configuration assistance

[email protected] Mon, 17 Aug 2009 16:01:37 -0400
Newsgroups gmane.comp.web.zope.database
Message-ID <OF5E673DE2.C2D10437-ON85257615.006D71D2-85257615.006E33F7@LocalDomain>
--===============4410813607600861003==
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<tt><font size=3D2>Dan Fairs &lt;[email protected]&gt; wrote on 08/17/2=
009
02:31:51 PM:<br><br>&gt; Re: [Zope-DB] ZcxOracleDA configuration assistance=
</font></tt><br><tt><font size=3D2>&gt; <br>&gt; &gt; &gt; &gt; At this poi=
nt, we're fairly mystified. The file that
ZcxOracleDA's<br>&gt; &gt; &gt; &gt; install ultimately complains about is =
indeed in $ORACLE=5FHOME,
&nbsp;<br>&gt; &gt; where I<br>&gt; &gt; &gt; &gt; would expect it to be lo=
oking. We're still able to
manually start<br>&gt; &gt; &gt; &gt; Plone's Python and import cx=5FOracle=
 just fine. Does
anyone have &nbsp;<br>&gt; &gt; any<br>&gt; &gt; &gt; &gt; suggestions?<br>=
&gt; &gt; &gt;<br>&gt; &gt; &gt; Given that it works when you run Python ma=
nually but not
when you &nbsp;<br>&gt; &gt; start<br>&gt; &gt; &gt; the cluster the proble=
m is likely to be that your Zope user
&nbsp;<br>&gt; &gt; doesn't have<br>&gt; &gt; &gt; the right permissions to=
 access the library.<br>&gt; &gt;<br>&gt; &gt; Thanks for the response. Plo=
ne's documentation says that for
the &nbsp;<br>&gt; &gt; type of install we did, Zope should run as the user=
 &quot;plone&quot;
(I &nbsp;<br>&gt; &gt; verified this with ps). Unfortunately, even if I cho=
wn everything
in &nbsp;<br>&gt; &gt; $ORACLE=5FHOME to user plone and restart the cluster=
 again, the
error &nbsp;<br>&gt; &gt; remains the same.<br>&gt; &gt;<br>&gt; <br>&gt; <=
br>&gt; Are the $ORACLE=5FHOME and $LD=5FLIBRARY=5FPATH variables exported =
for the
&nbsp;<br>&gt; user that Zope is running as? You didn't say whether your te=
st script
&nbsp;<br>&gt; was run as that user or some other user (and hence for whom =
those
&nbsp;<br>&gt; variables were exported).<br></font></tt><br><tt><font size=
=3D2>Ok, I think that was the prod I needed. I have the
variables exported from the profiles of both root and plone (under which
Zope should be running), but I apparently haven't set it in the right spot
yet. If I log in as plone, a manual import of cx=5FOracle works fine. Howev=
er,
if as root I &quot;sudo -u plone /.../python&quot; and try to import, I
get the same error returned by ZcxOracleDA. Haven't figured out how to
get around it yet, but it looks like this takes it out of the realm of
Zope and into basic system administration.</font></tt><br><br><tt><font siz=
e=3D2>Thanks,</font></tt><br><tt><font size=3D2>David Murphy</font></tt><BR>

--===============4410813607600861003==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Zope-DB mailing list
[email protected]
http://mail.zope.org/mailman/listinfo/zope-db

--===============4410813607600861003==--