![]() In such cases, we can follow any one the following steps so that data in the primary memory are not lost. What happens if the primary memory crashes? All the data in the primary memory is lost and we cannot recover the database. Fetching the record from primary memory is always faster than secondary memory. When a query is fired, the database first fetches in the primary memory for the data, if it does not exist there, then it moves to the secondary memory to fetch the record. It stores all the recent transactions and the results too. ![]() ![]() Primary memory storage devices – RAM is a volatile memory which stores disk buffer, active logs, and other related data of a database. In a computer system we have primary and secondary memory storage. This is because, in case of any crash and data loss, data can be recovered from other copies. In this case, copies of same non volatile memories are stored at different places. Stable Memory: – This is said to be third form of memory structure but it is same as non volatile memory.these memories are designed to withstand system crashes. E.g.: – Flash memory, hard disk, magnetic tapes etc. Non-Volatile memory: – These are secondary memories and are huge in size, but slow in processing.these memories cannot endure system crashes- data in these memories will be lost on failure. These memories can store only small amount of data, but they are very fast. Volatile Memory: – These are the primary memory devices in the system, and are placed along with the CPU.It is mainly divided into two categories: Storage structure is the memory structure in the system. There are two methods of creating this log files and updating the database.We can recover the database in two methods:.We can conclude from above example that.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |