Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORA-12533: TNS:illegal ADDRESS parameters #77

Open
digitlimit opened this issue Jan 24, 2020 · 2 comments
Open

ORA-12533: TNS:illegal ADDRESS parameters #77

digitlimit opened this issue Jan 24, 2020 · 2 comments

Comments

@digitlimit
Copy link

digitlimit commented Jan 24, 2020

Summary of problem or feature request

I am running Laravel 6
I'm getting the error below:

ORA-12533: TNS:illegal ADDRESS parameters

My .env
DB_CONNECTION=oracle
DB_HOST=127.0.0.1
DB_POST=1521
DB_DATABASE=XE
DB_USERNAME=HR
DB_PASSWORD=hshahashs

My controller:

namespace App\Http\Controllers;

use App\Models\Employee;

class HomeController extends Controller
{
    public function index(){

        $employees = Employee::all();
        dd($employees);
    }
}

Models

<?php
namespace App\Models;

use Yajra\Oci8\Eloquent\OracleEloquent as Eloquent;

class Employee extends Eloquent {

    protected $connection = 'oracle';

    protected $table = 'employees';

    // define binary/blob fields
//    protected $binaries = ['content'];

    // define the sequence name used for incrementing
    // default value would be {table}_{primaryKey}_seq if not set
//    protected $sequence = null;

}

I tried this directly and it works without the package

       $conn = oci_connect("HR", "hshahashs", "localhost/XE");
        $stdi = oci_parse($conn, "SELECT * FROM employees");

        if(oci_execute($stdi)){
            dd(oci_fetch_assoc($stdi));
        }

Please assist

  • Operating System - windows (Wamp)
  • PHP Version -PHP 7.3
  • PDO-VIA-OCI8 Version
@wernerm
Copy link
Contributor

wernerm commented Jan 24, 2020

Please try to include the code that's producing the error.

@digitlimit
Copy link
Author

@wernerm I have udpated issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants