27
Ayyat IT Ayyat IT Group Group Murad Faridi Roll Murad Faridi Roll NO#2492 NO#2492 Muhammad Waqas Roll NO#2803 Muhammad Waqas Roll NO#2803 Salman Raza Roll Salman Raza Roll NO#2473 NO#2473 Junaid Pervaiz Roll Junaid Pervaiz Roll NO#2468 NO#2468 Instructor Instructor :- “ :- “ Madam Sana Saeed” Madam Sana Saeed” 1

Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

Embed Size (px)

Citation preview

Page 1: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

Ayyat IT Ayyat IT GroupGroup

Murad Faridi Roll NO#2492Murad Faridi Roll NO#2492

Muhammad Waqas Roll NO#2803Muhammad Waqas Roll NO#2803

Salman Raza Roll NO#2473Salman Raza Roll NO#2473

Junaid Pervaiz Roll NO#2468Junaid Pervaiz Roll NO#2468

InstructorInstructor :- “:- “Madam Sana Madam Sana Saeed”Saeed”

1

Page 2: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

2

OLAPOLAP

(Online Analytical Processing)(Online Analytical Processing) ArchitectureArchitecture

CharacteristicsCharacteristics

Relational OLAPRelational OLAP

Multidimensional OLAPMultidimensional OLAP

ROLAP VS. MOLAPROLAP VS. MOLAP HOLAPHOLAP

Page 3: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

3

What Is Data Warehouse?What Is Data Warehouse? consolidates consolidates the information from different the information from different

data sources, enabling OLAP (online data sources, enabling OLAP (online analytical processing), to help decision analytical processing), to help decision support.support.

is maintained is maintained separately separately from an operational from an operational database (which is used for OLTP – online database (which is used for OLTP – online transaction processing).transaction processing).

Page 4: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

4

OLAPOLAP((Online Analytical ProcessingOnline Analytical Processing))

Page 5: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

5

Multi-Tiered ArchitectureMulti-Tiered Architecture

DataWarehouse

ExtractTransformLoadRefresh

OLAP Engine

AnalysisQueryReportsData mining

Monitor&

IntegratorMetadata

Data Sources Front-End Tools

Serve

Data Marts

Operational DBs

other

sources

Data Storage

OLAP Server

Page 6: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

6

What is OLAP?

On-Line Analytical Processing Information technology to help the

knowledge worker (executive, manager, analyst) make faster and better decisions.

OLAP is an element of decision support systems

Page 7: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

7

OLAPOLAP Create an advanced data analysis environment Create an advanced data analysis environment

that supports decision making, business that supports decision making, business modeling and operation research activities.modeling and operation research activities.

Characteristics of OLAPCharacteristics of OLAP• Use multidimensional data analysis techniqueUse multidimensional data analysis technique• Provide advance database supportProvide advance database support• Provide easy-to-use end user interfaces.Provide easy-to-use end user interfaces.• Support client/server architecture.Support client/server architecture.

Page 8: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

8

Two types of database activity OLTP and OLAPOLTP: On-Line Transaction Processing Short transactions, both queries and updates (e.g., update account balance, enroll in course) Queries are simple (e.g., find account balance, find grade in course) Updates are frequent (e.g., concert tickets, seat reservations, shopping

carts)

Page 9: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

9

OLAP: On-Line Analytical Processing

Long transactions, usually complex queries (e.g., all statistics about all sales, grouped by

dept and month) “Data mining” operations Infrequent updates

Page 10: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

04/18/23 10

OLTP Compared With OLAPOLTP Compared With OLAP

On Line On Line TransactionTransaction Processing – OLTPProcessing – OLTP

– – Maintain a database that Maintain a database that is an accurate model of is an accurate model of some real-world enterprisesome real-world enterprise

• • Short simple transactionsShort simple transactions

• • Relatively frequent updatesRelatively frequent updates

• • Transactions access only a Transactions access only a small fraction of the small fraction of the databasedatabase

On Line On Line Analytical Analytical Processing - OLAPProcessing - OLAP

– – Use information in Use information in database to guide database to guide strategic decisionsstrategic decisions

• • Complex aggregation Complex aggregation queriesqueries

• • Infrequent updatesInfrequent updates

• • Transactions access a Transactions access a large fraction of the large fraction of the databasedatabase

Page 11: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

11

Page 12: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

12

RELATIONAL OLAPRELATIONAL OLAP Provides functionality by using relational databases and Provides functionality by using relational databases and

relational query tools to store and analyze relational query tools to store and analyze multidimensional data.multidimensional data.

Build on existing relational technologies and represents Build on existing relational technologies and represents extension to all those companies that already used extension to all those companies that already used RDBMSRDBMS

ROLAP adds the following extensions to traditional ROLAP adds the following extensions to traditional RDBMSRDBMS

Multidimensional data schema support within the Multidimensional data schema support within the RDBMS RDBMS

Data access language and query performance are Data access language and query performance are optimized for multidimensional data.optimized for multidimensional data.

Support for very large data basesSupport for very large data bases

Page 13: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

13

Multidimensional OLAPMultidimensional OLAP MOLAP extends OLAP functionality to MDBMS MOLAP extends OLAP functionality to MDBMS Best suited to manage, store or analyze Best suited to manage, store or analyze

multidimensional data.multidimensional data. Proprietary techniques used in MDBMS.Proprietary techniques used in MDBMS. MDBMS and users visualize the stored data as a 3-MDBMS and users visualize the stored data as a 3-

dimensional cube i.e data cube.dimensional cube i.e data cube. MOLAP data bases are known to be much faster MOLAP data bases are known to be much faster

than their ROLAP counter parts.than their ROLAP counter parts. Data cubes are held in memory called “cube cache”.Data cubes are held in memory called “cube cache”.

Page 14: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

What shape am What shape am I?I?

I have 6 flat square facesI have 6 flat square faces

I have 12 straight edges I have 12 straight edges

I have 8 corners.I have 8 corners.

I am a …………?I am a …………?

Page 15: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

Fantastic!

I am a cube!

Page 16: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

16

ROLAP vs MOLAPROLAP vs MOLAPCharacteristicsCharacteristics ROLAP ROLAP MOLAPMOLAP

SCHEMASCHEMA Uses star schemaUses star schemaAdditional Additional dimensions can be dimensions can be added dynamicallyadded dynamically

Uses data cubesUses data cubesAdditional dimensions Additional dimensions require re-creation of require re-creation of the data cube.the data cube.

Database Database sizesize

Medium to largeMedium to large Small to mediumSmall to medium

ArchitectureArchitecture Client/serverClient/server Client/serverClient/server

AccessAccess Support ad-hoc Support ad-hoc requestsrequestsUnlimited Unlimited dimensionsdimensions

Limited to predefined Limited to predefined dimensionsdimensions

Page 17: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

17

ROLAP vs MOLAPROLAP vs MOLAPCharacteristicsCharacteristics ROLAP ROLAP MOLAPMOLAP

Resources Resources HighHigh Very highVery high

FlexibilityFlexibility HighHigh LowLow

ScalabilityScalability HighHigh LowLow

SpeedSpeed Good with small Good with small data setsdata setsAverage for Average for medium to large medium to large data setdata set

Faster for small to Faster for small to medium data setsmedium data setsAverage for large Average for large data sets.data sets.

Page 18: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

18

Implementation of the OLAP Server ROLAP: Relational OLAP – data is stored in tables in relational database or extended

relational databases. They use an RDBMS to manage the warehouse data and aggregations using often a star schema.

• They support extensions to SQL.Advantage: Scalable.Disadvantage: No direct access to cells.

Page 19: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

19

Implementation of the OLAP Server MOLAP:Multidimensional OLAP - implements the multidimensional view by storing data in special

multidimensional data structures.

Advantage:Fast indexing to pre-computed aggregations.

Only values are stored.Disadvantage: Not very scalable.•

Page 20: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

20

Characteristics of OLAPCharacteristics of OLAP Fast - means that the system targeted to deliver most

responses to user within about five second, with the simplest

analysis taking no more than one second and very few taking more than 20 sec.

Share - means that the system implements all the security requirements for confidentiality and, if multiple write access is needed, concurrent update location at an appropriated level not all applications need users to write data back, but for the growing number that do, the system should be able to handle multiple updates in a timely, secure manner.

Page 21: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

21

Analysis - means that the system can cope with any business logic and statistical analysis that it relevant for the application and the user, keep it easy enough for the target user. Although some pre programming may be needed we do not think it acceptable if all application definitions have to be allow the user to define new adhoc calculations as part of the analysis and to report on the data in any desired way, without having to program so we exclude products (like Oracle Discoverer) that do not allow the user to define new adhoc calculation as part of the analysis and to report on the data in any desired product that do not allow adequate end user oriented calculation flexibility.

Page 22: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

22

Multidimensional - is the key requirement. OLAP system must provide a multidimensional conceptual view of the data, including full support for hierarchies, as this is certainly the most logical way to analyze business and organizations.

Information - are all of the data and derived information needed? Wherever it is and however much is relevant for the application. We are measuring the capacity of various products in terms of how much input data they can handle, not how many gigabytes they take to store it.

Page 23: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

HOLAPHOLAP

HOLAP is the product of the HOLAP is the product of the attempt to incorporate the best attempt to incorporate the best features of MOLAP and ROLAP features of MOLAP and ROLAP into a single architecture. into a single architecture.

Page 24: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

HOLAPHOLAP

This tool tried to bridge the technology gap This tool tried to bridge the technology gap of both products by enabling access or use of both products by enabling access or use to both multidimensional database (MDDB) to both multidimensional database (MDDB) and Relational Database Management and Relational Database Management System (RDBMS) data stores. System (RDBMS) data stores.

Page 25: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

HOLAPHOLAP

HOLAP systems stores larger quantities of HOLAP systems stores larger quantities of detailed data in the relational tables while detailed data in the relational tables while the aggregations are stored in the pre-the aggregations are stored in the pre-calculated cubes. calculated cubes.

Page 26: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

HOLAPHOLAP

HOLAP also has the capacity to “drill HOLAP also has the capacity to “drill through” from the cube down to the through” from the cube down to the relational tables for delineated data. Some relational tables for delineated data. Some of the advantages of this system are better of the advantages of this system are better scalability, quick data processing and scalability, quick data processing and flexibility in accessing of data sources.flexibility in accessing of data sources.

ENDEND

Page 27: Ayyat IT Group Murad Faridi Roll NO#2492 Muhammad Waqas Roll NO#2803 Salman Raza Roll NO#2473 Junaid Pervaiz Roll NO#2468 Instructor :- “ Madam Sana Saeed”

27

What appears to be What appears to be the end may really the end may really be a new beginning.be a new beginning.