How can I determine if Database Toolkit is present in my installation?

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

 채택된 답변

Mischa Kim
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

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
Srini 2014년 2월 3일

0 개 추천

Thanks. It seems like I do not have the product installed.
licence('inuse') just returned "matlab"
I installed the database toolbox sepertely. It works now.
Thanks a bunch for your input

댓글 수: 1

See my comment. If licence('inuse') just returns "matlab", this is not a proof Database tbx is not installed...

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

질문:

2014년 2월 3일

댓글:

2014년 2월 5일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by