<tt><font size=2>Dan Fairs &lt;dan@fezconsulting.com&gt; wrote on 08/17/2009
02:31:51 PM:<br><br>&gt; Re: [Zope-DB] ZcxOracleDA configuration assistance</font></tt><br><tt><font size=2>&gt; <br>&gt; &gt; &gt; &gt; At this point, we're fairly mystified. The file that
ZcxOracleDA's<br>&gt; &gt; &gt; &gt; install ultimately complains about is indeed in $ORACLE_HOME,
&nbsp;<br>&gt; &gt; where I<br>&gt; &gt; &gt; &gt; would expect it to be looking. We're still able to
manually start<br>&gt; &gt; &gt; &gt; Plone's Python and import cx_Oracle 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 manually but not
when you &nbsp;<br>&gt; &gt; start<br>&gt; &gt; &gt; the cluster the problem 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. Plone'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 chown everything
in &nbsp;<br>&gt; &gt; $ORACLE_HOME 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_HOME and $LD_LIBRARY_PATH variables exported for the
&nbsp;<br>&gt; user that Zope is running as? You didn't say whether your test 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=2>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_Oracle works fine. However,
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 size=2>Thanks,</font></tt><br><tt><font size=2>David Murphy</font></tt><BR>