Failed to connect to Oracle Array ( [code] => 12546 [message] => ORA-12546: TNS:permission denied [offset] => 0 [sqltext] => )
$conn=oci_connect("ZZZZZ","zzzzz","zzzzzzzz"); If (!$conn) echo 'Failed to connect to Oracle'; else echo 'Succesfully connected with Oracle DB'; $e = oci_error(); // For oci_connect errors pass no handle oci_close($conn);
Quote: Hi Remi! After researching more, someone suggested this solution on stackoverflow: Shell # setsebool -P httpd_can_network_connect on I haven't understood yet what it does but it worked for my case! He suggests that "this happens because the machine has SELinux activated, usually in the enforcing mode. I would not recommend to disable SELinux, but setting it to permissive looks to ease the process of identifying some problems with it. You can check SELinux status by sestatus." For your info, the link is this https://stackoverflow.com/questions/325 … ion-denied
# setsebool -P httpd_can_network_connect on
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)