title: laravel to connect to oracle,throw error: Oci8Exception in Oci8.php (line 460)
body: <p>i need your help.
  access via browser, error like this:</p>
  
  <pre><code>in Oci8.php (line 460)
  at Oci8-&gt;connect('(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.31)(PORT = 1521)) (CONNECT_DATA =(SID = orcl)))', 'device', '123456', array(2, 2, 0, 'charset' =&gt; 'ZHS16GBK'), 'ZHS16GBK')
  in Oci8.php (line 78)
  at Oci8-&gt;__construct('(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.31)(PORT = 1521)) (CONNECT_DATA =(SID = orcl)))', 'device', '123456', array(2, 2, 0, 'charset' =&gt; 'ZHS16GBK'))
  in OracleConnector.php (line 204)
  at OracleConnector-&gt;createConnection('(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.31)(PORT = 1521)) (CONNECT_DATA =(SID = orcl)))', array('driver' =&gt; 'oracle', 'tns' =&gt; '', 'host' =&gt; '192.168.1.31', 'port' =&gt; '1521', 'database' =&gt; 'orcl', 'username' =&gt; 'device', 'password' =&gt; '123456', 'charset' =&gt; 'ZHS16GBK', 'prefix' =&gt; '', 'prefix_schema' =&gt; '', 'name' =&gt; 'oracle'), array(2, 2, 0, 'charset' =&gt; 'ZHS16GBK'))
  in OracleConnector.php (line 35)
  at OracleConnector-&gt;connect(array('driver' =&gt; 'oracle', 'tns' =&gt; '', 'host' =&gt; '192.168.1.31', 'port' =&gt; '1521', 'database' =&gt; 'orcl', 'username' =&gt; 'device', 'password' =&gt; '123456', 'charset' =&gt; 'ZHS16GBK', 'prefix' =&gt; '', 'prefix_schema' =&gt; '', 'name' =&gt; 'oracle'))
  in Oci8ServiceProvider.php (line 49)
  </code></pre>
  
  <p>Use the php script below,return "Connect Oracle successfully！"</p>
  
  <pre><code>&lt;?php
  $conn = oci_connect('device', '123456', '(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.1.31)(PORT=1521))(CONNECT_DATA=(SID=orcl)))', 'ZHS16GBK');
  if (!$conn) {
    $e = oci_error();
    print htmlentities($e['message']);
    exit;
  }else {
    echo "Connect Oracle successfully！";
  }
  ?&gt;
  </code></pre>
  
  <p>my environment:</p>
  
  <pre><code>mac pro version:10.12.6 (16G29)
  php:PHP 7.1.4 (cli) (built: May  6 2017 10:02:00) ( NTS )
  laravel:Laravel Framework 5.4.33
  xcode:Version 8.3.3 (8E3004b)
  oracle: 11g
  </code></pre>
  
  <p>my .env file</p>
  
  <pre><code>DB_CONNECTION=oracle
  DB_HOST=192.168.1.31
  DB_PORT=1521
  DB_DATABASE=orcl
  DB_USERNAME=device
  DB_PASSWORD=123456
  DB_TNS=
  DB_CHARSET=ZHS16GBK
  </code></pre>