zalvsa(zalvsa) apache2+php5===============================刚刚试了, 还是一样 最少2.3 秒, 最长11.3 秒换了一台机还是一样
我测试的代码<?php
$time1=getmicrotime();$a=OCILogon($dbusername,$dbpassword,$dbname);
OCILogoff($a);$time2=getmicrotime();echo ($time2-$time1); //时间函数
function getmicrotime(){ 
    list($usec, $sec) = explode(" ",microtime()); 
    return ((float)$usec + (float)$sec); 
}
?>

解决方案 »

  1.   

    <?php
    require "./config.php";//放用户名|密码|实例名$time1=getmicrotime();$a=OCILogon($dbusername,$dbpassword,$dbname);
    OCILogoff($a);$time2=getmicrotime();echo ($time2-$time1); //时间函数
    function getmicrotime(){ 
        list($usec, $sec) = explode(" ",microtime()); 
        return ((float)$usec + (float)$sec); 
    }
    ?>
      

  2.   

    0.0445549488068
    查询一条新闻信息,含clob字段.一共执行了2个sql语句.并输出显示!楼主,是不是你机器中毒了?
      

  3.   

    终于发现问题所在了, 我把本机的网络断掉以后就快了,0.0xxxx 秒但是不能一直断网工作呀. 哪位大虾告诉我是怎么回事呢?