[Zope-DB] ZcxOracleDA configuration assistance

Dan Fairs dan at fezconsulting.com
Mon Aug 17 16:49:47 EDT 2009


> 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 "sudo -u plone /.../python" 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.


You'll probably need to provide additional arguments to sudo to tell  
it to run a login shell to pick up stuff in .profile and friends - I'm  
afraid I can't remember what they are off the top of my head. Check  
the man page for sudo.

Cheers,
Dan

--
Dan Fairs <dan at fezconsulting.com> | http://www.fezconsulting.com/



More information about the Zope-DB mailing list