DMA Information
DMA Information
Advantages of database :
1) Data Centralization: Databases provide a centralized location for storing and
managing data, making it easily accessible to users and applications.
2) Data Consistency: Databases enforce data integrity constraints, ensuring that data
remains accurate and consistent across the entire system.
3) Data Security: Databases offer security features such as access control, encryption,
and authentication mechanisms to protect sensitive data from unauthorized access and
manipulation.
4) Data Scalability: Databases can scale to handle large volumes of data and support
increasing numbers of users and transactions, ensuring that the system can grow as
the needs of the organization evolve.
What is View
A view is defined as a database object that allows us to create a virtual table in
the database whose contents are defined by a query or taken from one or more
tables. ii. It is used to hide complexity of query from user. iii. The table on
which view is defined is called as base table.
Types of views
1) Simple View
2) Complex View
1)Simple View : i. view based on only one table it is called as simple view.
ii. It allows to perform DML operations with some restrictions.queries of
simple view cannot have any join or grouping condition.
2) Complex View i. views based on more than one table is called as Complex
View. ii. It doesn’t allow DML operations to be performed.query of complex
view can have join or grouping conditions.
Operations of views
1.Create View : i. To create view users needs permission from DBA. ii. Create view can
change name of columns in view as per requirements.
o Restrict : delete view only if there is no other view depends on this view.
o Cascade : delete view along with all dependent views on original view.
3.Modify View : syntax – create or replace view view _name as subquery condition;
Advantages of Views :
1) Security.
2) Dynamic nature of views.
3) No direct access to data dictionary.
4) It provides data integrity.
5) Views hide complexity.
Disadvantages of Views :
1) Sometimes,it take more time to execute.
2) Sometimes vimanagement become difficult.