Citadel database error 81bc0163 (Citadel 4.3)

I’m not sure how my database was corrupted (I suspect a NaN)
but the result is that when displaying a certain period of time, either from
within the LabView DSC module or with the Measurement and Automation Explorer (MAX),
the LabView DSC (or MAX) crashes by exiting without notice. If you attempt to
archive the data, you get the error 81bc0163 and archiving is aborted. How to
solve:
1. Make a complete copy of the database directory (with the
.thd and other files). You will need the dates on which the .thd files were
created, and the Citadel database engine wants to repack these files and thus
change the dates (Citadel will sometimes use ‘holes’ in existing files to store
new data, but it generally creates files and stores data sequentially.)
2. Using MAX, open your copied Citadel database and create a
new view to it. Include the 1st 20 traces. Plot these traces (select
them and then click on the Display tab) for the entire duration (this can take
a while). If MAX does not crash, plot the next 20 traces, until MAX crashes. The
goal is to find which trace cause MAX to crash. (If you can plot all traces for
all times, you don’t have the problem I encountered.)
3. Now create a view that includes the 20 twenty traces that
caused the crash and Display it for various periods of time . Select an end
date, and then choose the Display tab. If MAX crashes, then repeat with a
different end date, util you can isolate the date and time of the faulty
record. Be sure to use a very narrow Display time to get good resolution. A
binary search of time periods is the most efficient, unless you already have
some clue about the problem date.
4. Once you have identified the date and time of the date
that causes the crash, exit MAX and then delete the .thd file whose creation
date is just prior to the chars date and time.
5. Restart MAX and open the view of your copied data base.
BE PATIENT, it can take many, many minutes for the Citadel database to deal
with the deleted .thd file, but it appears that the Citadel database is robust
enough to recreate its indices.
6. Create a second  new view of the copied database (this resets
the time from the beginning of creation to the distant future), select the
critical 20 traces, and click on the Display tab to make sure the database can
now be viewed without crashing. If, not repeat the process with yet another
copie database.
7. Now, rename the copied and the original folders so that the
fixed database replaces the original. Verify that the ‘new original’ is OK by
running MAX and crating a view of the 20 traces and displaying them for all
times.

I forgot to include the full stack trace:
java.lang.UnsatisfiedLinkError: /nfsmounts/risc14/cmsd/gdfr/dbxml/dbxml-2.2.13/install/lib/libdb_java-4.3.so: /nfsmounts/risc14/cmsd/gdfr/dbxml/dbxml-2.2.13/install/lib/libdb_java-4.3.so: cannot open shared object file: No such file or directory
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1751)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1676)
at java.lang.Runtime.loadLibrary0(Runtime.java:822)
at java.lang.System.loadLibrary(System.java:992)
at com.sleepycat.db.internal.db_javaJNI.<clinit>(db_javaJNI.java:48)
at com.sleepycat.db.internal.DbEnv.<init>(DbEnv.java:200)
at com.sleepycat.db.EnvironmentConfig.createEnvironment(EnvironmentConfig.java:738)
at com.sleepycat.db.EnvironmentConfig.openEnvironment(EnvironmentConfig.java:691)
at com.sleepycat.db.Environment.<init>(Environment.java:30)
at org.oclc.da.gdfr.registryprototype.pvt.CollectionDbXml.createDefaultManager(CollectionDbXml.java:361)
at org.oclc.da.gdfr.registryprototype.pvt.test.CollectionDbXmlTest.setUp(CollectionDbXmlTest.java:324)
at org.oclc.da.gdfr.registryprototype.pvt.test.AllTests.main(AllTests.java:22)
I'm also installing the DB with this tar:
dbxml-2.2.13.tar.gz

Similar Messages

  • CITADEL DATABASE NOT CONFIGURED AS A RELATIONAL DATABASE

    HI:
    I have the same problem described by another member before, and I haven't found any  resolution of this problem:
    The problem was:
    >I enabled database logging, and configured the shared variables that I wanted to log. Then I deployed the variables. When I try to read alarms and events (Alarm & Event Query.vi), I get this message:
    >Error -1967386611 occurred at HIST_RunAlarmQueryCORE.vi,
    Citadel:  (Hex 0x8ABC100D) The given Citadel database is not currently
    configured to log alarms to a relational database.
    Please help me with this topic
    Thanks in advance

    I'm configuring the variables to be logged in the same way that appears on the file you send, but it doesn't work... I don't know what else to do.
    I'm sending you the configuration image file, the error message image and a simple vi that creates the database; after, values are logged; I generate several values for the variable, values that are above the HI limit of the acceptance value (previously configured) so alarms are generated. When I push the button STOP, the system stops logging values to the database and performs a query to the alarms database, and the corresponding error is generated... (file attached)
    The result: With the aid of MAXThe data is logged correctly on the DATA database (I can view the trace), but the alarm generated is not logged on the alarms database created programatically...
    The same vi is used but creating another database manually with the aid of MAX and configuring the library to log the alarms to that database.... same result
    I try this sabe conditions on three different PCs with the same result, and I try to reinstall LabVIEW (development and DSC) completelly (uff!) and still doesn't work... ¿what else can I do?
    I'd appreciate very much your help.
    Ignacio
    Attachments:
    error.jpg ‏56 KB
    test_db.vi ‏38 KB
    config.jpg ‏150 KB

  • Latency in accessing Citadel Database over the LAN

    Hi! 
    I have two systems running LabVIEW 2013 with DSC 2013 and I am using one of the systems to acquire (using shared variables) and log data internally in the citadel database. I have made an application to visualize this data either locally on the same PC or over the LAN. When I am using the application on the same local machine which is logging the data, its all working fine and very fast. But when I access the same database over the LAN, the application takes a finite amount of time (anything between 2-18 secs everytime) to retrieve and show the data. Since the database size is very small (less than 5MB), logging rate is low (1Hz), number of traces are not much (14 traces), data is boolean, it should not take so much time to show the values over the LAN (the application should be as snappy as it is on the local PC). I am at my wits' end but I am not able to reduce this latency or find any logical reason for it to be present. 
    I specify the logging PC's name whenever I want to retrieve the trace (as shown in the attached picture), I have a feeling that if I replace that with the IP address of the system, things should become fast. But whenever I try this, LabVIEW throws up an error saying that the specified trace/database does not exist.
    I am attaching a pic of the architecture and a simplified image of how I am retrieving the data from the database with this post.
    Any help shall be deeply appreciated.  
    Attachments:
    LAN Architecture.png ‏23 KB
    Accessing database.png ‏14 KB

    To enable external access without VPN, you must assign an external IP address and also map that external IP to the server. Additionally, you must open the associated ports (http) on the firewall (doesnt matter what firewall you use). You will have to map the extranal ip to the internal IP that you have set on the EBS server configuration. In some cases, you have to enable the proxy as well.

  • SQL queries from a Citadel database

    We are retrieving data with third-party package SQL queries from a Citadel database. Certain queries for some object members will not return data, but the SQL search application software returns an "error". An analysis of the error from the SQL end does not find problem on SQL side. I suspect corruption of Citadel database. The link to database is good, as most tags do return a value as expected. 
    This problem occurred at the time of re-location of the database to a replacement computer.  Any ideas on how to fix such a problem?

    Can you give an example of the "bad" SQL statement and a good one?
    Ryan Shi
    National Instruments

  • Editing tag values logged in tag history / citadel database

    Hi,
    I having been logging data from input/output tags and memory tags to my citadel database over the past week and due to some errors in my vi (my fault) some values are showing on my trends that are incorrect. These values are affecting my calculations (e.g. zeros, infinite numbers etc) and I would really like to delete them if possible.
    Does anyone know a way of going in to the database/tag history and selecting and deleting values whilst still leaving other data in tact?
    Many thanks,
    Stuart

    You can remove the data from a Citadel database using LabVIEW, Lookout or Measurement and Automation Explorer (MAX). This is a two step process:
    First you archive the data that you want to delete. When archiving, choose to delete this data from the original database. The archiving operation will move the data from your database to new database.
    The second step is to delete the new archived database. This removes the extra database that was created by the archive operation. Once the data has been archived you can remove the archived data by either deleting the database manually or by using file VIs from LabVIEW.
    The document elaborates this process for MAX, LabVIEW and Lookout separately
    Measurement and Automation Explorer (MAX) You must have Historical Data Viewer installed. It comes with Lookout 5.0 and LabVIEW DSC 6.1.
    To remove the historical data in MAX, follow these steps:
    Under the Historical Data folder in MAX, select the database that you want to remove data from.
    Right-click the database and select New View»Trace. This creates a trace view with the default name of New View under the database folder.
    On the Trace Attributes page, click on Add new traces. Select the traces you want to archive.
    Select a starting and stopping time.
    Right-click New View and select Archive.
    Enter a directory path to store the archived data.
    Check the Delete data from source database checkbox to delete the data from the source database.
    Click Start.
    Once it is complete, click Close.

  • Slow opening archived citadel database on first read

    I have archived a citadel database using the archive vi. I then copied this database to another computer. when I try to read data from this archived database, it is taking a long time to return the first set of data (5-10 minutes). New attempts to read data execute much quicker than the first read. Is there a way to improve this opening of the citadel database?? Right now I am using the OPEN DB sub vi that was sent to me to resolve an error accessing citadel problem. The database is not setup as the logging location in the tag engine. This OPEN DB vi is locked so I can't do any kind of probing to see what it is happening. Are you not supposed to work with an archived database??
    Attachments:
    my_citadel_viewer.llb.zip ‏108 KB

    Bump,
    I was unable to reproduce your problem. I archived a DB on my machine and moved it to another Win2k machine. The program works fine, whether or not I use the open and close DB VIs. How much data are you trying to retrieve? You also may have a corrupted database, and Citadel is trying to fix its corruptions when you first access the data. Have you tried to access the original (pre-archive) database with the VI? What is the result?
    Regards,
    Michael Shasteen
    Applications Engineering
    National Instruments
    www.ni.com/ask
    1-866-ASK-MY-NI

  • Detach citadel database to move

    Hi,
    I'm upgrading the computer I use for datalogging. I want to move my citadel database over. Ive tried following the intrucctions here: http://digital.ni.com/public.nsf/allkb/2B0C74744BB37391862571F500067C64 , but when I go to Detach the database, I get an error "The operation cannot be completed because the resource is in use by another client." There is nothing else running besides MAX, as far as I know.
    Do I actually need to detach the database if I won't use it again on this computer?  Can I just copy the data folder over?
    thanks
    mike
    Solved!
    Go to Solution.

    Hi mooseo,
    It seems this error occurs when the process is still connected in Distributed System Manager.  Try this KnowledgeBase article (do not do step 3, do the other KB article that you have there instead)
    http://digital.ni.com/public.nsf/allkb/5E68A6BC5526F165862573BD005C1A42?OpenDocument
    It is probably safest to detach and move the database.
    Let me know how it goes. 
    Matt S.
    Industrial Communications Product Support Engineer
    National Instruments

  • Citadel database missing trace

    Once again we have a problem.
    Client is running 6.1 (Build 27).  Missing data from a few objects for 2 and a half months!  Suddenly reappears. No machine down tme, no errors, just gone.  Tried to rebuild database, no luck.
    This is becoming a problem, as much as it would pain me to move to a new software platform we may have to at this point.  Constant database corruptions cannot happen when the clients need these reports for internal and other health type agencies.  
    Citadel is a platform that simply is not reliable.  6.2 show the same errors as well.
    Example problem.  Tanks record current, high and low values that are trended.  The low and high disappear but current stays.  And all of the points for the pump (control, monitor and status) are gone ont he same dates.  Then suddenly reappear later with no system restarts at all.
    EDIT: We know the system was working, we log onto spreadsheets as well, the data is correct in there. But the report system is automated in lookout, not an excel type program.
    Thanks, again,
    Mike
    Message Edited by Mike@DTSI on 06-19-2009 01:27 PM
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

    Got some screenshots
    1 - This is one week view from today (07/02-07/08).  The green line (the logical connection for the Control Bit (\\.\ServerWell4\BC)) shows data as being in the database for the hypertrend.(The gold and dark red lines are other wells, which have the same issues.)
    2. This is the SQL pull using the datatable object.  Pulls from the Citadel database.  Looking at the days 07/01-07/08 it shows 0 for everything, but as you see in the last pic, hypertrend sees the data.  The SQL string:
    SELECT MATH_ETM(TO_DISCRETE("TCWDSCADA/Server/Well4/BC")), MATH_starts(TO_DISCRETE("TCWDSCADA/Server/Well4/BC")), MATH_stops(TO_DISCRETE("TCWDSCADA/Server/Well4/BC")), MATH_ETM(TO_DISCRETE("TCWDSCADA/Server/Well4/BM")), MATH_starts(TO_DISCRETE("TCWDSCADA/Server/Well4/BM")), MATH_stops(TO_DISCRETE("TCWDSCADA/Server/Well4/BM")), MATH_etm(TO_DISCRETE("TCWDSCADA/Server/Well4/BS")), MATH_starts(TO_DISCRETE("TCWDSCADA/Server/Well4/BS")), MATH_stops(TO_DISCRETE("TCWDSCADA/Server/Well4/BS")) FROM IntData WHERE LocalTime BETWEEN '2009-7-2' AND '2009-8-2' and IntInterval ='1'
    BC=Control, BM=Monitor, BS=Status.  The reason we pull the LocalTime from 2 days into month and after the month is because the citadel database returns values from the days previous.  Its wierd stuff.
    July shows all 0.  April has 2 days (04/01-04/02) 
    Well 4 in this example runs everyday.  weekends, weekdays, everyday.
    DBFolderT and SysfolderT have no remote connections except for the remote property is linked to a datatable field.  the datatable is only loaded on system start, or manually which doesnt happen for this system. 
    Thanks again
    Mike
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

  • Cant extract historical data from Citadel database

    When using the simplest VI's to extract historical data from the Citadel database, I get error messages :
    using "Get Historical Tag List.vi"
    CIT_OpenDatabase.vi
    error code - 0x8abc0010
    Using "Read Historical Trends.vi"
    CIT_ReadTrace.vi
    error code - 0x8abc0010
    I am using dsc version 6.0, and have already tried to upgrade to ver. 6.0.2. This did not go well, and I had to return to ver. 6.0 (reinstalling NT and everything else) to make my system run again.

    Download and install the latest release of Logos from ftp://ftp.ni.com/lookout/logos. Logos is the backbone drivers for the Citadel database. The most recent releases of Logos addresses issues that are similar to this.

  • I can not open an citadel database whit diadem

    i can not open an citadel database whit diadem, the diadem shown error number 104 , "unable to connect to specified server . what have i to do ?

    Hi Ramatajama,
    Most likely you are just missing one simple step, which is to turn on the Citadel service that allows any client, such as DIAdem, to get to the data in the Citadel database.
    You do not have to have the Citadel database on the same computer that DIAdem resides on, but you DO have to go to "NI Service Manager" on the DIAdem computer and "start all services". Usually the NI Service Manager icon shows up in your system tray at the far bottom right of your computer screen.
    Ask again if this isn't enough info,
    Brad Turpin

  • How to import measurment data from a Excel File to Citadel DataBase?

    A Microsoft Excel File is being created in a PC and I want to include that flie´s data into my citadel Database wich is in another PC.

    I give a example "Importing Spreadsheet Data to the Citadel Database" in the LabVIEW Version 6.1 and LV-DSC 6.1.
    LabVIEW 7.0 with LV-DSC you must in the ini file "DSCEngine.ini"
    set NoShutdownLog=1 and UseServerTimestamps=TRUE.
    kind regards
    amcholger
    Attachments:
    Write_File_to_Citadel_Example.zip ‏139 KB
    Write_File_to_Citadel_VI_Server.zip ‏289 KB

  • How to add an array of data in Citadel database

    I have an array of data which I want to directly put it in the Citadel Database. Normally the write tag VI writes one value at a time. How can this be done ?

    It depends on what you really want. Could you be a little more specific? Does each point have its own separate timestamp? If so, you could simply put the "Write Tag.VI" inside a FOR LOOP and insert values one after another. This would give a separate timestamp to each value. I have attached a simple VI that shows how to do this.
    Or are you looking to record some type of vector, where you log a complete array of data at each interval? I don't think this is possible (I'm using DSC 6.02) unless the data-type is a bit-array, in which case you would simply use "Write Data (bit array).vi".
    Another option, depending on what you are aiming for, would be to create your own "VI-based Device Server" and use the VIs on the palette submenu call
    ed "DSC Server Development". With your own Device Driver you can write multiple datapoints to the input queue simultaneuosly. In this way, you can write more than one point at a time... but that doesn't mean that each time interval will contain an array of data. Assuming that the data is analog, the data will still be logged to Citadel "one after another" so that when you look at it with the HTV, you will see one curve of analog values.
    Attachments:
    Write_array_to_citadel.vi ‏17 KB

  • Write to Citadel database from LabVIEW?

    Hi. I'm a newbie when it comes to Lookout and the Citadel database... so here's my question for you all:
    We have various labview applications that log data from instruments. We would like to be able to take this data and store it as "tags" in a Citadel database.
    What do you think is the best way to do this?
    There are ODBC drivers for the Citadel database, but they appear to only allow you to query the database to retrieve values... you can't write data to the database (so its read-only).
    Are they any "Lookout VIs" or Citadel VIs that can write to the Citadel DB from LabVIEW? Or a DLL or something?
    Any ideas?
    regards,
    John Paul

    Very nice question John Paul. I take it you already have Lookout and LabVIEW. In this case, with the latest versions of either, simply use the LabVIEW datasocket to publish the items on your front panel. Lookout then can subscribe to these once you register the LabVIEW computer. Once you have subscribed to them in Lookout, you are then able to set up logging. You may need to create an expression object to route the data to citadel.
    If you just want to use LabVIEW and the Citadel database, you might try VI Logger. This works in our configuration utility - MAX, and also comes with a set of VIs for LabVIEW. One caveot, the Citadel database in VI logger is newer (and faster) than the Citadel database in Lookout. I believe NI is working to synchronize
    the version in the future, and its hard to say when. So till then, you would not be able to merge data in the dislike citadel databases. However, you can always use and ODBC call set to extract from both and store in a more permanent SQL database such as access, oracle, ms back office, etc.
    Good Luck,
    Preston Johnson
    Business Development Manager
    Industrial Applications
    National Instruments
    Preston Johnson
    Principal Sales Engineer
    Condition Monitoring Systems
    Vibration Analyst III - www.vibinst.org, www.mobiusinstitute.com
    National Instruments
    [email protected]
    www.ni.com/mcm
    www.ni.com/soundandvibration
    www.ni.com/biganalogdata
    512-683-5444

  • Archive citadel database in MAX hangs

    I am trying to Archive a 4.13 GB uncompressed DSC database on LabVIEW 2013 SP1 (although the database was started with LabVIEW 2013).  I have tried twice and it gets stuck (new location folder size is at 151 MB both times).  The progress bar says "Archiving database=20.5%" and "Copying Data=83.0%".  I have chosen the option "Destroy source data after it has been archived (local computer only)".  The status says "copying data" and I no timestamps of files in the new folder have changed after about 9 hours of waiting.  If I cancel, MAX cannot display any Citadel databases.  This is fixed if i reboot.
    Any ideas?

    Hello barkeram,
    Where are you storing the archive (locally or remote)?
    Are you following the steps in one of the following documents?
    http://digital.ni.com/public.nsf/allkb/E076A0661E03F1EB862571A800079E7B
    http://digital.ni.com/public.nsf/allkb/2B0C74744BB37391862571F500067C64
    Can you try to navigate to the file path of the database and duplicate the file? Afterward, manually add the new database to MAX and try to Archive the new file.
    Regards,
    Thomas C.
    Applications Engineer
    National Instruments

  • Options to edit historical data in Citadel database (Lookout 6.0)

    We are running a new installation of Lookout 6.0
    I am looking for ways to edit the historical data that is found in the Citadel database. For example, if an alarm clears before I can enter comments, I would like to go to the database after the fact and enter comments regarding the alarm.
    We are running this on XP pro operating system.
    Thanks,
    Alan

    Hi Alan,
    I am afraid this will be difficult, if at all possible.  Citadel data, by design, can be written to (and edited?) only by the product using it, i.e., Lookout, LabVIEW-DSC, etc.  Outside of these products we can only retrieve the data -- not edit or add to it.  As you are probably aware, some of the options for writing user data (as opposed to IO/system data) from within these products is to use the Logger Object in Lookout and the VI-Server approach in DSC (http://zone.ni.com/devzone/conceptd.nsf/webmain/5a921a403438390f86256b9700809a53). 
    So, I guess one option is to "annotate" / write additional data separately using the Logger Object, referencing the Alarms somehow.
    Having said that, I believe Lookout 6.x (Citadel5) uses MSDE for storing Alarm data (other data is still stored in the native Citadel database).  You could explore this -- try opening the MSDE database from Query Analyzer, from instance, and see if it can be edited.  I haven't tried this. 
    Hope this gives you some ideas. 
    -Khalid

Maybe you are looking for

  • Can Crystal Enterprise be configured so that  it does not create files in the FileStore - Output

    Post Author: christof CA Forum: Administration We are using the API to create pdf files using Crystal Enterprise but the problem is that now files are create in duplicate.We have one file which is stored in the filestore/output and another file which

  • Burning to Blu-ray

    I am getting the following error in Encore CS6 when trying to burn to blu-ray: First  play not set and Title Remote not set. Where can I find these? Thanks, Joe

  • Smart Objects and CS4 Extended

    Hello, I'm wondering if there is a known issue with CS4 Extended and Smart Objects. It's entirely impossible for me to work with them in CS4, as it constantly unexpectedly quits. Any attempt to edit the object in Photoshop or in Illustrator and upon

  • Communication b/n iviews --- Can we get the code for SAP's standard iviews?

    hi All, I have a requirement where I have to pass the user input data obtained in a standard iview(provided by sap) to a custom built iview and process it from there. If I have to use the EPCF's client data bag for this purpose, I must be able to edi

  • HT201303 do i have to pay twice for i phone and i mac?

    i bought the app "day one" today with iphone and i downroad with my i mac again. (using same ID) and it seems paying twice for same app. i thought app "day one" can share with iphone and i mac with icloud so.. is it different version? i want to know