08-04-2006 01:52 AM
08-07-2006
01:25 PM
- last edited on
07-27-2026
02:34 PM
by
Content Cleaner
Bharat,
Have you taken a look at the database examples in LabVIEW? They can be found in the Example Finder under Toolkits and Modules>>Database Connectivity. What version of Oracle are you using? According to the readme file linked below, if you are using Oracle 7 or 8 you will need to install the Oracle Client Software on your machine.
Database readme [link removed; article no longer available]
Where in LabVIEW is the ORA-00911 error being generated?
Here is a tutorial on using the Database Connectivity Tools in LabVIEW
Tutorial [link removed; article no longer available]
Message Edited by Support on 01-10-2008 11:29 AM
08-07-2006 11:51 PM
Hello Nathan,
Thanks for your reply.
I have attached 2 different LV vi's i tried for this issue. Perhaps it will give a clear picture of the error message i receive. Whenever the vi try to execute SQL query it shows error in Conn Execute.vi
I can read data from database if the datatype is string, DT,etc. I only face issue to read object as it always shows datatype not supported.
Looking forward for your valuable comments.
rgds,
Bharat
08-08-2006
07:16 PM
- last edited on
07-27-2026
02:35 PM
by
Content Cleaner
Bharat,
The Word document with the screen shots was helpful. The only Knowledge Base article that I found with the -2147217900 error is this one:
Knowledge Base 2U3E287V
Please take a look at the ANSI SQL format and see if your database object names are causing the error.
Thanks,
Nathan
Message Edited by NathanT on 08-08-2006 07:18 PM
08-08-2006 07:28 PM
08-09-2006 04:47 AM
Hi nathan,
Thanks for your reply.
Please find the attachment for description of Measure Data. This object is not created by LV & it was created using Oracle SQL Plus. I tried to create similar object using LV but in vain.
Also there should not be any issue related to object names as there is no problem in writing data's to these objects names using the below SQL command
insert into NUMBER_TESTING(LOT_NUMBER,DATE_TIME,TESTDATA) values ('123456',SYSDATE,MESUREITEM(OBJ_ITEM('voltage','100')))
I only face problems to read value stored against these objects. I am not sure what SQL query i should send to read values stored against these objects.
Looking forward for your comments
thanks
Bharat
08-09-2006 01:41 PM
09-28-2006 03:58 AM
Hi Matt,
Using Visual Basic it's possible to read the value from this database table. However, i still cannot find the way to read using LABVIEW. Any good suggestions?
This command works in both Oracle SQL Plus as well as VB but not in Labview.
SELECT LOT_NUMBER,DATA_TIME, (SELECT ITEM_VALUE FROM TABLE(TESTDATA) WHERE ITEM_CODE='VOLTAGE') FROM NUMBER_TESTING;
It is really strange when i can write data using LV to this database table why not retrieve data??
insert into NUMBER_TESTING(LOT_NUMBER,DATE_TIME,TESTDATA) values ('123456',SYSDATE,MESUREITEM(OBJ_ITEM('voltage','100')))
Looking forward for some suggestions
Thanks
Bharat