我用的是Oracle10g的client端,
连接远程计算机168.1.1.3:1521/SMTRT使用client的企业管理器以及sqlplus:  smtuser/smtadm@SMTRT都能正常连接上Oracle
但是使用PHP的adodb连接就出现问题:tns:no listener.如果使用$conn = OCINLogon("smtuser", "smtadm","168.1.1.3:1521/SMTRT");
就出现:ORA-12737: Instant Client Light: unsupported server character set %s如果使用$conn = OCINLogon("smtuser", "smtadm","168.1.1.3:1521/SMTRT","ZHS16GBK");
就会出现:
OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the directory with Oracle Instant Client libraries注:环境为:ZendServer5.0 (apache2.13,php5.30)

解决方案 »

  1.   

    oci8
    OCI8 Support  enabled  
    Version  1.3.5  
    Revision  $Revision: 1.269.2.16.2.38.2.32 $  
    Active Persistent Connections  0  
    Active Connections  0  
    Temporary Lob support  enabled  
    Collections support  enabled  Directive Local Value Master Value 
    oci8.connection_class no value no value 
    oci8.default_prefetch 100 100 
    oci8.events Off Off 
    oci8.max_persistent -1 -1 
    oci8.old_oci_close_semantics On On 
    oci8.persistent_timeout 60 60 
    oci8.ping_interval 60 60 
    oci8.privileged_connect On On 
    oci8.statement_cache_size 20 20