Professional Documents
Culture Documents
A logical unit is a device or application program by which an end user (an application
program, a terminal user, or an input/output mechanism) gains access to a SNA
network. ... To the network, a logical unit is the source of a request coming into the
network, although the logical unit might not be the original source.
Data is in a consistent state when a transaction starts and when it ends. For example,
in an application that transfers funds from one account to another, the consistency
property ensures that the total value of funds in both the accounts is the same at the start
and end of each transaction.
Consistency (or Correctness) in database systems refers to the requirement that any
given database transaction must change affected data only in allowed ways. Any data
written to the database must be valid according to all defined rules, including constraints,
cascades, triggers, and any combination thereof.
Data integrity refers to the overall accuracy, completeness, and reliability of data. It
can be specified by the lack of variation between two instances or consecutive updates of
a record, indicating that your information is error-free
6) What is database integrity with example?
Entity Integrity: In a database, there are columns, rows, and tables. ... For example, a
database of employees should have primary key data of their name and a specific
“employee number.” Referential Integrity: Foreign keys in a database is a second table
that can refer to a primary key table within the database
Atomicity: The term atomicity defines that the data remains atomic. It means if any
operation is performed on the data, either it should be performed or executed completely
or should not be executed at all. It further means that the operation should not break in
between or execute partially.
Isolation is the database-level property that controls how and when changes are
made, and if they become visible to each other, users, and systems. One of the goals of
isolation is to allow multiple transactions to occur at the same time without adversely
affecting the execution of each.
It is a set of work (T-SQL statements) that are executed together such as a single unit in
a specific logical order as a single unit. If statements are executed successfully then the
transaction is complete and then it is committed that saves the data in the database
permanently.
A transaction log is used to record the fact that a transaction is set to occur as well as
the information needed by the database server to recover the data back to a
consistent state in event of a sever failure while it is writing information to disk.
Inconsistent Retrievals:
The granularity of locks in a database refers to how much of the data is locked at one
time. In theory, a database server can lock as much as the entire database or as little as
one column of data.
A lock is a variable associated with a data item that describes the status of the item with
respect to possible operations that can be applied to it. It prevents access to a database
record by a second transaction until the first transaction has completed all of its actions.