Compiled version doesn't run - unknown function fetch
11 次查看(过去 30 天)
显示 更早的评论
Hi,
I've a program running fine with 2011b 64 bit under Windows 7 64 bit. I'm connecting to a oracle database using jbdc drivers. Next I create a compiled exe file, including all packages and the jar file. The problem is that the compiled version doesn't run I get the error in the log file fetch unknown command or function. This happen even on my host machine with Matlab installed (and not only on a machine with mcr installed. So why doesn't the compiled version work. I've previously connected to the data using the 32 bit obdc drivers and Matlab 32 bit where the compiled version worked without problems. I need the 32 bit obdc drivers for Toad and this will not work with Matlab 64 bit so that why i'm using the jbdc drivers.
Any help highly appreciated Martin
0 个评论
采纳的回答
Ryan Livingston
2012-2-11
That error usually shows up when the call to database fails. To see why this is failing, the Message field of the connection object may be of use. Try adding something like:
if(~isempty(conn.Message))
h = errordlg(conn.Message);
uiwait(h)
end
to your compiled application after calling database, where conn is the name of your connection object. This will pop-up an error dialog with the contents of the message to show any error text.
0 个评论
更多回答(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!