Related Links : Search Engine Optimization | | Search Engine Marketing | Online Marketing | Freelance Programmer| SEO Thailand | SEO Expert | SEO services | PHP Programmer Thailand | SEO Tutorial | What is SEO |

  Home Our SEO Services SEO Expert Consultant Php Programmer Scripts| Email : sachin {at} jainsachin {dot} com

PHP | Connecting to Oracle databases | Manual | Tutorial | Help

SEO Services



Website Programming in PHP / MYSQL



Friends


    Connecting to Oracle databases

    PDO_OCI DSN

    (No version information available, might be only in CVS)

    PDO_OCI DSN — Connecting to Oracle databases

    Description

    The PDO_OCI Data Source Name (DSN) is composed of the following elements:

    DSN prefix

    The DSN prefix is oci: .

    dbname (Oracle Instant Client)

    The URI for the Oracle Instant Client connection takes the form of dbname=//hostname:port-number/database. If you are connecting to a database defined in tnsnames.ora, use only the name of the database: dbname=database.

    charset

    The client-side character set for the current environment handle.

    Examples

    Example #1 PDO_OCI DSN examples

    The following examples show a PDO_OCI DSN for connecting to Oracle databases:

    // Connect to a database defined in tnsnames.ora
    oci:dbname=mydb
    
    // Connect using the Oracle Instant Client
    oci:dbname=//localhost:1521/mydb
    


    SEO Tutorial / Articles





    Php / Mysql Tutorial



    Articles



      Portfolio


      SEO by Jainsachin