需要用另外一个系统,需要访问共用库的信息
在本地搭建的环境正式一波三折。终于
提示 “连接oracle成功!”
安装的版本:
1,phpstudy2018
php7.2.1 nts 修改php.ini打开:
extension=php_oci8_12c.dll,
2,oracle 客户端 instantclient-basic-nt-12.2.0.1.0
在系统环境变量中设置 path instantclient-basic-nt-12.2.0.1.0解压的路径。
3,demo
<?php
$conn= oci_connect(‘username’, ‘password’, ‘xxxxxxx:1521/serviceId’);
if($conn) {
echo”连接oracle成功!”;
exit;
}else{
echo”连接oracle失败!”;exit;
}
?>
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_873.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57