Excuse me, how to connect the Oracle database with the PDO in the framework under the Kohana framework, thank you
With the original ecological TNS can
Reply to discussion (solution)
Get
; Extension=php_pdo_oci.dll
; Extension=php_pdo_oci8.dll
All 2 of these services have to be opened.
Example of a PDO_OCI connection code with the Kohana framework:
' Test ' = array
(
' Type ' = ' PDO ',
' Connection ' = Array (
/**
* The following options is available for MySQL:
*
* String hostname server hostname, or socket
* String Database name
* String Username database username
* String Password Database password
* Boolean persistent use persistent connections?
* Array variables System variables as "key = value" pairs
*
* Ports and sockets is appended to the hostname.
*/
' DSN ' = ' oci:dbname=//xxx.xxx.xxx.xx ',
' hostname ' = ' hostname ',
' Database ' = ' database name ',
' username ' = ' username ',
' Password ' = ' password ',
' Persistent ' = FALSE,
),
' Table_prefix ' = ',
' CharSet ' = ' gb2312 ',
' Caching ' = FALSE,
' Profiling ' = TRUE,
)