Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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

user10740087Oct 21 2021

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 ????

Comments

Post Details

Added on Oct 21 2021
8 comments
381 views