DBMS Notes
DBMS Notes
Redundancy is controlled.
Unauthorised access is restricted.
Providing multiple user interfaces.
Enforcing integrity constraints.
Providing backup and recovery.
1. Physical level: The lowest level of abstraction describes how data are
stored.
1. Entity Integrity: States that "Primary key cannot have NULL value"
2. Referential Integrity: States that "Foreign Key can be either a NULL
value or should be Primary Key value of other relation.
8. What is extension and intension?
The collections of entities of a particular entity type are grouped together into
an entity set.
20. What is Weak Entity set?
An entity set may not have sufficient attributes to form a primary key, and its
primary key compromises of its partial key and primary key of its parent
entity, then it is said to be Weak Entity set.
21. What is an attribute?
It is a particular property, which describes the entity.
22. What is a Relation Schema and a Relation?
A relation Schema denoted by R(A1, A2, ..., An) is made up of the relation
name R and the list of attributes Ai that it contains. A relation is defined as a
set of tuples. Let r be the relation which contains set tuples (t1, t2, t3, ...,
tn). Each tuple is an ordered list of n-values t=(v1,v2, ..., vn).
23. What is degree of a Relation?
It is the number of attribute of its relation schema.
24. What is Relationship?
It is an association among two or more entities.
25. What is Relationship set?
The collection (or set) of similar relationships.
26. What is Relationship type?
Relationship type defines a set of associations or a relationship set among a
given set of entity types.
27. What is degree of Relationship type?
It is the number of entity type participating.
28. What is DDL (Data Definition Language)?
A data base schema is specifies by a set of definitions expressed by a special
language called DDL.
29. What is VDL (View Definition Language)?
4.
5.
53. What is indexing and what are the different kinds of indexing?
Indexing is a technique for determining how quickly specific data can be
found.
Types:
1.
2.
3.
4.
5.
1. Atomicity: Either all actions are carried out or none are. Users should
not have to worry about the effect of incomplete transactions. DBMS
ensures this by undoing the actions of incomplete transactions.
2. Aggregation: A concept which is used to model a relationship
between a collection of entities and relationships. It is used when we
need to express a relationship among relationships.
58. What is a Phantom Deadlock?
In distributed deadlock detection, the delay in propagating local information
might cause the deadlock detection algorithms to identify deadlocks that do
not really exist. Such situations are called phantom deadlocks and they lead
to unnecessary aborts.
59. What is a checkpoint and When does it occur?
A Checkpoint is like a snapshot of the DBMS state. By taking checkpoints, the
DBMS can reduce the amount of work to be done during restart in the event
of subsequent crashes.
60. What are the different phases of transaction?
Different phases are
1.) Analysis phase,
2.) Redo Phase,
3.) Undo phase.
61. What do you mean by flat file database?
It is a database in which there are no programs or user access languages. It
has no cross-file capabilities but is user-friendly and provides user-interface
management.
62. What is "transparent DBMS"?
It is one, which keeps its Physical Structure hidden from user.
63. What is a query?
A query with respect to DBMS relates to user commands that are used to
interact with a data base. The query language can be classified into data
definition language and data manipulation language.
64. What do you mean by Correlated subquery?
for concurrent resource usage; dispatches and schedules user requests; and
manages space usage within its table-space structures.
70. Name the sub-systems of a RDBMS.
I/O, Security, Language Processing, Process Control, Storage Management,
Logging and Recovery, Distribution Control, Transaction Control, Memory
Management, Lock Management.
71. Which part of the RDBMS takes care of the data dictionary? How?
Data dictionary is a set of tables and database objects that is stored in a
special area of the database and maintained exclusively by the kernel.
72. What is the job of the information stored in data-dictionary?
The information in the data dictionary validates the existence of the objects,
provides access to them, and maps the actual physical storage location.
73. How do you communicate with an RDBMS?
You communicate with an RDBMS using Structured Query Language (SQL).
74. Define SQL and state the differences between SQL and other
conventional programming Languages.
SQL is a nonprocedural language that is designed specifically for data access
operations on normalized relational database structures. The primary
difference between SQL and other conventional programming languages is
that SQL statements specify what data operations should be performed
rather than how to perform them.
75. Name the three major set of files on disk that compose a
database in Oracle.
There are three major sets of files on disk that compose a database. All the
files are binary. These are
1.) Database files
2.) Control files
3.) Redo logs
The most important of these are the database files where the actual data
resides. The control files and the redo logs support the functioning of the
architecture itself. All three sets of files must be present, open, and available
to Oracle for any data on the database to be useable. Without these files, you
cannot access the database, and the database administrator might have to
recover some or all of the database using a backup, if there is one.
76. What is database Trigger?
A database trigger is a PL/SQL block that can defined to automatically
execute for insert, update, and delete statements against a table. The trigger
can e defined to execute once for the entire statement or once for every row
that is inserted, updated, or deleted. For any one table, there are twelve
events for which you can define database triggers. A database trigger can
call database procedures that are also written in PL/SQL.
77. What are stored-procedures? And what are the advantages of
using them?
Stored procedures are database objects that perform a user defined
operation. A stored procedure can have a set of compound SQL statements.
A stored procedure executes the SQL commands and returns the result to the
client. Stored procedures are used to reduce network traffic.
78. What is Storage Manager?
It is a program module that provides the interface between the low-level data
stored in database, application programs and queries submitted to the
system.
79. What is Buffer Manager?
It is a program module, which is responsible for fetching data from disk
storage into main memory and deciding what data to be cache in memory.
80. What is Transaction Manager?
It is a program module, which ensures that database, remains in a consistent
state despite system failures and concurrent transaction execution proceeds
without conflicting.
81. What is File Manager?
It is a program module, which manages the allocation of space on disk
storage and data structure used to represent information stored on a disk.
82. What is Authorization and Integrity manager?
It is the program module, which tests for the satisfaction of integrity
constraint and checks the authority of user to access data.
1. Cold Backup: It is copying the three sets of files (database files, redo
logs, and control file) when the instance is shut down. This is a
straight file copy, usually from the disk directly to tape. You must shut
down the instance to guarantee a consistent copy. If a cold backup is
performed, the only option available in the event of data file loss is
restoring all the files from the latest backup. All work performed on the
database since the last backup is lost.
2. Hot Backup: Some sites (such as worldwide airline reservations
systems) cannot shut down the database while making a backup copy
of the files. The cold backup is not an available option.
86. What is meant by Proactive, Retroactive and Simultaneous
Update.
Pierce Hall, but also the fact that he has $200 left in his security deposit. An
insertion anomaly happens when we encounter the restriction that we cannot
insert a fact about one entity until we have an additional fact about another
entity. For example, we want to store the fact that the security deposit for
Pierce Hall is $300, but we cannot enter this data into the Student relation
until a student registers for Pierce Hall.
15. What does it mean when we say that a relation is in Boyce-Codd
Normal Form (BCNF)?
A relation is in BCNF when every determinant in the relation is a candidate
key. This means that any possible primary key can determine all other
attributes in the relation. Attributes may not be determined by non-candidate
key attributes or part of a composite candidate key. Thus it is said "I swear
to construct my tables so that all nonkey columns are dependent on the key,
the whole key and nothing but the key, so help me Codd!"
16. You have been given a set of tables with data and asked to create
a new database to store them. When you examine the data values in
the tables, what are you looking for?
(1) Multivalued dependencies, (2) Functional dependencies, (3) Candidate
keys, (4) Primary keys and (5) Foreign keys.
17. Why do normalized tables require more complex SQL when SQL
statements are used in application programs?
Tables that are normalized contain data that has been distributed among the
tables, but which may need to be recombined to answer queries from an
application. To recombine the data, the programmer will have to use
subqueries and/or joins. These SQL structures are more complex to write
than a simple SELECT statement.
18. What is the multivalue, multicolumn problem? Include an
example not used in the text.
The multivalue, multicolumn problem occurs when a table is designed to
include multiple columns that hold variations of one type of attribute data.
One example is where boat owners have the names of their boats stored as
BOAT_01, BOAT_02 and BOAT_03.
19. Why is the multivalue, multicolumn problem another form of the
multivalued dependency problem?
Both problems try to store multiple values on an attribute in a table. In the
multivalue, multiplecolumn problem, the multiple values are stored in
different columns. In the mutlivalued dependency problem the multiple
values are stored in different rows. In both cases, the solution is the same:
store the multiple values in a separate table.
20. What is the inconsistent values problem? Include an example not
used in the text.
The inconsistent values problem occurs when different users or data sources
use slightly different forms of the same data value. One example is where
automobiles are specified as "Ford, 2-door, Red" in one cell and "Red Ford 2door" in another.
21. Explain the relationship between entity, entity class, and entity
instance.
An entity is something that can be identified in the users' work environment,
something that the users want to track. Entities of a given type are grouped
into entity classes. An entity instance is the representation of a particular
entity.
22. Explain the difference between attributes and identifiers.
Entities have attributes. Attributes are properties that describe the entity's
characteristics. Entity instances have identifiers. Identifiers are attributes
that name, or identify, entity instances.
23. Name and describe three types of binary relationships.
1:1 - a single entity instance of one type is related to a single-entity instance
of another type.
1:N - a single entity instance of one type is related to many-entity instances
of another type.
M:N - many-entity instances of one type relate to many-entity instances of
another type.
24. What is the archtetype/instance pattern?
The archetype/instance pattern occurs when one entity tracks occurrences of
another entity. A common example is the relationship between CLASS and
SECTION, where the actual occurrence of a class happens when students
register for a SECTION of that CLASS. The archetype/instance pattern is
implemented as an ID-dependent relationship.
25. What is a recursive relationship? Give an example not used in the
text.
is changed -- that is, updated -- the value of the foreign key must
immediately be changed to match it. Cascading updates will set this change
to be done automatically by the DBMS whenever necessary.
31. What is a SQL view? Briefly explain the use of views.
A SQL view is a virtual table built from other tables or views. Views are used
to (1) hide columns or rows, (2) show the results of computed columns, (3)
hide complicated SQL syntax, (4) layer built-in functions, (5) provide a level
of indirection between application programs and tables, (6) assign different
sets of processing permissions to tables, and (7) to assign different sets of
triggers to the same table.
32. Explain the "paradigm mismatch" between SQL and application
programming languages.
SQL statements return a set of rows, while an application program works on
one row at a time. To resolve this mismatch the results of SQL statements
are processed as pseudofiles, using a cursor or pointer to specify which row
is being processed.
33. Name four applications for triggers.
(1) providing default values, (2) enforcing data constraints, (3) updating
views and (4) enforcing referential integrity
34. What are stored procedures, and how do they differ from
triggers?
A stored procedure is a program that is stored within the database and is
compiled when used. They can receive input parameters and they can return
results. Unlike triggers, their scope is database-wide; they can be used by
any process that has permission to use the database stored procedure.
35. What are the advantages of using stored procedures?
The advantages of stored procedures are (1) greater security, (2) decreased
network traffic, (3) the fact that SQL can be optimized and (4) code sharing
which leads to less work, standardized processing, and specialization among
developers.
36. Why is database redesign necessary?
Database redesign is necessary for two reasons. First, redesign is necessary
both to fix mistakes made during the initial database design. Second,
redesign is necessary to adapt the database to changes in system
requirements. Such changes are common because information systems and
organizations do not just influence each other they create each other. Thus,
new information systems cause changes in systems requirements.
37. What is the difference between a correlated subquery and a
regular subquery?
A correlated subquery appears deceptively similar to a regular subquery. The
difference is that a regular subquery can be processed from the bottom up.
In a regular subquery, results from the lowest query can be determined and
used to evaluate the upper-level query. In contrast, in a correlated subquery,
the processing is nested; that is, a row from an upper query statement is
used in comparison with rows in a lower level query. The key distinction of a
correlated subquery is that the lower-level select statements use columns
from upper-level statements.
38. What is a dependency graph?
A dependency graph is a diagram that is used to portray the connections
between database elements. For example, a change in a table can potentially
impact relationships, views, indexes, triggers, stored procedures, and
application programs. These impacts need to be known and accounted for
before making database changes.
39. Explain how to add a NOT NULL column to a table.
First, add the column as NULL. Then use UPDATE to add data to every row.
Finally use an ALTER TABLE . . . ALTER COLUMN statement to change the
column constraint to NOT NULL.
40. You have two tables, EMPLOYEE and COMPUTER that are in a oneto-one relationship. The foreign key is EmpNumber in COMPUTER
which references EmpNumber as the primary key of EMPLOYEE.
Explain what must be done to convert the one-to-one EMPLOYEECOMPUTER relationship to a one-to-many relationship where one
employee can have more than one computer.
In the one-to-one relationship, there will be a constraint on EmpNumber as a
foreign key in COMPUTER stating that EmpNumber must be unique. To
convert the relationship to a one-to-many relationship, just drop this
constraint.
41. Explain the difference between an exclusive lock and a shared
lock.
An exclusive lock prohibits other users from reading the locked resource; a
shared lock allows other users to read the locked resource, but they cannot
update it.
used for purposes other than the surrogate key, some values will be missing.
A second problem is that there is nothing in the schema that prevents
someone from issuing an INSERT statement that adds data to the table but
that does not use the sequence. Finally, it is possible to use the wrong
sequence when putting data into a table.
48. Under what conditions should indexes be used?
Indexes can be created to enforce uniqueness, to facilitate sorting, and to
enable fast retrieval by column values. A good candidate for an index is a
column that is frequently used with equal conditions in WHERE clauses.
49. Explain the three levels of transaction isolation supported by
Oracle.
Oracle supports read committed, serializable, and read-only transaction
isolation levels. Because of the way Oracle System Change Number (SCN)
values are processed, Oracle never reads dirty data. Serializable isolation is
possible, but the application program must be written to process the "Cannot
serialize" exception. Applications can place locks explicitly using SELECT FOR
UPDATE commands but this is not recommended.
50. What are the types of files used in Oracle recovery?
Datafiles, control files and two types of ReDo log files: OnLine Redo and
Offline ReDo (which is also known as Archive ReDo).
51. What is the difference between SQL Server 2000 complete and
differential backups?
A complete backup makes a copy of the entire database. A differential
backup makes a copy of the changes that have been made to the database
since the last complete backup. A complete backup must be made before the
first differential backup. Because differential backups are faster, they can be
taken more frequently and the chance of data loss is reduced. Complete
backups take longer but are slightly simpler to use for recovery.
52. Explain the meaning of each of the transaction levels supported
by SQL Server.
The strictest isolation level is SERIALIZABLE. With it, SQL Server places a
range lock on the rows that have been read. This level is the most expensive
to use and should only be used when absolutely required. The next most
restrictive level is REPEATABLE READ, which means SQL Server places and
holds locks on all rows that are read. It is possible to make dirty reads by
setting the isolation level to READ UNCOMMITTED, which is the least
restrictive level. READ COMMITTED is the default isolation level.
53. Explain the difference between the SQL Server 2000 simple, full,
and bulk-logged recovery models.
With the simple recovery model, no logging is done. The only way to recover
a database is to restore the database to the last backup. With full recovery,
all database changes are logged. With bulk-logged database recovery, all
changes are logged except those that cause large log entries.
54. What is the difference between SQL Server 2000 clustered and
nonclustered indexes?
With a clustered index, the data are stored in the bottom level of the index
and in the same order as that index. With a nonclustered index, the bottom
level of an index does not contain data; it contains pointers to the data. For
data retrieval, clustered indexes are faster than nonclustered indexes.
55. What triggers does SQL Server 2000 support?
SQL Server 2000 supports INSTEAD OF and AFTER triggers only. There is no
SQL Server support for BEFORE triggers. A table may have one or more
AFTER triggers for insert, update and delete actions; AFTER triggers may not
be assigned to views. A view or table may have at most one INSTEAD OF
trigger for each triggering action of insert, update or delete.
56. What is the relationship of ODBC, OLE DB, and ADO?
Developed first, the ODBC standard is for relational databases; while the OLE
DB standard provides functionality for both relational and other databases.
Finally, ADO was developed to provide easier access to OLE DB data for the
non-object-oriented programmer.
57. What are the three types of data sources used with ODBC?
An ODBC file data source is a file that can be shared among database users.
A ODBC system data source is one that is local to a single computer. A ODBC
user data source is only available to the user who created it.
58. What disadvantage of ODBC does OLE DB overcome?
By breaking the features and the functions of a DBMS into COM objects, OLE
DB characteristic overcomes a major disadvantage of ODBC. With ODBC, a
vendor must create an ODBC driver for almost all DBMS features and
functions in order to participate in ODBC at all. This is a large task that
requires a substantial initial investment. With OLE DB, however, a DBMS
vendor can implement portions of their product.
59. What are to goals of OLE DB?
The major goals of OLE DB are to: (1) Create object interfaces for DBMS
functionality pieces; (2) Increase flexibility for developers and users; (3)
provide an object interface over any type of data; and (4) do not force data
to be converted or moved from where it is.
60. In OLE DB, what is the difference between an interface and an
implementation?
An OLE DB interface is specified by a set of objects, and the properties and
methods that they expose, and OLE DB defines standardized interfaces. An
object need not expose all of its properties and methods in a given interface.
An OLE DB implementation defines how the object supports the interface.
The implementation is completely hidden from the user. Thus developers of
an object are free to change the implementation whenever they want, but
they should not change the interface without consulting their users.
61. Why is XML a better markup language than HTML?
XML is a better markup language than HTML, primarily because XML provides
a clear separation between document structure, content, and materialization.
Symbols cannot be used ambiguously with XML.
62. What are the two means to describe the content of XML
documents?
DTD (Document Type Declarations) and XML Schemas. An XML document
that conforms to its DTD is called type-valid. A document can be well-formed
and not be type-valid, either because it violates the structure of its DTD or
because it has no DTD. However, DTDs have limitations and to overcome
these limits XML Schemas were created. XML Schemas are XML documents
that are the preferred method for defining document structure.
63. What is the difference between simple elements and
complexType elements?
Simple elements have only one data value. ComplexType elements can have
multiple elements nested within them. ComplexTypes may also have
attributes. The elements contained in a complexType may be simple or other
complexTypes. ComplexTypes may also define element sequences.
64. What is ADO.NET?
ADO.NET is a new, improved, and greatly expanded version of ADO that was
developed for the Microsoft .NET initiative. ADO.NET incorporates all of the
functionality of ADO, but adds much more. In particular, ADO.NET facilitates
the transformation of XML documents to and from database data. Most
importantly, ADO.NET introduces the concept of datasets, which are inmemory, full-function, independent databases.
65. What is a dataset?
A dataset is an in-memory database that is disconnected from any regular
database, but has all the important characteristics of a regular database.
Datasets can have multiple tables, relationships, referential integrity rules,
referential integrity actions, views and the equivalent of triggers. Datasets
are needed to provide a standardized, non-proprietary means to process
database views. They are especially important for the processing of views
with multiple multivalued paths.
66. Briefly describe the four JDBC driver types that Sun defines.
Type 1 drivers provide a bridge between Java and ODBC. Types 2-4 drivers
are written entirely in Java, but differ as to how they connect to the DBMS.
Type 2 drivers rely on the DBMS product for intermachine communication, if
any. Type 3 drivers translate JDBC calls into a DBMS-independent network
protocol. Type 4 drivers translate JDBC calls into a DBMS-dependent network
protocol.
67. What is the difference between a Java servlet and a Java applet?
An applet is a compiled Java bytecode program that is transmitted to a
browser via HTTP and is invoked using the HTTP protocol on the user's
workstation. A servlet is a Java program that is invoked on the server to
respond to HTTP requests.
68. What is the coding pattern for using a JDBC driver?
1. Load the driver.
2. Establish a connection to the database.
3. Create a statement.
4. Do something with the statement.
69. What is a Java bean?
A Java bean is a Java class that has the following three properties. (1) There
are no public instance variables. (2) All persistent values are accessed using
methods named getxxx and setxxx. (3) The bean class must either have no
constructors or it must have one explicitly defined zero-argument
constructor.
Market basket analysis is a data mining technique that determines which sets
of products tend to be purchased together. A common technique uses
conditional probabilities. In addition to the basic probability that an item will
be purchased, three results are of particular interest:
Support -- the probability of two items being purchased together.
Confidence -- the probability of a second item being purchased GIVEN that
another item has been purchased.
Lift -- calculated as confidence divided by a basic probability, this shows the
likelihood of a second item being purchased IF an item is purchased.
76. Explain the differences between structured data and
unstructured data.
Structured data are facts concerning objects and events. The most important
structured data are numeric, character, and dates. Structured data are stored
in tabular form. Unstructured data are multimedia data such as documents,
photographs, maps, images, sound, and video clips. Unstructured data are
most commonly found on Web servers and Web-enabled databases.
77. Explain why it is still necessary to have at least some familiarity
with file processing systems even though it has become evident that
traditional file processing systems have a number of shortcomings
and limitations.
Many businesses still use file processing systems today. This is especially true
in the creation of backups for a database system. In addition, if you
understand some of the limitations of a file processing system such as
program-data dependence, duplication of data, limited data sharing, lengthy
development times, and excessive program maintenance, you can try and
avoid them as you design and develop a databases.
78. What are some of the disadvantages associated with
conventional file processing systems?
There are five disadvantages. Program-data dependence occurs when file
descriptions need to be changed in all programs whenever a file description
changes. Duplication of data is storing the data more than one time. Limited
data sharing occurs when the files are private so no one outside of one
application can access the data. Lengthy development times exist because
file processing systems takes longer to develop. Lastly, excessive program
maintenance exists since the effort to maintain a program is larger in this
environment.
you can see the before and after values through time. Without a time stamp,
you will most likely lose some of the history.
91. Explain the difference between total specialization and partial
specialization.
Total specialization exists when every instance of a supertype must also be
an instance of a subtype. Partial specialization exists when every instance of
a supertype does not have to be an instance of a subtype.
92. Explain the difference between an ERD and EER.
An EER includes everything in an ERD and an EER allows for more complex
relationships than an ERD. An EER allows for object-oriented data modeling
and include supertypes and subtypes entities and inheritance.
93. Explain the difference between the disjoint and overlap rule.
The disjoint rule states an entity instance of a supertype can only be a
member of one subtype. The overlap rule states an entity instance of a
supertype can be a member of multiple subtypes.
94. List the three types of business rules and define each of them.
A derivation is a statement that is derived from other knowledge. A
structured assertion is a statement that expresses some aspect of the static
structure of an organization. An action assertion is a statement of a
constraint on the actions of an organization.
95. Explain how a scenario is used for business rules.
A scenario is used to test business rules. It is a short script that describes
how a business reacts to certain situations.
96. Explain some of the main goals of normalization.
Normalization should minimize data redundancy. It should also simplify
referential integrity constraints. Normalization will also make it easier to
insert, update, and delete data. And finally, it provides better design.
97. List some of the properties of a relation.
Relations in a database have a unique name and no multivalued attributes
exist. Each row is unique and each attribute within a relation has a unique
name. The sequence of both columns and rows is irrelevant.
is the process of generating SQL on the fly. The statements generated do not
have to be the same each time.
116. Explain the difference between two and three-tier architectures.
A three-tier architecture includes a client and two server layers. The
application code is stored on the application server and the database is
stored on the database server. A two-tier architecture includes a client and
one server layer. The database is stored on the database server.
117. Describe and contrast SQL and QBE.
QBE is a direct-manipulation database language that uses a graphical
approach to query construction. Some database systems translate QBE
queries into SQL. QBE does not adhere to a standard but SQL does. Both SQL
and QBE are relational database languages.
118. Describe ODBC
ODBC is a standard that contains an interface that provides a common
language for application programs to access and process SQL databases. In
order to use ODBC, a driver, server name, database name, user id, and
password are required. ODBC is important for Internet applications and has
gained wide acceptance.
119. Compare a thin and a fat client.
A fat client is a PC that is responsible where most processing occurs on the
client rather than the server. Some of the fat client activities include
processing, presentation logic, and business rules logic. A thin client is a PC
where only limited processing occurs. In these cases, more processing should
occur on the application server.
120. Describe some reasons that someone familiar with Microsoft
Access will want to learn VBA.
You can perform more complex functions and error handling can be
accommodated by VBA. VBA code will execute faster since code runs faster
than macros and maintenance is easier because VBA modules are stored with
the forms and reports. Reading VBA is easier because you can see the entire
code. Finally, you can pass parameters and use OLE automation better.
121. Describe middleware applications that ease the connection of
databases to Web applications.
Both ASP and ColdFusion are middleware that ease the connection of
databases to Web applications. Both require the use of several files. Both use
tags and are executed on the server. Both Internet Explorer and Netscape
can access these files. The programmer does not need to be concerned with
the client when they work with this middleware.
122. Describe JavaScript and VBScript.
JavaScript shares many features with Java. Developers use it to achieve
interactivity. JavaScript is an open language and does not require a license. It
is supported by both Internet Explorer and Netscape. VBScript is similar to
JavaScript. It is based on Visual Basic but is simpler. Microsoft developed this
language.
123. Describe Web Services.
Web Services are improving the ability of computers to communicate over
the Internet. These services use XML programs and usually run in the
background. Easier integration of applications may be possible because
developers do not need to be familiar with the technical details with
applications that are being integrated. UDDI is a technical specification for
creating a distributed registry of Web services and businesses that are open
to communicating through Web services.
124. Provide an overview of XML.
XML is used to structure and manipulate data involved with a browser and is
becoming the standard for e-commerce. XML uses tags that are similar to
HTML in that they use the angle brackets, but XML describes the content
whereas HTML describes the appearance. The XML schema standard was
published in May 2001 by W3C.
125. Describe Website security issues.
Website security issues include unauthorized access to the several aspects of
one's Website. Security measures should include all aspects of the system
such as the network, operating level, database, and Web server. Regular
monitoring and security testing by a company should help to avoid intrusion
into one's system.
126. Explain the role of metadata for the three-layer architecture.
Each of the three layers has a metadata layer linked with it. The metadata
layer describes the properties or characteristics of the data. The operational
metadata describe the data used in the various operational and external
systems. The enterprise data warehouse metadata describe the reconciled
data layer. The data mart metadata describes the derived data layer.
One of the features includes the use of views which allows the presentation
of only data needed by someone and limits the capability of database
updates. The use of integrity controls includes such things as domains,
assertions, and checks. Also authorization rules, user-defined procedures,
encryption, authentication schemes, and backups are important.
133. Describe concurrency control.
Concurrency control is the process managing simultaneous operations
against a database so that database integrity is not compromised. There are
two approaches to concurrency control. The pessimistic approach involves
locking and the optimistic approach involves versioning.
134. Explain locking.
Locking is denying others the ability to update a record until someone
completes the update or releases the record. Locking can occur on many
different levels in a database. It can occur at the database, table, record, or
field level. A lock can be shared (another can read the record while an update
is in progress) or exclusive (no one can read the record while an update is in
progress).
135. Explain issues for database performance.
The installation of the database is an important issue since the better the
installation, the better the performance could be. Memory usage is learning
how the DBMS uses main memory and then using that knowledge to enable
better performance. I/O is usually very intense in a DB, so understanding
how users will use the data will help to prepare the database better. CPU
usage and application tuning are also important considerations.
136. Describe the difference between homogeneous and
heterogeneous distributed database.
A homogenous database is one that uses the same DBMS at each node.
Either each node can work independently or a central DBMS may coordinate
database activities. A heterogeneous database is one that may have a
different DBMS at each node. It may support some or all of the functionality
of one logical database. It may support full Distributed DBMS functionality or
partial Distributed DBMS functionality.
137. What is a distributed database?
A distributed database is a single logical database that is spread across more
than one node or locations that are all connected via some communication
link. It requires multiple DBMSs, running at each remote site. A distributed