V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ziqing
V2EX  ›  PHP

求教PHP连接oracle 10g

  •  
  •   ziqing · 2011-07-23 18:24:00 +08:00 · 5077 次点击
    这是一个创建于 4654 天前的主题,其中的信息可能已经有所发展或是发生改变。
    我用的环境是win7 64位的,用xampp搭的,oracle客户端也装上了,环境变量自动填上了已经,php配置里包含了php_oci8.dll,在phpinfo里有oci8支持,但是还是报这样的错误
    OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries
    6 条回复    1970-01-01 08:00:00 +08:00
    ziqing
        1
    ziqing  
    OP
       2011-07-24 22:55:47 +08:00
    求各位大虾帮助啊
    freefcw
        2
    freefcw  
       2011-07-24 23:51:47 +08:00
    你试试重启,可能程序的环境变量还没更新到最新的吧?
    ziqing
        3
    ziqing  
    OP
       2011-07-25 09:06:11 +08:00
    @freefcw 已经重启过好多了,结果还是一样的,之前有配置成功过,是在32位的电脑上,与这个有关系吗
    freefcw
        4
    freefcw  
       2011-07-25 09:09:37 +08:00
    既然说“please check that PATH includes the directory with Oracle Instant Client libraries”
    你可以看看PATH变量
    ziqing
        5
    ziqing  
    OP
       2011-07-25 09:36:38 +08:00
    @freefcw PATH里有包含oracle\product\10.2.0\client_1\bin这个路径的
    webgeekman
        6
    webgeekman  
       2011-08-24 14:49:01 +08:00
    用PDO链接数据库吧,这个我们测试过,链接Oracle11G没有问题。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2381 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 16:07 · PVG 00:07 · LAX 09:07 · JFK 12:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.