Connection to a database
1 次查看(过去 30 天)
显示 更早的评论
I have a script in which data from an ORACLE database are called. The problem is that the connection isn't always succesfull. After 3-4 attempts the connection is succesfull. Do you know why does ths happen? Thanks
3 个评论
the cyclist
2017-1-12
Are you certain that it is not something outside of MATLAB that is failing? It would be unusual for the code itself to be a source of intermittent failure.
回答(1 个)
Piyush Kumar
2024-9-26
The intermittent connection issue to a database may be due to several problems -
- Network issues: Check the network connectivity of the server where the database is hosted and the server from where you are trying to connect.
- Database load: If the database server is under heavy load, it might not be able to handle all connection requests immediately.
- Timeout settings: Check the connection timeout-related settings of the database.
Refer to the following resources to get more details -
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Database Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!