[Zope-DB] Error Connecting to Oracle

Matthew T. Kromer matt@zope.com
Tue, 27 May 2003 11:32:05 -0400


Brian Brinegar wrote:

> I have a script which runs as a cronjob once a day. I can run the 
> script from the command line with no problem, however when cron runs 
> the script I get the following error:
>
> OCIEnvCreate failed: ././dco2.c:1316Traceback (most recent call last):
>  File "/backup/bin/pullUNSarticles.py", line 100, in ?
>    dbh = DCOracle2.connect(dsn=dsn)
>  File 
> "/opt/python/2.2.1-update1/sparc-sunos5.8/lib/python2.2/site-packages/DCOracle2/DCOracle2.py", 
> line 164, in connect
>    db = dco2.connect(u, p, dbname)
> dco2.DatabaseError: (-4261436, '')
>
> I couldn't find an oracle error 4261436 and I'm guessing it's a 
> configuration problem on my end. Anyone have a clue?
>
> Thanks,
> -Brian


When the number in the error message makes no sense, its because your 
ORACLE_HOME isn't set properly, in most cases.

-- 
Matt Kromer
Zope Corporation  http://www.zope.com/