Are SQL 'tables' stored on memory or Hard-disk?

Hi,
I'm designing a servlet using JDBC & SQL.
I checked-out the Java.sun JDBC turoial "Coffee table" example, and decided to use the
rs = stmt.executeUpdate("CREATE TABLE MyStuff....");
I'm looking for a temoporary storage of small amt of data (~8 rows,4 colomns) prior to updation of a REAL Database.So, The customer could easily cancel the order at ant time durring the session.
Have I chosen the wrong method to accomplish this?
Thnaks.
Regards,
Nemo

hello aesh83,
I think you should use the transaction commit feature
of the JDBC for this.. by turning autocommit to OFF
, you can do the transactions and then control if the
change is to be actually done in the database or can
rollback This is trickier than you think.
You absolutely do NOT want to hold a database connection from web page to web page, because there can be infinitely long delays between the pages and you'll rapidly run out of connections.
The simple way to do this (simple in theory) is to store the temporary information in the HttpSession object in memory, and when the user goes to a "commit this" URL to tell you that they want to commit the transaction, insert the whole thing into the database in one shot.
You could get much fancier, of course. You could have a database-backed cart, and some mechanism for the customer to access previously-created carts (in case their browser session dies or they move to a different computer), and some way to "commit" a cart by creating the final transaction and removing the cart. You'll also need a way (maybe) to remove old, dead carts using a periodic maintenance operation.

Similar Messages

  • How to create a temp table in the memory, not in disk?

    in sql server, you can create a temp table in the memory instead of disk,
    then you can do the insert, delete,update and select on it.
    after finishing, just release it.
    in Oracle,
    I am wonderfing how to create a temp table in the memory, not in disk?
    thanks,

    Thanks for rectifying me Howard.
    I just read your full article on this too and its very well explained here:
    http://www.dizwell.com/prod/node/357
    Few lines from your article
    It is true, of course, that since Version 8.0 Oracle has provided the ability to create a Keep Pool in the Buffer Cache, which certainly sounds like it can do the job... especially since that word 'keep' is used again. But a keep pool is merely a segregated part of the buffer cache, into which you direct blocks from particular tables (by creating them, or altering them, with the BUFFER POOL KEEP clause). So you can tuck the blocks from such tables out of the way, into their own part of the buffer cache... but that is not the same thing as guaranteeing they'll stay there. If you over-populate the Keep Pool, then its LRU mechanism will kick in and age its contents out just as efficiently as an unsegregated buffer cache would.
    Functionally, therefore, there can be no guarantees. The best you can do is create a sufficiently large Keep Pool, and then choose the tables that will use it with care such that they don’t swamp themselves, and start causing each other to age out back to disk.
    Thanks and Regards

  • Problem with Photoshop CS5. Memory and Hard disk space Mac OSX

    Just got CS5 Master Suite.  Whenever I open photoshop it takes a ton of memory 1 gig +. When I open  files it takes up more and more until it takes up all my memory and hard  disk space. I open a simple multi layered file that is 25 megs in size  to work on it. Before I know it photoshop is taking 20gigs+ of my hard  disk space along with 3+ gigs of system memory. Is there a memory  problem in photoshop cs5?
    Thanks!
    Joseph
    UPDATE:
    So I just opened the 25 meg file  in photoshop cs5 and watched my free space on my hard drive go down 8  gigs the instant I opened it. It went from 27 gigs of freespace to 19  instantly. As I open more files and close others it works till my harddrive goes to zero space... stalls the computer big time. Only way to correct it is to quit photoshop cs5 and wait a few minutes for the space to return... and it takes a few minutes for it all to return.
    I am running a Macbook Pro with OSX 10.6., 4 gigs of ram on board.
    anyone else having simular problems?

    http://forums.adobe.com/thread/681490?tstart=0
    Maybe this thread offers some information.
    And have you perused this page?
    http://kb2.adobe.com/cps/404/kb404440.html

  • Will the HP M602n printer support non-volati​le memory or hard disk?

    We would like to know if the M602n supports a non-volatile memory device of some sort; like a flash DIMM. We do not want a hard drive. Currently we use an HP 4050n printer with the flash DIMM and are looking to replace the printer.
    We print checks with the 4050 and need to have the same type of platform. We will use either WebJet Admin 8.1 or get the new version 10.3 only if 10.3 can allow us to specify where to store the macros and fonts.
    We understand that the memory device may or may not be a flash DIMM but it needs to serve the same purpose.
    What would you suggest?
    Can you point us to any documentation on the M602n that would describe the use and installation of such a device? 
    Finally, if the M602n will not do what we need can you recommend a different model?

    The best place to research your answers would be on the m602n product page for this printer. There are several documents that may answer your specific questions. For example, there is a paper on Secure Volalite Storage, features, specifications. Look under discover and use your product.
    For the hard drive questions, this is from the hp.com shopping page:
    Memory, standard:
    512 MB Memory, maximum: 1 GB Hard disk:
    None
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution

  • Where are the tables stored in Portal?

    I am trying to find where the tables are typically located in portal so I can generate the following reports on our portal website.
    1) Report on all pages of the portal website, having the following information about each page:
    * Web page url
    * last revised by whom
    * date of last revision
    * content owner/contact of that page
    2) Group-wise list of all current publishers and approvers of the portal website, segregated on the basis of groups.
    Can anyone let me know where the tables are typically stored?
    Thanks,

    I dont think there is any single table that would have information that you are looking for, but you may check wwv_pages$ for some info on the pages.
    Better, however, would be to query the wwsbr_ views. Please see this [link for content management|http://download.oracle.com/docs/cd/B14099_19/portal.1014/b14135/pdg_cm_api.htm#CHDDGEIF] to get details of these views. These views are based on several portal tables and have a lot of info based on user privileges. So you may wanna set your context as portal user if you are querying from toad or sql-plus, etc. Again, the chapters around the link I mentioned above, should help you setup the context if you wonder how to do it.
    i think you can query most of the info that you are looking for through these.
    thanks!
    AMN

  • What are the tables storing data of tcode FB60

    Hi Friends
    Can anybody tell me in which tables transaction data for transaction code FB60 are stored.
    Thanks for your support.
    Regards
    KTK

    Hi,
    Tables are probably :
    BKFP ( Accounting Document Header )
    BSEG ( Accounting Document Segment )
    <b>!</b> both contains a lots of data !
    Hope this helps,
    Erwan

  • Tables stored in memory but may be accessed from other sessions

    Dear Oracle experts,
    it may be a stupid question but I'm searching for the best possibility to create a kind of temporary table which may be accessed from other sessions.
    Could you provide some hints/ catchwords to speed up my recherches.
    Thank you very much,
    Daniel

    danielwetzler wrote:
    danielwetzler wrote:
    I fear that the caching is not suitable for my case because of the reasons decribed in my other postings...First of all I don't think that you need to worry about the effectiveness of the caching in your particular case. In addition Oracle is very clever at when to actually write the dirty blocks from the buffer cache to the disks, so if your amount of data written to the result table is fairly small and no other activity is going on your system it won't get written to disk immediately anyway but stay in memory until any of the conditions are met that trigger the database writer to flush the blocks to disk.
    But there are options you could consider if you want to avoid as much of the overhead as possible and to write the results of your calculation to the result table as fast as possible.
    You could use direct-path inserts (INSERT /*+ APPEND */) and set the result table to "NOLOGGING". This way no undo and minimum redo is generated.
    Note however that there are certain caveats and restrictions to consider when using such an approach, e.g. your result table won't be recoverable (which you say is OK), only one direct-path insert is allowed simultaneously (it blocks the table exclusively, no other DML possible until you commit/rollback the transaction), and the direct-path insert has some restrictions. If any of these apply that prevent the direct-path operation then it silently falls back to "conventional" insert mode which generates undo and redo. One of the more annoying restrictions is that you can't read from a table that has been written to in direct-path mode within the same transaction, you first have to commit the transaction, otherwise you get "ORA-12838: cannot read/modify an object after modifying it in parallel". This means by simply adding the APPEND hint you might break existing logic.
    Finally the direct-path insert never re-uses free space in blocks below the current high-water mark, which means if you perform a direct-path insert and afterwards delete rows from the table and repeat again a direct-path insert operation your segment will grow and the empty space in the already used blocks won't get re-used. Best way would be to truncate the table rather than deleting rows from it.
    There are workarounds available to overcome some of these direct-path insert limitations (exclusive lock, truncate instead of delete etc.), like using a partitioned table (if you have a suitable edition/license), because direct-path inserts can be restricted to partitions. In this case you can do simultaneous direct-path inserts if you use different partitions, but you need then some kind of logic that determines which partition to use.
    Regards,
    Randolf
    Oracle related stuff blog:
    http://oracle-randolf.blogspot.com/
    SQLTools++ for Oracle (Open source Oracle GUI for Windows):
    http://www.sqltools-plusplus.org:7676/
    http://sourceforge.net/projects/sqlt-pp/

  • Files are not getting stored in memory card

    mine is lumia 620,i have chosen the mem.card option to save photos and music files.But the files i download are stored in phone memory ,not in memory card although the files are shown in mem.card it shows error while i try to play it in computer.

    hi mate, is your memory card a Class 10 memory card or corrupt? you only need Class 2 or Class 4 memory cards. It would also pay to scan the memory card thru Windows Explorer to see if there are any file system errors, else you can try formatting the memory card on PC and then formatting it on the phone itself.
    as precaution, try performing a soft reset on your 620, and also ensure that you are up to date with the latest firmware and Nokia system app updates from the Store.

  • WAS640&SAPDB: Where are the tables stored?

    Hello,
    I've deployed an SDA file from a dictionary project. Now I try to find the tables of this dictionary using SQL Studio. Can somebody tell me where to find the tables?
    Thanks,
    Christian

    Hi Christian,
    well, the tables normally have the same name(s) you defined in the dictionary project (starting with TMP_ by default).
    The properties you use for connecting to the DB is critical, since you have to login with the user who "owns" the tables:
    Server: Your hostname
    Database: J2E
    User: SAPJ2EDB
    Password: ?? You defined it during installation.
    Database name and User are default, if you defined other names, you must of course use these.
    Hope that helps.
    Regards
    Stefan

  • I have a MBP with service center for last 21 days. The issue is device doesn't boot up. They are replacing part by part logic board, hard disk, wires and still they need more time. No confidence over there service wing. How to get MBP replacement?

    I submitted my MBP 2012 model to service center on
    1. August 12: They reinstalled OS. Took it back on 13th evening
    2. August 14: They did some hardware check and reinstalled OS. Took it back on 20th evening
    3. August 21: Stil with service center, they are investigating
    What service they are providing.
    Very bad experience with apple.

    After august 21:
    They changed logic borad and told me that HDD is fine.
    After few days I called back they told me HDD is faulty.
    I do not know rather they do not know what is the issue.
    Thats why I want complete replacement of MBP.
    Then they say about policies.
    I want to get MBP replaced, as the warranty has expired on 28th.
    I do not know whether they can resolve issue or not
    The super advisors from apple team are also co-ordinating still it is taking too long.
    So my question is I need a repacement, How to get it?

  • Global Temp Table or PL/SQL Table

    I am trying to determine if this can be done only using PL/SQL table. If not, will the usage of the global temp table affects the performance.
    Here is the situation,
    I have a data block that is based on a stored procedure. This stored procedure will return table of records from different database tables with join conditions. Some of the fields within the table of records will not have data returned from database tables. They will be the fields displayed on the form and the data will be entered by user.
    For example:
    Records will look like:
    Id          (will be populated by procedure)
    Hist_avg     (will be populated by procedure)
    My_avg     (will be used as field on the form so that user can enter their own avg)
    Cheked     (will be populated by procedure)
    My questions are:
    1.     Is this doable in form using a data block based on PL/SQL table?
    2.     Will users be able to manipulate (update) the data that based on the PL/SQL table in the memory as they wish and invoke the procedure to update the underlying table when clicking on a button (Update Avg)?
    3.     What is the advantage of using PL/SQL table and global temp table from database and form point of views?
    Any info is appreciated.

    Hi there...
    Here is the Reference...
    http://asktom.oracle.com/pls/ask/f?p=4950:8:2939484874961025998::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:604830985638
    Best Regards...
    Muhammad Waseem Haroon

  • Where are the photos stored on the computer?

    When I used the camera software to import my photos, the photos wind up in the Pictures folder. But the photos in iPhoto are nowhere to be found on my hard disk. Where are they except in the program itself?

    By default, the photos are stored in the iPhoto Library in your Pictures Folder.
    With iPhoto 7 (iLife 08) the old iPhoto Library Folder is now a Package File. This is simply a folder that looks like a file in the Finder. The change was made to the format of the iPhoto library because many users were inadvertently corrupting their library by browsing through it with other software or making changes in it themselves.
    Want to see inside? Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Standard Warning: Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    Want to access your files?
    There are many, many ways to access your files in iPhoto:
    *For Users of 10.5 and later*
    You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    *For users of 10.4 and later* ...
    Many internet sites such as Flickr and SmugMug have plug-ins for accessing the iPhoto Library. If the site you want to use doesn’t then some, one or any of these will also work:
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. However, if you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    *If you want to access the files with iPhoto not running*:
    For users of 10.6 and later:
    You can download a free Services component from MacOSXAutomation which will give you access to the iPhoto Library from your Services Menu. Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and later:
    Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    Regards
    TD

  • Regarding hard disk memory

    Can the memory of hard disk reduce? My hard disk capacity is 500 GB . It is showing 400 GB in windows and 20 GB in ubuntu . Is the remaining memory lost?
    prudhvi

    Hello prudhvi,
    Based on the screenshot, the capacity is seemed right.
    About the hard drive actually capacity, it is recommended to contact the manufacturer.
    Thanks for your understanding.
    Best regards,
    Fangzhou CHEN
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Pavilion dv6-1125es - Hard Disk problem

    I have an HP Pavilion dv6-1125es (out of warranty) with Vista Home Premium (32 bit) that runs very slowly and freezes but this does not seem to be caused by malware. I was considering reinstalling but decided to run diagnostics first. In the System Diagnostics (Setup), the Start-up Test (F2) finds no problem in the Memory Test, Hard Disk Quick Test or Hard Disk SMART Test.
    In the System Diagnostics Hard Disk Test (F4), the Quick Test indicates Passed (100%) but the Full Test shows:
    - 00% Complete
    -‘Replace Hard Disk1’(in red) followed by ‘testing’ (in white)
    The SMART check indicates Passed
    On pressing Esc to continue, the next screen shows (in blue)
    - “Hard Disk Test” Failed
    - “Hard Disk 1 FULL” (305)
    The Diagnostic Log shows Result: 0305
    I would be grateful for help with the following points:
    1) Is the ‘0305’ error unfixable? Does it mean replacing the hard disk?
    2) The current disk is 320 Gb. What is capacity limit for this model dv6-1125es?
    3) If I install Windows 7 on the new disk, can the 64 bit version be used on this model?
    4) As this laptop has also been running hot, I would like to try to clean the fan and ventilation system. Where can I find instructions on this?
    Thanks in advance for your help.
    This question was solved.
    View Solution.

    Hi,
    To answer your questions.
    1.  The 305 error does mean you will need to replace the Hard Drive.
    2.  You can certainly go up to a 500Gb HDD without any problems - see the procedure starting on Page 69 of your Maintenance & Service Guide.
    3.  Yes, your processor is 64bit capable - see Here for confirmation of this.
    4.  There are instructions for cleaning your notebooks air vents Here.
    Best regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • I-Pod Touch connect to portal Hard Disk

    Hi,there,
    I am a person with lots of pictures. It is almost everyday I'll have new pictures. Most of my pictures are stored in a portal hard disk. I have to turn on the computer and make sure portal HD using the same drive name and then I could syn pictures to i-pod touch. Say the truth, it is kind of scaring. If my portal HD doesn't catch the right drive, my i-pod touch will just crush.
    Do anyone has the same experience but have a better idea than mine? Thank you in advance.

    Does the iPod connect to other networks?
    Does the iPod see the network?
    Any error messages?
    Do other devices now connect?
    Did the iPod connect before?
    Try the following to rule out a software problem:                 
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Power off and then back on the router
    - Reset network settings: Settings>General>Reset>Reset Network Settings
    - iOS: Troubleshooting Wi-Fi networks and connections
    - Wi-Fi: Unable to connect to an 802.11n Wi-Fi network
    - iOS: Recommended settings for Wi-Fi routers and access points
    - Restore from backup. See:
    iOS: How to back up
    - Restore to factory settings/new iOS device.
    If still problem make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
    Apple Retail Store - Genius Bar

Maybe you are looking for