Codeigniter and oracle undefined constant: OCI_COMMIT_ON_SUCCESS

前端 未结 1 587
青春惊慌失措
青春惊慌失措 2020-12-19 11:42

I develloping a web-based application with codeigniter and when I try to connect to my oracle entreprise 9g database the framework send me this error:

    A          


        
相关标签:
1条回答
  • 2020-12-19 12:15

    OCI_COMMIT_ON_SUCCESS is a constant declared in the Oracle PHP extension. Are you sure you have that installed correctly? Is it enabled in php.ini? Can you confirm that you can connect to the database manually with oci_connect?

    If you don't have the extension, then you'll need to install it. There is a list of steps I generally take to debug the installation here.

    I'm not sure what the value of OCI_COMMIT_ON_SUCCESS is, but you might be able to fake it with your own define, if it comes to that.

    0 讨论(0)
提交回复
热议问题