Sei sulla pagina 1di 31

CS 1006 ADVANCED DATABASES

S6 CSE
-prepared by J.E.Judith,Lect/CSE

UNIT-1
2 Marks
1. Define Distributed Database.
A logically interrelated collection of shared data (and a description of this data)
physically distributed over a computer network.

2. Define Distributed DBMS.


The software system that permits the management of the distributed database and

m
makes the distribution transparent to users.

.co
3. Define Distributed processing.
A centralized database that can be accessed over a computer network.

4. Define Parallel DBMS. a N


A DBMS running across multiple processors and disks that is designed to execute
av
operations in parallel, whenever possible, in order to improve performance.
n

5. What are the main architectures for parallel DBMS ?


aa

Shared Memory
Shared Disk
.M

Shared nothing

6. What is Homogeneous and Heterogeneous DDBMS ?


w

In Homogeneous system, all sites use the same DBMS product. In Heterogeneous
system, sites may run different DBMS products.
w
w

7. Define Global Conceptual Schema.


Global Conceptual Schema (GCS) is a logical description of the whole database,
as if it were not distributed. It contains definitions of entities, relationships, constraints,
security and integrity information. It provides physical data independence from the
distributed environment.

8. What are the types of Fragmentation?


The two types of fragmentation are
1. Horizontal fragmentation: subset of tuples.
2. Vertical fragmentation: subset of attributes.

9. What are the objectives of definition and allocation of fragments?


The main objectives are:
Locality of reference.
Improved reliability and availability
Acceptable performance
Balanced storage capacities and cost
Minimal communication costs.

10. What are the four alternative strategies regarding placement of data?
The four alternative strategies regarding placement of data are:
Centralized
Fragmented(partitioned)
Complete replication
Selective replication

11. What are the rules that have to be followed during fragmentation?
The three correctness rules are:

m
o Completeness: ensure no loss of data
o Reconstruction: ensure Functional dependency preservation

.co
o Disjoint ness: ensure minimal data redundancy.

N
12. What are the objectives of concurrency control?
o To be resistant to site and communication failure.
a
o To permit parallelism to satisfy performance requirements.
av
o To place few constraints on the structure of atomic actions.
n

13. What is multiple-copy consistency problem?


aa

It is a problem that occurs when there is more than one copy of data item in
different locations and when the changes are made only in some copies not in all copies.
.M

14. What are the two approaches in distributed environment?


Locking
w

Timestamp
Locking guarantees that the concurrent execution is equivalent to some
w

unpredictable serial execution of those transactions.


w

Timestamp guarantees that the concurrent execution is equivalent to specific


serial execution of those transactions, corresponding to the order of timestamps.

15. What are the types of Locking protocols?


o Centralized 2 phase locking
o Primary 2 phase locking
o Distributed 2 phase locking
o Majority locking

16. What are the failures in distributed DBMS?


The loss of message
The failure of a communication link
The failure of a site
Network partitioning

17. Define coordinator and participant.


Every global transaction has one site that acts as the coordinator (or transaction
manager) for that transaction, which is generally the site at which the transaction was
initiated. Sites at which the global transaction has agents are called participants (or
resource managers).

18. Define unilateral abort.


If a participant votes to abort, then it is free to abort the transaction immediately;
in fact any site is free to abort a transaction at any time up until it votes to commit. This
type of abort is known as unilateral abort.

19. Give the states of the coordinator


The four states of the coordinator are:

m
o INITIAL
o WAITING

.co
o DECIDED
o COMPLETED

20. Define Pessimistic protocols. a N


Pessimistic protocols choose consistency of the database over availability and
av
hence do not allow transactions to execute in a partition if there is no guarantee that
consistency can be maintained. The protocol uses pessimistic control algorithm.
n
aa

21. What is replication?


The process of generating and reproducing multiples copies of data at one or more
.M

sites is called replication.

22. What are synchronous and asynchronous replications?


w

In synchronous replication the replicated data is updated immediately when the


source data is updated. This is done by using 2PC protocol. In asynchronous replication
w

the target data is updated after the source database has been modified. The delay in
w

regaining consistency may range from a few seconds to several hours or even days.

23. What is data ownership? What are the types of ownership?


Data ownership relates to which site has the privilege to update the data. The
main types of ownership are master/slave, workflow, and update-anywhere.

24. What are the implementation issues in data replication?


The main implementation issues are
Transactional updates
Snapshots and database triggers
Conflict detection and resolution

25. What are the mechanisms proposed for conflict resolution?


The mechanisms proposed for conflict resolution are
o Earliest and latest timestamps
o Site priority
o Additive and average updates
o Minimum and maximum values
o User defined
o Hold for manual resolution

26. What is generic relational algebra tree?


The relational algebra tree formed by applying the reconstruction algorithm is
known as the is generic relational algebra tree.

27. What are the Benefits of replication?


Replication provides a number of benefits, including improved performance,
increased reliability & data availability, and support for mobile computing & data

m
warehousing.

.co
28. What are the types of replication?
Read-only snapshots

N
Updateable snapshots
Multimaster replication a
procedural replication
av
29. Define Snapshot logs.
n

A snapshot log is a table that keeps track of changes to a master table. A snapshot
aa

log can be created using the CREATE SNAPSHOT LOG statement.


.M

30. Define database links.


Database links define a communication path from one Oracle database to another
database.
w
w

16 Marks
w

1. Explain Distributed Relational Database design in detail.


· Objectives of data allocation and fragmentation
· Data Allocation:
§ Strategic Objectives: Centralized, Fragmented, Complete
Replication, Selective Replication.
· Fragmentation:
§ Need for fragmentation
§ Correctness of fragmentation
§ Types of fragmentation

2. Explain about Transparencies in a DDBMS.


Distribution transparency
§ Fragmentation transparency
§ Location transparency
§ Replication transparency
§ Local mapping transparency
§ Naming transparency
Transaction transparency
Concurrency transparency
Failure transparency
Performance transparency
DBMS transparency.

3. Explain the Functions and Architecture of a DDBMS.


Functions of DDBMS
§ Extended communication services
§ Extended system catalog

m
§ Distributed Query processing
§ Extended security control

.co
§ Extended concurrency control
§ Extended recovery services

N
Reference Architecture for DDBMS
Global conceptual schema a
Fragmentation and Allocation Schemas
av
Local Schemas
Refer FIGURE: 22.4 / Pg no. 702
n

Reference Architecture for Federated MDBS


aa

Refer FIGURE: 22.5 / Pg no. 703


Component Architecture for DDBMS
.M

§ Local DBMS component (LDBMS)


§ Data Communication component (DC)
§ Global System Catalog (GSC)
w

§ Distributed DBMS component (DDBMS)


Refer FIGURE: 22.6 / Pg no. 704
w
w

4. Explain in detail the recovery techniques in distributed databases.


Failures in a distributed environment
How failures affect recovery
Distributed recover protocols
Two-phase commit (2PC)
Termination protocols
Recovery protocols
Election protocols
Communication topologies for 2PC
Three-phase commit (3PC)
Network partitioning

5. Discuss about the X/Open Distributed Transaction Processing model.


· X/Open established the Distributed Transaction Processing (DTP)
working group with the objective of fostering appropriate programming
interface for Transaction Processing.
· X/Open interfaces with diagram
· Transaction Manager
· Resource Manager
· Procedures of TX interface
· X/Open interfaces in a distributed environment

6. Explain about distributed query optimization.


Query optimization.
Techniques in query optimization
Distributed query transformations
Reconstruction Algorithms

m
Generic relational algebra tree
Reduction techniques for various types of fragmentation

.co
Distributed joins.

7. Explain Distributed Deadlock Management.

N
What is Deadlock?
What is Deadlock Management? a
Deadlock Detection.
av
Diagram for Distributed Deadlock.
Types of Deadlock Detection.
n

Centralized
aa

Hierarchical
Distributed
.M

Explain with Fig. 23.4 & fig.23.5 in Pg no. 739 & 740

UNIT 2
w

2 marks
w

1. List the applications of Advanced Database?


w

Some of the applications are:


Ø Computer-aided Design
Ø Computer-aided Manufacturing
Ø Computer-aided Engineering
Ø Network Management Systems
Ø Office Information Systems
Ø Digital Publishing
Ø Geographic Information System
Ø Interactive and Dynamic Websites

2.Define Transitive closure.


The Transitive closure of a relation R with attributes (A1 , A 2 ) defined on the
same domain is the relation R augmented with all tuples successively deduced by
transitivity; that is , if (a, b) and (b, c) are tuples of R, the tuple (a, c) is also added to the
result.

3. Define Object?
A uniquely identifiable entity that contains both the attributes that describe the
state of a ‘real world’ object and the actions that are associated with it.

4. Define Inheritance, Generalization and Specialization?


Inheritance allows one class to be defined as a special case of more general cases.
These special cases are known as subclasses and the more general cases are known as
super classes. Process of forming a super class is known as Generalization and the
process of forming the subclass is specialization.

5.Define OODM, OODB, OODBMS.


OODM: - A logical data model that captures the semantics of objects supported in

m
object-oriented programming.
OODB: - A persistent and sharable collection of objects defined by an OODM.

.co
OODBMS: - The manager of an OODB.

N
6.Define Pointer swizzling & mention its classification.
The action of converting object identifiers to main memory pointers and back
a
again. Its aim is to optimize access to objects. It can be classified as
av
Ø Copy versus in-place swizzling
Ø Eager versus lazy swizzling
n

Ø Direct versus indirect swizzling


aa

7. What is meant by Version Management ?


.M

The Process of maintaining the evolution of objects is known as


Version Management. An Object version represents an identifiable state of an object.
w

8. What are the mandatory features proposed by Object Oriented Database System
Manifesto that apply to object-oriented characteristic?
w

The following rules apply to OO characteristic :


w

· Complex objects must be supported


· Object identity must be supported.
· Encapsulation must be supported.
· Types or classes must be supported.
· Types or classes must be able to inherit from their ancestors.
· Dynamic binding must be supported.
· The DML can be computationally complete.
· The set of data types must be extensible.

9. Define the object oriented request broker (ORB).


The ORB handles distribution of messages between application objects in a
highly inter-operable manner. In effect, the ORB is a distributed ‘software bus’ that
enables objects to make and receive requests and responses from a provider.
10.What is meant by Postgres?
Postgres, an early Object-Relational DBMS, is a research system from the
designers of INGRES that attempts to extend the relational model with abstract data
types, procedures and rules.

11.What are the objectives of Postgres ?


The objectives are:
1. to provide better support for complex object.
2. to provide user extensibility for job data types, operators and access methods.
3. to provide active database facilities (alerters and triggers ) and inferencing
support.
4. to simplify the DBMS code for crash recovery.
5. to produce a design that can take advantage of optical disks, multiple-
processor work-stations and custom – designed VLSI chips.

m
5. to make as few changes as possible to the relational model.

.co
12. How the declaration of a relation is being made in Postgres?
A relation in Postgres is declared using the following command.

N
CREATE TableName (columnName 1 = type 1, columnName 1 = type 2, ....)
[KEY (list of ColumnNames)] a
[INHERITS (list of TableNames)]
av
13. Define CORBA.
n

The Common Object Request Broker Architecture (CORBA) defines the


aa

architecture of ORB-based environments. This architecture is the basis of any OMG


component , defining the parts that form the ORB and its associated structures.
.M

14.Define Reachability-based and Allocation-based persistence.


Reachability-based persistence means that an object will persist if it is reachable
w

from a persistent root object.


Allocation-based persistence means that an object is made persistent only if it is
w

explicitly declared as such within the application program.


w

15. What are the major components of ODMG architecture for an OODBMS?
1.Object model (OM)
2.Object definition language (ODL)
3.Object query language (OQL)
4.C++, Java and Smalltalk language bindings

16.What are the features which are supported by ODMG?


Ø Concurrent execution
Ø Distributed transaction
Ø Versioning
Ø Event notification
Ø Internationalization
17. Explain about Wisconsin benchmark?
It is an earliest DBMS benchmark. It was developed to allow comparison of
particular dbms. It consists of a set of tests as a single user covering :
Ø updates and deletes involving both key and non key attributes.
Ø projectons involving different degrees of duplication in the attribute and
selections with different selectives on indexed, on- index, and clustered
attributes .
Ø Joins with different selectives;
Ø Aggregate functions

18. What is meant by Interface Repository?


An interface repository that stores persistent IDL( Interface Definition Language)
definitions. The interface repository can be queried by a client application to obtain a
description of all the registered object interface, the methods they support, the parameters

m
they require, and the exceptions that may arise.

.co
19. Define Repeated Inheritance, Selective Inheritance .
Repeated Inheritance: It is a special case of multiple inheritances, in which the

N
super classes inherit from a common super class.
Selective Inheritance: It allows a subclass to inherit a limited number of properties
a
from the super class.
av
20. Mention the characteristics of objects?
n

· structure
aa

· identifier
· name
.M

· lifetime

16 marks:
w
w

1.a) Explain the weakness of RDBMS?


Hints:
w

· Poor representation of real world entities.


· Semantic Overloading
· Poor support for integrity and enterprise constraints
· Homogenous data structure
· Limited operations
· Difficulty in handling recursive query
· Impedance Mismatch
· Other problems with RDBMS

1.b) Compare ORDBMS and OODBMS.


Hints :
The comparison is made on three prespectives
Data modelling
Data access
Data sharing

2. Explain Object oriented Concepts in database and storing objects in Relational


Database.
Hints:
Concepts:
§ Abstraction, Encapsulation, Information Hiding.
§ Objects and Attributes
§ Object Identity
§ Methods and Messages
§ Classes
§ Subclasses, Superclasses, Inheritance
§ Overriding and Overloading
§ Polymorphism and Dynamic Binding

m
§ Complex Objects

.co
Storing objects in Relational Database:
v Mapping Classes to Relations

N
v Accessing Objects in the Relational Database
v Explain with e.g. a
av
3. Explain about issues in OODBMS.
Hints:
n

3 problematic areas for RDBMS


aa

a) Long duration transaction


b) Versions
.M

§ transient versions
§ Working versions
§ Released version
w

c) Schema Evolution.
i) typical changes to the schema.
w

ii) specify all the rules. Of four different groups


w

· the resolution of conflicts caused by multiple inheritance


and the redefinition of attributes and methods in a
subclass.
· The propagation of modifications to subclasses
· The aggregation and deletion of inheritance relationships
between classes and creation and removal of classes.
· Handling of composite objects.

Architecture:
1.Client-Server:
· Object server
· Page server
· Database server
2.Storing and executing methods:
Benchmarking:
· Wisconsin benchmark
· TPC-A and TCP-B
· TPC-C
· Other benchmark
· OO1 benchmark
· OO7 benchmark

4. Explain briefly on Object Oriented DBMSs-Standards and Systems.


· Object Management Group
The common object request broker architecture
· Object Data standards ODMG 3.0,1999
Object Data management group

m
The Object model
The Object Definition Language

.co
The Object Query Langage

5.Explain the advantages and disadvantages of OODBMS.

N
Advantages :
· Enriched modeling capabilities a
av
· Extensibility
· Removal of impedence mismatch
n

· More expensive query language


· Support for schema evolution
aa

· Support for long-duration transactions


· Applicability to advanced db applns.
.M

· Improved performance
Disadvantages:
w

· Lack of universal data model


· Lack of experience
w

· Lack of stds
w

· Competition
· Query optimization compromises encapsulation
· Locking at object level may impact performance
· Complexity
· Lack of support for views
· Lack of support for security

UNIT 3
2 Marks
1.What is meant by Internet,Intranets,and Extranets?
v Internet
A world wide collection of interconnected computer networks.
v Intranet
A website or group of sites belonging to an organization accessible only by the
members of the organization.
v Extranet
An Intranet that is partially accessible to authorized outsiders.

2.What is meant by E-Commerce and E-Business?


v E-Commerce
Customers can place and pay for orders via the business website.
v E-Business
Complete integration of internet technology into the economic intrastructure of the
business.

3.What is meant by world wide web?

m
A hypermedia based system that provide a means of browsing information on the
internet in a non-sequential way using hyperlinks.

.co
4.What is meant by HTTP and HTML?

N
v HTTP
The protocol used to transfer web pages through the internet.
a
v HTML
av
The document formatting language used to design most web pages.
n

5.What is meant by URL?


aa

A string of alphanumeric characters that represents the location or address of a


resource on the internet and that resource should be accessed
.M

6.Give any five requirements for Web-DBMS integration


§ The ability to access valuable corporate data in a secure manner.
w

§ Support for transaction that spans multiple HTTP requests


§ Support for session and application-based authentication
w

§ Acceptable performance
w

§ Minimal administration overhead


7.Give advantages of 3-tier over 2-tier design
§ The need for less expensive hardware because the client is ‘thin’.
§ Application maintenance is centralized with the transfer of the
business logic for many end- users into a single application server.This
eliminates the concerns of software distribution that are problematic
in the traditional two-tier client-server model.
§ The added modularity makes makes it easier to modify or replace one
tier without affecting the other tiers.
§ Load balancing is easier with the separation of the core business logic
from the database functions.

8.Define Perl and PHP


Perl stands for Practical Extraction and Report Language and is a high-
level interpreted programming language with extensive,easy-to-use text processing
capabilities.
PHP stands for Hypertext Preprocessor and is a open source HTML-
embedded scripting language that is supported by many Web servers including Apache
HTTP server and Microsoft’s Internet Information Server,and is preferred Linux Web
Scripting language.

9.Compare JavaScript and Java applets


Java Script Java (applets)
1. Interpreted by client Compiled on server before execution
on client
2. Object-based. Code uses built- in, Object-oriented. Applets consist of
extensible objects, but no classes or object classes with inheritance
inheritance

m
3. Code integrated with, and embedded in, Applets distinct from HTML

.co
HTML.
4. Variable data types not declared Variable data types must be declared

N
Dynamic binding. Object references Static binding. Object references must
5. checked at runtime. exist at compile-time.
a
6. Cannot automatically write to hard disk. Cannot automatically write to hard
av
disk.
n

10.Define CGI
aa

CGI means Common Gateway Interface .It is a specification for transferring


the information between a web server and a CGI program.
.M

11.Define URL
URL stands for Uniform Resource Locator. The string of numeric character
w

that represents the location or address of a resource on the Internet and how that resource
w

should be accessed.
w

12.Define MIME
MIME stands for Multipurpose Internet Mail Extensions. MIME specification
to allow the browser to differentiate between components. This allows a browser to
display a graphics file, but to save a ZIP file to disk.

13.List any four advantages of CGI


§ Simplicity
§ Language independence
§ Web server independence
§ Wide acceptance

14.List any three weakness of CGI


§ Bottle neck
§ Lack of efficiency and transaction support.
§ Server has to generate new process or thread for each CGI script

15. Define cookies


A cookie is a piece of information that the client stores on behalf of the server.
The information stores in these cookies comes from the server as a part of the server’s
response to an HTTP request. A client may have a number of cookies associated with a
particular Web page or Web site. Each time the client that visits that site, the browser
packages the cookie with the HTTP request. Cookies are used to make CGI more
interactive.

16. Limitations of CGI


Limitations are in performance and the handling of shared resources. The server
needs to execute a gateway program, and communicate with it using some Inter-Process
communication(IPC) mechanism. This request causes heavy burden on the server.

m
17. What do you mean by API?

.co
Application Programming Interface(API) adds functionality to the server or
changes server behavior and customizes the heavy burden on the server. Such additions

N
also called non-CGI gateways.

18. What are the two main types of API?


a
av
* Netscape server API (NSAPI)
* Microsoft’s Internet Information Server API (ISAPI)
n
aa

19.Define iAS and the versions of iAS?


Oracle Internet Application Server (iAS) is a reliable,scalable,secure,middle_tier
.M

application server that is designed to support e_business.It provides a set of services for
assembling a complete,scalable middle_tier infrastructure.
iAS is available in three versions:
w

Ø Standard Edition
Ø Enterprise Edition
w

Ø Wireless Edition
w

20.Define the various HTTP server modules?


In addition to the combined Apache HTTP server, Oracle has enhanced Oracle
specific ones:
They are
§ Mod_ssl
§ Mod_plsql
§ Mod_perl
§ Mod_jserv
§ Mod_ose

21.What are the various Business logic services?


Business logic supports the application logic and include:
v Oracle BC4J (Business Components for Java)
v Oracle JVM
v Oracle PLSQL
v Oracle Forms

22.What are the various presentation Services?


These services deliever dynamic content to client browsers, supporting
servlets, JSP, Perl/CGI Script, PL/SQL pages, forms and business intelligence:
ü Apache Jserv
ü OracleJSP
ü Oracle PSP (PL/SQL Server pages)
ü Perl Interpreter
ü
23.Define Semistructured Data and its importance?
Data that may be irregular or incomplete and have a structure that may change

m
rapidly or unpredictably.
Importance:

.co
i. It may be desirable to treat web sources like a database ,but we cannot constraint
these sources with a schema;

24. Define J2ME, J2SE & J2EE a N


J2ME : Java 2 Platform, Micro edition. This is aimed at embedded & consumer
av
electronics platform. This consists of only the API’s that are required for embedded
application.
n

J2SE : Java 2 platform standard edition. This is aimed at typical desktop and
aa

workstation environment. This is equivalent to java 2 platform ( JDK 1.2)


J2EE : Java 2 platform, Enterprise Edition. This is aimed at robust, scalable,
.M

multi- user and secure enterprise applications.

25. Name the EJB ( Enterprise Java Beans) components


w

The EJB components are:-


* EJB session Beans
w

* EJB Entity Beans


w

The entity Beans are of two types


Bean- Managed persistence (BMP) entity beans
Container- Managed persistence (CMP) Entity beans

26. Define SQLJ


A consortium of organization oracle. IBM & Jan dim specified proposed a
specification for java with static embedded SQL and this is called SQLJ

27. Servlets
Servlets are programs that run on a java-enables web server and built web pages.
These are java servelts. Their extensive features are-
Improved Performance
Portability
Extensibility
Simpler session management
Improved security & reliability

28. Java server pages


JSP is a java based server side scripting language that allows static HTML to be
mixed with dynamically generated HTML.

16 Marks
1.Discuss briefly about THE WEB?
i).Definition of WWW.
ii).Hyper Text Transfer Protocol
Ø Definition of HTTP
Ø Stages of HTTP

m
ü Connection
ü Request

.co
ü Response
ü Close

N
Ø Multi Purpose Internet Mail Extension
ü Definition of MIME a
ü Use of MIME
av
ü Type
ü Subtype
n

ü Some useful MIME types


aa

Ø HTTP request
ü The main HTTP Request Types
.M

ü GET
ü POST
ü HEAD
w

ü PUT(HTTP/1.1)
ü DELETE(HTTP/1.1)
w

ü OPTIONS(HTTP/1.1)
w

ü HTTP response

iii).Hyper Text Mark Up Language


Ø Definition of HTML
Ø SGML
iv).Uniform Resource Locator
Ø Definition of URL
Ø URN(Uniform Resource Name)
Ø Syntax of URL
ü Protocol
ü The Host Name
ü The Path Name
v).Static and Dynamic WEB Page
2.Web-DBMS Architecture
i)Traditional two-tier client-server architecture
ii)Three-tier architecture
iii) Advantages
Simplicity
Platform independence
Graphical User Interface
Standardization
Cross-platform support
Transparent network access
Scalable deployment
Innovation
iv) Disadvantages
§ Reliability
§ Security

m
§ Cost
§ Scalability

.co
§ Limited functionality of HTML
§ Statelessness

N
§ Bandwidth
§ Performance a
§ Immaturity of development tools
av
3. Explain about scripting languages,CGI and HTTP cookies:
n

Javascript and Jscript:


aa

VBScript
Perl and PHP
.M

CGI:

Introduction
w

Ø Passing information to a CGI script


Passing parameters on command line
w

Passing environment variables to CGI program


w

Passing data to CGI program via standard input


Using extra path information
Ø Advantage
Simplicity
Language independence
Webserver independence
Wide acceptance
Ø Disadvantage
Bottleneck
Lack of efficiency & transaction processing
Server has to generate new process or thread for each CGI
script
HTTP Cookies:
4.Define Oracle internet Platform and explain briefly the various services provide by it?
Oracle Internet Platform:
Oracle’s web_centric approach different from Microsoft’s approach
Comprises Oracle Internet Application Server(iAS) and Oracle DBMS
N_tier architecture based on standards such as:
HTTP and HTML/XML for web enablement
The Object Management Group’s CORBA technology
Internet Inter_Object Protocol(IIOP) for object interoperability and
Remote Method Invocation(RMI)
Java,enterprise javabeans(EJB),JDBC and SQLJ,java servlets and java
server pages(JSP)
Oracle Internet Application Server(iAS):
It is a reliable,scalable,secure,middle_tier application server that is
designed to support e_business.It provides a set of services for assembling a
complete,scalable middle_tier infrastructure.

m
iAS is available in three versions:
Ø Standard Edition

.co
Ø Enterprise Edition
Ø Wireless Edition

N
Communication Services:
o Handle all incoming requests received by iAS
a
o Some requests are processed by HTTP server and
av
some are routed to other areas of iAS
HTTP server modules:
n

In addition to the combined Apache HTTP server, Oracle has enchanced


aa

Oracle specific ones:


They are
.M

§ Mod_ssl
§ Mod_plsql
§ Mod_perl
w

§ Mod_jserv
§ Mod_ose
w

Business logic services:


w

Business logic support the application logic and include:


v Oracle BC4J(Business Components for Java)
v Oracle JVM
v Oracle PLSQL
v Oracle Forms
Presentation Services:
These services deliever dynamic content to client browsers,supporting
servlets,JSP,Perl/CGI Script,PL/SQL pages,forms and business intelligence:
ü Apache Jserv
ü OracleJSP
ü Oracle PSP(PL/SQL Server pages)
ü Perl Interpreter
Caching Services:
Oracle Database cache:
It is a middle_tier service that improves performance and scalability of
applications by caching frequently used data
Supports running stateful servlets,JSPs,EJBs and CORBA objects
Oracle web cache:
Stores frequently accessed URLs in virtual memory

5.MICROSOFT’S WEB SOLUTION PLATFORM


Microsoft’s web solution platform
* Previously called window’s DNA
* Various services like BizTalk Server etc
* Includes OLE, Com & DCOM
OLE
* Use of DDE protocol earlier
* OLE is a OO technology

m
COM

.co
Component Object model
* Component objects
* COM is a object based model

N
* Establishes connection between client application & object & its services
a
* Provides binary interoperability standard
av
DCOM
Distributed component object model
* DCOM is extension of COM
n
aa

UNIVERSAL DATA ACCESS


* Using ODBC
.M

* (DAO) Data Access Objects


fig OLE DB Architecture
w

Active server pages & ActiveX Data objects


* ASP
w

* ActiveX Data Objects (ADO)


w

* Remote Data services


Web Page generation using MS Access
* Using of static pages
* Dynamic pages using Active server pages
* Dynamic pages using Data Access Pages

UNIT 4

2 Marks
1.What are the components of a rule in ECA model?
There are 3 components:
1.The event that triggers the rule.
2.The condition that determines whether the rule action should be executed.
3.The action to be taken.

2.What is immediate consideration?


The condition is evaluated as part of the same transaction as the triggering
event and is evaluated immediately.The case can be further categorised into :
· Evaluate the condition before executing the trigger event.
· Evaluate the condition after executing the trigger event.
· Evaluate the condition instead of executing the trigger event.

3.What is deferred consideration?


The condition is evaluated at the end of the transaction that included the
triggering event.In this case,there could be many triggered rules waiting to have
their conditions evaluated.

m
4.What is deactivated rule and active command?

.co
A deactivated rule will not be triggered by the triggering event.This allows
users to selectively deactivate rules for certain periods of time when they are
not needed.

N
The active command will make the rule acitve again.
a
5.What is row- level trigger and statement- level trigger?
av
If the rule is triggered separately for each tuple,then is it known as a row
level trigger.
n

If the rule is triggered only once for each triggering statement,then is known as
aa

statement level trigger.


.M

6.What is meant by bitemporal database?


There are two time dimensions namely valid time dimension and transaction
time dimension.In some applications,only one of the dimensions is needed and
w

in other cases both the time dimensions are required,in which case the temporal
database is called a bitemporal database.
w
w

7.What is proactive,retroacive and simultaneous update?


If the update was applied to the database before it becomes effective in the real
world,it is proactive update.If the update was applied to the database after it becomes
effective in the real world,it is retroactive update.An update that is applied at the same
time when is becomes effective is called a simlutaneous update.

8.What is attribute versioning?


An alternative approach can be used in data base systems that support complex
structured objects ,such as object databases or object relational systems.This approach is
called attribute versioning.

9.What is coalescing?
If the two time periods [T1,T2] and [T3,T4] are adjacent,they are combined into a
single time period[T1,T4].This is called coalescing of time periods.Coalescing also
combines intersecting time periods.

10.Why we go for time series management systems?


Because of the specialized nature of time series data,and the lack of support in
older DBMSs, it has been common to use specialized time series management systems
rather than general purpose DBMSs for managing such information.

11.What is deductive database system?


Some database systems provide capabilities for defining deduction rules for
inferencing new information from the stored database facts.Such systems are called
deductive databases.

12.Define prolog and datalog:


The deductive database work based on logic has used prolog as a starting point .A

m
variation of prolog called datalog is used to define rules declaratively in conjunciton with
an existing set of relations,which are themselves treated as literals in the language.

.co
13.Define rules and facts:

N
Facts are specified in a manner similar to the way relations are specified ,except that
it is not necessary to include the attribute name .
a
Rules specify virtual relations that are not actually stored but that can be formed from the
av
facts ,by applying inference mechanisms based on the rule specifications.
n

14.Write about clausal form and horn clauses:


aa

In clausal form,the formula is made up of number of clauses,where each clause is


composed of a number of literals connecter by 'OR' logical connectives only.Hence the
.M

clausal form of a formula is a disjunction of literals


ie, conjunction of clauses.eg:- not(p1) or not(p2)or..not(pn) or q1 or q2 or ....qm.
In datalog ,rules are expressed as a restricted form of clauses called horn clauses in which
w

a clause can contain atmost one positive literal.eg:-or not(p2)or....or not(pn) or q.


w

15.Define fact defined predicates and rule defined predicates:


w

Fact defined predicates (or relations) are defined by listing all the combinations of
values (the tuples) that make the predicate true.They correspond to base relations whose
contents are stored is a database system.
Rule defined predicates (or views) are defined by being the head(LHS) of one or more
datalog rules.They correspond to virtual relations whose contents can be inferred by the
inference engine.

16.What is knowledge base?


The knowledge base is also called the international database.It consists of rules,as
opposed to the base data,which constitutes the extensional database.The knowledge base
means the combination of both the intensional and extensional databases.It often includes
complex objects as well.
17.What is knowledge base management system(KBMS)?
The software that manages the knowledge base is known as the knowledge base
management system.It is similar to deductive DBMS.

18.What is valid time and valid time database?


The most natural interpretation is that the associated time is the time that the event
occured or the period during which the fact was considered to be true in the real world.If
this interpretation is used,the associated time is called as valid time.
A temporal database using this inpterpretation is called a valid time database.

19.What is detached consideration?


The condition is evaluated as a separate transaction,spawned from the the triggering
transaction.This is known as detached consideration.

20.What is a predicate?

m
A predicate has an implicit meaning which is suggested by the predicate name and a
fixed number of arguements.If the arguements are all constant values,the predicate states

.co
that a certain fact is true.If the predicate has variables as arguements,it is either
considered a query or as a part of a rule or constraint

16 Marks a N
av
1.Explain in detail about active database concepts and triggers:
-Generalised model for active databases and oracle triggers.
n

-Design and implementation issues for active databases.


aa

-Potential Applications for active databases.


-Triggers in SQL
.M

2.What are temporal databases?Explain in detail .


-Temporal database concepts
w

-Time representation,calendars and time dimensions


w

-Incoporating time in relational databases using tuple versioning.


-Incorporating time in object oriented databses using attribute versioning.
w

-Temporal querying and the TSQL2 language.


-Time series data.

3.Write notes on deductive databases:


-Definition of deductive databases.
-Prolog /datalog notation.
-Clausal form and horn clauses.
-Interpretations of rules.
-Datalog programs and their safety.
-Relational operations.
-Non-recursive datalog queries.
UNIT 5

2 Marks

1. Define mobile databases?


A database that is portable and physically separated from a centralized DB server,
but capable of communicating with that server from remote sites, by allowing the sharing
of corporate data is known as mobile database.
Eg : Electronic valets , news reporting , brokerage services and automated sales forces .

2.Define wireless communication?


The wireless medium on which mobile units and base stations communicate have
bandwidth significantly lower than those of a wired network .The current generation of
wireless technology has data rates that range from the tens to hundreds of kilobits per

m
second(2a cellular telephony)to tens of megabits per second(wireless Ethernet, properly
known as WiFi ).

.co
3.What are the applications of MANET?
· Peer-to-peer, meaning that a mobile unit is simultaneously a

N
client and a server.
· Transaction processing and data consistency control become
a
more difficult.
av
Resource discovery and data routing by mobile units make
computing in a MANET even more complicated.
n
aa

4. What are the different types of data management issues?


Data distribution and replication.
.M

Transaction models
Query processing
· Recovery and fault tolerance
w

· Mobile db design
w

Location based service


Division of labor
w

Security

5.Define “dozing”.
A client is unreachable because it is dozing - an energy conserving state in which
many subsystems or shut down or because out of range of a base station.

6. Define GIS?
GIS are used to collect, model, store and analyze information describing physical
properties of the geographical world. The scope of GIS broadly encompasses two types of data
, they are :
1. Spatial data
2. Non-spatial data .
Normally GIS is a rapidly developing domain that offers highly innovative approaches to meet
some challenging technical demands.

7. List out the applications of GIS?


The applications of GIS are divided into three categories they are
Cartographic applications
Digital terrain modeling applications
Geographic objects applications.
The first two categories of GIS applications require a field-based representation ,whereas the
third category requires an object-based one.

8.What are the Data Management Requirements of GIS?


The functional requirements of the GIS applications are
Data Modeling and Representation
Data Analysis
Data Integration

m
Data Capture

.co
9.Mention the Specific Data operations of GIS?
GIS applications are conducted through the use of special operators such as the

N
following
Interpolation a
Interpretation
av
Proximity analysis
Raster image processing
n

Analysis of Networks
aa

Visualization
.M

10.What are the two formats for the Representation of GIS?


GIS data can be broadly represented in two formats they are :
1.Vector
w

2. Raster .
Vector data are represents geometric objects such as points ,lines and polygons .Raster
w

data is characterized as an array of points, raster images are n-dimensional arrays where each
w

entry is a unit of the image and represents an attribute .Two-dimensional units are called pixels
,while three-dimensional units are called voxels.

11. What is GDB?


GDB- stands for Genome Data Base.
It is a catalog of human gene mapping data, a process that associates a piece of
information with a particular location on the human genome.

12. What is Genotype?


Mendel realized that genes can exist in numerous different forms known as,
alleles. A genotype refers to the actual allelic composition of an individual.

13. What is Gene Ontology?


It is a consortium, which was formed in 1998 as collaboration among three
modal organism databases:
Fly Base
· Mouse Genome Informatics (MGI)
· Saccharomyces or yeast Genome Database (SGD)

14. What are the ontologies developed by GO consortium?


GO consortium has developed three ontologies, to describe the attributes of genes,
gene products, or gene product groups, they are:
Molecular Functions
Biological Process
Cellular Component

15. What are the nature of Multimedia applications?


Repository Applications

m
· Presentation Applications

.co
· Collaborative work using multimedia information

16. What are the various types of multimedia data?

N
The various types of multimedia data are text, graphics, images, animations, video,
structured audio, audio, composite or mixed multimedia data.
a
av
17. What are the characteristics of hyperlinks (hypermedia links)?
Links can be specified with or without associated information, and they may
n

have large descriptions associated with them.


aa

Links can start from a specific point within a node or from the whole node.
Links can be directional or non-directional when they can be traversed in
.M

either direction.
18.What is an Ontology?
An ontology necessarily entails or embodies some sort of world view with respect to a
w

given domain. The world view is often conceived as a set of concepts, their definitions ad their
w

inter-relationships which describe a target world.


w

19.Define DBA (Data Base Administrator )?


A DBA is an individual person or group of persons with an overview of one or
more databases who controls the design and use of these databases.

20.What are the functions of DBA?


· A DBA provides the necessary technical support for implementing
policy decisions of databases.
· DBA is responsible for the overall control of the system.
· DBA is the central controller of the database system who oversees
and manages all the resources.
· DBA is responsible for authorizing access to the database for
coordinating and monitoring its use and for acquiring software and
hardware resources as needed.
21.What are responsibilities of DBA?
Defining conceptual schema and database creation.
· Storage structure and access- method definition.
· Granting authorization to the users.
· Physical organization modification.
· Routine maintenance.
Job monitoring.

22. What is parallel database?


In some of the architectures multiple CPUs are working in parallel and are physically
located in a close environment in the same building and communicating at a very high speed.
The databases operating in such environment is known as parallel databases.

23.What are the advantages of parallel databases?

m
Increased throughput

.co
Improved response time
To query large databases
Substantial performance improvements

N
Increased availability
Greater flexibility a
Large no. of users
av
24.What are the disadvantages of parallel databases?
n

· More start up costs


aa

· Interference problem
· Skew problem
.M

25.What is spatial databases?


Spatial databases keep track of objects in a multidimensional space. Spatial data
w

support in databases is important for efficiently storing, indexing and querying of data based on
w

spatial locations.
w

26.Define spatial db query and mention its types?


Spatial query is the process of selecting features based on their geographic or spatial
relationship with other features. The three types are :
Range query
Nearest neighbor query or adjacency
Spatial joins or overlays

27.Define spatial data model?


The spacial data model is a hierarchical structure consisting of the following to
correspond to representations of spatial data :
Elements
Geometrics
Layers
28.Define Data Warehouse?
A data warehouse is a collection of information as well as a supporting system. It
provide access to data for complex analysis , knowledge discovery and decision making. They
support high performance data and information.

29.What are the applications of Data warehouse?


OLAP ( Online Analytical Processing )
DSS ( Decision Support System )
OLTP ( On Line Transaction Processing )

30. Define Data mining ?


Data mining refers to the mining or discovery of new information in terms
of patterns or rules from vast amount of data.

m
31. Define Association Rule ?
A association rule is of the form X => Y , when X = {x1,x2,…xn} and

.co
Y = {y1,y2,….yn} are set of items , with xi and yi being distinct items for all i and j.
This association rule states that if a customer buys X he or she is also likely to buy Y. In

N
general any association rule has the form LHS => RHS, where LHS and RHS are set of items.
a
32. What are the classifications of Neural Networks ?
av
Neural networks can be broadly classified in to two categories.
1. Supervised networks and
n

2. Unsupervised networks.
aa

Supervised Networks:
Adaptive methods that attempt to reduce the output error are
.M

supervised lemmings methods.

Unsupervised Networks:
w

Methods that develop internal representation without sample outputs


are called unsupervised learning methods.
w
w

16 MARKS (Refer Book for Diagrams )


1.Explain mobile databases in detail.
i) Mobile databases:-
{ Recent advances in portable and wireless technology have led to
mobile computing.
{ Some of the slow problems which may include data
management, transaction management and database recovert.
*Mobile computing architecture:-
Mobile computing architecture is a distributed architecture
{ A number of computer generally referred as fixed hosts and
base stations.
Fixed hosts are general purpose computers.
Base stations functions as gateway to the fixed network for the
mobile units.
*Wireless communication:-
The wireless medium on which mobile units and base station
communication.
The data rates that ranges from the tens to hundreds of kilobytes per
second to tens of megabits per second.
Some wireless networks such as WIFI and bluetooth,use unlicensed
areas of frequency spectrum.
*Client/network relationship:-
{ Mobile units can move freely in a geographic mobility domain.
MANET applications can be considered as peer-to-peer
{ Sample MANET applications are multi- user games, shared
whiteboards, distributed calanders, and battle information
sharing.

m
ii)Characteristics of mobile environment
The characteristics of mobile computing include high

.co
communication latency,intermittent wireless connectivity,etc
{ Mobile computing poses challenges for servers as well as

N
clients.
One way servers relieve this problem is by broadcasting data.
a
{ Client mobility also allows new application that is location
av
based.
iii)Data management issues:
n

T h e e ntire database is distributed mainly among the wired


aa

components, possibly with full or partial replication.


The database is distributed among wire and wireless components.
.M

The following are the additional considerations and variations of mobile DB:
Data distribution and replication.
{ Transaction models
w

Query processing
{ Recovery and fault tolerance
w

Mobile database design


w

{ Location_based service
Division of labour
{ Security
iv)Application:Intermittently synchronized databases:
A client connects to the server when it wants to exchange
updates.This communication maybe unicast.
{ A server cannot connect to a client at will.
Issues of wireless versus wired client connection and power
conservation.
{ A client is free to manage its own data and transaction while it is
disconnected.
A client has multiple ways of connecting to a server.
2. Explain the characteristics of biological data in GDB?
Characteristic 1:
Biological data is highly complex, when compared with most
other domains or applications.
Characteristic 2:
The amount and range of variability in data is high.
Characteristic 3:
Schemas in biological databases change at a rapid pace.
Characteristic 4:
Representation of the same data by different biologists will
likely be different.
Characteristic 5:
Most users of biological data do not require write access to the
database; read only access is adequate.
Characteristic 6:
Most biologists are not likely to have any knowledge of the

m
internal structure of the database or about schema design.
Characteristic 7:

.co
The context of data gives added meaning for it’s use in
biological applications.

N
Characteristic 8:
Defining and representing complex queries is extremely
a
important to the biologist.
av
Characteristic 9:
Users of biological information often require access to “old”
n

values of the data –particularly when previously reported results.


aa

3.Write short notes on – Multimedia Databases.


i)Nature of Multimedia Data & Applications :
.M

{ Multimedia Data :
· Text
· Graphics
w

· Images
w

· Animations
· Video
w

· Structured Audio
· Audio
· Composite or mixed multimedia data
{ Multimedia Applications :
· Repository Applications
· Presentation Applications
· Collaborative work using multimedia information
ii)Data Management Issues :
{ Modeling
{ Design
{ Storage
{ Queries and Retrieval
{ Performance
iii)Open Research Problems :
{ Information Retrieval Perspective in Querying Multimedia Databases
{ Requirements of Multimedia/hypermedia Data Modeling & Retrieval
{ Indexing of Images :
Three indexing schemes are
· Classificatory Systems
· Keyword-based Systems
· Entity-attribute-relationship Systems
Problems in Text Retrieval :
Phrase indexing
Use of Thesaurus
Resolving ambiguity
iv) Multimedia Database Applications :
{ Some important applications are :
· Documents and records management

m
· Knowledge dissemination

.co
· Education and Training
· Marketing, advertising, retailing, entertainment and travel
· Real-time control and monitoring

N
{ Commercial Systems for Multimedia Information Management
a
4.Explain in detail the Parallel & Spatial Data base.
av
i) Parallel Data Base :
Architecture of parallel data bases :
n

Shared- memory multiple CPU


aa

Shared-disk multiple CPU


Shared- nothing multiple CPU
.M

Key elements of parallel DB processing :


· Speed-up
w

· Scale-up
· Synchronization
w

· Locking
{ Query Parallelism :
w

· I/O parallelism
· Intra-query parallelism
· Inter-query parallelism
· Intra-operation parallelism
· Inter-operation parallelism
ii) Spatial Data Base :
{ Spatial DB characteristics:
{ Spatial Data Model :
· Elements
· Geometries
· Layers
{ Spatial data base queries :
· Range query
· Nearest neighbour query or adjacency
· Spatial joins or overlays
{ Techniques of Spatial DB Query :
· R-Tree
· Quadtree
5.Define Data mining? Briefly explain the different types of knowledge discovered
during data mining.
Data Mining :
Data mining refers to the mining or discovery of new information in terms
of patterns or rules from vast amount of data.
Types of knowledge discovered during Data mining :

Association Rule :
Apriori Algorithm

m
Sampling algorithm

.co
Frequent pattern tree algorithm
Partition algorithm
Classification

N
Clustering
Approaches to other Data mining problems :
a
Discovery of sequential patterns
av
Discovery of patterns in time series
Regression
n

Neutral networks
aa

Genetic algorithms
Applications of Data Mining :
.M

Marketing
Finance
Manufacturing
w

Health care
w
w

Potrebbero piacerti anche