How can I connect to Oracle using yii2?

How can I connect to Oracle using yii2?

There is&nbsp;<strong>main-local.php</strong>&nbsp;file :

There is main-local.php file :

'db' => [
        'class' => 'yii\db\Connection',
        'dsn' => 'oci:dbname=//[db_host:db_port]/[dbname]',
        'username' => '***',
        'password' => '***',
    ]

When I tried first time connect to DB, there was an error "driver not found". After I installed a driver, there is the following error :

PDOException: SQLSTATE[]: (null) Caused by: PDOException

php oracle

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Hire PHP Developer

Looking to develop a PHP based website from scratch or revamp your existing website? **[HourlyDeveloper.io](https://hourlydeveloper.io/ "HourlyDeveloper.io")** has always been an industry leader for companies and business owners looking to hire...

Hire Dedicated PHP Developer

Looking to hire affordable yet experienced PHP developers? **[Hire Dedicated PHP Developer](https://hourlydeveloper.io/hire-dedicated-php-developer/ "Hire Dedicated PHP Developer")**, who can convert your idea to reality, within the stipulated...

5 Steps To Get An Oracle Database Certification

Oracle Online Training & Certification Course; Launch your career by joining India's best Institute to learn 10g 11g and become well-versed oracle professional.

Country State City Dropdown list in PHP MySQL PHP

Country state city dropdown using ajax in php. You'll learn how to populate country city state dropdown based on previous selection in php using ajax

PHP json_decode Example | Decode JSON Data in PHP Tutorial

PHP json_decode is an inbuilt function that takes the JSON encoded string and converts it into a PHP variable. JSON stands for JavaScript Object Notation.