Excuse me, how to connect Oracle database under Kohana framework, thank you

Source: Internet
Author: User
Tags kohana
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,
)

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.