Python论坛  - 讨论区

标题:[python-chinese] (no subject)

2005年08月01日 星期一 10:09

agile java agile.java at gmail.com
Mon Aug 1 10:09:40 HKT 2005

我觉得最可能的原因就是nicran所说的:)

On 7/31/05, nicran <nicran at gmail.com> wrote:
> another possible reason might be when running script with cron, the
> environment variable isn't correct set by the cron shell, and it might
> use another python such the one installed at /usr/bin
> 
> 在 05-7-30,limodou<limodou at gmail.com> 写道:
> > 在 05-7-30,Schopendauer Nietzsche<mosquitoxh at yahoo.com.cn> 写道:
> > >
> > >
> > > hello  everyone:
> > >
> > > I write a program using  dco2 by python,when i call this program  by
> > > shell
> > >
> > > command,it's ok ,when I call this program by cron ,It errs.error
> > > message
> > >
> > > as  flows:
> > >
> > > Traceback (most recent call last):
> > >   File "/home/logix/batch/sendMail.py", line 14, in ?
> > >     db = DCOracle2.connect("lmusr/future2 at TMSPROD_PROD")
> > >   File "/home/logix/DCOracle2/DCOracle2/DCOracle2.py", line
> > > 189, in
> > > connect
> > >     db = dco2.connect(u, p, dbname)
> > > dco2.DatabaseError: (12154, 'Error while trying to retrieve text for
> > > error ORA-12154')
> >
> > 没有用过oracle,不过感觉是数据库访问错,它已经给出了错误码是"12154",建议你查一查错误码看一看是什么错误。会不会是程序的执行权限的问题。
> > >
> > > can anyone help me solve this problem?  3ks
> > >
> >
> >
> >
> > --
> > I like python!
> > My Donews Blog: http://www.donews.net/limodou
> > New Google Maillist: http://groups-beta.google.com/group/python-cn
> >
> > _______________________________________________
> > python-chinese list
> > python-chinese at lists.python.cn
> > http://python.cn/mailman/listinfo/python-chinese
> >
> >
> >
> 
> _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 
> 
>

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号