• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Issues connecting to Oracle DB

#1
[eluser]Unknown[/eluser]
Anybody know why i can get this to work in a simple php script but when I try to use it in CodeIgniter it doesn't work.

I get this error :
Message: oci_connect(): ORA-12154: TNS:could not resolve the connect identifier specified

Code:
$oracle_username = 'username';
  $oracle_password = 'password';
  $connection_string = 'dwprd';
  $oracle_connection = oci_connect($oracle_username, $oracle_password, $connection_string);
  
  if( ! $oracle_connection)
  {
   $error = oci_error();
   echo "owned";
   die();
  }
  else
  {
   echo "works";
  }


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.