Receive 'database is locked' or "database is null or closed" when inserting the data.
Using a Bold 9700 device and 9700 OS JDE 5.0.0 Simulator, I found that when I insert data in a loop, I'm back is:
- 'database is locked'
- "database is null or closed"
Maybe it's in my design the way I am inserting data, because I am inserting data in two tables in a SQLite database since in a loop and nested loops.
I have JSON data that looks like:
"product": { "id": "3459200", "label": "coffee", "brand": "Folgers" "distance": "local", "flavors": [ { "aroma": "Hazelnut", "id": 10, }, { "aroma": "Columbia", "id": 12, }, { "aroma": "French Vanilla", "id": 14, } ] }
Values produces JSON objects, id, label, brand, and distance to go in a single table. The values in the array JSON flavors go in another table, as well as the id.
Therefore, I have a table that has:
- product
- ID
- label
- brand
- distance
Another table:
- aroma
- ID
- fk_id
When I loop through the JSON data, I am currently:
- Open a database connection
- Perform the insert in a while loop for JSON objects
- Use a loop through the JSON array and passing nested in the database, a connection
- Leave the nested loop
- Exit the loop
- Close the database connection a finally statement.
I don't:
- Open a database connection
- Perform the Insert
- Close the connection of database for each JSON object and the JSON object in the JSON array.
Is what I do now correct or is there a better way to insert in the database and to manage effectively the database connection in order to avoid the 'database is locked' or "database is null or closed" message?
Thank you.
Almost...
The call to close can be eliminated completely. If you want to call it, it will have to be outside the loop. The following link explains.
Cursor.Close () closes the statement used to create this
You can find sample code for multiple inserts here: http://docs.blackberry.com/en/developers/deliverables/8682/CS_creating_a_parameterized_SQLite_insert...
Tags: BlackBerry Developers
Similar Questions
-
I have great meda database on excel and want to display the data comparitable on media player
I LIKE TO "UPSIDE DOWN SCREEN" BETWEEN MEDIA PLAYER AND EXCEL DATABASE
I have great meda database on excel and want to display the data comparitable on media player
-
Enterprise Manager Database Express 12 c - inability to analyze the data returned by the server
I just installed Oracle Database 12 c in two configuration of RAC nodes and must use Enterprise Manager Database Express 12 c. On the first page after the connection, all loading areas but areas, who still has the "loading...". "balloon, and I get this critical error: unable to parse the data returned by the server
Detail:
TypeError: Error #1009
Message:
< report > < / report >
Journal of memory:
0: AppContext(): params = null, bootStrap: true
17: AppContext(): params = [object Object] bootStrap,: false
28: AppContext(): no current report (object) #0
em_express = 'true '.
28: AppContext(): _em_express = true _emx_caching_number = NaN resourceDir = / em/resources
28: AppContext(): localeChain is null, resourceDir = / em/resources
32: NLSResources.setRootUrl (): rootUrl = / em/resources
32: AppContext:createAppContext(): AppContext.execModeem
71: NLSResources.initResource)
143: EMAppicationScript - showPage() page.pageFeature = null, currentPage = null
518: DBUrlNavigator:handleWindowHashChanged(): urlString = https://192.168.56.22:5500/em/shell
519: DBUrlNavigator:navigateToApp(): dbhome/show_regions
523: DBUrlNavigator:setCurrentFeature(): function = dbhome/show_regions urlVariables = null
523: DBUrlNavigator:setCurrentFeature(): the features are different (null however dbhome/show_regions)
524: DBUrlNavigator:gotoFeature(): function = dbhome/show_regions variables =
524: length of pages: 1
524: feature of the page: dbhome/show_regions null
628: EMPageScript initiateRefresh() urlvariables: null
639: DbHomeController.refreshModel (): INST_ID select = null inst_name = null
656: EMAppicationScript - showPage() page.pageFeature = dbhome/show_regions, currentPage = DbHome0.EMApplication18.viewStack.EMLandingPage23
656: EMAppicationScript - showPage() currentPage.pageFeature = null
770: EMBaseController.refreshModel (): enter
770: EMBaseController:refreshModel(): prevRefreshUrlVariables =
771: EMBaseController:loadXmlModel(): reportName: show_regions
779: DBUrlLoader:loadInternal(): loading comp = DbHome rep = show_regions
802: EMBaseController.refreshModel (): enter
802: EMBaseController:refreshModel(): prevRefreshUrlVariables =
802: EMBaseController:loadXmlModel(): reportName: show_regions
806: DBUrlLoader:loadInternal(): loading comp = DbHome rep = show_regions
806: DBUrlLoader:queueLoad(): lines that load
812: EMBaseController.refreshModel (): enter
812: EMBaseController:refreshModel(): prevRefreshUrlVariables =
812: EMBaseController:loadXmlModel(): reportName: show_regions
821: DBUrlLoader:loadInternal(): loading comp = DbHome rep = show_regions
821: DBUrlLoader:queueLoad(): lines that load
828: EMBaseController.refreshModel (): enter
828: EMBaseController:refreshModel(): prevRefreshUrlVariables =
828: EMBaseController:loadXmlModel(): reportName: show_regions
831: DBUrlLoader:loadInternal(): loading comp = DbHome rep = show_regions
831: DBUrlLoader:queueLoad(): lines that load
837: EMBaseController.refreshModel (): enter
837: EMBaseController:refreshModel(): prevRefreshUrlVariables =
837: EMBaseController:loadXmlModel(): reportName: show_regions
842: DBUrlLoader:loadInternal(): loading comp = DbHome rep = show_regions
842: DBUrlLoader:queueLoad(): lines that load
849: EMBaseController.refreshModel (): enter
849: EMBaseController:refreshModel(): prevRefreshUrlVariables =
849: EMBaseController:loadXmlModel(): reportName: show_regions
853: DBUrlLoader:loadInternal(): loading comp = DbHome rep = show_regions
853: DBUrlLoader:queueLoad(): lines that load
2526: DBUrlLoader.onComplete (): success (str = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time ="1.42"cpu_time ="0.22"packs = '2' encoding ="base64"compress ="zlib"> < report_id > <!) [CDATA [/ orarep/dbhome/show_regions]] > < / report_id > eAFlUk1vWyEQvPtXoFWvNQ/bcnrwe5Lb5FApiqW0PfSEMGxtJAyEjzo/vwvPqRr1
BrOzM7Msu4QxpCKjSuqCBVOeFoztEp5s8HnKRZWad/zt3molROknMez4fGqYOgWZ
5s6sGWEOAEzHKou94AjLlQCGTsWM UQdv8rTeDlT7F2mMfA5XmV, cRLW, 50VT, s.
5gaJ5UZAzz3TmTnK1iwGsb4bxDBQB0GeJh...)
2531: XMLUtil.unCompressBase64Binary (): compress the result = < report_parameters >
status < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = 'status' cpu_time = ".21" elapsed_time "1.41" = >
"< status db_id, db_name ="1013701001"="CLAUDIA"container_name =" CBD$ ROOT ' pdb_cnt = '1' db_unique_name = 'claudia' oracle_home="/u01/app/oracle/product/12.1.0/dbhome_1 ' db_status = 'Open' db_version ="12.1.0.1.0"db_platform_name = 'Linux 64-bit x 86' db_platform_id = '13' db_startup_since_sec = '2471' parallel '2' = inst_cnt ="Yes"archiver = arrΩt"Stopped"=" "active_state = 'Normal' connections 'Authorized' instance_mode = 'Normal' edition = ="EE"/ >
< / region >
2531: XMLUtil.uncompress (): xmlModel after unpacking = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = "1" con_name = "CBD$ ROOT" timezone_offset = "7200" elapsed_time = "1.42" cpu_time = "0.22" packs = "2" >
< report_id > <! [CDATA [/ orarep/dbhome/show_regions]] > < / report_id >
< report_parameters >
status < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = 'status' cpu_time = ".21" elapsed_time "1.41" = >
"< status db_id, db_name ="1013701001"="CLAUDIA"container_name =" CBD$ ROOT ' pdb_cnt = '1' db_unique_name = 'claudia' oracle_home="/u01/app/oracle/product/12.1.0/dbhome_1 ' db_status = 'Open' db_version ="12.1.0.1.0"db_platform_name = 'Linux 64-bit x 86' db_platform_id = '13' db_startup_since_sec = '2471' parallel '2' = inst_cnt ="Yes"archiver = arrΩt"Stopped"=" "active_state = 'Normal' connections 'Authorized' instance_mode = 'Normal' edition = ="EE"/ >
< / region >
< / report >
2531: DBUrlLoader.reportLoadComplete (): due to loading
2533: EMBaseController:onLoadSuccess():...
2534: EMBaseController:parseXmlModel()
2569: DBUrlLoader:runQueuedLoad(): running another load
3803: DBUrlLoader.onComplete (): success (str = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time ="1.13"cpu_time = '0.08' packs = '2' encoding ="base64"compress ="zlib"> < report_id > <!) [CDATA [/ orarep/dbhome/show_regions]] > < / report_id > eAHVU11rwjAUffdXhPwAm7ZqtdSA1E32NibsRUapyUULNolJOv35u3HWDfbgyxgM
Ajn3M + fccAsLRltfmdrWLXiwjg8IKSzsGq0cb5RoJCjviqh3hbDXplI8ZkX0iYKv
3unKgdBKOp5OGMa + e0KG2 + tT5Y4HjrEbHoTOPyhcCZBGzumNAyXCdJVvWpjTIZtS
AofaOJBXVzyMU3phf6sIFj7c26RRzlehZ0...)
3804: XMLUtil.unCompressBase64Binary (): compress the result = < report_parameters >
incidents < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = "incidents" cpu_time = ".08" elapsed_time = "1.13" >
<>incidents
< INST_ID select incident '2' = home = "diag/rdbms/claudia/claudia2" id = "7480" pb_id = cdate "1" = "29/07/2013 17:33:54" > exception encountered: core dump [qervwFetch] [SIGSEGV] [ADDR:0 x 5] [PC:0x2CA8CC2] [] [] < / incident >
< INST_ID select incident = '2' home = "diag/rdbms/claudia/claudia2" id = '7479' pb_id = '1' = cdate "29/07/2013-17:32:53" > exception encountered: core dump [qervwFetch] [SIGSEGV] [ADDR:0 x 5] [PC:0x2CA8CC2] [] [] < / incident > "
< INST_ID select incident = '2' home = "diag/rdbms/claudia/claudia2" id = "7767" pb_id = cdate "1" = "29/07/2013-17:30" > exception encountered: core dump [qervwFetch] [SIGSEGV] [ADDR:0 x 5] [PC:0x2CA8CC2] [] [] < / incident > ""
< / incidents >
< / region >
3805: XMLUtil.uncompress (): xmlModel after unpacking = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time ="1.13"cpu_time = '0.08' packs ="2">
< report_id > <! [CDATA [/ orarep/dbhome/show_regions]] > < / report_id >
< report_parameters >
incidents < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = "incidents" cpu_time = ".08" elapsed_time = "1.13" >
<>incidents
< INST_ID select incident '2' = home = "diag/rdbms/claudia/claudia2" id = "7480" pb_id = cdate "1" = "29/07/2013 17:33:54" > exception encountered: core dump [qervwFetch] [SIGSEGV] [ADDR:0 x 5] [PC:0x2CA8CC2] [] [] < / incident >
< INST_ID select incident = '2' home = "diag/rdbms/claudia/claudia2" id = '7479' pb_id = '1' = cdate "29/07/2013-17:32:53" > exception encountered: core dump [qervwFetch] [SIGSEGV] [ADDR:0 x 5] [PC:0x2CA8CC2] [] [] < / incident > "
< INST_ID select incident = '2' home = "diag/rdbms/claudia/claudia2" id = "7767".
3805: DBUrlLoader.reportLoadComplete (): due to loading
3807: EMBaseController:onLoadSuccess():...
3807: EMBaseController:parseXmlModel()
3866: DBUrlLoader:runQueuedLoad(): running another load
6262: DBUrlLoader.onComplete (): success (str = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time ="2.32"cpu_time = '0,35' packs = '2' encoding ="base64"compress ="zlib"> < report_id > <!) [CDATA [/ orarep/dbhome/show_regions]] > < / report_id > eAFlTlsOgjAQ/OcUTQ9AEaJfZa/SVLrBGmBrt8TryyIaE / / mlZmxGRPl4pLPfsaC
maFSymYcIy0Md7qyNR8mTqHkFjg11ryRaH4kxzjQEhi6S7N5v4ok + EZPx48JNu + L
K2n + Wz + 2VQy9lnmthrS6Emfsdd2dtcLJJ8ZwSG3dtXr/LGEDe6mch + oFmB5JRQ is
(< / report >...)
6264: XMLUtil.unCompressBase64Binary (): compress the result = < report_parameters >
jobs of < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = 'jobs' cpu_time = ".35" elapsed_time "2.32" = >
< jobs / >
< / region >
6264: XMLUtil.uncompress (): xmlModel after unpacking = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time ="2.32"cpu_time = '0,35' packs ="2">
< report_id > <! [CDATA [/ orarep/dbhome/show_regions]] > < / report_id >
< report_parameters >
jobs of < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = 'jobs' cpu_time = ".35" elapsed_time "2.32" = >
< jobs / >
< / region >
< / report >
6264: DBUrlLoader.reportLoadComplete (): due to loading
6267: EMBaseController:onLoadSuccess():...
6267: EMBaseController:parseXmlModel()
6306: DBUrlLoader:runQueuedLoad(): running another load
8581: DBUrlLoader.onComplete (): success (str = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time = '2.20' cpu_time ="0.63"packs = '2' encoding ="base64"compress ="zlib"> < report_id > <!) [CDATA [/ orarep/dbhome/show_regions]] > < / report_id > eAHdXV2PW0lufZ9f0Wnss/p + fyzcHXg9gyAIMh6M1w/BYtGQ27ItjN3ttOSZeH99
Tn3o1uHVpYotOw + bARZrscVLXh4WWcVilZ49bj4/PO5vP68f1582 + 83j7uaHi4tn
j5v324f73c3nzeO7h8dP6/u7zbOrA9F9Yf/w + fb + piyeXYV/Odr6/cPtbnP3cP92
d1N3Bf7GFPeN3YeHP253 / / 3xBn + b/v2De /...)
8585: XMLUtil.unCompressBase64Binary (): compress the result = < report_parameters >
performance of < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = 'performance' cpu_time = elapsed_time ".62" "2.19" = >
< report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time ="1.83"cpu_time = '0.52' packs ="2">
< report_id > <! [CDATA [/ orarep/perfpage/main? report_level = Basic]] > < / report_id >
< report_parameters >
< bucket_max_count > 128 < / bucket_max_count >
Basic < report_level > < / report_level >
< show_sql > 0 < / show_sql >
< / report_parameters >
"< target start_time =" 29/07/2013 16:35 ' end_time ="29/07/2013-17:35:51" duration = '3651' bucket_count = '61' bucket_interval = '60' is_rac = 'yes' is_cdb = 'yes' inst_low = '0' inst_high = "100000" / >
< References >
< reference name = "instance" value = "2" / >
< reference name = "NUM_CPU_CORES" value = "0" / >
< name of reference = NUM_CPU «»
8591: XMLUtil.uncompress (): xmlModel after unpacking = < report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time = '2.20' cpu_time ="0.63"packs ="2">
< report_id > <! [CDATA [/ orarep/dbhome/show_regions]] > < / report_id >
< report_parameters >
performance of < region > < / region >
< top_n > 10 < / top_n >
< ago_seconds > 3600 < / ago_seconds >
< show_sql > 0 < / show_sql >
< / report_parameters >
< region id = 'performance' cpu_time = elapsed_time ".62" "2.19" = >
< report db_version = "12.1.0.1.0" inst_count = '2' cpu_cores = '1' Hyperthreaded = "N" con_id = '1' con_name = ' CBD$ ROOT "timezone_offset ="7200"elapsed_time ="1.83"cpu_time = '0.52' packs ="2">
< report_id > <! [CDATA [/ orarep/perfpage/main? report_level = Basic]] > < / report_id >
< report_parameters >
< bucket_max_count > 128 < / bucket_max_count >
Basic < report_level > < / report_level >
< show_sql > 0 < / show_sql >
< / report_parameters >
< target start_time = "29/07/2013 16:35 ' end_time = 29/07/20"
8591: DBUrlLoader.reportLoadComplete (): due to loading
8592: EMBaseController:onLoadSuccess():...
8592: EMBaseController:parseXmlModel()
8652: DBUrlLoader:runQueuedLoad(): running another load
141803: DBUrlLoader.onComplete (): success (str =...)
141804: DBUrlLoader.reportLoadComplete (): due to loading
141808: EMBaseController:onLoadSuccess():...
141808: EMBaseController:parseXmlModel()
Thank you
Valentine's day
Hello
I solved the problem by applying the hotfix 16527374.
Valentine's day
-
NULL point Exception when obtaining the user name
Hello
I'm getting NULL pointer exception when trying to get the user name when the page load.
My code is as follows:
I had imported the oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean package
In the controller under the proceesrequest, I wrote the following code
String uname = pageContext.getUsername ();
OAMessageStyledTextBean UN = (OAMessageStyledTextBean) webbean.findChildRecursive ("name");
one. SetValue (pagecontext, uname);
After doing that when I run the page I'm getting NULL pointer exception.
Can someone correct me where I had gone wrong.
Thank you.The error is on line 39 of your controller. First thing you should do to avoid this must include an audit non-zero.
String uname = pageContext.getUsername ();
OAMessageStyledTextBean UN = (OAMessageStyledTextBean) webbean.findChildRecursive ("name");
if(un!=null)
{
one. SetValue (pagecontext, uname);
} -
"alter database open resetlogs ' not reset one of the data files
I spent the last few weeks and a half, three years recovery of an oracle database (linux 64-bit of 11g) due to a block corrupted in a newspaper online redo (I thought was written at multiple locations). I have restored the files, some of them around displacement in the process; recovered on the last possible point; files moved to their location; has ran "alter database open resetlogs; and one of the files of data (from a bigfile tablespace) does not reset itself. I checked afterwards, and it has been marked offline. I do not remember placing the file in offline mode and can not find such a statement in my last orders 300 sqlplus, that includes orders while I renamed this file and the controls surrounding rename it.
Restore/recovery of the new database will take too long and is a remarkably low option. Even if the database was opened correctly, the affected tablespace not would have been addressed in two or three minutes, that the database has been opened. Is it possible to force the oracle again reset newspapers or the difficulty, otherwise this one file to mark with the same date? Allowing only to the resetlogs option after incomplete recovery seems a poor restriction, in particular, if files gliding through like that. I suspect there is a way to simply set the values of control point for the tablespace, but I don't know where to start. This particular file is < 5% of the database, so if I do a sort of backup/restore with all this, it's probably doable.Thank you for the necessary information, the image would have been much clearer if you would have posted this initially. There was nothing wrong in procedures that you applied.
Unfortunately, it seems you hit a bug, the command to reset everything... is alter database open resetlogs, and there is no other command.
So, Yes, you must go to this door that says more
'Ogni speranza, voi che entrate leave fare' (leave all hope behind you, you happening. It is the inscription of Hades, the underworld, the Monteverdi's Opera "Orfeo"). This gate is called "My Oracle Support" and if your problem will be solved, who knows.
I don't think that this is a generic problem however, or we would have known, so it's probably still a few 64-bit partner. These days at Oracle quality assurance procedures seems to leave much to be desired.
If all goes well, they will be able to reproduce your problem.
Good luck on your trip across the river Styx!
Although they will probably want to upgrade you to 11.1.0.7
------------
Sybrand Bakker
Senior Oracle DBA -
To access the data from database to a remote computer
Hi all
Can someone tell me how to access data from a database, sitting on another computer? I use the Sqlite database. It works fine in my computer. But I don't know hoe to put the database in another computer (server) and access the data from there. In my program, it is essential to do this for a simultaneous use for different users. Someone please help.
Kind regards
Cindy.
I found the solution... http://ConnectionStrings.com/
-
How to detect the data received in the com port?
I used NI-VISA, read to read function and tried to write and read the same data through back loop. I have read from the port, but I need to read only when all the data is in the port.how series I detects all data received in the com port? Based on the data received to write the data to the port only i need.
Please help me
Better it should work... just create your own port number, I used 20 com
-
calculated formula database field trying to insert the null value
Hello
I have 3 elements of database text amount, rate and result.
I enter both values (quantity and frequency), and the property using formula 'result' Gets the computed value.
On the screen all the values are displayed correctly but when trying to save my information text field 'result' tent to insert the null value.
Any suggestions?
Forms 11g
Thanks in advance794018 wrote:
HelloI have 3 elements of database text amount, rate and result.
I enter both values (quantity and frequency), and the property using formula 'result' Gets the computed value.
On the screen all the values are displayed correctly but when trying to save my information text field 'result' tent to insert the null value.Point formula should not be issue of database. And insert the value in the result column in the database is not good idea.
Then, if you want to save it. create the database result item and write trigger (When-validate-point) on amount and filed rates and the trigger code, write:result:=:amount*:rate;
To display the result on the form, create the database no item and change the formula property and write the formula.
Hope this will help you
If someone useful or appropriate, please mark accordingly.
-
I created the Web service VI ("Mt-insolacije.vi"), which has two terminals of the input string (FROM / TO) for the dates of arrival and exit of two data terminals (table 1 d) from database (MS SQL server). This VI communicates with the database with functions of the database with a DSN and SQL query appropriate palette. There are two tables with two data (time and Insolation) columns in the database.
This VI works when you run in Labview 2010, but when I used it as VI in UI Builder it returns no data.
Could you please help me find a solution. Is it possible to communicate with the SQL server database in this way or there is another way?
There are two files attachmet: Image of .vix file in Interface builder and .vi file ("Mt-insolacije.vi")
Please help me ASAP!
Thank you
Ivan
I found the solution problem is in the DSN. I've been using the user instead of DSN system DSN.
It's important to create the system DSN if you want your VI of web service to communicate with the database.
PS Please put feature bundle format timestamp and XY graph in the web user interface designer. It's complicated to trace data with datetime on X axis without them.
-
LabVIEW makes my web page hang when it updates the data of access database
Hello
I'm working on labview (signal acquisition and insertion into a database) and visual studio (Web page design) and I faced this problem when the Web page tries to update the database of microsoft Data Access.
Whenever I VI, DQA will acquire analog input from a circuit and pass the value in a database for the Web page retrieve and update and display the latest data on the Web page. But for some reason, whenever I run the VI, the data refresh is is arrested to the Web page and updates only when I stopped the vi and whenever I try to refresh the page, it will display a runtime error. I wonder if it is possible to do the update of page Web in real time instead of simply update that when the vi is stopped and what are the causes the Web page to stop the update (labview Web side/page side).
I use IIS to host the Web page and labview 8.6/toolkit database connectivity for data acquisition and store it in the access database.
In my view, that it is a limitation of the Jet database. If I remember, Jet uses the locking of the 'page '. Exactly the same thing happened to me on a large scale with several testers. The solution was to use a sophiticated more like MySQL or SQL Server Express database.
-
When the Simulator is launched upward, not able to load existing records from the database in the Inbox, so no records appear in the Inbox even though they exist in the database. It seems to be a problem with the SD card in the Simulator - the file system for the SD card is not correctly initialized when the application starts first to the top. During initialization of the application tries to access the SD card by using the following code.
Boolean
sdCardPresent = false;
Enumeration e = FileSystemRegistry.listRoots ();
If
(e! = null) { }
While (e.hasMoreElements ()) {}
root = (String) e.nextElement ();
If
(root.equalsIgnoreCase("SDCard/")) {
sdCardPresent =
true;
}
}
}
sdCardPresent is always set to false and was not able to access existing records from the database. Once the application is initialized and try to create the database, the database is created successfully on the SD card. The code is the same as above when creating the database and was able to do sdCardPresent = true.
Is there anyway to register or add the SD card during initialization of the application or any property as System.setProperty overide the path of the default directory value?
I use BlackBerry 9550 Simulator. I checked the "file system using PC for files from the SD card" and I use "C:\bb\SDCard" for the file system of thr.
Also tested on the BlackBerry and found the same thing, if the device is hard reset, then it not reading the SD card as well.
Mark the thread as solved then.
-
Hi people
Version of the apex is 4.2
Oracle database: 11.2.0.2
I have created a simple form in a table on a table with the following structure
{code}
Name Null? Type
----------------------------------------------------- -------- --------------
TID NOT NULL NUMBER
TEAM_NAME VARCHAR2 (30)
EMP_NAME VARCHAR2 (30)
DATE OF REPORT_DATE
CATEGORY_NAME VARCHAR2 (30)
NUMBER OF CATEGORY_HR
CATEGORY_COMMENT VARCHAR2 (120)
CREATED_DT DATE
CREATED_BY VARCHAR2 (30)
STATUS VARCHAR2 (1)
{code}
In the form of default table is
{code}
Select
TID,
TID TID_DISPLAY,
TEAM_NAME,
EMP_NAME,
REPORT_DATE,
CATEGORY_NAME,
CATEGORY_HR,
CATEGORY_COMMENT,
CREATED_DT,
CREATED_BY
of ' #OWNER # '. " TIMESHEET.
{code}
I wanted to add an additional line inserted in the tabular presentation, that's why I included 'UNION ALL' in the query like this
{code}
Union of all the
Select
TID, null,
tid_display null,
team_name null,
emp_name null,
report_date null,
category_name null,
category_hr null,
category_comment null,
created_dt null,
created_by null
of the double
{code}
After having done that, I can see a blank line on the form of tables, but each time I fill data in the fields and press the "SUBMIT" button, I get the below error
Current version of the data in the database has changed since the user has launched the process of update
Thank you
Navneet
Why are you insert an extra line manually in tabular from? There is a feature to add a line.
If you want to insert a blank line when the page loads, then create dynamic action, this is a most appropriate feature.
If you manually insert an extra line so that you have to write the update for this procedure.
Leave.
-
Reading file and dump the data into the database using BPEL process
I have to read the CSV file and insert data into the database... To do this, I created some asynchronous bpel process. Adapter filed added and associated with the receive activity... Adapter DB has added and associated with the Invoke activity. Receive two total activity are available in the process when trying to Test em, receive only the first activity is complete and awaits the second receive activity. Please suggest how to proceed with...
Thanks, Maury.
Hi Maury,
There is no need in step 2 that u mentioned above. I donot find useless a webservice?
The process will be launched by the CSV file, then using the processing activity, you can put it in the DB.
There should be no way where you can manually test it by giving an entry. All you can do to test is to put the file in the folder you mentioned when configuring the file adapter.
You just need to have the composite as below:
ReadCSVFile---> BPEL--> DB adapter
And in your BPEL process:
Recieve--> Transformation activity--> call activity
Try to work on some samples listed on the oracle site and go through the below URL:
The playback of the file adapter feature using
Thank you
Deepak.
-
After you rename the data file, cannot start database
Oracle 11 g 2
OEL 5 (ASM)
Network infrastructure (cluster install) - no CARS yet
Something interesting happened. Perhaps this question might be more suited to the "ASM" section, but that's.
I gave a data in ASM file an alias with the following command (the ASM instance):
Then, as mentioned in Note: 564993.1, we need to update the database as well with the new alias. However, when I went to the stopping and starting of the database, I received the following:SQL> alter diskgroup DATA add alias '+DATA/oradb/datafile/users01.dbf' for '+DATA/oradb/datafile/users.253.795630487'; Diskgroup altered.
It's strange. Nothing has changed except the alias being added to the data file. This is all before operation. That's happened?SQL> shutdown immediate; Database closed. Database dismounted. ORACLE instance shut down. SQL> startup mount; ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
I think that it may have to do with the different ASMOPER, ASMADMIN, ASMDBA groups that have been installed as part of the installation of the grid Infrastructure. In addition, the listener is running out of the GI home.
All my variables environment (e.g. ORACLE_SID, ORACLE_HOME, etc.) are defined.
Any ideas?
Thank you.Hello
When you connect with tnsnames alias while the database is down the listner did not know the service, so you must start the database on the server database with sqlplus / as sysdba. After starting the registry of data base with the listener and your connection works again.
Alternativ you can add a service to your listener.ora to connect with him while he is arrested, as long as you do not have it you must use local connect which means sqlplus / as sysdba.concerning
Peter -
Comparison of the data with froms and database data
Hi all
I have data in my table like this
and question like thatSQL> / SALE_ORDER_NO QTY -------------------------------------------------- ---------- TEST JOGI 16 TEST JOGI 17 TEST JOGI 18 12205 2
DECLARE
Num_Stock NUMBER;
BEGIN
GO_block ('gin_detail1');
Premier_enregistrement;
LOOP
SELECT quantity INTO num_stock from sale_order_barcode
WHERE the barcode =: gin_detail1. BAR CODE;
IF num_stock <: gin_detail1.xs then
message ("' first already issued please receive" ");
message ("' first already issued please receive" ");
RAISE FORM_TRIGGER_FAILURE;
GO_ITEM('GIN_DETAIL1.) BARCODE ");"
END IF;
WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE";
NEXT_RECORD;
END LOOP;
end;
If the data Enter twice then he saved twice, but I need when I run it will calculate the amount according to the sale_order_no
example of
sale_order_no
12205 2
12205 2
It will save on the form and the vale is higher then 2 I need when it is large then 2 it will display the message
validation on the other;
Please guide
Thanks and greetings
Vikas Singhal
Published by: vikas singhal on January 13, 2011 19:17Rather than check it in a loop, you could put your check in a before INSERT. If you do so, in the first record, the audit will be ok and the associated record will be inserted into the database. the second insert the alread can 'read' the inserted record previously and therefore properly check and will raise an error. If you raise an error, all insertions in the transaction (and therefore also the first) will be rollbacked.
Maybe you are looking for
-
HP Photosmart: Crispy black hand lettering
Tips for my black calligraphy... What is the difference between photo or Scan Documents scanner... Can do 200 300 or 600 dpi... JPEG is better?... When I scan my original artwork my scan prints black and crispy... Amazing! is all from time to time, i
-
Connection to the workstation slow field
HelloMy computer is in a domain. When I connect it takes about 10 minutes to get on the desktop. My Department has not been able to solve this problem and told me to do what I can. What is the right way to fix this problem? Any help would be greatly
-
Problem to watch the video in full screen.
When I try to watch movies in mode full-screen, the video moves much slower than the audio. It works very well in compact mode. I only started having this problem 2 days (11/07/10) also when I play games like hearts and lonely, I get this message th
-
Assign an icc special cal1 profile
Reference Dell U 3014, win7 I would firstly a profile built by I1 profiler, BUT through program I1Profiler, not through the Dell program, as it has more options It is possible to assign a specific icc profile to, say, CAL1, or to the standard, etc...
-
Smartphones from blackBerry BB 8520 @ MTN - BB APP WORLD has DISAPPEARED.
I've updated BB8520 V.5 and... the BB App World and the n that browser has disappeared. I decided to RESET the BB and reinstall the SOFTWARE of TERMINAL BB on my phone using the DESKTOP software. I even downgraded the OS to version: 4.6 and even. On