SlideShare a Scribd company logo
大数据创新联盟线下分享二
Bin Zhu
A database is an organized collection of data. It is the collection
of schemas, tables, queries, reports, views, and other objects.The data are typically
organized to model aspects of reality in a way that supports processes requiring
information
(copied from Wikipedia)
 Tables
 View
 Materialized View
 Index
 Procedure
 Sequence
 Trigger
 DB Link
A table is a collection of related data held in a structured format within a database. It
consists of columns, and rows.
A view is a virtual table based on the result-set of an SQL statement.
A view contains rows and columns, just like a real table.
The fields in a view are fields from one or more real tables in the database.
Sample:
CREATE VIEW view_dept_201
AS
SELECT emp_id, name, hire_date
FROM gdb.employees
WHERE department = 201;
A materialized view is a database object that contains the results of a query
Sample:
Create materialized view myView as select * from myTab;
Refresh materialized view myView;
Materialized View ViewVS
 Primary Key
 Unique Index
 Foreign key
 Index
Primary Key Unique Index
A stored procedure is a set of Structured Query Language (SQL) statements with an
assigned name that's stored in the database in compiled form so that it can be
shared by a number of programs.
Sample
A trigger is a special kind of stored procedure that automatically executes when an
event occurs in the database server. DML triggers execute when a user tries to
modify data through a data manipulation language (DML) event. DML events are
INSERT, UPDATE, or DELETE statements on a table or view
Dblink is a module which supports connections to other databases from within a
database session
 ACID
 Transaction
 Distributed Transaction
 Two Phase Commit
 Real Commit Diagram
A transaction is a unit of work that you want to treat as "a whole". It has to either
happen in full, or not at all.
Commit RollbackOR
A distributed transaction is a database transaction in which two or more network
hosts are involved
 DDL:
Data Definition Language
 DML:
Data Manipulation Language
 DRL:
Data Retrieval Language
 TCL:
Transaction Control Language
 DCL:
Data Control Language
A deadlock is a situation in which two or more transactions are waiting for one
another to give up locks.
1, Select for Update
2, Insert
3, Update
4, Delete
p
r
i
o
r
i
t
y
 Tablespace
A tablespace is a storage location where the actual data underlying database
objects can be kept. It provides a layer of abstraction between physical and logical
data, and serves to allocate storage for all DBMS managed segments.
 Fragmentation
Tablespace
For
Dict Data
Tablespace
For
Indexes
Tablespace
For
Normal Data
Tablespace
For History
or logs
PostgreSQL
Objects
Request
I
O
I
O
 Table Fragmentation
 Index Fragmentation
 How to Perform the fragmentation
 Vacuum Database
 Rebuild Index
 Rebuild Table
A partition is a division of a logical database or its constituent elements into distinct
independent parts. Database partitioning is normally done for
manageability, performance or availability reasons, as for load balancing.
Partitioning criteria
 Range partitioning
 List partitioning
 Hash partitioning
 Composite partitioning
Database Sharding is a highly
scalable approach for improving
the throughput and overall
performance of
high-transaction,
large database-centric
business applications
Database replication is the frequent electronic copying data from a database in one
computer or server to a database in another so that all users share the same level of
information.
Primary StandbyStreamingWAL
Primary Standby
StreamingWAL
Commit
transaction
Then do
replication
Commit
transaction
after did
replication
Replication
delay
Transaction
operation good
No any delay
Transaction
operation is not
so good
Clustering offers two major advantages, especially in high-volume database
environments:
 Fault tolerance: Because there is more than one server or instance for users to
connect to, clustering offers an alternative, in the event of individual server failure.
 Load balancing:The clustering feature is usually set up to allow users to be
automatically allocated to the server with the least load.
 Shared Data Array
 Master – Slave(s)
 Master - Master
Shared data
disk array
Database
instance 1
Database
instance 2
 Positive
Shared data disk array solution
can avoid take long time to
synchronized the data between
the different database. When
the postgres instance1 failed,
you just need to assign all the
clients to connect to instance2
and all the data will not lost.
 Negative
Because all the data is stored in
the same disks, if the disks are
failed, the data will lost.
Master StandbyWAL Logs
Middle
layer
Read/Write Read
 Multiple Master mode
Master Master
Middleware
Master
Standb
y
WAL Logs
Middleware
Sync
Replication
Write Write ReadWrite
 What’s the database
 The objects in database
• Tables
• View
• Materialized View
• Index
• Procedure
• Sequence
• Trigger
• DB Link
 Database Transaction
• ACID
• Transaction
• Distributed Transaction
• Two phase commit
• Database Real Commit Diagram
• Database operation
• DDL
• DML
• DRL
• TCL
• DCL
 Database deadlock
 Database performance
• Tuning performance
• Tablespace
• Fragmentation
 Table partition
• Range
• List
• Hash
• Composite
• Partition index
• Global
• Local
 OLTP VS OLAP
 DB sharding
 DB replication
• Async
• Sync
 DB Cluster
• Shared Disk Array
• Master – Slave(s)
• Multiple Master
 Cloud Database
 RDBM VS NoSQL
Discover Database

More Related Content

What's hot

Ms sql server
Ms sql serverMs sql server
Ms sql server
yajit1
 
Sql server-dba
Sql server-dbaSql server-dba
Sql server-dba
NaviSoft
 
Introduction to yarn B.Nandhitha 2nd M.sc., computer science,Bon secours coll...
Introduction to yarn B.Nandhitha 2nd M.sc., computer science,Bon secours coll...Introduction to yarn B.Nandhitha 2nd M.sc., computer science,Bon secours coll...
Introduction to yarn B.Nandhitha 2nd M.sc., computer science,Bon secours coll...
Nandhitha B
 
Datastage parallell jobs vs datastage server jobs
Datastage parallell jobs vs datastage server jobsDatastage parallell jobs vs datastage server jobs
Datastage parallell jobs vs datastage server jobs
shanker_uma
 
Group Members
Group MembersGroup Members
Group Members
Farhan Shahani
 
Sql – pocket guide
Sql – pocket guideSql – pocket guide
Sql – pocket guide
Santhosh Kumar
 
Ado.net
Ado.netAdo.net
Ado.net
pacatarpit
 
Inb343 week2 sql server intro
Inb343 week2 sql server introInb343 week2 sql server intro
Inb343 week2 sql server intro
Fredlive503
 
Sql server introduction fundamental
Sql server introduction fundamentalSql server introduction fundamental
Sql server introduction fundamental
Riteshkiit
 
Db2 migration -_tips,_tricks,_and_pitfalls
Db2 migration -_tips,_tricks,_and_pitfallsDb2 migration -_tips,_tricks,_and_pitfalls
Db2 migration -_tips,_tricks,_and_pitfalls
sam2sung2
 
Sql server basics
Sql server basicsSql server basics
Sql server basics
Dilfaroz Khan
 
Migration from 8.1 to 11.3
Migration from 8.1 to 11.3Migration from 8.1 to 11.3
Migration from 8.1 to 11.3
Suryakant Bharati
 
Datastores
DatastoresDatastores
Datastores
Raveen Vijayan
 
MongoDB - A next-generation database that lets you create applications never ...
MongoDB - A next-generation database that lets you create applications never ...MongoDB - A next-generation database that lets you create applications never ...
MongoDB - A next-generation database that lets you create applications never ...
Ram Murat Sharma
 
Introduction to yarn N.Nandhitha II M.Sc., computer science Bon secours colle...
Introduction to yarn N.Nandhitha II M.Sc., computer science Bon secours colle...Introduction to yarn N.Nandhitha II M.Sc., computer science Bon secours colle...
Introduction to yarn N.Nandhitha II M.Sc., computer science Bon secours colle...
Nandhitha B
 
Online Datastage training
Online Datastage trainingOnline Datastage training
Online Datastage training
chpriyaa1
 
MongoDB - An Introduction
MongoDB - An IntroductionMongoDB - An Introduction
MongoDB - An Introduction
sethfloydjr
 
Data warehouse 2.0 and sql server architecture and vision
Data warehouse 2.0 and sql server architecture and visionData warehouse 2.0 and sql server architecture and vision
Data warehouse 2.0 and sql server architecture and vision
Klaudiia Jacome
 
ReactJS
ReactJSReactJS
Microsoft SQL Server - Files and Filegroups
Microsoft SQL Server - Files and FilegroupsMicrosoft SQL Server - Files and Filegroups
Microsoft SQL Server - Files and Filegroups
Naji El Kotob
 

What's hot (20)

Ms sql server
Ms sql serverMs sql server
Ms sql server
 
Sql server-dba
Sql server-dbaSql server-dba
Sql server-dba
 
Introduction to yarn B.Nandhitha 2nd M.sc., computer science,Bon secours coll...
Introduction to yarn B.Nandhitha 2nd M.sc., computer science,Bon secours coll...Introduction to yarn B.Nandhitha 2nd M.sc., computer science,Bon secours coll...
Introduction to yarn B.Nandhitha 2nd M.sc., computer science,Bon secours coll...
 
Datastage parallell jobs vs datastage server jobs
Datastage parallell jobs vs datastage server jobsDatastage parallell jobs vs datastage server jobs
Datastage parallell jobs vs datastage server jobs
 
Group Members
Group MembersGroup Members
Group Members
 
Sql – pocket guide
Sql – pocket guideSql – pocket guide
Sql – pocket guide
 
Ado.net
Ado.netAdo.net
Ado.net
 
Inb343 week2 sql server intro
Inb343 week2 sql server introInb343 week2 sql server intro
Inb343 week2 sql server intro
 
Sql server introduction fundamental
Sql server introduction fundamentalSql server introduction fundamental
Sql server introduction fundamental
 
Db2 migration -_tips,_tricks,_and_pitfalls
Db2 migration -_tips,_tricks,_and_pitfallsDb2 migration -_tips,_tricks,_and_pitfalls
Db2 migration -_tips,_tricks,_and_pitfalls
 
Sql server basics
Sql server basicsSql server basics
Sql server basics
 
Migration from 8.1 to 11.3
Migration from 8.1 to 11.3Migration from 8.1 to 11.3
Migration from 8.1 to 11.3
 
Datastores
DatastoresDatastores
Datastores
 
MongoDB - A next-generation database that lets you create applications never ...
MongoDB - A next-generation database that lets you create applications never ...MongoDB - A next-generation database that lets you create applications never ...
MongoDB - A next-generation database that lets you create applications never ...
 
Introduction to yarn N.Nandhitha II M.Sc., computer science Bon secours colle...
Introduction to yarn N.Nandhitha II M.Sc., computer science Bon secours colle...Introduction to yarn N.Nandhitha II M.Sc., computer science Bon secours colle...
Introduction to yarn N.Nandhitha II M.Sc., computer science Bon secours colle...
 
Online Datastage training
Online Datastage trainingOnline Datastage training
Online Datastage training
 
MongoDB - An Introduction
MongoDB - An IntroductionMongoDB - An Introduction
MongoDB - An Introduction
 
Data warehouse 2.0 and sql server architecture and vision
Data warehouse 2.0 and sql server architecture and visionData warehouse 2.0 and sql server architecture and vision
Data warehouse 2.0 and sql server architecture and vision
 
ReactJS
ReactJSReactJS
ReactJS
 
Microsoft SQL Server - Files and Filegroups
Microsoft SQL Server - Files and FilegroupsMicrosoft SQL Server - Files and Filegroups
Microsoft SQL Server - Files and Filegroups
 

Similar to Discover Database

PostgreSQL Terminology
PostgreSQL TerminologyPostgreSQL Terminology
PostgreSQL Terminology
Showmax Engineering
 
Ms sql server architecture
Ms sql server architectureMs sql server architecture
Ms sql server architecture
Ajeet Singh
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
Douglas Bernardini
 
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangaloreOracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
TIB Academy
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
puja_dhar
 
Azure Data Fundamentals DP 900 Full Course
Azure Data Fundamentals DP 900 Full CourseAzure Data Fundamentals DP 900 Full Course
Azure Data Fundamentals DP 900 Full Course
Piyush sachdeva
 
Active directory interview_questions
Active directory interview_questionsActive directory interview_questions
Active directory interview_questions
subhashmr
 
Active directory interview_questions
Active directory interview_questionsActive directory interview_questions
Active directory interview_questions
Umesh Sawant
 
Sql server
Sql serverSql server
Sql server
Puja Gupta
 
Architectural Anti Patterns - Notes on Data Distribution and Handling Failures
Architectural Anti Patterns - Notes on Data Distribution and Handling FailuresArchitectural Anti Patterns - Notes on Data Distribution and Handling Failures
Architectural Anti Patterns - Notes on Data Distribution and Handling Failures
Gleicon Moraes
 
Rise of NewSQL
Rise of NewSQLRise of NewSQL
Rise of NewSQL
Sushant Choudhary
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
Sandeep Kamath
 
System Design Basics by Pratyush Majumdar
System Design Basics by Pratyush MajumdarSystem Design Basics by Pratyush Majumdar
System Design Basics by Pratyush Majumdar
Pratyush Majumdar
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
durgaprasad1407
 
High availability solutions bakostech
High availability solutions bakostechHigh availability solutions bakostech
High availability solutions bakostech
Viktoria Bakos
 
Sqllite
SqlliteSqllite
Sqllite
Senthil Kumar
 
Rdbms
RdbmsRdbms
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
NIVETHA37590
 
Bt0066 database management system1
Bt0066 database management system1Bt0066 database management system1
Bt0066 database management system1
Techglyphs
 
Introduction to Data Management
Introduction to Data ManagementIntroduction to Data Management
Introduction to Data Management
Cloudbells.com
 

Similar to Discover Database (20)

PostgreSQL Terminology
PostgreSQL TerminologyPostgreSQL Terminology
PostgreSQL Terminology
 
Ms sql server architecture
Ms sql server architectureMs sql server architecture
Ms sql server architecture
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangaloreOracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
 
Azure Data Fundamentals DP 900 Full Course
Azure Data Fundamentals DP 900 Full CourseAzure Data Fundamentals DP 900 Full Course
Azure Data Fundamentals DP 900 Full Course
 
Active directory interview_questions
Active directory interview_questionsActive directory interview_questions
Active directory interview_questions
 
Active directory interview_questions
Active directory interview_questionsActive directory interview_questions
Active directory interview_questions
 
Sql server
Sql serverSql server
Sql server
 
Architectural Anti Patterns - Notes on Data Distribution and Handling Failures
Architectural Anti Patterns - Notes on Data Distribution and Handling FailuresArchitectural Anti Patterns - Notes on Data Distribution and Handling Failures
Architectural Anti Patterns - Notes on Data Distribution and Handling Failures
 
Rise of NewSQL
Rise of NewSQLRise of NewSQL
Rise of NewSQL
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
 
System Design Basics by Pratyush Majumdar
System Design Basics by Pratyush MajumdarSystem Design Basics by Pratyush Majumdar
System Design Basics by Pratyush Majumdar
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 
High availability solutions bakostech
High availability solutions bakostechHigh availability solutions bakostech
High availability solutions bakostech
 
Sqllite
SqlliteSqllite
Sqllite
 
Rdbms
RdbmsRdbms
Rdbms
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
 
Bt0066 database management system1
Bt0066 database management system1Bt0066 database management system1
Bt0066 database management system1
 
Introduction to Data Management
Introduction to Data ManagementIntroduction to Data Management
Introduction to Data Management
 

More from Wayne Weixin

QA part 2
QA part 2QA part 2
QA part 2
Wayne Weixin
 
Presentation living quebecafterstudies
Presentation living quebecafterstudiesPresentation living quebecafterstudies
Presentation living quebecafterstudies
Wayne Weixin
 
Interview guide 5 steps v2
Interview guide 5 steps v2Interview guide 5 steps v2
Interview guide 5 steps v2
Wayne Weixin
 
魁北克法语学习机构列表 Liste organismes-regions
魁北克法语学习机构列表 Liste organismes-regions魁北克法语学习机构列表 Liste organismes-regions
魁北克法语学习机构列表 Liste organismes-regions
Wayne Weixin
 
Big Data, Big Dream
Big Data, Big DreamBig Data, Big Dream
Big Data, Big Dream
Wayne Weixin
 

More from Wayne Weixin (6)

AQAADI
AQAADIAQAADI
AQAADI
 
QA part 2
QA part 2QA part 2
QA part 2
 
Presentation living quebecafterstudies
Presentation living quebecafterstudiesPresentation living quebecafterstudies
Presentation living quebecafterstudies
 
Interview guide 5 steps v2
Interview guide 5 steps v2Interview guide 5 steps v2
Interview guide 5 steps v2
 
魁北克法语学习机构列表 Liste organismes-regions
魁北克法语学习机构列表 Liste organismes-regions魁北克法语学习机构列表 Liste organismes-regions
魁北克法语学习机构列表 Liste organismes-regions
 
Big Data, Big Dream
Big Data, Big DreamBig Data, Big Dream
Big Data, Big Dream
 

Recently uploaded

国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
zoowe
 
Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?
Paul Walk
 
Search Result Showing My Post is Now Buried
Search Result Showing My Post is Now BuriedSearch Result Showing My Post is Now Buried
Search Result Showing My Post is Now Buried
Trish Parr
 
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
uehowe
 
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
uehowe
 
Explore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories SecretlyExplore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories Secretly
Trending Blogers
 
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
bseovas
 
Understanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdfUnderstanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdf
SEO Article Boost
 
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
cuobya
 
Azure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdfAzure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdf
AanSulistiyo
 
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalmanuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
wolfsoftcompanyco
 
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Florence Consulting
 
Discover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to IndiaDiscover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to India
davidjhones387
 
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
xjq03c34
 
Design Thinking NETFLIX using all techniques.pptx
Design Thinking NETFLIX using all techniques.pptxDesign Thinking NETFLIX using all techniques.pptx
Design Thinking NETFLIX using all techniques.pptx
saathvikreddy2003
 
Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!
Toptal Tech
 
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
cuobya
 
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
cuobya
 
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
zyfovom
 
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
ysasp1
 

Recently uploaded (20)

国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
国外证书(Lincoln毕业证)新西兰林肯大学毕业证成绩单不能毕业办理
 
Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?Should Repositories Participate in the Fediverse?
Should Repositories Participate in the Fediverse?
 
Search Result Showing My Post is Now Buried
Search Result Showing My Post is Now BuriedSearch Result Showing My Post is Now Buried
Search Result Showing My Post is Now Buried
 
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
办理毕业证(NYU毕业证)纽约大学毕业证成绩单官方原版办理
 
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
留学挂科(UofM毕业证)明尼苏达大学毕业证成绩单复刻办理
 
Explore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories SecretlyExplore-Insanony: Watch Instagram Stories Secretly
Explore-Insanony: Watch Instagram Stories Secretly
 
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
不能毕业如何获得(USYD毕业证)悉尼大学毕业证成绩单一比一原版制作
 
Understanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdfUnderstanding User Behavior with Google Analytics.pdf
Understanding User Behavior with Google Analytics.pdf
 
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
制作毕业证书(ANU毕业证)莫纳什大学毕业证成绩单官方原版办理
 
Azure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdfAzure EA Sponsorship - Customer Guide.pdf
Azure EA Sponsorship - Customer Guide.pdf
 
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalmanuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
manuaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaal
 
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdfMeet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
Meet up Milano 14 _ Axpo Italia_ Migration from Mule3 (On-prem) to.pdf
 
Discover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to IndiaDiscover the benefits of outsourcing SEO to India
Discover the benefits of outsourcing SEO to India
 
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
办理新西兰奥克兰大学毕业证学位证书范本原版一模一样
 
Design Thinking NETFLIX using all techniques.pptx
Design Thinking NETFLIX using all techniques.pptxDesign Thinking NETFLIX using all techniques.pptx
Design Thinking NETFLIX using all techniques.pptx
 
Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!Ready to Unlock the Power of Blockchain!
Ready to Unlock the Power of Blockchain!
 
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
可查真实(Monash毕业证)西澳大学毕业证成绩单退学买
 
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
假文凭国外(Adelaide毕业证)澳大利亚国立大学毕业证成绩单办理
 
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
学位认证网(DU毕业证)迪肯大学毕业证成绩单一比一原版制作
 
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
成绩单ps(UST毕业证)圣托马斯大学毕业证成绩单快速办理
 

Discover Database

  • 2.
  • 3. A database is an organized collection of data. It is the collection of schemas, tables, queries, reports, views, and other objects.The data are typically organized to model aspects of reality in a way that supports processes requiring information (copied from Wikipedia)
  • 4.  Tables  View  Materialized View  Index  Procedure  Sequence  Trigger  DB Link
  • 5. A table is a collection of related data held in a structured format within a database. It consists of columns, and rows.
  • 6. A view is a virtual table based on the result-set of an SQL statement. A view contains rows and columns, just like a real table. The fields in a view are fields from one or more real tables in the database. Sample: CREATE VIEW view_dept_201 AS SELECT emp_id, name, hire_date FROM gdb.employees WHERE department = 201;
  • 7. A materialized view is a database object that contains the results of a query Sample: Create materialized view myView as select * from myTab; Refresh materialized view myView; Materialized View ViewVS
  • 8.
  • 9.
  • 10.
  • 11.  Primary Key  Unique Index  Foreign key  Index Primary Key Unique Index
  • 12. A stored procedure is a set of Structured Query Language (SQL) statements with an assigned name that's stored in the database in compiled form so that it can be shared by a number of programs. Sample
  • 13.
  • 14. A trigger is a special kind of stored procedure that automatically executes when an event occurs in the database server. DML triggers execute when a user tries to modify data through a data manipulation language (DML) event. DML events are INSERT, UPDATE, or DELETE statements on a table or view
  • 15. Dblink is a module which supports connections to other databases from within a database session
  • 16.  ACID  Transaction  Distributed Transaction  Two Phase Commit  Real Commit Diagram
  • 17.
  • 18. A transaction is a unit of work that you want to treat as "a whole". It has to either happen in full, or not at all. Commit RollbackOR
  • 19. A distributed transaction is a database transaction in which two or more network hosts are involved
  • 20.
  • 21.
  • 22.  DDL: Data Definition Language  DML: Data Manipulation Language  DRL: Data Retrieval Language  TCL: Transaction Control Language  DCL: Data Control Language
  • 23. A deadlock is a situation in which two or more transactions are waiting for one another to give up locks. 1, Select for Update 2, Insert 3, Update 4, Delete
  • 25.  Tablespace A tablespace is a storage location where the actual data underlying database objects can be kept. It provides a layer of abstraction between physical and logical data, and serves to allocate storage for all DBMS managed segments.  Fragmentation
  • 27.  Table Fragmentation  Index Fragmentation  How to Perform the fragmentation  Vacuum Database  Rebuild Index  Rebuild Table
  • 28. A partition is a division of a logical database or its constituent elements into distinct independent parts. Database partitioning is normally done for manageability, performance or availability reasons, as for load balancing. Partitioning criteria  Range partitioning  List partitioning  Hash partitioning  Composite partitioning
  • 29.
  • 30.
  • 31.
  • 32.
  • 33. Database Sharding is a highly scalable approach for improving the throughput and overall performance of high-transaction, large database-centric business applications
  • 34.
  • 35. Database replication is the frequent electronic copying data from a database in one computer or server to a database in another so that all users share the same level of information.
  • 36. Primary StandbyStreamingWAL Primary Standby StreamingWAL Commit transaction Then do replication Commit transaction after did replication Replication delay Transaction operation good No any delay Transaction operation is not so good
  • 37. Clustering offers two major advantages, especially in high-volume database environments:  Fault tolerance: Because there is more than one server or instance for users to connect to, clustering offers an alternative, in the event of individual server failure.  Load balancing:The clustering feature is usually set up to allow users to be automatically allocated to the server with the least load.
  • 38.  Shared Data Array  Master – Slave(s)  Master - Master
  • 39. Shared data disk array Database instance 1 Database instance 2  Positive Shared data disk array solution can avoid take long time to synchronized the data between the different database. When the postgres instance1 failed, you just need to assign all the clients to connect to instance2 and all the data will not lost.  Negative Because all the data is stored in the same disks, if the disks are failed, the data will lost.
  • 41.  Multiple Master mode Master Master Middleware Master Standb y WAL Logs Middleware Sync Replication Write Write ReadWrite
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.  What’s the database  The objects in database • Tables • View • Materialized View • Index • Procedure • Sequence • Trigger • DB Link  Database Transaction • ACID • Transaction • Distributed Transaction • Two phase commit • Database Real Commit Diagram • Database operation • DDL • DML • DRL • TCL • DCL  Database deadlock  Database performance • Tuning performance • Tablespace • Fragmentation  Table partition • Range • List • Hash • Composite • Partition index • Global • Local  OLTP VS OLAP  DB sharding  DB replication • Async • Sync  DB Cluster • Shared Disk Array • Master – Slave(s) • Multiple Master  Cloud Database  RDBM VS NoSQL