Exteme slow commits

Hi,
I am experiencing problems recently with Oracle XE running on server 2003. In my code (java) auto commit is set to false and I do explicit commit in the code. However, in last couple of days, I started noticing big delay between insert and actual insert. What I mean by that is that I can see in my code that insert was successful (no exception), but when I go and look into db (oracle web interface or sqldeveloper), I do not see inserts for next 20-30 min! If I change my code to do auto commit, I can see all (usually 3 inserts to 3 different tables) right away. However, I need to use explicit commit. Same thing is happening (occasionally) when doing plain insert into using sqldeveloper client.
Did anybody ever experienced something like that?
Thanks.
em

How is the middle tier fetching data from the database? Did you write your own classes? Are you using an object-relational persistance API (i.e. Hibernate)? Or something else?
Does the middle tier maintain any sort of cache?
Data is immediately visible to all sessions (in the default read committed transaction isolation level) as soon as the commit operation returns. If you have done an explicit commit and that commit operation has returned successfully, the data is now visible to other sessions. If other sessions are not seeing the data, that would imply that there is some sort of cache that is not getting invalidated (i.e. a browser cache, a middle tier cache, a web server cache, etc.) or that your application is not using the read committed transaction isolation level. Did you explicitly ask for serializable transactions?
Justin

Similar Messages

  • ACR running EXTEMELY slow

    Hi gurus.
    Our equipment ACR is runnning slower and slower and yesterday we could not complete it even (had to terminate it after 20000 secs)! We are at a loss of why it is supposed to happen and asking for your kind help.
    FYI, we are using BI7.
    Thanks very much.

    There could be N no. of reason for this.
    1. Check the no. of records which has to be aligned. Depending on the no. of changes, ACR will take time.
    This you can find in SE38 -->SDDS_CHANGERUN_MONITOR
    It will give you no. of records and also in which all aggregates, the changes has to take place.
    2. Check the job in SM51(on server, with PID). See what all sql statement it is executing and how much time its taking. Generally, one ACR will have 3-4 child process. While Child processes will execute, the ACR job will be in wait condition.
    Please see that it dont remain in the wait condition forever.
    3. Sometimes, one aggregated will lock one characteristics, because of that the deadlock will occure. To check for the aggregates, execute step 1.
    4. to see the deadlock, use t-code DB6COCKPIT or ST04. If there is any deadlock, cancel the ACR job and relrease the lock, SM12.
    These are the preventive measure, you should always be ssing all thse tilllA CR is running.
    In last, see if you have enough BG job process to run ACR.
    Thanks...
    Shambhu

  • Extemely slow 7610 printing with pauses

    We recently purchased a HP 7610 printer to take advantage of the wireless and wide-format capabilities.   Both of our PC's are running Windows 8.1.  We purchased and installed the two-sided add-on for duplex printing.  We do not need/want the ePrint capabilities/web services.  Web Direct is off.   Our local network traffic is very light - no games or movies.
    The 7610 is connected via our wireless router, and is extremely slow when printing.  It takes at least one minute to begin actually printing although the display inidicates it is printing so it is doing something. Once it begins to print, it prints all pages but pauses for 15-30 seconds after printing about 2/3 of the last page.  It finally flushes the buffer or whatever it is doing before it finishes printing and ejects the last page.  This happens when printing from any local application or from the web.  Our old reliable 7310 (hardwired to the router) prints smoothly and quickly. 
    We installed the driver from the CD shipped with the printer, and have also de-installed and then re-installed using the driver downloaded from the HP website so we believe the driver is current. 
    How can we eliminate the delay when it begins to print and eliminate the pause when it's almost finished?  Do we need to forget about the wireless connection and run a cable to the 7610?

    Hi HPuser59,
    Welcome to the HP Forums!
    I understand that you are getting slow printing with your HP Officejet 7610 printer on Windows 8.1, and I am happy to help you with this slow printing issue!
    Please take a look through this guide. Print Jobs are Stuck in the Print Queue.
    Hope to hear from you, and have a nice day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • Virtual Machines extemely slow to load on brand new server.

    We're about to put our first virtualized Windows 2012 Hyper-V server on a small business site. Everything went fine with the installation, but I've noticed that when loading up the virtual machines, the process takes hours... For example, I created a new
    virtual machine with 4GBs of RAM, and installed Windows 7 64-bit edition from an ISO file... It took about two hours. I deleted this virtual machine and tried to create another Windows 7 64-bit virtual machine, this time using the actual DVD and it was just
    as slow.. EVEN with all other VMs shut down... I have another test copy of Hyper-V for Windows 8 at home that I use for learning, so I tried installing the same Windows 7 64-bit ISO on this workstation and it installed in twenty minutes. And this is just a
    workstation. 
    The server is a HP Proliant ML350 server with 24GBs RAM. If anything I would have expected the server to install the Windows 64-bit VM in twenty minutes, NOT the workstation !! On the face of it the only differences between the two systems is: 
    a) The server has two 500GB SAS drives, which are mirrored. There is no mirroring on the Windows 8 workstation.
    b) The server had drive is partitioned in to a C: drive (for the host O/S) and a D: drive (for the virtual machines). There is only one partition on the Windows 8 workstation, which holds the operating system and the virtual machines. 
    Below is a graphic I drew up which I hope helps you visualise the hard drive setup. 
    This is a small site, so they wont pay for additional hard drives. Is there something about the way I have the disks set up that could cause the virtual machines to load slowly? Would it be better NOT to have two partitions on the host? 
    Thanks in advance for any advice offered. 

    It looks like you are trying to use 100% of your disk space.  Are the VHDs fixed size or dynamic?  How much free space is there on the host partition?  If the host partition is 80% full and you are using fixed VHDs, the system could be thrashing
    itself trying to find free space, and that free space can get highly fragmented meaning no large blocks for storing.  Generally a disk is considered 'full' when it is at about 80% utilization.  If you are using fixed VHDs, you have 80% utilization
    even before you take into consideration what the host needs.
    Partitions don't change performance characteristics.  You still have the same number of read/write heads sharing the processing of the same amount of data.  That's why multiple disks can improve performance - multiple read/write heads going against
    multiple data blocks.  So what you are describing has nothing to do with partitions versus no partitions.
    Have you run any other IO load tests to see if there is a hardware problem with the RAID controller?  That is not unheard of.  What you are seeing is completely atypical for your environment.  That's why I am wondering about hardware issues.
    .:|:.:|:. tim

  • I just upgraded to the latest version of Nightly and several websites are now inaccessable or extemely slow, what should I do?

    I have been using waterfox for the last year or so and decided to upgrade. I found that Nightly was a supported version for 64-bit systems, so I downloaded and installed it. Well, now several websites I accessed with waterfox do not work correctly or at all with nightly. For example: When I log into one of my cPanel accounts (actually most of them) and try to edit websites, I get no response. If I switch to IE or Chrome (which I would rather not) I can use them just fine. Also, several news websites or even social sites do not completely load and are very sluggish. I've cleared the cache and did the general housekeeping to clean stuff out but it still won't work right. What should I do? Does anyone have any suggestions?

    Unstable means it can vary in stability day by day as it can be crash prone to being stable. Features can be a work in progress for a while. The May 24 Nighty build was crash prone for a lot of testers for example.

  • Extemely slow.

    My digital editions will not move through a page or turn a page without taking minutes. I can not use it to read the books I downloaded. Is there a new version. I have Windows 8 with a new computer.

    Having a similar issue, I have been using the program for reading material in a class, and I payed about $60 for an ebook I cannot read because the load time on pages is so incredibly long. Help please?

  • Slow inserts

    We suddently started seeing some slow inserts on some test boxes. All boxes are on RedHat 5 and 10.2.0.1.
    We have a multi-tier web application conencting to the DB using connection pool and inserting about a 100000 records in a table. They first do a select, if not found then its an insert. So to take the other pieces out of the puzzle. I wrote a small plssql, which does a select and then does an insert based on some random data generated.
    When I ran this on my test system(db1) it ran about 37 sec, cpu usage was very low. When I ran this on the system that was reported to be slow(db2), it ran for about 30 minutes and CPU was pegged.
    Then I think we let this system and when I tried today, on the system (db2), it completed in about 35 sec. This was wierd. So I re-created the schema (dropped the user) and then ran the test, it was slow again and the CPU was pegged.
    So I thought well may be since the system was not touched (no inserts or any activity) the stats jobs ran, etc that could have been the reason. So ran stats on the database and the schema but no use, it was still slow.
    So then I ran the PL/SQL block on another system (db3) where the schema was created but no iserts or and activty on this box for atleast a few days. But then it was extemely slow in this box as well and cpu was pegged.
    All these boxes have the same table, indexes, they are all identical. Any reason why this could be happening and what else should I be looking for?
    SET timing on;
    DECLARE
       uname    NVARCHAR2 (60);
       primid   NVARCHAR2 (60);
       num      NUMBER;
    BEGIN
       FOR i IN 1 .. 100000
       LOOP
          uname := DBMS_RANDOM.STRING ('x', 20);
          primid := DBMS_RANDOM.STRING ('x', 30);
          DBMS_OUTPUT.put_line (uname || ' ==> ' || primid);
          SELECT   COUNT (*)
              INTO num
              FROM test
             WHERE (deldate IS NULL)
               AND id = 0
               AND (   primid = primid
                    OR UPPER (username) = uname
                    OR uiname = uname
          ORDER BY time DESC;
          INSERT INTO test
               VALUES (0, uname, uname, 1,
                       uname, primid
          IF MOD (i, 200) = 0
          THEN
             COMMIT;
             DBMS_OUTPUT.put_line ('Commited');
          END IF;
       END LOOP;
    END;
    /

    So I used
    execute sys.dbms_support.start_trace_in_session(175, 9629, waits=>true, binds=>false);
    Othere than a couple of these I don't see any other wait events, should I be looking for something else or am I doing the trace wrong. I think this is equivalent to what you suggested.
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      log file sync                                   1        0.00          0.00
      SQL*Net message to client                       2        0.00          0.00
      SQL*Net message from client                     1        0.00          0.00
    Elapsed times include waiting on following events:
      Event waited on                             Times   Max. Wait  Total Waited
      ----------------------------------------   Waited  ----------  ------------
      log file switch completion                      3        0.00          0.00

  • HT1175 I have OSX Lion 10.7.5 and the backup in time machine is extremely slow

    I have OSX 10.7.5 installed on my MacBook Pro and the backup to time machine is extemely slow.  Time Machine indicates 4 days or more.  Why?

    Did you happen to update early in the piece.. there is a supplement.
    http://support.apple.com/kb/DL1599
    Test regime for software patches is now left to end users it seems.

  • Very Slow Mac Mini / Decreasing Memory?

    Hi,
    Unfortunatly I'm having a problem with my Mac Mini. For an unknown reason my Mac Mini (Mac OS X 10.6, Snow Leopard) has been running extemely slow the last few days. I have reset the Mac a countless number of times now and done everything I can think of to fix the problem. I have noticed that occasionally the Mac will work fine for a few minutes, until suddenly the free space on my Macintosh HD will start to decrease. Roughly 1 or 2 GB of free space starts to disappear every few minutes. Please could someone offer me some help. I would be extremely greatful.
    Thanks a lot,
    Ant

    Thanks for the welcome.
    The only thing I am running is Finder. For the first 3-4 minutes though everything is fine, no matter what I run (e.g. Internet...). The problem only occurs when the Macintosh HD available free space starts to randomly decrease every few minutes.
    As requested the login items under my account:
    Not Hidden / Airport Base / Application
    Not Hidden / Limewire at Login / Application
    Hidden / iTunes Helper / Application
    Not Hidden / Off-Helper / Application
    Not Hidden / HPEventHandler (all users) / Application
    Not Hidden / HP Scheduler / Application

  • Toshiba Satellite L875d-s7230 Running Slow

    I have a Toshiba Satellite L875d-s7230 that is running very slow.  I completely recovered it back to the Factory out of Box state and its still extemely slow.  I have checked the memory using Memtest and checked the Hard Drive and there are no hardware issues that are showing up.  I have also checked it for rootkit Viruses and checked before and after the Factory recovery for viruses using Norton Interent Security 2013 and malwarebytes for Trojons/spyware. Of course it is a year and one month out of warrenty so I cannot get it repaired by Toshiba.  Please anyone have any suggestions?

    We don't know your tech knowledge so we start with basic info all these things can slow down a computer
    Have you ran disk clean up and disk defragment?
    Have you ran the chkdsk and sfc /scannow to check system files and disk errors?
    Is the laptops vents clean?
    If you recovered from the recovery partition it can also become corrupted and have errors - you may have to use your recovery DVD's.
    S70-ABT2N22 Windows 7 Pro & 8.1Pro, C55-A5180 Windows 8.1****Click on White “Kudos” STAR to say thanks!****

  • Database slow on startup

    Hi,
    I am a new administrator and am facing an issue with my Oracle 8.1.6 database.I have encountered a problem where somedays my Oracle becomes extemely slow after startup.Almost it goes into a hung kind of state wheneever any reports etc are accessed from the application.After waiting for abt half an hour or so everything goes back to normal.
    Has anyone faced a similar kind of problem .Has it got something to do with the recovery process taking place during startup.Can you please help me find a solution to this.
    Regards,
    Dinesh

    in order to be sure you may watch the operating system cpu, disk, memory and network load and catch the top consuming proceses - you can use sar iostat vmstat and netstat for unix -
    After match them from v$ views to find out the sql query, what they are waiting etc. - you can use this query to identify what is going on behind -
    -- who is doing what
    SELECT sq.sql_text,
    se.status,
    se.username,
    se.osuser,
    se.terminal,
    se.machine,
    'ALTER SYSTEM KILL SESSION ''' || se.sid || ', ' || se.serial# ||
    ''' IMMEDIATE ;',
    se.sid,
    se.serial#,
    pr.spid,
    se.saddr,
    se.schemaname,
    se.program,
    se.logon_time,
    sq.hash_value,
    sq.address,
    sq.buffer_gets,
    sq.disk_reads,
    sq.executions,
    sq.fetches,
    sq.rows_processed,
    io.block_gets,
    io.consistent_gets,
    io.physical_reads,
    io.block_changes,
    io.consistent_changes,
    se.module,
    se.action,
    se.client_info,
    sw.event,
    sw.p1text,
    sw.p1,
    sw.p2text,
    sw.p2,
    pr.pga_used_mem,
    pr.pga_alloc_mem,
    pr.pga_freeable_mem,
    pr.pga_max_mem,
    'exec dbms_support.start_trace_in_session(' || se.sid || ', ' || se.serial# || ', ' ||
    'waits => TRUE' || ', ' || 'binds => TRUE);',
    'exec dbms_support.stop_trace_in_session(' || se.sid || ', ' || se.serial# || ');'
    FROM v$session se, v$sqlarea sq, v$process pr, v$session_wait sw, v$sess_io io
    WHERE status IN ('ACTIVE', 'KILLED', ' INACTIVE', ' CACHED', ' SNIPED')
    AND se.sql_hash_value = sq.hash_value(+)
    AND se.sql_address = sq.address(+)
    AND se.paddr = pr.addr
    AND se.sid = sw.sid
    AND se.sid = io.sid
    ORDER BY sq.sql_text, se.username, se.schemaname, se.osuser, se.program, se.sid
    You need to match the top consumer os processes' id with the "pr.spid" column, then you might look at the other columns of that row for details.
    Also the database runs a number of jobs - backups, etc. these may be the problems.

  • Olympus TG-1 download very slow. Supported?

    Olympus TG-1 video download to iMovie 2011 is extemely slow.  I do not see the Olympus listed as a supported camera.  Can the download speed be improved?

    Can it connect via Firewire?
    iMovie 11 - cameras supported:
    http://help.apple.com/imovie/cameras/en/index.html?lang=en_US
    iMovie 9 - cameras supported:
    http://support.apple.com/kb/HT3290?viewlocale=en_US

  • New Safari version - browsing slow ?!

    Sorry for my english:
    Browsing in Safari is extemely slow sinds this afternoon. Pageloads take 20 - 30 sec. Beside that parts of pages are missing (not to bad though its partly content, but ususally the advertisements etc.)
    I've had an automatic software upgrade and it looks like I have the same O.S. (10.7.4.) but I think i have a newer browser version. I'm not sure though: it looks different (no seperate google bar anymore) and is called 6.0 (7536.25) - dont know what version i had before.
    I've reset Safari (sorry dutch version, I mean the function the function just under 'Privat Mode'). Didn't help.
    I would love the option to downgrade to 5.?. But couldn't find it on the site. Is this possible? Any other idea's.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. For instructions, launch the System Preferences application, select Help from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your personal files or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault in OS X 10.7 or later, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode* and log in to the account with the problem. The instructions provided by Apple are as follows:
    Be sure your Mac is shut down.
    Press the power button.
    Immediately after you hear the startup tone, hold the Shift key. The Shift key should be held as soon as possible after the startup tone, but not before the tone.
    Release the Shift key when you see the gray Apple icon and the progress indicator (looks like a spinning gear).
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including wireless networking on certain Macs.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    *Note: If FileVault is enabled under OS X 10.7 or later, or if a firmware password is set, you can’t boot in safe mode.
    Test while in safe mode. Same problem(s)?
    After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of steps 1 and 2.

  • N82 Extremly slow

    Started just a few days ago, when opening sms and GPS it frezzes and the Phone is extemly slow reseted the phone and installed new firmware. The strange thing is that if The sim card is not in it works great!? i have treid other sim cards but it the same with them.

    have you used up to much memory on the phone or the ,delete unwanted files and apps and see how you get on,also delete text messages from sent folder and inbox if you have over 2000 messages
    Message Edited by jimmyireland on 26-Apr-2009 09:31 PM
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Why is safari so slow with mountain lion?

    Every page that I load in safari is extemely slow after upgrading to mountain lion. I dont have any other applications and it takes way too long. I can open the same page on my PC much faster. I really hope Apple releases an update soon because this is terrible. Apple even promotes mountain lion as having faster speeds for safari (what a joke).

    Second MUYB wrote:
    It would be better if you explained what your program actually does - does it just do a dump of all user processes, does it check settings - what does it do that the built-in diagnostics or a list of command line instructions do not provide (that has as advantage that it's much more transparent what goes on)?
    It basically does the same thing as Apple > About this Mac > More Info > System Report, but consolidates the important parts into a concise report that is easily pasted here in the forums.
    After all, you are asking people to run an untrusted and probably unsigned program, so I'm actually happy they display a reluctance to do this.
    It is signed with my Developer ID. All you will get is the "downloaded app" warning from Mountain Lion with the default Gatekeeper settings that allow both App Store apps and Developer ID-signed apps like EtreCheck.
    I'm not saying you cannot be trusted - I merely observe that the reluctance to run an unknown program is not only understandable, but even commendable..
    And extraordinarily rare
    Here is the output from EtreCheck on my own machine:
    Hardware Information:
              MacBook Pro - model: MacBookPro8,1
              1 2.4 GHz Intel Core i5 CPU: 2 cores
              8 GB RAM
    Startup Items:
              HWNetMgr - Path: /Library/StartupItems/HWNetMgr
              HWPortDetect - Path: /Library/StartupItems/HWPortDetect
              StartOuc - Path: /Library/StartupItems/StartOuc
    System Software:
              OS X 10.8 (12A269) - Uptime: 11 days 15:0
    Disk Information:
              Hitachi HTS545050B9A302 disk0 : (500.11 GB)
                        disk0s1 (disk0s1) <not mounted>: 209.7 MB
                        Pandora (disk0s2) /: 499.25 GB (216.67 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              MATSHITADVD-R   UJ-8A8 
    USB Information:
              Apple Inc. FaceTime HD Camera (Built-in)
              Apple Inc. BRCM2070 Hub
                        Apple Inc. Bluetooth USB Host Controller
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
    FireWire Information:
    Kernel Extensions:
              com.google.filesystems.fusefs          Version: 2.1.9
    Problem System Launch Daemons:
                     [failed] com.apple.coresymbolicationd.plist
                     [failed] com.apple.emond.aslmanager.plist
    Problem System Launch Agents:
                     [failed] com.apple.afpstat.plist
                     [failed] com.apple.KerberosHelper.LKDCHelper.plist
                     [failed] com.apple.scopedbookmarkagent.xpc.plist
    Launch Daemons:
                     [loaded] com.bombich.ccc.plist
                     [loaded] com.microsoft.office.licensing.helper.plist
                     [loaded] com.mysql.mysql.plist
                     [loaded] com.parallels.desktop.launchdaemon.plist
                     [loaded] edu.washington.pop3.plist
                     [loaded] edu.washington.pop3s.plist
                     [loaded] org.macosforge.xquartz.privileged_startx.plist
    Launch Agents:
                     [loaded] com.parallels.desktop.launch.plist
                     [loaded] com.parallels.DesktopControlAgent.plist
                     [loaded] com.parallels.vm.prl_pcproxy.plist
                     [loaded] com.wacom.wacomtablet.plist
    User Launch Agents:
                     [loaded] com.c-command.SpamSieve.LaunchAgent.plist
                     [loaded] org.macosforge.xquartz.startx.plist
    User Login Items:
              None
    3rd Party Preference Panes:
              Apache
              Flash Player
              MacFUSE
              Macspoofer
              WacomTablet
    Internet Plug-ins:
              Flash Player.plugin
              FlashPlayer-10.6.plugin
              iPhotoPhotocast.plugin
              JavaAppletPlugin.plugin
              net.juniper.DSSafariExtensions.plugin
              QuickTime Plugin.plugin
              SharePointBrowserPlugin.plugin
              Silverlight.plugin
              WacomNetscape.plugin
    User Internet Plug-ins:
              WebEx.plugin
    Bad Fonts:
              None
    Top Processes:
              25.7  %          WebProcess
              7.3   %          pbs
              4.6   %          WindowServer
              2.4   %          coreservicesd
              1.7   %          EtreCheck
              1.6   %          Safari
              1.5   %          hidd
              0.3   %          mtmfs
              0.2   %          fontd
              0.2   %          prl_disp_service
    Message was edited by: etresoft to add my own EtreCheck output

Maybe you are looking for

  • Sorting Invoice line items after they've been summed

    Hi, I'm working on a template for the out-of-box invoice using the XML it generates. The body of the document contains the line items, and I've successfully been able to print and sum (net amount and tax) these line items by Item Description and Unit

  • I have converted a pdf to word. How can I access the Word file from my online account?

    I have converted a pdf to word. How can I access the Word file from my online account? When it says 'download the converted file' I choose a location on my PC and click, but nothing happens. It seems that it can only save the converted file to my onl

  • Wish list for the next release

    Some things I would love to see in the next release of Xcelsius: - Making the software more stabile/robust! - Being able to switch an existing chart from Line chart to bar chart etc., without having to manually create the object from scratch again (i

  • Slow access of our database

    We have a program that simulates the flow of time. For every "day" that the program simulates, we write some data that we generate into two different tables in the database using two different INSERT statements. In both cases, we place about 4 intege

  • Initialize a global with a global from another file

    hi, I know that initialization order for global variables across compilation units is not defined, but if I have file1.cpp   int x0 = 33, x1 = 55;   extern int y0, y1;   static int a[] = { y0, y1 };   void print_a( void ) { printf( "\na[0] = %d\na[1]