(Newbie question) Interval syntax question / explanation of the error

Ok. So I reach into a big ticketing system based on Oracle (64 bit 11g 11.2.0.1.0) where they store 'ticket-open-time', 'ticket-fixed-time' and the interval of 'time-to-repair. Initially I wanted to calculate the number of minutes of the time of repair. 6 hours and countless Google searches later, I'm not about to the appropriate syntax. I was able to work around the problem through a simple calculation based on the values open and resolved. What I can't understand, is why I can't apply the same syntax extract just the interval field.

Here's a simplified query that works:

SELECT
To_char (OpenTimeGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "OT".
, TO_CHAR (ResolvedTimeGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "RT".
, TO_CHAR (TimeToRepairGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "TTR".
excerpt (days of day (ResolvedTimeGMT - OpenTimeGMT) the second) "days".
excerpt (time of day (ResolvedTimeGMT - OpenTimeGMT) the second) "hours."
excerpt ((ResolvedTimeGMT - OpenTimeGMT) minute second day) "Minutes."
, (extract (day of (ResolvedTimeGMT - OpenTimeGMT) day to second)) * 24 * 60 +.
(extract (hour of the day (ResolvedTimeGMT - OpenTimeGMT) the second)) * 60 +.
extract (minute since (ResolvedTimeGMT - OpenTimeGMT) second day) "TotalMinutes".
FROM there where

Which produces:
[OT] 24/09/2012 20:06:29
[RT] 26/09/2012 13:56:13
[TTR] 4000/02/01 17:49:44 - Note the year.
[Days] 1
[Hours] 17
[Minutes] 49
[TotalMinutes] 2509

The question:
When I write [extract (minute of day (ResolvedTimeGMT - OpenTimeGMT) the second) "Minutes"], I get 49 minutes I expect

When I write [extract (minute since (TimeToRepairGMT) second day) "Minutes"], I get an error "syntax error was found in the interval value expression.

The three fields are declared as 'date' DESC command (even if TimeToRepairGMT is clearly an interval, based on the value of "4000/02/01 17:49:44" ""). While I can plough with my work-around, I really want to know how to deal with intervals that are stored in Oracle tables as dates. Any help is appreciated!

Hello

Welcome to the forum!

966091 wrote:
Ok. If I am living in a large (64 bit 11g 11.2.0.1.0) Oracle-based ticketing system

Thanks, that's very useful. Always give your version (11.2.0.1.0) whenever you post a question.

where they store 'ticket-open-time' and "ticket-fixed-time" interval "time-to-repair. Initially I wanted to calculate the number of minutes of the time of repair. 6 hours and countless Google searches later, I'm not about to the appropriate syntax. I was able to work around the problem through a simple calculation based on the values open and resolved. What I can't understand, is why I can't apply the same syntax extract just the interval field.

Here's a simplified query that works:

SELECT
To_char (OpenTimeGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "OT".
, TO_CHAR (ResolvedTimeGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "RT".
, TO_CHAR (TimeToRepairGMT, ' ' the HH24: MI: SS DD/MM/YYYY) "TTR".
excerpt (days of day (ResolvedTimeGMT - OpenTimeGMT) the second) "days".
excerpt (time of day (ResolvedTimeGMT - OpenTimeGMT) the second) "hours."
excerpt ((ResolvedTimeGMT - OpenTimeGMT) minute second day) "Minutes."
, (extract (day of (ResolvedTimeGMT - OpenTimeGMT) day to second)) * 24 * 60 +.
(extract (hour of the day (ResolvedTimeGMT - OpenTimeGMT) the second)) * 60 +.
extract (minute since (ResolvedTimeGMT - OpenTimeGMT) second day) "TotalMinutes".
FROM there where

Which produces:
[OT] 24/09/2012 20:06:29
[RT] 26/09/2012 13:56:13
[TTR] 4000/02/01 17:49:44 - Note the year.
[Days] 1
[Hours] 17
[Minutes] 49
[TotalMinutes] 2509

The question:
When I write [extract (minute of day (ResolvedTimeGMT - OpenTimeGMT) the second) "Minutes"], I get 49 minutes I expect

When I write [extract (minute since (TimeToRepairGMT) second day) "Minutes"], I get an error "syntax error was found in the interval value expression.

The three fields are declared as 'date' DESC command (even if TimeToRepairGMT is clearly an interval, based on the value of "4000/02/01 17:49:44" "").

In fact, it is more likely that it is just a DATE, who got the year wrong somehow. Show how you have assigned values to these columns.

While I can plough with my work-around, I really want to know how to deal with intervals that are stored in Oracle tables as dates. Any help is appreciated!

The intervals are difficult to work. I suggest that you use very little, or not at all. Keep the storage points in time as DATEs, but store the length of the time as a NUMBER; either the number of minutes, hours, or days, depending on what is appropriate for your data and your business needs best.

Let's say you decide to keep TimeToRepair as the number of minutes, the length of time of OpenTImeGMT to ResolvedTimeGMT. When you subtract one DATE from another in Oracle, the result is a NUMBER, the number of days between these two DATEs. To get the number of minutes, which multiplied by the number of minutes per day. So the forumla for TimeToRepair is

(ResolvedTimeGMT - OpenTimeGMT) * 24 * 60

If you store the length of time as a NUMBER, it is very easy to get totals and averages.

If you want to display this number of minutes like days hours: minutes: seconds, then you can use an INTERVAL, but just for display. Use the NUMTODSINTERVAL function to convert the NUMBER to an INTERVAL DAY TO SECOND:

NUMTODSINTERVAL (TimeToRepair, 'MINUTE')

I hope this helps you.
Whenever you have a question, it is useful to show an example of what you have tried and what results you want to get. Post CREATE TABLE and instructions INSERT for examples of data and the results you would get from these data. You will get answers sooner if your question is specific. "How work intervals?" is a very difficult question. Many people who can help you to not trying to answer a question as broad. But if you can formulate your question as: "I need help understanding intervals. Beginning with this data... I tried thinking it would follow... but instead, I got... Why is this? The manual SQL language, to... says..., why is... happening? ", and then it will be easier to help you.

Tags: Database

Similar Questions

  • Newbie question: to access the items in a locked file "kind of."

    Newbie question: a friend (who is not accessible now) has sent a file I. Vector graphics are enclosed in a blue box. I can move the whole box within the artboard and you can add other items, but I can't change the existing components. Unlock, dissociate are gray. How can I get 'in' components?

    Look in the layer panel and see if the layers are locked. You can also check in tracks mode and see if there is really something out there, or if it has been saved as an image.

  • Someone at-explanation of the ERROR: F3-F000-0008?

    In November, a man posted that he had to use his recovery disk which resulted in the following experience:

    "I ran straight afterwards, the recovery disk in what, in my view, is called the start menu? Anyway, after a few minutes I kept getting an error message that has something to do with 'Preinst.swm file. After a couple of times of clicking 'continue' and see this same error message by clicking 'ignore' and running the 2nd DVD, an error message "error: F3-F000-0008". "»

    Now I assume that the error preinst.swm is due probably to a scratch in the recovery disc, or some fault in the DVD that I used and not with the portable reality itself. I need just confirmation from you guys on this subject. »

    The result was essentially - who knows, good luck.

    I get the same error, has worked with technical support over the phone for 2 hours and ended up with - who knows, good luck.

    Help, please!

    Hello

    Looks like an error with the disks. Sometimes they can be unbalanced in the hard drive, or they can be damaged somehow.

    See if you can use other bootable discs to test this, if they work, you may need to contact Toshiba to get some new drives.

    I hope this helps. :)

  • explanation of the error

    I finally wittle down a mistake which took place in my much larger project to a few lines of code simply reproduce the error. It errors on PC and MAC cs5.5. Here are the scripts/process of how to recreate the error.

    startup script to set the engine: jumpStarter.jsx

    #targetengine "testEngine"
    
    var globalVar = "testing";
    

    script that calls another via doScript: globalTest.jsx

    #targetengine "testEngine"
    
    setLabel();
    
    function setLabel(myParams)
    {
        var myFile = new File(app.filePath + "/Scripts/Scripts Panel/testScript.jsx");
        app.doScript(myFile,ScriptLanguage.JAVASCRIPT,undefined,UndoModes.fastEntireScript);
    }
    
    

    script that adds a label to the document: testScript.jsx

    #targetengine "testEngine"
    doStuff()
    
    function doStuff()
    {
        app.activeDocument.rectangles.add();
        app.activeDocument.insertLabel("tempLabel","anyLabel");
        //app.activeDocument.updateCrossReferences();
    }
    
    

    The process is simple. Just put the jumpStarter.jsx in the folder and the other two scripts in the folder of the startup scripts Panel. Load Indesign and double-click on the globalTest.jsx in the actions panel. You should see a rectangle placed on the page and a * next to the file name. If you close the document and choose to not save Indesign must block. I'm interested to know what is causing this crash!

    Note: after days of attempts, I came across the commented line of code in testScript.jsx. If this line is décommentée then there is no problem in closing the document! However, I'm not sure what actually this method and after researching what cross references are that it does not seem applicapable. I'm looking also someone explain this if possible.

    Here is the protectiveShutdownlog that occurs: http://pastebin.com/04pHQv5s

    Here is the report of accident that occurs: http://pastebin.com/JA6esJR2

    Hi bduffy,

    I have experienced this bug appeared in ID CS5 and is not yet resolved. He is not related to the use of a startup script, a persistent engine, app.docript (), etc., and it has no connection with global variables, variable names, etc..

    The bug occurs generally when:

    (1) a script inserts an tag in the active document;

    (2) once the script has completed, the user tries to close the active document and does not record it.

    Minimal code that should lead to the bug:

    app.activeDocument.insertLabel ('foo', 'bar');

    then the user, go to file > close


    My own speculation on the causes of this bug:


    The internal pointer that holds app.activeDocument is not correctly updated after insertLabel() is done. Perhaps at some level subsystem does not identify the insertion of the label as an actual change and forget to update some underlying specifier... Who knows?

    Patch:

    I found that all access to property app.activeDocument at the end of the script usually corrects the instability because this probably causes the system to recalculate the document specifier:

    app.activeDocument.insertLabel ('foo', 'bar');

    app.activeDocument; patch

    => no bug


    As a stronger and safer approach, I suggest that you add this line at the end of any script:

    app.properties.activeDocument & app.activeDocument.getElements ();

    This is of course no guarantee!

    Hope that helps.

    @+

    Marc

  • Newbie question: Multiples of the SDK & Plugins by install Eclipse?

    Hello

    Please excuse if this is a stupid question, but I'm new to the development of BB.

    Can I have several versions of SDK and plug-in installed in one Eclipse install?  I understand that the latest version of the SDK requires the latest version of Eclipse, but if I want to develop features in 5.0, 4.7,4.5 BB, etc, don't I need a different IDE installation for each version of the SDK software/Plugin or can they co-exist?

    Thanks for your answers,

    Jose

    Hello

    You can develop using BlackBerry Java plug-in for Eclipse 4.5, 5.0,4.7,4.6 and bb 6.0 applications.

    To download the BB Java plug, use the link below and download them later plug (ver. 1.3).

    http://us.BlackBerry.com/developers/javaappdev/JavaPlugin.jsp

    By default, you can develop some app for 6.0, for earlier versions, you need to download the SDK, in this precedure,

    Open Eclipse IDE<>

    http://www.BlackBerry.com/go/eclipseUpdate/3.6/Java

    Add the above site and name it as "Update for the Blackberry sdk".

    all software development kits and select Download.

    If you think that this information is useful, give Kudos

  • Newb question - displays only the first of several fields

    As a first application of Bb, I write a stopwatch and I want the larger time scale and the small milliseconds. As part of what I am trying to display several bitmap or label side-by-side fields, but when I run it using the Simulator, only the first is displayed.

    So, for example, what I want is:

    1-2: 3 4:5:6 7 8 9

    with each number in own field but what I mean is just

    1

    that is the first field. If I then use buttons they all appear in the verticalFieldManager by default in horizontalField Manager but if I use labels or bitmaps, then all I get is the first field, even if I remove the horizontalFieldManager and just use the default verticalFieldManager. I googled the question, this forum and spent several hours reading the code examples and documentation, but I have yet to understand why I can't put several fields of these types of side-by-side. I have to have something between them as separators or empty fields?

    The code that I've got so far is the following...

     public TimerView()    {     super();      HorizontalFieldManager timerField = new HorizontalFieldManager();
    
          Bitmap hour10 = Bitmap.getBitmapResource("num_1.png");        Bitmap hour01 = Bitmap.getBitmapResource("num_2.png");        Bitmap minute10 = Bitmap.getBitmapResource("num_3.png");      Bitmap minute01 = Bitmap.getBitmapResource("num_4.png");      Bitmap second10 = Bitmap.getBitmapResource("num_5.png");      Bitmap second01 = Bitmap.getBitmapResource("num_6.png");      Bitmap ms100 = Bitmap.getBitmapResource("num_7.png");     Bitmap ms010 = Bitmap.getBitmapResource("num_8.png");     Bitmap ms001 = Bitmap.getBitmapResource("num_9.png");     Bitmap colon = Bitmap.getBitmapResource("Colon.png");
    
          BitmapField bfHour10 = new BitmapField(hour10);       BitmapField bfHour01 = new BitmapField(hour01);       BitmapField bfHourColon = new BitmapField(colon);     BitmapField bfMinute10 = new BitmapField(minute10);       BitmapField bfMinute01 = new BitmapField(minute01);       BitmapField bfMinuteColon = new BitmapField(colon);       BitmapField bfSecond10 = new BitmapField(second10);       BitmapField bfSecond01 = new BitmapField(second01);       BitmapField bfSecondColon = new BitmapField(colon);       BitmapField bfMs100 = new BitmapField(ms100);     BitmapField bfMs010 = new BitmapField(ms010);     BitmapField bfMs001 = new BitmapField(ms001);
    
          timerField.add(bfHour10);     timerField.add(bfHour01);     timerField.add(bfHourColon);      timerField.add(bfMinute10);       timerField.add(bfMinute01);       timerField.add(bfMinuteColon);        timerField.add(bfSecond10);       timerField.add(bfSecond01);       timerField.add(bfSecondColon);        timerField.add(bfMs100);      timerField.add(bfMs010);      timerField.add(bfMs001);
    
            add(timerField);  }
    

    I know that this code violates probably some best practices or standards, but I intend to clean later.

    -edited for spelling

    Give it a go with images of the numbers.  You have it easy with BitmapFields, because you know how much space they need with

    getPreferredHeight() and getBitmapWidth().  Then you should be able to stick them next to each other.

    If I was doing this and who are looking for a special look at the clock, which seems to be what you are doing, I would like to have the digital icons as you do, and then set an image large enough to hold the value of the clock and in my routine of painting, select draw digital icon proper, in the right place.  As long as you load the bitmaps only once, I think it's the most effective way to do it.

    Of course, a much simpler way would be to have just a RichTextField formatted as you suggest - RichTextField because you can have two different fonts in a single field.

  • Newbie question relative to the composition of base layer VERY in PSE3

    Sorry, this question is interbreeding - I want to do something super basic, but I can't know, of 40 - odd micro-sous-topics which the PE3 help file lists for layers - unnecessarily, not in any order of workflow - how to do this.

    I have a photo of a person in a room. I also have a picture of a beach.

    I want to cut the man of the 1st photo, stick him on the beach and then be able to manipulate him (him reposition, resize, etc.) without affecting the substance of the beach. A

    I used the magic lasso to select the man of the 1st photo and then copied him, then he glued on the picture of the beach. Problem is doing that I can not slect / manipulate comes from him; It is now merged in the photo of the beach, so no matter what I try to do just the man, now affects the whole new man + the photo of the beach.

    It is hgot to be the only way to do it... can someone take pity on me and give me a beef?

    Well, hover over the Panel layers/pallet and click on the layer with the man (should be the top layer there). Then click on the move tool, which is the first tool in the Toolbox. Then you should be able to grasp man and move him, resize, rotate, etc..

    When you want to stop working on the picture, save it as a PSD or Tiff file to keep the layers so that you can make further changes. JPEG can't have layers so it will definitely be stuck if you use this format.

  • A newbie question Adobe on the export of the site...

    I am a newbie to adobe muse, is it possible to export the sites to WordPress, Wp Premium, Joomla, Drupal, magneto.

    Hello

    To contact us please follow this link:- https://helpx.adobe.com/nz/contact.html

    Kind regards

    Rohit Nair

  • Newbie question - I get an error indicating that the file server no longer exists

    Hi all

    I had a good glance around the forum to try to find an answer but I'm hurting...

    Just start in cooperation with DW today and first put the connection to the host without too heavy, I had brought some rudementary new site changes, but now all I get is the following message

    «The file original htm of 123-reg - do not delete / - error - could not create the folder on the server / file htm original from 123 reg - do not delete /.»  Access denied.  The file exists may not, or there could be a permission problem.   Make sure you have permission on the server and the server is properly configured.

    The original htm file from 123 reg - do not delete:default.htm - cancelled by the user

    Activity of the incomplete file. 1 file (s) or folder (s) have not been filled.

    Files with errors: 1

    "/ The file original htm of 123-reg - do not delete."

    I've been sitting at the computer for 13 hours, and although I know it must be something simple, I can't figure it out for the life of me!
    As mentioned above, I'm new to DW (not the whole adobe products) please bare with me on what I like newbie comments can become irritating
    Kind regards
    John
    PS My OS is Snow Leopard (mac).

    Thanks - clearly your site is not set correctly.

    Try to put ' content/web' in the root directory field, as I did with "www" in the component snap...

  • Newbie question: Dimension of the hierarchy doesn't let me drag columns to levels

    Help.

    I am installing a new Dimension of the hierarchy in my repository OBIEE. It allows me to create a new dimension, and to set up the levels, but then it doesn't let me drag the columns above. I missed a step somewhere, but I don't know what.

    Steps to create a hierarchy of Dimension - >
    Create a dimension object.
    Add a parent level object.
    Add objects of child level.
    Determine the number of items.
    Specify level columns. -C' is where I'm stuck. I can drag columns from the fact, but not the size.
    Create level keys.

    B

    You can take the dimension columns from the dimesnion on which you created the hierarchy. You cannot extract columns of two dimensions in a hierarchy...

    Try to rebuild the hierarchy. Right-click on the dimension table and select Create dimension. All the columns in this dimension will be appera in the hierarchy. Then, you can create different levels and can drag columns of fall of hierarchy itself.

    Kind regards
    Sandeep

  • small question I get the error message...

    Hi refugees,

    I am trying to run... but I get this error... where am I wrong in this
    to display records in the INDEX BY ename...

    {
    DECLARE
    TYPE emp_typ IS TABLE OF emp.sal%Type INDEX OF emp.ename%TYPE;
    emp_arr emp_typ;

    CURSOR c_emp IS SELECT ename, sal FROM emp;
    r_emp c_emp % ROWTYPE;
    v_idx VARCHAR2 (20);
    num_total_rows NUMBER;
    BEGIN
    FOR r_emp IN c_emp
    LOOP
    emp_arr (r_emp.ename): = r_emp.sal;
    num_total_rows: = c_emp % ROWCOUNT;
    END LOOP;

    DBMS_OUTPUT. Put_line (num_total_rows);

    I'm IN emp_arr... FIRST emp_arr LAST.
    LOOP
    v_idx: = emp_arr first.
    DBMS_OUTPUT. Put_line (v_idx |) ',' || To_char (emp_arr (v_idx)));
    v_idx: = emp_arr. NEXT (v_idx);

    END LOOP;

    END;
    /

    DECLARE
    *
    ERROR on line 1:
    ORA-06502: PL/SQL: digital or value error: character of number conversion error
    ORA-06512: at line 18 level

    }


    Thank you

    Published by: SeenuGuddu on September 20, 2009 02:22

    Hello

    SeenuGuddu wrote:
    Thank you Frank Kulash, michaels2
    I'm fighting for a long time...
    the question is... the code is below... is that ok or any changes I have to do

    That is really good!

    I have two very minor ideas:

    (1) you have probably issued a command like

    SET  SERVEROUTPUT  ON  SIZE 50000
    

    otherwise, you don't see any output of dbms_output.

    You must include this command in the same script. It makes no sense to run the DECLARE block without it, and it when it is not strictly necessary does not take much time. (This is not a case where the effectiveness is a high priority.)

    (2)

    Define a PL/SQL table that has only a single column that stores the number with the index as type varchar2.
    Store the emp.sal in the PL/SQL table with ename like index.
    Define a cursor of emp table.
    To loop through the cursor and display the name of the cursor variable and the salary of the collection for each employee.

    This looks like a duty. As I read, a LOOP (the cursor loop FOR) was all that was required. You were in the class, I was not: so I could be wrong. In any case, it doesn't hurt to show that you know how to loop through the collection, but also how to loop through the cursor, but you should know that it is possible to read and write in the same loop:

    DECLARE
        TYPE emp_typ IS TABLE OF emp.sal%Type INDEX BY emp.ename%TYPE;
        emp_arr         emp_typ;
    
        CURSOR c_emp IS SELECT ename,sal FROM emp;
        r_emp  c_emp%ROWTYPE;
        v_idx VARCHAR2(20);
        num_total_rows NUMBER;
    BEGIN
        FOR r_emp IN c_emp
        LOOP
            emp_arr(r_emp.ename) := r_emp.sal;
            num_total_rows := c_emp%ROWCOUNT ;
    --      DBMS_OUTPUT.PUT_LINE( r_emp.ename || ',' || TO_CHAR (emp_arr(r_emp.ename)) );  -- Could display here, and skip the other loop
        END LOOP;
    
        DBMS_OUTPUT.PUT_LINE(  num_total_rows );
    
         v_idx := emp_arr.FIRST;
    
        WHILE v_idx IS NOT NULL
        LOOP
            DBMS_OUTPUT.PUT_LINE( v_idx || ',' || TO_CHAR(emp_arr(v_idx)) );
            v_idx := emp_arr.NEXT( v_idx );
    
        END LOOP;
    
    END;
    /
    

    Nice formatting!

  • my printer a Canon MX850 has an B200 error code my question what is the error?

    When I turn on my printer an error B200 comes up with the blinking light. What is the problem please?

    Try www.canon.com Support

  • [Newbie question] Get * = 08004, TimesTen error = 818 ODBC error

    Just play with 10 times and I'm getting following error starting from data source

    bash - $3.2. / ttadmin - cachestart cachealone1
    [TimesTen] [driver ODBC of TimesTen 11.2.1.3.0] sum permanent partition sizes and temporary (2320 MB) exceeds the maximum size (2047 MB) on this platform

    ODBC = 08004, TimesTen error = 818 error


    Where Timesten hitting this limit of 2047 MB? Can I increase the maximum size by making some configuration changes (my machine like around 6 GB memory [Oracle DB is also installed on the same node]). I'm checking the various operations using larger tables (about 2 GB DB size).


    The configurations are:



    [root@stin77 ~] # / sbin/sysctl Pei
    NET. IPv4.ip_forward = 0
    NET. IPv4.conf.default.rp_filter = 1
    NET. IPv4.conf.default.accept_source_route = 0
    kernel. SysRq = 0
    kernel.core_uses_pid = 1
    NET. IPv4.tcp_syncookies = 1
    kernel.msgmnb = 65536
    kernel.msgmax = 65536
    kernel.shmmax = 4294967295
    kernel.shmall = 268435456
    FS.file - max = per 6553600
    NET. IPv4.conf.default.rp_filter = 1
    NET. IPv4.conf.default.accept_source_route = 0
    kernel. SysRq = 0
    kernel.core_uses_pid = 1
    kernel.shmmni = 4096
    kernel.SEM = 250 32000 100 128
    NET. IPv4.ip_local_port_range = 1024 65000
    NET. Core.rmem_default = 262144
    NET. Core.wmem_default = 262144
    NET. Core.rmem_max = 262144
    NET. Core.wmem_max = 262144





    bash - $3.2 uname - a
    Linux 2.6.18 - 92.el5PAE #1 SMP stin77 kills Apr 29 13:31:02 EDT 2008 i686 i686 i386 GNU/Linux


    [cachealone1]
    Driver=/localhome/Oracle/TimesTen/TimesTen/tt1121/lib/libtten.so
    Data store = / localhome/oracle/Timesten/TimesTen/tt1121/info/DemoDataStore/cachealone1
    TempSize = 320
    PermSize = 2000
    PLSQL = 1
    DatabaseCharacterSet = WE8MSWIN1252
    OracleNetServiceName = orcl


    Kernel parameters:

    [root@stin77 ~] # / sbin/sysctl Pei
    NET. IPv4.ip_forward = 0
    NET. IPv4.conf.default.rp_filter = 1
    NET. IPv4.conf.default.accept_source_route = 0
    kernel. SysRq = 0
    kernel.core_uses_pid = 1
    NET. IPv4.tcp_syncookies = 1
    kernel.msgmnb = 65536
    kernel.msgmax = 65536
    kernel.shmmax = 4294967295
    kernel.shmall = 268435456
    FS.file - max = per 6553600
    NET. IPv4.conf.default.rp_filter = 1
    NET. IPv4.conf.default.accept_source_route = 0
    kernel. SysRq = 0
    kernel.core_uses_pid = 1
    kernel.shmmni = 4096
    kernel.SEM = 250 32000 100 128
    NET. IPv4.ip_local_port_range = 1024 65000
    NET. Core.rmem_default = 262144
    NET. Core.wmem_default = 262144
    NET. Core.rmem_max = 262144
    NET. Core.wmem_max = 262144

    You are running TimesTen 32-bit on a 32-bit o/s. regardless of the quantity of memory has the machine, there are limits on how much can be used by an individualized process and additional limits the size of the file etc TimesTen 32 bit is limited to a maximum of 2 GB data store size.

    To create a data store with a total size greater than 2 GB, you need a 64 bit machine running an o/s 64-bit and 64-bit TimesTen. Then, the only limit is the amount of memory physical you in the machine...

    Chris

  • How to explain the error in the executable file?

    As everyone knows, there are 3 parts to the cluster of error: status and source code. The State's flag, the code is the error code and the source is where Labview think that the error occurred. Normally, when I'm in the environment labview course I can just right mouse click the error and click "explain the error" and a description and detailed error possible cause rises.

    However, when I create an executable I don't know how to explain the error to the user, such as labview.

    When an error occurs that I wish I had a popup that says code error, source and EXPLANATION. The code and the only source is so enigmatic sound quite panic inducing the user, whether or not the error is unrecoverable/crash-inducing. Also this would save me having to search the online error code.

    How to make the explanation of the error code? There is a vi that I can enter an error code and get the explanation string?

    There is probably something simple I forget but I couldn't find the answer in my research. Thanks in advance for your help.

    Simple error handler and screw General Error Handler?

  • How to fix the error on the packets to the PCI DDK program - 7358

    Hello world

    I'm trying the RTX driver for motion NI PCI-7358.

    I would like to achieve the same function as flex_load_dac(). According to the DDK, I have to manually send the order via the package. The flex_load_dac() format is:

    Load CAD
    CommandID: 61
    Valid resource type: DAC
    Vector type: entry
    (Send) packet data
    Word Count: 1
    The data passed to: i16 outputValue

    So I write my code like:

    //////////////////////////////////

    #define CB 0
    #define CSR 8

    x = *(BaseAddress+CSR);
    While (!) (x & 0x01)) {}
    printf("%X\n",x);
    x = *(BaseAddress+CSR);
    } //wait for the RTR
    printf ("%X\n",x Heading1);
    * BaseAddress + BC = (u16) 0 X 0131; Number of words< 8="" |="" resource="">

    x = *(BaseAddress+CSR);
    While (!) (x & 0x01)) {}
    printf("%X\n",x);
    x = *(BaseAddress+CSR);
    } //wait for the RTR
    printf ("%X\n",x HEAD2);
    * BaseAddress + BC = (u16) 61; Command ID

    x = *(BaseAddress+CSR);
    While (!) (x & 0x01)) {}
    printf("%X\n",x);
    x = *(BaseAddress+CSR);
    } //wait for the RTR
    printf ("DATA %X\n",x);
    * BaseAddress + BC = (i16) 0 x 1111; write a value to the DAC output

    x = *(BaseAddress+CSR);
    While (!) (x & 0x01)) {}
    printf("%X\n",x);
    x = *(BaseAddress+CSR);
    } //wait for the RTR
    printf ("%X\n",x FOOT);
    * BaseAddress + BC = (u16) 0XFF0A; vector = 0XFF
     
    The print output is:

    HEADING1 1
    0
    0
    0
    HEAD2 1
    8
    10
    DATA 11
    10
    10
    10
    10
    10
    10
    FOOT 11

    It seems that after the command ID is sent to the card, a mistake on packages is completed.

    I've read all the related document on motion control card, but none speak the detailed explanation of the error on the packages and how to cope.

    Can any body help me with this problem or point out what's not in my package?

    It is a very urgent project. I wish I can get help on you!

    Thank you in advance!

    Rick

    Rick,

    Attached a few old files are used to create driver linux for the x 733 and 734 x cards.  The control interface is the same for the boards of 735 x.  They are provided AS IS, but I think they'll give you a very useful overview of what you need to do.  For example to remove the error command you send the terminator of value package several times the error is cleared.

    Rodger

Maybe you are looking for