RE: What is 2-Phase Commit and 3-Phase Commit in datab...
2-Phase commit
This protocol between the transaction manager and all the resources enlisted for a transaction ensures that either all the resource managers commit the transaction or they all abort.
In this protocol, when the application requests for committing the transaction, the transaction manager issues a prepare request to all the resource managers involved. Each of these resources may in turn send a reply indicating whether it is ready for commit or not. Only when all the resource managers are ready for a commit, does the transaction manager issue a commit request to all the resource managers. Otherwise, the transaction manager issues a rollback request and the transaction will be rolled back.
Latest Answer : In computing, an open system (computing) is a computer operating system that provides interoperability, portability or both, particularly Unix systems ...
I have a Web Server, Application Server, Servlet Engine, Database - all located on separate systems behind firewalls. How will you design an application using 3-tier architecture in this case ?
Latest Answer : 2-Phase commitThis protocol between the transaction manager and all the resources enlisted for a transaction ensures that either all the resource managers commit the transaction or they all abort. ...
Will the View get refreshed immediately when you update a database table. If it does not get refreshed immediately, what method you use to refresh it ?
Some websites will have hierarchical display of items. (For eg, on click of a + symbol, all items under this item gets listed.). How do you store such structure in database (Note: You can store as XML object. But how do you store in database tables without using XML) ?
Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
Performing XSLT Transformations inside the Database Now that you have the employees XSL stylesheet stored in the database and the xmlusr schema is permitted to access the hr employees table you can create a script that will instruct the database to build an HTML page based on the data stored in hr e
Moving All the XML Processing into the Database In the preceding example the database server performs only a part of the XML processing while the rest is still performed by the PHP engine Specifically the database server generates an employees XML document based on the records from the hr employees
Performing XML Processing inside the Database When building XML enabled applications on top of Oracle there are many advantages to performing the XML processing inside the database when compared to performing it on the client The key advantages to perform XML processing inside the database are as fo
Operational Database is the database-of-record, consisting of system-specific reference data and event data belonging to a transaction-update system. It may also contain system control data such as indicators, flags, and counters. The operational database is the source of data for the data warehouse
The Evolution of Database systems
File Management System
Hierarchical database System
Network Database System
Relational Database System
File Management System: The file management system also called as FMS in short is one in which all data is stored on a singl
Database Concurrency and Reliability Overview
Concurrency and reliability have long been “hot topics” of discussion among developers and users of distributed systems. The fundamental problem can be seen in a simple example, as follows.
Suppose two users are working on the same
Database Interaction
Efficient interaction, efficient storage, and efficient processing are the three key properties of a successful database platform. In this article, we explore the first: efficient interaction.
Interaction Category 1: Command Line Clients
Many database platforms are shipped with
Early Databases
In the 1960s, the System Development Corporation, one of the world’s first computer software companies and a significant military technology contractor, first used the term “data base” to describe a system to manage United States Air Force personnel. The