I had similar problem with database connection.
Ty to use
this https://trac.cakephp.org/ticket/5583 bugfix
and
change your configuration to:
var $default = array(
'driver' => 'oracle',
'connect' => 'oci_connect',
'persistent' => false,
'host' => '',
'login' => 'as411161',
'password' => 'as411161',
'database' => 'myhost.com/vcpdb',
'prefix' => '',
);
combination of both helped me. (see also
http://www.mail-archive.com/[email protected]/msg30736.html )
Robin
On 11 Zář, 21:27, Anthony Smith <[EMAIL PROTECTED]> wrote:
> In thedatabase.php if I remove it, it gives an error, if I put a bad
> username, password, or server, it still saysCakeisabletoconnect
> to thedatabase. This wasnotalways the case when I first tried. But
> now, no matter what I do, it says it canconnect.
> And at the bottom it always has:
> 1 ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'
> 0 2
>
> When I got the nightly version(the above was the 1.2.0.7296 RC2), I
> usee the exact same db setting with the right info and it only
> says:CakeisNOTabletoconnectto thedatabase.
>
> I have tried below, using oci8 instead of oci_connect and many other
> changes.Notsure what to do next.
>
> var $default = array(
> 'driver' => 'oracle',
> 'connect' => 'oci_connect',
> 'persistent' => false,
> 'host' => 'myhost.com',
> 'login' => 'as411161',
> 'password' => 'as411161',
> 'database' => 'vcpdb',
> 'prefix' => '',
> );
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---