Problem with creating, truncating and deleting a database in 1 transaction

Hello

I came across a problem when it is in the same transaction creating a data base, truncating it and then delete it. Do these 3 things causes the following transaction validation to last forever.
The following code causes the problem:

File envHome = new File ("truncate-delete-test");
envHome.mkdirs ();
EnvironmentConfig envConfig = EnvironmentConfig.DEFAULT;
envConfig.setAllowCreate (true);
envConfig.setTransactional (true);
envConfig.setTxnSerializableIsolation (true);
Environment = environment (this.envHome, envConfig);

Transaction txn = this.environment.beginTransaction (null, TransactionConfig.DEFAULT);

DbConfig DatabaseConfig = new DatabaseConfig();
dbConfig.setAllowCreate (true);
dbConfig.setTransactional (true);
String dbName = "test-db";
Database db = this.environment.openDatabase (txn, dbName, dbConfig);

CBI Close();
environment.truncateDatabase (txn, dbName, false);
DB = this.environment.openDatabase (txn, dbName, dbConfig);

CBI Close();
this.environment.removeDatabase (txn, dbName);

TXN.Commit (); <-this statement would never return.

I encountered this problem with version 4.0.92. I've updated to 4.1.7 but the problem still exists.
Also, it manifests when the records are written to the database before and after it truncate.

Looking in the process with the debugger shows the following stack trace during the commit endless happens:

[...]
DbTree.deleteMapLN (DatabaseId) line: 1069
DatabaseImpl.finishDeleteProcessing (line): 1164
Txn.cleanupDatabaseImpls (boolean) line: 1404
TXN.Commit (durability) line: 728
TXN.Commit (line): 549
Transaction.Commit (line): 227
[...]

Depending on where I stop the process, there are additional calls on top of the stack.

Exit Registration unfortunately does not help here, as the log messages stopped once the problem started to appear.

Is it somehow not allowed to create, truncate and delete a database in the same transaction? I couldn't find anything in this sense in the documentation, and it is no exception either.
Or have I came across a bug in I here?

Thanks in advance for any advice or solutions.

Christoph

Tags: Database

Similar Questions

  • How can I return to 6.3 4.0 I have never had a problem with 3.6 and now 4.0 crashes all the time tell me how to go back

    How can I return to 4.0 3.6 I've never had a problem with 3.6 and now 4.0 crashes all the time tell me how to go back

    Downgrade to Firefox 3.6 first of all uninstall Firefox 4, but do not select the option 'remove my Firefox personal data '. If you select this option, it will delete your bookmarks, passwords and other user data.

    Then you can install the latest version of Firefox 3.6 available to http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your favorite courses, passwords etc.

    I recommend, to avoid possible problems with decommissioning, accessing your profile folder and delete the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Delete these files will force Firefox to rebuild the list of installed extensions, check their compatibility and cancel the toolbar customizations.

    For more information on how to find your profile folder, see https://support.mozilla.com/kb/Profiles

  • HP 15 laptop: problem with the touchpad and the key "stuck."

    Hello!
     
    Last weekend, I have an irritating problem with my HP 15 laptop. Bought two years ago and upgrades to Windows 10 a year ago.
     
    First of all, my touchpad started to not work properly. It "freezes" and I can't use it until I click the ESC key, but it doesn't last and "freezes" again a few seconds later. Then, everytime I open a window where there is a text box (Start menu, edge browser, Control Panel, etc.), the number 5 is entered automatically and permanently, as if the button 5 has been blocked. I did a quick check and button 5 do not seem physically stuck.
     
    Yesterday, I restored the system to the factory settings, so I'm back to 8.1 for Windows and then upgraded to Windows 10. Everything seems to work fine, but this morning, the problem was back. Is there something I can do? What is the problem caused by Windows 10 or the computer? Should I restore it to Windows 8.1? Everything worked great til last weekend, I don't know what that was.
     
    Thank you in advance for your help!

    Welcome to the HP support community @gouch3.

    I understand that you have a problem with the keyboard and the touchpad on your laptop from HP 15.

    Have you tried to use a keyboard external and mouse at all?

    Have you tried to go to Safe Mode to see if the problems persist in there?

    Have you tried to perform a material or forced reset Reset?

    Did you do a test of material?

    Have you updated your drivers?

    gouch3 wrote:

    ... Is there something I can do? What is the problem caused by Windows 10 or the computer? Should I restore it to Windows 8.1? Everything worked great til last weekend, I don't know what that was.

    It could be a driver problem to be able to look at that for you, I need your model number. I wish I could give you an answer or not, but at this point without the troubleshooting results and the model number, it is difficult for me to say.

    I can say that if everything works in point 8.1 of Windows without problem, the driver TROUBLESHOOTING is a great place to start. Please try to follow these steps for the keyboard and the touchpad of troubleshooting:

    • Beginning
    • Search for Device Manager
    • Search results, open Device Manager.
    • Click on display
    • Show hidden devices.
    • Click the arrow next to keyboards.
    • Right click on the name of the keyboard device.
    • Select uninstall.
    • Continue deleting the names of devices in the category keyboards until the feature of all the names have been uninstalled.
    • Restart the laptop twice.

    Touchpad:

    • Type of research, "Device Manager."
    • Click on Device Manager,
    • Expand mice and other pointing devices.
    • Right click on the TouchPad,
    • Click on uninstall.
    • Restart the computer laptop twice,
    • Reinstall the TouchPad card.

    I found a document of troubleshooting for you to try also called Portable keyboard troubleshooting. Please be sure to follow the steps described in this document.

    The best document I have for TouchPad problems is the use and troubleshooting of the TouchPad and ClickPad document. 

    Here is a link to the HP Support Assistant, if you need it. Just download and run the application and it will help with the software and drivers that need to put up-to-date.

    This is a great question other clients may also be questioned. When we came to a resolution, please share what has worked for you with others by marking this post as an acceptable Solution. If you want to show appreciation for my efforts today, please take a second to click the Thumbs Up button below.

    If you need assistance, I would be more than happy to continue to help you. Please re-post with the results of the resolution of the problems. Could you please also provide your model number (How can I find my model number or product number?)

    Thank you!

  • Problems with Windows Update and load XP SP3

    I had a problem with my system and had to replace my HARD drive and reload XP and all my applications and data.  Now, I installed SP2 and try to install SP3. Windows Update does not work (get the 080244019 error code x) and when I try to install the SP3 files from the Microsoft site, it'll run about halfway through and then stop and hang, displaying the message "Finish Installation" with bar at halfway of the progression.  I tried the MSRT and FixIt nothing helps.  I checked services.msc to see all the required services are enabled or started.  I read that some malware will be stop some services without notice.

    After a few attempts to load the file SP3 failed, check Add/Remove programs in Control Panel Windows XP Service Pack lists 3 but no file size or to update the date information as with other programs.  My browser is IE8 and I was doing some Hot fix for Windows XP downloads, this adventure started about 3 weeks ago, but no other automatic update downloads.  I use the following McAfee provided by my ISP for protection AV and firewall with regular full scans.  Scan today revealed there is apparently a single trojan file that cannot be deleted, but there were no further details.  My system is also fully functional; I seem to get the updates for McAfee and other applications OK but not SP3.  I received or otherwise installed following updates or Hot Fix for XP downloads in the past 3 weeks:

    KB954550-v5

    KB932823-v3

    KB915800 v4

    KB884020

    KB926239

    KB2618444 (Windows IE8 security update)

    I found an answer on another forum on editing the registry for the "/ Edit EDWARD CSDVersion value ' but have not yet tried waiting for any response to this request.  I'd like some useful suggestions.  Thank you and happy new year!

    Thanks for the quick response.  I did some checking on my system, I have XP Home Edition ships with the system bought in July 2007.  Add/Remove Programs shows that the aborted install XP SP3 and IE8 installation; I tried to load the SP2 file but it doesn't show here as an addition, so it may have been part of the original XP CD and I just crush.  Even for IE7 so I am not able to drop back to all recommend you.  I will try your solution later today and post my results. I saved SP2, SP3 and IE8 in my office and a flash player to reload later according to your instructions.  Stay tuned.

    It would be unusual for a CD of Windows XP (official) to have integrated Internet Explorer 7.

  • Having problems with SQL Developer connection to the database on a LINUX machine

    Having problems with SQL Developer connection to the database on a LINUX machine
    Hello
    I am trying to connect my machine to windows 7 Home premium to an oracle database 11 g on RedHat 5 machine using SQL Developer. I got this error on SQL Developer
    Status: Failed - Test has failed: the network adapter could not establish the connection


    on Linux
    LSNRCTL> status
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for Linux: Version 10.2.0.1.0 - Production
    Start Date                03-APR-2013 16:13:13
    Uptime                    7 days 22 hr. 16 min. 41 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   /u01/app/oracle/product/11.2.0/db_1/network/admin/listener.ora
    Listener Log File         /u01/app/oracle/product/11.2.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=172.X.X.X)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    Service "orc11g" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    Service "orc11gXDB" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    Service "orc11g_XPT" has 1 instance(s).
    Instance "orc11g", status READY, has 1 handler(s) for this service...
    The command completed successfully
    LSNRCTL>
    and TNSPING
    tnsping 172.x.x.x
    
    TNS Ping Utility for Linux: Version 10.2.0.1.0 - Production on 11-APR-2013 14:32:17
    
    Copyright (c) 1997, 2005, Oracle.  All rights reserved.
    
    Used parameter files:
    /u01/app/oracle/product/11.2.0/db_1/network/admin/sqlnet.ora
    
    Used EZCONNECT adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=172.x.x.x))(ADDRESS=(PROTOCOL=TCP)(HOST=172.x.x.x)(PORT=1521)))
    OK (0 msec)
    [oracle@ltebilling ~]$
    Tnsnames.ora on Linux,
    ORC11G =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orc11g)
    )
    )
    Listner on Linux,
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = /u01/app/oracle/product/11.2.0/db_1)
    (PROGRAM = extproc)
    )
    )
    
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (ADDRESS = (PROTOCOL = TCP)(HOST = 172.x.x.x)(PORT = 1521))
    )
    )
    hosts/ect/Linux,
    # Do not remove the following line, or various programs
    # that require network functionality will fail.
    127.0.0.1               localhost.localdomain localhost
    172.x.x.x             LTEBilling
    and there is no problem to ping linux from windows

    Published by: user11309581 on April 11, 2013 15:16

    user11309581 wrote:
    as I have already desciped earlier, I can't connect to the server throw Linux my Windows SQL Server, with error message below.
    tatus: failed - Test has failed: the network adapter could not establish the connection

    It's too generic to mean anything. The application is hidden the real error message. You got when you did the tnsping and obtained "TNS-12535: TNS:operation has expired. Now THAT's an error.

    This indicates a problem firewall and routing. You said earlier you could ping the server, but now we see tnsping fails. Two different protocols of usage, so that both the successful ping turns out a valid physical path, it guarantees not that all traffic will pass. What happens with

    c:\ telnet 172.x.x.x 1521
    
  • I had a power failure and I learned today that there is a problem with the cache and I need to go to Preferences, purge the cache. I did this, but get the same error message every time I open the subsequent times of bridge.

    I had a power failure and I learned today that there is a problem with the cache and I need to go to Preferences, purge the cache. I did this, but get the same error message every time I open the subsequent times of bridge.

    Mac or PC? Version of the OS? What version of CS?

    Have you tried to reset the bridge? CTRL (Windows) / Opt (Mac) + click on the bridge to start icon and select open boxes.

    Otherwise, you could manually delete the cache, but we need to know the answers to questions to say where he is.

  • Problem with the help of oraext: query-database in the transformation (XSLT 2.0)

    Hello!
    I m facing a problem with the help of oraext: query-database.

    In my transformation im try the following (Simplified):
    <xsl:template match="*">
      <xsl:variable sqlQuery="select ....."/>
      <xsl:variable name="storeSec" select="oraext:query-database($sqlQuery,true(),true(),'jdbc/xref')/>               
        <xsl:choose>
         <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0">
              <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/>
         </xsl:when>
           <xsl:otherwise>
                <xsl:value-of select"some other val"/>
           </xsl:otherwise>
        </xsl:choose>
    </xsl:template>
    {code}
    
    This always results in +some+ +other+ +val+ !!
    I´v checked the output from oraext:query-database by using getcontentAsString and if I instead test putting the expected output from oraext:queryDatabase in my variable it gives me A100 which is what i expected.
    
    {code}
    <xsl:template match="*">
      <xsl:variable sqlQuery=select ....."/>
      <xsl:variable name="storeSec">
        <ROWSET>
         <ROW num="1">
           <STORE_PART_SECTION>A100</STORE_PART_SECTION>
         </ROW>
         <ROW num="2">
           <STORE_PART_SECTION>XXm</STORE_PART_SECTION>
         </ROW>
        </ROWSET>
      </xsl:variable>               
        <xsl:choose>
         <xsl:when test="string-length($storeSec/ROWSET/ROW[1]/STORE_PART_SECTION) > 0">
              <xsl:value-of select="$storeSec/ROWSET/ROW[1]/STORE_PART_SECTION"/>
         </xsl:when>
           <xsl:otherwise>
                <xsl:value-of select"some other val"/>
           </xsl:otherwise>
        </xsl:choose>
    </xsl:template>
    How to get the correct value when you use oraext:query - database?

    How should you exit? Several item ID with each having a value of the result set?
    If Yes, then you can try following:

     
                        
                            
                        
                             
                                  
                             
                        
                            
    
  • problem with the CURSOR and WITH clause

    Hi guys,.

    I have never created a package before. I try to run it, but I get:
    ORA-06550: line 8, column 16:
    PLS-00382: expression is of the wrong type
    ORA-06550: line 8, column 3:
    PL/SQL: Statement ignored

    I know that my problem is in the next section

    OPEN FOR V_io_cursor

    with GOT_R_NUM like)


    Is the above correct?

    When I copy paste the "heart" of the query, it works very well. I really have a problem with the CURSOR and the declaration.

    Here's the code in its entirety. I know that the code is much more then he returned, but ignore this overload that was to do some tests to make sure that I can achieve any query request.

    CREATE OR REPLACE
    PKG_SPF_NATIONALREPORTS PACKAGE BODY IS

    PROCEDURE GET_NATIONAL_TOTAL_RESULTS (P_SelectFields IN varchar2, P_SUMFields IN varchar2, io_cursor IN OUT C_RESULTS)
    IS
    v_io_cursor C_RESULTS;

    BEGIN

    OPEN FOR V_io_cursor

    with GOT_R_NUM like)
    SELECT
    -START P_SelectFields
    r.cli_served,
    r.EIER,
    -END P_SelectFields
    r.RC,
    r.Year_ID,
    r.period_id,
    r.agreement_type_ind,
    CONTRACT_NUMBER. CONTRACT_NUMBER_TEXT,
    YEARS.year_desc,
    RC_CODE.rc_code_id,
    RC_CODE.rc_code,
    AHRDA HOLDERS. AHRDA_ID,
    AHRDA HOLDERS. REGION_ID,
    AHRDA HOLDERS. PROVINCE_ID,
    AGREEMENT_TYPE. AGREEMENT_TYPE_ID,
    AGREEMENT_TYPE. AGREEMENT_TYPE_DESC_EN,
    ROW_NUMBER() over (partition R.YEAR_ID, R.CONTRACT_Number_Text
    order by
    P.PERIOD_desc
    (/ / DESC NULLS LAST) AS r_num
    RESULT r
    JOIN period p ON r.period_id = p.period_id
    JOIN CONTRACT_NUMBER ON r.contract_number_text = CONTRACT_NUMBER. CONTRACT_NUMBER_TEXT
    JOIN RC_CODE ON contract_number.rc_code_id = rc_code.rc_code_id
    JOIN AHRDA holders ON ahrda.ahrda_id = rc_code.ahrda_id
    JOIN AGREEMENT_TYPE WE AHRDAS. AGREEMENT_TYPE_ID = AGREEMENT_TYPE. AGREEMENT_TYPE_id
    JOIN the YEARS WE r.year_id = YEARS.year_id
    )
    SELECT year_desc
    -START P_SUMFields
    SUM (cli_served) AS sum_cli_served
    The SUM (eier) AS sum_eier
    -END P_SUMFields
    OF got_r_num
    GROUP BY year_desc
    ORDER BY year_desc
    ;

    io_cursor: = v_io_cursor;

    END GET_NATIONAL_TOTAL_RESULTS;

    Agree - all this talk of loops FOR is completely irrelvant.
    A refcursor is usually the exact mechanism to return a result set.

    What is C_RESULTS?

    Just use SYS_REFCURSOR.

    No need for local variable.

    OUT why? Not just walk OUT?

    PROCEDURE GET_NATIONAL_TOTAL_RESULTS
    (P_SelectFields IN varchar2, P_SUMFields IN varchar2, io_cursor OUT SYS_REFCURSOR)
    IS
    BEGIN
     OPEN io_cursor FOR ...
    END;
    
  • Problem with create table as select (DEC)

    Hello

    We try to data cleaning of huge tables. And a customer of guise is reanme main table to the backup table. Then create a master table in select * backup table with some test.

    Now the problem with create table select, is that it creates the table without indexes and constraints. Is it possible to use the ETG (create the select table) with the same structure that he was the (all index, constriaints).

    Or any other solution to solve this problem?

    Thanks in advance

    Sweety wrote:
    Hello

    We try to data cleaning of huge tables. And a customer of guise is reanme main table to the backup table. Then create a master table in select * backup table with some test.

    Now the problem with create table select, is that it creates the table without indexes and constraints. Is it possible to use the ETG (create the select table) with the same structure that he was the (all index, constriaints).

    Or any other solution to solve this problem?

    Thanks in advance

    No, this is not possible. You need to get the manuscript of dependent object and create it manually.

  • Problem with the locale and date serialization in java

    Hello
    I have a serious problem with Flex dates and need a solution as soon as possible. I have a Flex 2 front end that uses remote java objects to talk to the database. I have a Flex 2 DateFields form. The dates of these are stored in the datebase. However I need the dates to be stored exactly as users them selects regardless of the locale.

    What is happening at the moment is we are developing in Ireland and in selecting a date, filling an actionscript VO which is in turn transformed into a java VO (on a server in the United States) and when the date is stored in the database is one day before the date that we have selected. It seems that the flash player uses the locale with a time of midnight (GMT) users. When place the conversion to the EAST, it stores the date (GMT - 5), which causes the being Eve.

    I changed my flex code to set the date at 12: 00 time even if he converts and subtracts 5 hours it will always be the same date. But this does not work, it seems to work sometimes and not others and is very inconsistent. I can't understand why it works sometimes.

    Its makes me mental - someone has experienced this problem or did someone knows a solution PLEASE?
    Thank you

    I'm not very familiar with your specific question, but I wonder if a combination of store dates as the first milliseconds since midnight January 1, 1970, universal time, stored as a string and then when presenting the data are aware, locale would solve the problem.

  • Hello I have problem with my site, and mozilla. Google chrome, safari, explorer, opera work ok. Mozilla Heve problem with images?

    Hello I have problem with my site, and mozilla. Google chrome, safari, explorer, opera work ok. I have Sobipro for both the company and the logos and images without work!
    When I try to open the url is this:http://www.athens-dayandnight.gr/images/sobipro/entries/288/587_img.jpg

    whith mozilla is the following: /images/sobipro/entries\288\587_img.jpg when ichange it------with this / work.

    any idea?

    Thank you

    Hello, the URLS that contain-in their path are not valid. Firefox is less tolerant to errors in this respect than other browsers.
    Correct the path to http://www.athens-dayandnight.gr/images/sobipro/entries/288/587_img.jpg in the source code of this site or if you don't control the contact of the site their webadmin to do...

  • Satellite Pro C650D - problems with the audio and game controllers

    Hello

    I recently had problems with my microphone and speakers/headphones and game controllers.
    Sometimes the microphone stops working when on Skype, for example, but most of the time works fine, once again, when I restart the pc.

    Stakeholders sometimes still work when I connect headset.
    Some of the sounds are still coming through the speakers while some coming through the headphones.

    I have a usb game controller which also did not work everything properly.
    If I assign buttons in the program that they do not work in the game.

    All these devices are in Device Manager in a group that makes me think it's sort of annoying update doubtful that messes with them.

    Any body have similar problems or know what to do better?

    See you soon
    Laurin

    Hello

    Can you please send some details on the laptop model and the system you are using?

    With regard to the issue of sound/mic:
    > The microphone sometimes stops working when on Skype, for example, but most of the time works fine, once again, when I restart the pc.

    Are you talking about internal microphone or external? This only happens using Skype?
    In your case I would test the microphone using different applications to make sure that is not a Skype related issue.

    > Yet sometimes the speakers work when I connect headset.
    I recommend this thread:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=65295

    The user has had a similar problem, but this phenomenon was linked to the Realtek HD Audio Manager settings.
    She wrote:
    + In the upper right corner, there is a small yellow folder called "Connector settings" in my version. +
    + There, finally I could re-enable the setting "enable popup dialog box, when the unit is plugged. +

    + So now when I plug an external speaker or headphones, it appears, and I select the option "helmet" (instead of "line-in"), and then the sound only through the headphones/ext.speaker.+

    Regarding the game controller:
    > I have a usb game controller which also did not work everything properly.
    > If I attribute buttons in the program, they do not work in the game.
    I put t think its problem of laptop in my opinion, you must make sure that the controller is compatible with the games you play and also recommended to check some info provided by the manufacturer of the game controller.

  • Problems with wifi, bluetooth and gps in my iphone after updating iOS 6

    After that the last iOS 9.3 update my iphone 6 has problems with wifi, bluetooth and gps. Now, my wifi connection is slower and falls easily on a short distance. My bluetooth does the same. But the biggest problem is the GPS on my phone. I tried Island:

    -By doing a reset network

    -Do a reset total and restore my phone

    -To restart my phone twice.

    -Audit and third-party applications unnistalling

    Nothing works. I was in the apple store where they checked my phone and they say everything is ok with the phone. I'm not crazy, and I know when something does not work correctly. Also, I think it's iOS 9.3 update a reaponsible for my phone issues.

    Please fix bugs fast.

    Having the same exact problems since the upgrade. In addition, battery drains very quickly now, and sometimes the phone becomes very hot. It took to the Genius Bar and they told me everything was normal in the diagnostic tests. Restored, restarting, etc., and always the same problems. GPS locates me, but then don't follow my movement at all and told to go outside as the gps is not detected even if I am outside. Bluetooth connection to the car and watch grave intermittently. Signal WiFi is greatly reduced and falls easily.

  • Problem with the report and the system of axis 2d

    Hi, I'm trying to write a script with tiara, who wrote a 2d axis system in the report but I'm having a lot of problems with it.

    What I'm trying to do, is make 3 or more system axis 2d in the report, each displaying a part of the data of 2 channels (x = ch0, ch1 = y).

    With only 1 graphic I get what I want, but when I try to add the 2nd or the 3rd, they show without my defined x-scale and with the offset x different from the first chart.

    I tried everything, but I could not remedy

    I added as attachments the .csv file that I use to ch0 and ch1 and 2 screen shoots "what I get" (about the problem with the script) and "what I hope to get" (done manually, is what I'm trying to get the report)

    Any help will be appreciated, thanks in advance

    Ierman

    I'll post my code here:

    Dim Xscale, Yscale
    XScale = Array (0,25,0,5,49)
    Yscale = Array(-0.2,0.2,-0.2,10,4)
     
    Call PicDelete()
    Call GraphObjNew ("2D-Axis", "2DAxis1")
    Call GRAPHObjOpen ("2DAxis1")
    D2AxisTop = 1

    D2AxisBottom = 70
    D2AxisLeft = 1
    D2AxisRight = 1
    Call GRAPHObjOpen ("2DYAxis1_1")
    D2AxisyScaleType = "manual".
    D2AXISYBEGIN = Yscale (0)
    D2AXISYEND = Yscale (1)
    D2AXISYORIGIN = Yscale (2)
    D2AXISYTICK = Yscale (3)
    D2AXISYMINITICK = Yscale (4)
    Call GRAPHObjClose ("2DYAxis1_1")
    Call GRAPHObjOpen ("2DXAxis1_1")
    D2AxisxScaleType = "manual".
    D2AXISXBEGIN = Xscale (0)
    D2AXISXEND = Xscale (1)
    D2AXISXORIGIN = Xscale (2)
    D2AXISXTICK = Xscale (3)
    D2AXISXMINITICK = Xscale (4)
    D2AxisXTxt = ""

    D2AxisXColor = 'black '.

    D2AxisXTickAuto = 1
    D2MTickLineWidth (1) = 0.1
    D2MTickLineType (1) = "solid".
    D2AxisXTickSize = 60
    D2AxisXTxtAutoCo = 0
    D2MTickColor = "red".
    Call GRAPHObjClose ("2DXAxis1_1")
    Call GraphObjNew("2D-Curve","New_Curve")

    Call GraphObjOpen ("New_Curve")

    D2CCHNX = "[1] / [1]" "

    D2CCHNY = "[1] / [2]" "

    D2CurveColor = "red".
    Call GraphObjClose ("New_Curve")
    Call GRAPHObjClose ("2DAxis1")

    Dim Xscale1, Yscale1
    Xscale1 = Array (25,50,0,5,49)
    Yscale1 = Array(-0.2,0.2,-0.2,10,4)
    Call GraphObjNew ("2D-Axis", "grafic")
    Call GRAPHObjOpen ("grafic")
    D2AxisTop = 40

    D2AxisBottom = 37
    D2AxisLeft = 1
    D2AxisRight = 1
    Call GRAPHObjOpen ("2DYAxis1_2")
    D2AxisyScaleType = "manual".
    D2AXISYBEGIN = Yscale1 (0)
    D2AXISYEND = Yscale1 (1)
    D2AXISYORIGIN = Yscale1 (2)
    D2AXISYTICK = Yscale1 (3)
    D2AXISYMINITICK = Yscale1 (4)
    D2AxisYTxt = "" ' testo asse label y
    Call GRAPHObjClose ("2DYAxis1_2")
    Call GRAPHObjOpen ("2DXAxis1_2")
    D2AxisxScaleType = "manual".
    D2AXISXBEGIN = Xscale1 (0)
    D2AXISXEND = Xscale1 (1)
    D2AXISXORIGIN = Xscale1 (2)
    D2AXISXTICK = Xscale1 (3)
    D2AXISXMINITICK = Xscale1 (4)
    D2AxisXTxt = «»

    D2AxisXColor = 'black '.

    D2AxisXTickAuto = 1
    D2MTickLineWidth (1) = 0.1
    D2MTickLineType (1) = "solid".
    D2AxisXTickSize = 60
    D2AxisXTxtAutoCo = 0
    D2MTickColor = "red".
    Call GRAPHObjClose ("2DXAxis1_2")
    Call GraphObjNew("2D-Curve","New_Curve1")

    Call GraphObjOpen ("New_Curve1")

    D2CCHNX = "[1] / [1]" "

    D2CCHNY = "[1] / [2]" "

    D2CurveColor = "red".
    Call GraphObjClose ("New_Curve1")
    Call GRAPHObjClose ("grafic")

    Hi lerman,.

    Here is an edited version of your code that works on my computer.  A problem that I know that I fixed it was that your presentation of the STATE was in the name-oriented mode but you use the variables based on the number to assign it X and Y channels.  The execution of these commands in a loop FOR makes it much easier to debug the code and to avoid any annoyance at first.

    Brad Turpin
    Tiara Product Support Engineer

    National Instruments

  • Problems with the date and time - have to reset the date & time on reboot

    original title: problems with the date and time

    Whenever I turn on my computer (Windows XP 2002) I click on F2.  Then I re - set the date and time it occurred in January 2006 1 h every time I have turn off the computer.  Can someone tell me what I need to do?

    You need to replace the battery in time clock (RTC) real of your computer.  It can also be called the CMOS or BIOS battery.

    Many computers, this battery is an inexpensive CR2032 button available in almost every pharmacy corner.  There are, however, some computers (especially laptops) that require a different (and probably more expensive) battery.

    Whatever the expense, almost all of these batteries are easy to replace.

    To get help, post back with the brand and model of your computer.

Maybe you are looking for