Compiled version doesn't run - unknown function fetch
10 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentarios
Respuesta aceptada
Ryan Livingston
el 11 de Feb. de 2012
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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Database Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!