SlideShare a Scribd company logo
1 of 17
Download to read offline
1
Database Management System
BT0066 Part-1
By Milan K Antony
2
 What are the representative applications of
Databases? List them.
A collection of programs that enables you to store, modify,
and extract information from a database. There are many
different types of DBMSs, ranging from small systems that run
on personal computers to huge systems that run on
mainframes. The following are examples of database
applications: computerized library, systems automated teller
machines, flight reservation systems, computerized parts
inventory systems.
Databases function in many applications, spanning virtually
the entire range of computer software. Databases have
become the preferred method of storage for large multi-user
applications, where coordination between many users is needed.
Even individual users find them convenient, and many electronic
mail programs and personal organizers are based on standard
database technology. Software database drivers are available
for most database platforms so that application software can
use a common API to retrieve the information stored in a
database. Commonly used database APIs include JDBC and
ODBC.
3
2. Explain Oracle Architecture with a neat diagram.
Oracle Database Server is made of two major
components.Oracle Server = Oracle Instance (RAM) + Oracle
Database (Physical disk)
Oracle Instance
 Created in the RAM of the server.
 Gets created on startup of the database.
 Memory size and other related parameters are defined in
parameter file.
 Used to access the database (Physical files).
4
 It is always connected to one database only.
 Made of memory structure and background processes.
When user starts a tool like Oracle forms, other application
software or SQL plus to connect to oracle database, a user
process starts on the user’s machine. It will request the
connection to the database, so server process will start on the
server on which database is created. User process
communicates with Oracle Instance via server process, and
server process communicates with database.
User can create connection with Oracle server by three
different ways:
 1 Tier connection: In this type user log on to the same
machine on which oracle database is resides.
 2 Tire connection: In this type user log on to the
separate client machine and then connects to database
through network. This also called as client-server type of
the connection.
 3 Tier (N Tire) connection: In this type, user log on to
the separate client machine and connect to middle tire-
application server and application server connects to
oracle database.
Session: A session is a separate connection between user and
oracle server. This gets created when user get authenticated
by the oracle server.
5
Oracle Database
 It is a physical storage disk on the server.
 It is the physical files related to the database.
 These files are mainly three types.
o Data files - Contains actual data.
o Online Redo log files - Records changes in the data.
o Control files - Contains information to maintain and
operate the database.
 Oracle server also having other files, those are not a part
of database are.
o Password file - Authenticate user to startup and
shutdown the database.
o Parameter file - It defines the characteristics of an
Instance like size of the different memory structure
of the SGA etc.
o Archive log files – These are the offline copies of
the online redo log files.
Click here to get more information about database.
Oracle Instance Details
Oracle Instance = Memory Structure + Background processes.
Memory Structure
It is made of two memory areas:
6
 System Global Area (SGA): Created at the startup of
instance.
 Program Global Area (PGA): Created at the startup of
the server process.
System Global Area (SGA):
System Global Area is made of following different memory
areas:
 Database Buffer Cache
 Shared pool
 Redo log buffer
 Large pool (Optional)
 Java pool (Optional)
 Other miscellaneous like area for locks, latches and other
processes related required memory area.
 Differentiate relation and relation schema.
Relational Schema refers to meta-data elements which are
used to describe structures and constraints of data
representing a particular domain. Whereas a relation is a
property or predicate that ranges over more than one
argument. Relation and Relation schema are the terminologies
of SQL and Relation is known as Table and Relation Schema is
known as Table definition. In other words, Relation schema
defines the meta data elements which represent a particular
domain. For example, they define the structures and
constraints of data. On the other hand, relation is the
7
predicate for example, Relation schema for a person "relation"
can be shown in the following manner:
Person(FirstName, LastName, Age, Gender, Address)
A relation schema can be thought of as the basic information
describinga table or relation. This includes a set of column
names, the data types associatedwith each column, and the
name associated with the entire table
A database relation is a predefined row/column format for
storing information in a relational database. Relations are
equivalent to tables.
 Explain indexed and virtual storage access methods.
ISAM (Indexed Sequential Access Method), like physical
sequential files, stores the records back-to-back, making for
very efficient use of disk space. However, unlike physical
sequential, ISAM files must be stored on disk, since the disk
addresses are needed to create the indexes. The physical
location of records within ISAM is not important since the
indexes take care of the access to the records. A single
ISAM file may have many dozens of indexes, each allowing the
files to be retrieved in some pre-defined order. In some
case, the size of the indexes will exceed the size of the base
file. the Virtual Storage Access Method (VSAM) (Virtual
Storage Access Method) it is a combination of the best
features of QSAM and ISAM. Allows physical sequential files to
be indexed on multiple data items. By having multiple indexes,
data can be retrieved directly in several ways and you can
8
access data anywhere in the file using a different index. VSAM
is designed specifically for use with disks. Because VSAM data
set structure permits the use of both direct and sequential
access types, you can select either the type or the combination
of access types that best suits your specific application
requirements.
5. What information is stored in the system catalogs?
The system catalog is a collection of tables and views
that contain data about the following:
 Tables and views in a DBEnvironment
 Any indexes, hash structures, constraints, and rules
defined for tables
 DBEFiles and DBEFileSets in the DBEnvironment
 Specific authorities granted to each user
 Programs that can access data in the DBEnvironment
 Current DBEnvironment statistics
 Temporary space for sorts
 Procedures
ALLBASE/SQL uses the system catalog to maintain data
integrity and to optimize data access. The system views are
primarily a tool for the DBA. Initially, only the DBA can
9
access these views. Other users need to be granted SELECT
authority by the DBA to access them. Users without SELECT
authority can retrieve descriptions of database objects they
own from the CATALOG views. For information on system and
catalog views, refer to chapter "System Catalog" in the
ALLBASE/SQL Database Administration Guide.
When a DBEnvironment is first configured, the information in
the system catalog describes the system tables and views
themselves. As database objects are defined, their definitions
are stored in the system catalog. As database activities occur,
most of the information in the catalog is updated
automatically, so the system catalog provides an up-to-date
source of information on a DBEnvironment.
Immediately following an UPDATE STATISTICS statement, the
views in the system catalog, summarized in Table 2-2, are a
source of up-to-date information on a DBEnvironment and
the structure and use of its databases. Refer to the
ALLBASE/SQL Database Administration Guide for additional
information on the system catalog.
6. What are entities and attributes? Give examples.
Entity,Object in the real world.Attributes,Describe each
entity. the entity is typically a Clinical Event, as described
above. In more general-purpose settings, the entity is a
foreign key into an "Objects" table that records common
10
information about every "object" (thing) in the database – at
the minimum, a preferred name and brief description, as well
as the category/class of entity to which it belongs. Every
record (object) in this table is assigned a machine-generated
Object ID.
As you begin to design the music database, you are either
creating a new system or you are transferring data from a
non-relational system to ALLBASE/SQL. Regardless of where
you're coming from, you need to take a comprehensive look at
all the information needs that will be served by the database
system. This means identifying the elements for which you need
to store and retrieve information. These elements are known
as entities. A list of entities grows out of studying how the
data is used by its owners.
By approaching the problem intuitively, you can probably
identify four different categories of information required by
the radio station:
 Album information.
 Selection information.
 Composer information.
 Station log information.
These are the entities in the data.
11
Next, you need to define the attributes of each entity, which
are the useful pieces of information to be stored in tables.
In addition to supplying informational detail, some attributes
are used to distinguish one entity from another. As you
subdivide your data, make sure that for each entity you
define, at least one attribute can uniquely identify an instance
of the entity. This attribute or group of attributes is known
as a key.
Table 2-1 Attributes for Four Entities
Album Entity
Selection
Entity
Composer
Entity
Station Log
Entity
Album Name
Selection
Title
Name
Selection
Title
Medium
Composer
Name
Date of
Birth
Start Time
Album Cost Timing Birthplace End Time
Recording
Company
Performers Comment Announcer
Date
Recorded
Comment Comment
Manufacturer'
s Code
Comment
12
As the design evolves, entities eventually become database
tables, and attributes eventually become columns. Note,
however, that at this stage you have not yet identified the
form of the database tables. Before you can do that, you
need to identify relationships.
7. List and explain MySQL architectural primary subsystems.
MySQL is based on a tiered architecture, consisting of both
primary subsystems and support components that interact with
each other to read, parse, and execute queries, and to cache
and return query results.
Primary Subsystems
The MySQL architecture consists of five primary subsystems that
work together to respond to a request made to the MySQL
database server:
The Query Engine
The Storage Manager
The Buffer Manager
The Transaction Manager
The Recovery Manager
The organization of these features is shown in Figure 1.We’ll
explain each one briefly to help you gain a better
understanding of how the parts fit together.
13
FIGURE 1 MySQL subsystems
The Query Engine
This subsystem contains three interrelated components:
The Syntax Parser
The Query Optimizer
The Execution Component
The Syntax Parser decomposes the SQL commands it receives
from calling programs into a form that can be understood by
the MySQL engine. The objects that will be used are
identified, along with the correctness of the syntax. The
Syntax Parser also checks the objects being referenced to
ensure that the privilege level of the calling program allows it
to use them.
The Query Optimizer then streamlines the syntax for use by the
Execution Component, which then prepares the most efficient
plan of query execution. The Query Optimizer checks to see
which index should be used to retrieve the data as quickly and
efficiently as possible. It chooses one from among the several
ways it has found to execute the query and then creates a
plan of execution that can be understood by the Execution
Component.
14
The Query Optimizer uses probability-based induction, so you
may want to override it if you think that you already know the
ideal way to access your query results; this will prevent the
engine from using another, less optimal plan. MySQL provides
you the option of giving the engine certain “hints” if you want
it to use specific indexes without checking the Optimizer.
The Execution Component then interprets the execution plan
and, based on the information it has received, makes requests
of the other components to retrieve the records.
8. Construct an E-R diagram for a car insurance company
whose customers own one or more cars each. Each car has
associated with it zero to any number of recorded
accidents.
The relation between Customers and Cars is 1->n, as one
customer can own one or more cars.
The relation ship between Car-Insurance Company and
Customer can be n->1, as some customers has more than 1
car..so they may have more than one insurance with the
company.
The relationship between cars and Accidents is (0...1) -> n.
(0..1) means it is either 0 or 1.
15
9. Explain various performance measures of disks.
The main measures of the qualities of a disk are
capacity, access time, data transfer rate, and reliability,
access time: the time from when a read or write request is
issued to when data transfer begins. To access data on a
given sector of a disk, the arm first must move so that it is
positioned over the correct track, and then must wait for the
sector to appear under it as the disk rotates. The time for
repositioning the arm is called seek time, and it increases with
the distance the arm must move. Typical seek time range from
2 to 30 milliseconds.
16
Average seek time is the average of the seek time, measured
over a sequence of (uniformly distributed) random requests,
and it is about one third of the worst-case seek time.
Once the seek has occurred, the time spent waiting for the
sector to be accesses to appear under the head is called
rotational latency time. Average rotational latency time is
about half of the time for a full rotation of the disk.
(Typical rotational speeds of disks ranges from 60 to 120
rotations per second).
The access time is then the sum of the seek time and the
latency and ranges from 10 to 40 milli-sec.
data transfer rate, the rate at which data can be retrieved
from or stored to the disk. Current disk systems support
transfer rate from 1 to 5 megabytes per second.
reliability, measured by the mean time to failure. The typical
mean time to failure of disks today ranges from 30,000 to
800,000 hours (about 3.4 to 91 years).
10. What are the benefits of making the system catalogs
relations?
17
The system catalogs are the place where a relational
database management system stores schema metadata, such as
information about tables and columns, and internal bookkeeping
information .To keep track of all objects, their relationships,
etc., the RDBMS use the same technique they are advocating —
a set of relational tables and views. This approach was first
defined in the SQL92 standard (ISO/IEC 9075-2:199x) and was
implemented across all major RDBMS — to a certain degree.
All metadata is made available as catalog views.Catalog
views present metadata in a format that is independent of any
catalog table implementation, therefore catalog views are not
affected by changes in the underlying catalog tables.Catalog
views are the most efficient way to access core server
metadata.Catalog views are the general interface to catalog
metadata and provide the most direct way to obtain,
transform, and present customized forms of this
metadata.Catalog view names and the names of their columns
are descriptive. Query results match what might be expected
by a user who has a moderate knowledge of the feature that
corresponds to the metadata that is being queried.hence all
this help for query optimization.

More Related Content

What's hot

What's hot (20)

Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
 
Oracle developer interview questions(entry level)
Oracle developer interview questions(entry level)Oracle developer interview questions(entry level)
Oracle developer interview questions(entry level)
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architecture
 
Oracle database introduction
Oracle database introductionOracle database introduction
Oracle database introduction
 
Oracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsOracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creations
 
Oracle
OracleOracle
Oracle
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
 
576 oracle-dba-interview-questions
576 oracle-dba-interview-questions576 oracle-dba-interview-questions
576 oracle-dba-interview-questions
 
All Oracle-dba-interview-questions
All Oracle-dba-interview-questionsAll Oracle-dba-interview-questions
All Oracle-dba-interview-questions
 
Sql Server Basics
Sql Server BasicsSql Server Basics
Sql Server Basics
 
Introduction to Oracle
Introduction to OracleIntroduction to Oracle
Introduction to Oracle
 
Oracle DB
Oracle DBOracle DB
Oracle DB
 
An Introduction To Oracle Database
An Introduction To Oracle DatabaseAn Introduction To Oracle Database
An Introduction To Oracle Database
 
Introduction to Oracle Database
Introduction to Oracle DatabaseIntroduction to Oracle Database
Introduction to Oracle Database
 
Oracle Complete Interview Questions
Oracle Complete Interview QuestionsOracle Complete Interview Questions
Oracle Complete Interview Questions
 
Sql server basics
Sql server basicsSql server basics
Sql server basics
 
Oracle architecture
Oracle architectureOracle architecture
Oracle architecture
 
Rdbms Practical file diploma
Rdbms Practical file diploma Rdbms Practical file diploma
Rdbms Practical file diploma
 
Introducing ms sql_server_updated
Introducing ms sql_server_updatedIntroducing ms sql_server_updated
Introducing ms sql_server_updated
 
11g architecture
11g architecture11g architecture
11g architecture
 

Viewers also liked

Bt0062 fundamentals of it(1)
Bt0062 fundamentals of it(1)Bt0062 fundamentals of it(1)
Bt0062 fundamentals of it(1)Techglyphs
 
Bt0074 oops with java2
Bt0074 oops with java2Bt0074 oops with java2
Bt0074 oops with java2Techglyphs
 
Bt0067 c programming and data structures 1
Bt0067 c programming and data structures 1Bt0067 c programming and data structures 1
Bt0067 c programming and data structures 1Techglyphs
 
Bt8901 objective oriented systems2
Bt8901 objective oriented systems2Bt8901 objective oriented systems2
Bt8901 objective oriented systems2Techglyphs
 
Bt0074 oops with java
Bt0074 oops with javaBt0074 oops with java
Bt0074 oops with javaTechglyphs
 
Bt0067 c programming and data structures2
Bt0067 c programming and data structures2Bt0067 c programming and data structures2
Bt0067 c programming and data structures2Techglyphs
 
Bt9002 grid computing 1
Bt9002 grid computing 1Bt9002 grid computing 1
Bt9002 grid computing 1Techglyphs
 
Bt9002 Grid computing 2
Bt9002 Grid computing 2Bt9002 Grid computing 2
Bt9002 Grid computing 2Techglyphs
 
Bt0062 fundamentals of it(2)
Bt0062 fundamentals of it(2)Bt0062 fundamentals of it(2)
Bt0062 fundamentals of it(2)Techglyphs
 
Bt0064 logic design1
Bt0064 logic design1Bt0064 logic design1
Bt0064 logic design1Techglyphs
 
Bt0064 logic design2
Bt0064 logic design2Bt0064 logic design2
Bt0064 logic design2Techglyphs
 
Bt0066 database management system2
Bt0066 database management system2Bt0066 database management system2
Bt0066 database management system2Techglyphs
 
Elements analysis dfd_er_std
Elements analysis dfd_er_stdElements analysis dfd_er_std
Elements analysis dfd_er_stdAmmar Jamali
 

Viewers also liked (13)

Bt0062 fundamentals of it(1)
Bt0062 fundamentals of it(1)Bt0062 fundamentals of it(1)
Bt0062 fundamentals of it(1)
 
Bt0074 oops with java2
Bt0074 oops with java2Bt0074 oops with java2
Bt0074 oops with java2
 
Bt0067 c programming and data structures 1
Bt0067 c programming and data structures 1Bt0067 c programming and data structures 1
Bt0067 c programming and data structures 1
 
Bt8901 objective oriented systems2
Bt8901 objective oriented systems2Bt8901 objective oriented systems2
Bt8901 objective oriented systems2
 
Bt0074 oops with java
Bt0074 oops with javaBt0074 oops with java
Bt0074 oops with java
 
Bt0067 c programming and data structures2
Bt0067 c programming and data structures2Bt0067 c programming and data structures2
Bt0067 c programming and data structures2
 
Bt9002 grid computing 1
Bt9002 grid computing 1Bt9002 grid computing 1
Bt9002 grid computing 1
 
Bt9002 Grid computing 2
Bt9002 Grid computing 2Bt9002 Grid computing 2
Bt9002 Grid computing 2
 
Bt0062 fundamentals of it(2)
Bt0062 fundamentals of it(2)Bt0062 fundamentals of it(2)
Bt0062 fundamentals of it(2)
 
Bt0064 logic design1
Bt0064 logic design1Bt0064 logic design1
Bt0064 logic design1
 
Bt0064 logic design2
Bt0064 logic design2Bt0064 logic design2
Bt0064 logic design2
 
Bt0066 database management system2
Bt0066 database management system2Bt0066 database management system2
Bt0066 database management system2
 
Elements analysis dfd_er_std
Elements analysis dfd_er_stdElements analysis dfd_er_std
Elements analysis dfd_er_std
 

Similar to Database Management System Explained

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 bangaloreTIB Academy
 
Database Administrator interview questions and answers
Database Administrator interview questions and answersDatabase Administrator interview questions and answers
Database Administrator interview questions and answersMLR Institute of Technology
 
A N S I S P A R C Architecture
A N S I  S P A R C  ArchitectureA N S I  S P A R C  Architecture
A N S I S P A R C ArchitectureSabeeh Ahmed
 
Oracle Database Overview
Oracle Database OverviewOracle Database Overview
Oracle Database Overviewhonglee71
 
Week 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental ConceptsWeek 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental Conceptsoudesign
 
DBMS Full book by Muhammad Sharif title as Database systems Handbook.pdf
DBMS Full book by Muhammad Sharif  title as Database systems Handbook.pdfDBMS Full book by Muhammad Sharif  title as Database systems Handbook.pdf
DBMS Full book by Muhammad Sharif title as Database systems Handbook.pdfBahria University Islamabad, Pakistan
 

Similar to Database Management System Explained (20)

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
 
Database Management Systems
Database Management SystemsDatabase Management Systems
Database Management Systems
 
Database Administrator interview questions and answers
Database Administrator interview questions and answersDatabase Administrator interview questions and answers
Database Administrator interview questions and answers
 
Database systems Handbook 2V.pdf
Database systems Handbook 2V.pdfDatabase systems Handbook 2V.pdf
Database systems Handbook 2V.pdf
 
Database systems Handbook.pdf
Database systems Handbook.pdfDatabase systems Handbook.pdf
Database systems Handbook.pdf
 
Database systems Handbook.pdf
Database systems Handbook.pdfDatabase systems Handbook.pdf
Database systems Handbook.pdf
 
Database systems Handbook dbms.pdf
Database systems Handbook dbms.pdfDatabase systems Handbook dbms.pdf
Database systems Handbook dbms.pdf
 
Database systems Handbook dbms.pdf
Database systems Handbook dbms.pdfDatabase systems Handbook dbms.pdf
Database systems Handbook dbms.pdf
 
Database systems Handbook dbms.pdf
Database systems Handbook dbms.pdfDatabase systems Handbook dbms.pdf
Database systems Handbook dbms.pdf
 
A N S I S P A R C Architecture
A N S I  S P A R C  ArchitectureA N S I  S P A R C  Architecture
A N S I S P A R C Architecture
 
Oracle Database Overview
Oracle Database OverviewOracle Database Overview
Oracle Database Overview
 
Week 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental ConceptsWeek 1 Before the Advent of Database Systems & Fundamental Concepts
Week 1 Before the Advent of Database Systems & Fundamental Concepts
 
DBMS Full book by Muhammad Sharif title as Database systems Handbook.pdf
DBMS Full book by Muhammad Sharif  title as Database systems Handbook.pdfDBMS Full book by Muhammad Sharif  title as Database systems Handbook.pdf
DBMS Full book by Muhammad Sharif title as Database systems Handbook.pdf
 
Muhammad Sharif dbms book title as Database systems Handbook.pdf
Muhammad Sharif dbms book title as Database systems Handbook.pdfMuhammad Sharif dbms book title as Database systems Handbook.pdf
Muhammad Sharif dbms book title as Database systems Handbook.pdf
 
Muhammad Sharif dbms book title as Database systems Handbook.pdf
Muhammad Sharif dbms book title as Database systems Handbook.pdfMuhammad Sharif dbms book title as Database systems Handbook.pdf
Muhammad Sharif dbms book title as Database systems Handbook.pdf
 
Database management systems
Database management systemsDatabase management systems
Database management systems
 
Data Management
Data ManagementData Management
Data Management
 
Introduction to oracle
Introduction to oracleIntroduction to oracle
Introduction to oracle
 
Book by Muhammad Sharif full dbms Database systems handbook.pdf
Book by Muhammad Sharif  full dbms Database systems handbook.pdfBook by Muhammad Sharif  full dbms Database systems handbook.pdf
Book by Muhammad Sharif full dbms Database systems handbook.pdf
 
Book by Muhammad Sharif full dbms Database systems handbook.pdf
Book by Muhammad Sharif  full dbms Database systems handbook.pdfBook by Muhammad Sharif  full dbms Database systems handbook.pdf
Book by Muhammad Sharif full dbms Database systems handbook.pdf
 

More from Techglyphs

Bt0068 computer organization and architecture
Bt0068 computer organization and architecture Bt0068 computer organization and architecture
Bt0068 computer organization and architecture Techglyphs
 
Bt0068 computer organization and architecture 2
Bt0068 computer organization and architecture 2Bt0068 computer organization and architecture 2
Bt0068 computer organization and architecture 2Techglyphs
 
Bt0070 operating systems 1
Bt0070 operating systems  1Bt0070 operating systems  1
Bt0070 operating systems 1Techglyphs
 
Bt0070 operating systems 2
Bt0070 operating systems  2Bt0070 operating systems  2
Bt0070 operating systems 2Techglyphs
 
Bt0072 computer networks 1
Bt0072 computer networks  1Bt0072 computer networks  1
Bt0072 computer networks 1Techglyphs
 
Bt0072 computer networks 2
Bt0072 computer networks  2Bt0072 computer networks  2
Bt0072 computer networks 2Techglyphs
 
Bt0075 rdbms with mysql 1
Bt0075 rdbms with mysql 1Bt0075 rdbms with mysql 1
Bt0075 rdbms with mysql 1Techglyphs
 
Bt0075 rdbms with mysql 2
Bt0075 rdbms with mysql 2Bt0075 rdbms with mysql 2
Bt0075 rdbms with mysql 2Techglyphs
 
Bt0077 multimedia systems
Bt0077 multimedia systemsBt0077 multimedia systems
Bt0077 multimedia systemsTechglyphs
 
Bt0078 website design
Bt0078 website design Bt0078 website design
Bt0078 website design Techglyphs
 
Bt0077 multimedia systems2
Bt0077 multimedia systems2Bt0077 multimedia systems2
Bt0077 multimedia systems2Techglyphs
 
Bt0078 website design 2
Bt0078 website design 2Bt0078 website design 2
Bt0078 website design 2Techglyphs
 
Bt0080 fundamentals of algorithms1
Bt0080 fundamentals of algorithms1Bt0080 fundamentals of algorithms1
Bt0080 fundamentals of algorithms1Techglyphs
 
Bt0080 fundamentals of algorithms2
Bt0080 fundamentals of algorithms2Bt0080 fundamentals of algorithms2
Bt0080 fundamentals of algorithms2Techglyphs
 
Bt0081 software engineering
Bt0081 software engineeringBt0081 software engineering
Bt0081 software engineeringTechglyphs
 
Bt0082 visual basic2
Bt0082 visual basic2Bt0082 visual basic2
Bt0082 visual basic2Techglyphs
 
Bt0081 software engineering2
Bt0081 software engineering2Bt0081 software engineering2
Bt0081 software engineering2Techglyphs
 
Bt0082 visual basic
Bt0082 visual basicBt0082 visual basic
Bt0082 visual basicTechglyphs
 

More from Techglyphs (18)

Bt0068 computer organization and architecture
Bt0068 computer organization and architecture Bt0068 computer organization and architecture
Bt0068 computer organization and architecture
 
Bt0068 computer organization and architecture 2
Bt0068 computer organization and architecture 2Bt0068 computer organization and architecture 2
Bt0068 computer organization and architecture 2
 
Bt0070 operating systems 1
Bt0070 operating systems  1Bt0070 operating systems  1
Bt0070 operating systems 1
 
Bt0070 operating systems 2
Bt0070 operating systems  2Bt0070 operating systems  2
Bt0070 operating systems 2
 
Bt0072 computer networks 1
Bt0072 computer networks  1Bt0072 computer networks  1
Bt0072 computer networks 1
 
Bt0072 computer networks 2
Bt0072 computer networks  2Bt0072 computer networks  2
Bt0072 computer networks 2
 
Bt0075 rdbms with mysql 1
Bt0075 rdbms with mysql 1Bt0075 rdbms with mysql 1
Bt0075 rdbms with mysql 1
 
Bt0075 rdbms with mysql 2
Bt0075 rdbms with mysql 2Bt0075 rdbms with mysql 2
Bt0075 rdbms with mysql 2
 
Bt0077 multimedia systems
Bt0077 multimedia systemsBt0077 multimedia systems
Bt0077 multimedia systems
 
Bt0078 website design
Bt0078 website design Bt0078 website design
Bt0078 website design
 
Bt0077 multimedia systems2
Bt0077 multimedia systems2Bt0077 multimedia systems2
Bt0077 multimedia systems2
 
Bt0078 website design 2
Bt0078 website design 2Bt0078 website design 2
Bt0078 website design 2
 
Bt0080 fundamentals of algorithms1
Bt0080 fundamentals of algorithms1Bt0080 fundamentals of algorithms1
Bt0080 fundamentals of algorithms1
 
Bt0080 fundamentals of algorithms2
Bt0080 fundamentals of algorithms2Bt0080 fundamentals of algorithms2
Bt0080 fundamentals of algorithms2
 
Bt0081 software engineering
Bt0081 software engineeringBt0081 software engineering
Bt0081 software engineering
 
Bt0082 visual basic2
Bt0082 visual basic2Bt0082 visual basic2
Bt0082 visual basic2
 
Bt0081 software engineering2
Bt0081 software engineering2Bt0081 software engineering2
Bt0081 software engineering2
 
Bt0082 visual basic
Bt0082 visual basicBt0082 visual basic
Bt0082 visual basic
 

Recently uploaded

Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 

Recently uploaded (20)

Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 

Database Management System Explained

  • 1. 1 Database Management System BT0066 Part-1 By Milan K Antony
  • 2. 2  What are the representative applications of Databases? List them. A collection of programs that enables you to store, modify, and extract information from a database. There are many different types of DBMSs, ranging from small systems that run on personal computers to huge systems that run on mainframes. The following are examples of database applications: computerized library, systems automated teller machines, flight reservation systems, computerized parts inventory systems. Databases function in many applications, spanning virtually the entire range of computer software. Databases have become the preferred method of storage for large multi-user applications, where coordination between many users is needed. Even individual users find them convenient, and many electronic mail programs and personal organizers are based on standard database technology. Software database drivers are available for most database platforms so that application software can use a common API to retrieve the information stored in a database. Commonly used database APIs include JDBC and ODBC.
  • 3. 3 2. Explain Oracle Architecture with a neat diagram. Oracle Database Server is made of two major components.Oracle Server = Oracle Instance (RAM) + Oracle Database (Physical disk) Oracle Instance  Created in the RAM of the server.  Gets created on startup of the database.  Memory size and other related parameters are defined in parameter file.  Used to access the database (Physical files).
  • 4. 4  It is always connected to one database only.  Made of memory structure and background processes. When user starts a tool like Oracle forms, other application software or SQL plus to connect to oracle database, a user process starts on the user’s machine. It will request the connection to the database, so server process will start on the server on which database is created. User process communicates with Oracle Instance via server process, and server process communicates with database. User can create connection with Oracle server by three different ways:  1 Tier connection: In this type user log on to the same machine on which oracle database is resides.  2 Tire connection: In this type user log on to the separate client machine and then connects to database through network. This also called as client-server type of the connection.  3 Tier (N Tire) connection: In this type, user log on to the separate client machine and connect to middle tire- application server and application server connects to oracle database. Session: A session is a separate connection between user and oracle server. This gets created when user get authenticated by the oracle server.
  • 5. 5 Oracle Database  It is a physical storage disk on the server.  It is the physical files related to the database.  These files are mainly three types. o Data files - Contains actual data. o Online Redo log files - Records changes in the data. o Control files - Contains information to maintain and operate the database.  Oracle server also having other files, those are not a part of database are. o Password file - Authenticate user to startup and shutdown the database. o Parameter file - It defines the characteristics of an Instance like size of the different memory structure of the SGA etc. o Archive log files – These are the offline copies of the online redo log files. Click here to get more information about database. Oracle Instance Details Oracle Instance = Memory Structure + Background processes. Memory Structure It is made of two memory areas:
  • 6. 6  System Global Area (SGA): Created at the startup of instance.  Program Global Area (PGA): Created at the startup of the server process. System Global Area (SGA): System Global Area is made of following different memory areas:  Database Buffer Cache  Shared pool  Redo log buffer  Large pool (Optional)  Java pool (Optional)  Other miscellaneous like area for locks, latches and other processes related required memory area.  Differentiate relation and relation schema. Relational Schema refers to meta-data elements which are used to describe structures and constraints of data representing a particular domain. Whereas a relation is a property or predicate that ranges over more than one argument. Relation and Relation schema are the terminologies of SQL and Relation is known as Table and Relation Schema is known as Table definition. In other words, Relation schema defines the meta data elements which represent a particular domain. For example, they define the structures and constraints of data. On the other hand, relation is the
  • 7. 7 predicate for example, Relation schema for a person "relation" can be shown in the following manner: Person(FirstName, LastName, Age, Gender, Address) A relation schema can be thought of as the basic information describinga table or relation. This includes a set of column names, the data types associatedwith each column, and the name associated with the entire table A database relation is a predefined row/column format for storing information in a relational database. Relations are equivalent to tables.  Explain indexed and virtual storage access methods. ISAM (Indexed Sequential Access Method), like physical sequential files, stores the records back-to-back, making for very efficient use of disk space. However, unlike physical sequential, ISAM files must be stored on disk, since the disk addresses are needed to create the indexes. The physical location of records within ISAM is not important since the indexes take care of the access to the records. A single ISAM file may have many dozens of indexes, each allowing the files to be retrieved in some pre-defined order. In some case, the size of the indexes will exceed the size of the base file. the Virtual Storage Access Method (VSAM) (Virtual Storage Access Method) it is a combination of the best features of QSAM and ISAM. Allows physical sequential files to be indexed on multiple data items. By having multiple indexes, data can be retrieved directly in several ways and you can
  • 8. 8 access data anywhere in the file using a different index. VSAM is designed specifically for use with disks. Because VSAM data set structure permits the use of both direct and sequential access types, you can select either the type or the combination of access types that best suits your specific application requirements. 5. What information is stored in the system catalogs? The system catalog is a collection of tables and views that contain data about the following:  Tables and views in a DBEnvironment  Any indexes, hash structures, constraints, and rules defined for tables  DBEFiles and DBEFileSets in the DBEnvironment  Specific authorities granted to each user  Programs that can access data in the DBEnvironment  Current DBEnvironment statistics  Temporary space for sorts  Procedures ALLBASE/SQL uses the system catalog to maintain data integrity and to optimize data access. The system views are primarily a tool for the DBA. Initially, only the DBA can
  • 9. 9 access these views. Other users need to be granted SELECT authority by the DBA to access them. Users without SELECT authority can retrieve descriptions of database objects they own from the CATALOG views. For information on system and catalog views, refer to chapter "System Catalog" in the ALLBASE/SQL Database Administration Guide. When a DBEnvironment is first configured, the information in the system catalog describes the system tables and views themselves. As database objects are defined, their definitions are stored in the system catalog. As database activities occur, most of the information in the catalog is updated automatically, so the system catalog provides an up-to-date source of information on a DBEnvironment. Immediately following an UPDATE STATISTICS statement, the views in the system catalog, summarized in Table 2-2, are a source of up-to-date information on a DBEnvironment and the structure and use of its databases. Refer to the ALLBASE/SQL Database Administration Guide for additional information on the system catalog. 6. What are entities and attributes? Give examples. Entity,Object in the real world.Attributes,Describe each entity. the entity is typically a Clinical Event, as described above. In more general-purpose settings, the entity is a foreign key into an "Objects" table that records common
  • 10. 10 information about every "object" (thing) in the database – at the minimum, a preferred name and brief description, as well as the category/class of entity to which it belongs. Every record (object) in this table is assigned a machine-generated Object ID. As you begin to design the music database, you are either creating a new system or you are transferring data from a non-relational system to ALLBASE/SQL. Regardless of where you're coming from, you need to take a comprehensive look at all the information needs that will be served by the database system. This means identifying the elements for which you need to store and retrieve information. These elements are known as entities. A list of entities grows out of studying how the data is used by its owners. By approaching the problem intuitively, you can probably identify four different categories of information required by the radio station:  Album information.  Selection information.  Composer information.  Station log information. These are the entities in the data.
  • 11. 11 Next, you need to define the attributes of each entity, which are the useful pieces of information to be stored in tables. In addition to supplying informational detail, some attributes are used to distinguish one entity from another. As you subdivide your data, make sure that for each entity you define, at least one attribute can uniquely identify an instance of the entity. This attribute or group of attributes is known as a key. Table 2-1 Attributes for Four Entities Album Entity Selection Entity Composer Entity Station Log Entity Album Name Selection Title Name Selection Title Medium Composer Name Date of Birth Start Time Album Cost Timing Birthplace End Time Recording Company Performers Comment Announcer Date Recorded Comment Comment Manufacturer' s Code Comment
  • 12. 12 As the design evolves, entities eventually become database tables, and attributes eventually become columns. Note, however, that at this stage you have not yet identified the form of the database tables. Before you can do that, you need to identify relationships. 7. List and explain MySQL architectural primary subsystems. MySQL is based on a tiered architecture, consisting of both primary subsystems and support components that interact with each other to read, parse, and execute queries, and to cache and return query results. Primary Subsystems The MySQL architecture consists of five primary subsystems that work together to respond to a request made to the MySQL database server: The Query Engine The Storage Manager The Buffer Manager The Transaction Manager The Recovery Manager The organization of these features is shown in Figure 1.We’ll explain each one briefly to help you gain a better understanding of how the parts fit together.
  • 13. 13 FIGURE 1 MySQL subsystems The Query Engine This subsystem contains three interrelated components: The Syntax Parser The Query Optimizer The Execution Component The Syntax Parser decomposes the SQL commands it receives from calling programs into a form that can be understood by the MySQL engine. The objects that will be used are identified, along with the correctness of the syntax. The Syntax Parser also checks the objects being referenced to ensure that the privilege level of the calling program allows it to use them. The Query Optimizer then streamlines the syntax for use by the Execution Component, which then prepares the most efficient plan of query execution. The Query Optimizer checks to see which index should be used to retrieve the data as quickly and efficiently as possible. It chooses one from among the several ways it has found to execute the query and then creates a plan of execution that can be understood by the Execution Component.
  • 14. 14 The Query Optimizer uses probability-based induction, so you may want to override it if you think that you already know the ideal way to access your query results; this will prevent the engine from using another, less optimal plan. MySQL provides you the option of giving the engine certain “hints” if you want it to use specific indexes without checking the Optimizer. The Execution Component then interprets the execution plan and, based on the information it has received, makes requests of the other components to retrieve the records. 8. Construct an E-R diagram for a car insurance company whose customers own one or more cars each. Each car has associated with it zero to any number of recorded accidents. The relation between Customers and Cars is 1->n, as one customer can own one or more cars. The relation ship between Car-Insurance Company and Customer can be n->1, as some customers has more than 1 car..so they may have more than one insurance with the company. The relationship between cars and Accidents is (0...1) -> n. (0..1) means it is either 0 or 1.
  • 15. 15 9. Explain various performance measures of disks. The main measures of the qualities of a disk are capacity, access time, data transfer rate, and reliability, access time: the time from when a read or write request is issued to when data transfer begins. To access data on a given sector of a disk, the arm first must move so that it is positioned over the correct track, and then must wait for the sector to appear under it as the disk rotates. The time for repositioning the arm is called seek time, and it increases with the distance the arm must move. Typical seek time range from 2 to 30 milliseconds.
  • 16. 16 Average seek time is the average of the seek time, measured over a sequence of (uniformly distributed) random requests, and it is about one third of the worst-case seek time. Once the seek has occurred, the time spent waiting for the sector to be accesses to appear under the head is called rotational latency time. Average rotational latency time is about half of the time for a full rotation of the disk. (Typical rotational speeds of disks ranges from 60 to 120 rotations per second). The access time is then the sum of the seek time and the latency and ranges from 10 to 40 milli-sec. data transfer rate, the rate at which data can be retrieved from or stored to the disk. Current disk systems support transfer rate from 1 to 5 megabytes per second. reliability, measured by the mean time to failure. The typical mean time to failure of disks today ranges from 30,000 to 800,000 hours (about 3.4 to 91 years). 10. What are the benefits of making the system catalogs relations?
  • 17. 17 The system catalogs are the place where a relational database management system stores schema metadata, such as information about tables and columns, and internal bookkeeping information .To keep track of all objects, their relationships, etc., the RDBMS use the same technique they are advocating — a set of relational tables and views. This approach was first defined in the SQL92 standard (ISO/IEC 9075-2:199x) and was implemented across all major RDBMS — to a certain degree. All metadata is made available as catalog views.Catalog views present metadata in a format that is independent of any catalog table implementation, therefore catalog views are not affected by changes in the underlying catalog tables.Catalog views are the most efficient way to access core server metadata.Catalog views are the general interface to catalog metadata and provide the most direct way to obtain, transform, and present customized forms of this metadata.Catalog view names and the names of their columns are descriptive. Query results match what might be expected by a user who has a moderate knowledge of the feature that corresponds to the metadata that is being queried.hence all this help for query optimization.