Code Monkey home page Code Monkey logo

Comments (2)

jmbIFR avatar jmbIFR commented on August 31, 2024

You are right, the cakephp-oracle-driver plugin need more documentation on configs options.

For using the cakephp-oracle-driver without modifing the code, you can use the flags and init options in your config file.

Below an personnal example of cakephp-oracle-driver config in config/app.php

the use of, ['flags'=>'charset'], ['flags=>'persistent'] or ['init'] is not documented

'default' => [
   'className' => 'CakeDC\OracleDriver\Database\OracleConnection',
   'driver' => 'CakeDC\OracleDriver\Database\Driver\OracleOCI', # For OCI8
   'host' => '', # Database host name or IP address or blank for complexe oracle database entry defined in database option
   'port' => '', # Database port number (default: 1521)
   'username' => 'user1',          # Database username
   'password' => 'password',       # Database password
   'database' => '(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=OFF)(FAILOVER=ON)(ADDRESS=(PROTOCOL=TCP)(HOST=server1)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=server1)(PORT=1521)) )(CONNECT_DATA=(SERVICE_NAME=INSTX_TAF)(INSTANCE_NAME=INSTX)(GLOBAL_NAME=INSTD)))',
   'flags'=> [
       'charset'=>'al32utf8',
       'persistent'=>true
   ],
   'init'=>["ALTER SESSION SET NLS_NUMERIC_CHARACTERS = '.,'"]

from cakephp-oracle-driver.

apricotpoodle avatar apricotpoodle commented on August 31, 2024

Thank you very much for the clearness and conciseness of your answer.

from cakephp-oracle-driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.