Forum Stats

  • 3,855,310 Users
  • 2,264,499 Discussions
  • 7,905,967 Comments

Discussions

PHP connection file is not successful with oracle cloud autonomous database wallet

user10740087
user10740087 Member Posts: 3 Green Ribbon

a simple connection file is not even working

<?php

$db = "(description= (retry_count=20)(retry_delay=3)(address=(protocol=tcps)(port=1522)(host=xxxxxxxxxxxxxx.oraclecloud.com))(connect_data=(service_name=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.oraclecloud.com))(security=(ssl_server_cert_dn="CN=xxxxxxxxxxxxxxx.oraclecloud.com, OU=xxxxxxxxxxxxxxxxxxxx, O=Oracle Corporation, L=xxxxxxxxxxxxx, ST=xxxxxxxxxxxxxx, C=US")))';

$conn = oci_connect("xxxxxxxxxxxx","xxxxxxxxxxxxxxxxx",$db);

if (!$conn) {

print "Sorry";

die();

}

else {

print "OK";

oci_close($conn);

}

?>


can help ????

Answers