Comments (18)
The error indicates that you don't have OCI8 extension enabled or is not functioning well. Can you please check your PHP installation? If possible, use at least PHP 5.3.14 or latest.
from laravel-oci8.
I wasn't aware I had to download OCI8 separately from my PHP installation. (Update README for noobs like me?)
Thank you.
from laravel-oci8.
read me updated. thanks for feedback.
from laravel-oci8.
i have a problem ,
i dont know that the problem where is.
FatalThrowableError in Oci8.php line 455:
Call to undefined function Yajra\Pdo\oci_connect()
this is additional information:
in Oci8.php line 455
at Oci8->connect('(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.50.10)(PORT = 1521)) (CONNECT_DATA =(SERVICE_NAME = mipg)))', 'haft', 'haft', array(2, 2, 0, 'charset' => 'AL32UTF8'), 'AL32UTF8') in Oci8.php line 78
from laravel-oci8.
@ali2535 it looks like your oci8 extension is still not loaded.
please check php -m | grep oci8
this should show oci8 did you install oci8? it must be activated in php.ini for cli and! apache/nginx
from laravel-oci8.
@mstaack 👍
thanks for your answer my friend . what is grep in windows?
i install wampserver 3 and php7 . and remove ; symbol from first of oci8_12c
why you say not loading?
from laravel-oci8.
when i run this command no return anything. this is ok??
from laravel-oci8.
Where is problem in this connection string ?
at Oci8->connect('(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.50.10)(PORT = 1521)) (CONNECT_DATA =(SERVICE_NAME = haft)))', 'HAFT', 'HAFT', array(2, 2, 0, 'charset' => ''), '') in Oci8.php line 78
from laravel-oci8.
@ali2535 grep is a bash command so I think it will not work on windows. Just make sure that the proper oci8*.dll
extension is enabled on your php.ini.
from laravel-oci8.
@yajra:
yajra it solved . connect to database .
i have question about eloquent models. can i use oracle eloquent similar to mysql eloquent??
there is no good documentation about oracle eloquent. can say me a description and example from this?
thank you so much about this package . good luck
from laravel-oci8.
@ali2535 sure thing.. have a look here: https://yajrabox.com/docs/laravel-oci8/master/oracle-eloquent
from laravel-oci8.
@mstaack : Thank you so much
a question : protected $binaries = ['content'] IS protected $fillable = ['content'] ???????
from laravel-oci8.
@ali2535 you are only required to use OracleEloquent
in cases where you have a blob|binary
fields. If not, you can use the regular Eloquent/Model and should work like how MySQL does it.
$binaries
is not $fillable
. Binaries should be set to help us identify which columns are blob|binary
.
from laravel-oci8.
Hi, How do we use service name instead of SID to connect to oracle database hosted on other server. Thanks.
from laravel-oci8.
@sonu1 use something like this in your config
'driver' => 'oracle',
'tns' => env('DATABASE_TNSNAME', 'oracle'),
'service_name' => env('DB_SERVICE_NAME', 'service-name'),
'host' => env('DB_HOST', '8.8.8.8'),
'port' => env('DB_PORT', '1521'),
'username' => env('DATABASE_USER', ''),
'password' => env('DATABASE_PASSWORD', ''),
'database' => env('DB_DATABASE', ''),
'charset' => env('DB_CHARSET', 'AL32UTF8'),
'prefix' => env('DB_PREFIX', ''),
'prefix_schema' => env('DB_SCHEMA_PREFIX', ''),
'options' => [
PDO::ATTR_PERSISTENT => true
],
from laravel-oci8.
FatalThrowableError in Oci8.php line 455:
Call to undefined function Yajra\Pdo\oci_connect()
from laravel-oci8.
help me
from laravel-oci8.
from laravel-oci8.
Related Issues (20)
- Updating model with multiple blob columns fails
- DRCP Connection Pooling HOT 4
- Undefined type 'Yajra\Oci8\Oci8ServiceProvider'. HOT 5
- Method Yajra\Oci8\Schema\Grammars\OracleGrammar::compileColumns does not exist. HOT 2
- v10.4.3 introduced SQL error in SELECT FOR UPDATE HOT 4
- OracleProcessor.php function processColumns donot return key "auto_increment" HOT 2
- OCI_SUCCESS_WITH_INFO: ORA-28002: the password will expire within 13 days HOT 2
- Laravel 11 support is on the road? HOT 5
- [11.x] This database engine does not support inserting while ignoring errors.
- [11.x] Error Code : 942 Error Message : ORA-00942, Sessions table HOT 1
- Support PHP 8.3 With Laravel 10.x HOT 1
- Error LogicException This database driver does not support modifying columns HOT 1
- `Schema::dropIfExists()` not working in 11.2.2+ HOT 2
- Upgrading laravel/framework v11.15.0 fails migration containing table update (ORA-01430) HOT 1
- Problem with sequence with long table name HOT 1
- Improving pagination performance HOT 5
- Order "compileColumnExists" by column_id HOT 1
- Problem with "wrapTable" function using it in "compileUpsert" HOT 1
- Lock for update implementation on 9x HOT 3
- Problem with ORM update HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-oci8.