在迁移服务器的时候,安装完Xampp和oracle11g后出现了 [html] view plaincopyprint? Fatal error: Call to undefined function oci_connect() in D:\xampp\php\includes\myfun2.php on line 19 上面的错误,,我做了三步: 第一:把服务器重启了一下; 第二:修改php.ini内容,把extension=php_oci8_11g.dll ; Use with Oracle 11gR2 Instant Client这个前面的;去掉 第三:把安装目录D:\oracle\product\11.2.0\client_1\network\admin下的listener.ora文件中的HOST,改一下,改成要远程访问的IP(我觉得这一步应该是管用的,上步没有验证是否有用) 内容如下: [plain] view plaincopyprint? # listener.ora Network Configuration File: D:\oracle\product\11.2.0\client_1\network\admin\listener.ora # Generated by Oracle configuration tools. LISTENER = (DESCRIPTION_LIST = (DESCRIPTION = #(ADDRESS = (PROTOCOL = TCP)(HOST = WIN-E0398G7H7P6)(PORT = 1521))这句被注释掉了 (ADDRESS = (PROTOCOL = TCP)(HOST = <span style="color:#ff0000;"><strong>1.1.1.1(这个就是要远程访问的服务器ip地址)</strong></span>)(PORT = 1521)) (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521)) ) ) ADR_BASE_LISTENER = D:\oracle 然后错误消灭! |