How can I determine if Database Toolkit is present in my installation?
2 次查看(过去 30 天)
显示 更早的评论
I am a first time user of Matlab.
I need to connect to a custom database (I have the jdbc driver) to import some data for analysis.
Our IT says the Database Toolkit is installed with the product. But when I try to create a connection (following the docs) I get the following error:
>> conn = database('TeiidOW', 'user', 'user', 'teiid-8.4.0.Final-jdbc','jdbc:teiid:OpenWorks@mm://localhost:31000;version=1');
Undefined function 'database' for input arguments of type 'char'.
BTW, I added the jdbc driver to classpath.txt and restarted MatLab.
Any pointers are much appreciated.
Thanks in advance Srini
0 个评论
采纳的回答
Mischa Kim
2014-2-3
编辑:Mischa Kim
2014-2-3
Use the
ver
command to list all installed toolboxes. Additionally, you can list all licensed toolboxes with
license('inuse')
1 个评论
Andreas Goser
2014-2-3
It is actually both - you need to check with VER if it is installed and LICENSE to see if it is licensed. There are good reasons why in your environment only one is true.
Note that the 'inuse' option would only return what you successfully haved used. In your case it is better to run
license('test','Database_Toolbox')
which should return 1.
更多回答(1 个)
Srini
2014-2-3
1 个评论
Andreas Goser
2014-2-5
See my comment. If licence('inuse') just returns "matlab", this is not a proof Database tbx is not installed...
另请参阅
类别
在 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!