好象是和mysql是一样的吧
同样是基于tcp/ip的
你只要把localhost换成服务器的ip地址就行的啊

解决方案 »

  1.   

    好象是和mysql是一样的吧
    同样是基于tcp/ip的
    你只要把localhost换成服务器的ip地址就行的啊
      

  2.   

    这是我从书上看来的:
    // 假设数据库名为:www
    // 用户名:RobinCat
    // 密码:1234putenv("oracle_sid=www");
    putenv("nls_lang=american_taiwan.zht16big5");//使用中文
    putenv("oracle_home=/home/oracle/product/7.3.2"); //oracle_path
    putenv("ld_library_path=/home/oracle/product/7.3.2/lib");
    putenv("ora_nls="/home/oracle/product/7.3.2/ocommon/nls/admin/data);
    putenv("ora_nls32="/home/oracle/product/7.3.2/ocommon/nls/admin/data);
    $handle=ora_logon("RobinCat@www","1234") or die;我看不懂,不知对你是否有用??
      

  3.   

    $db="(DESCRIPTION = 
    (ADDRESS = (PROTOCOL = TCP)(HOST = RemoteServerIP)(PORT = 1521)) 
    (CONNECT_DATA = (SID = ORCL)) 
    )"; OCILogon("scott","tiger",$db); 
      

  4.   

    $nConnection  =  OCILogon("$ora_username@domainname","$ora_password");
    可能是这样。