Class1 Material
Class1 Material
Class1 Material
A database is a set of related data. By data, we mean known facts that can be
recorded and have an implicit meaning. For example, an address book of a person
contains the details of his friends and relatives which have an implicit meaning.
Now organizations are increasingly aware of the importance of information in the
solution of their problems. Because of decreasing cost of data storage,
organizations store increasing quantities of data and this data must be managed in
the most efficient and effective manner.
2. What is DBMS?
1. Redundancy is controlled.
2. Unauthorised access is restricted.
3. Providing multiple user interfaces.
4. Enforcing integrity constraints.
5. Providing backup and recovery.
6. What’s the difference between file and database? Can files qualify as a
database?
Database users are the one who really use and take the benefits of database. There will be
different types of users depending on their need and way of accessing the database.
1. Application Programmers - They are the developers who interact with the database
by means of DML queries. These DML queries are written in the application programs
like C, C++, JAVA, Pascal etc. These queries are converted into object code to
communicate with the database. For example, writing a C program to generate the
report of employees who are working in particular department will involve a query to
fetch the data from database. It will include a embedded SQL query in the C Program.
2. Specialized Users - These are also sophisticated users, but they write special database
application programs. They are the developers who develop the complex programs to
the requirement.
3. Database Designer - These users design the structure of Database.
4. Naive Users - these are the users who use the existing application to interact with the
database. For example, online library system, ticket booking systems, ATMs etc which
has existing application and users use them to interact with the database to fulfill their
requests.
The life cycle of database starts from designing, implementing to administration of it. A database
for any kind of requirement needs to be designed perfectly so that it should work without any
issues. Once all the design is complete, it needs to be installed. Once this step is complete, users
start using the database. The database grows as the data grows in the database. When the
database becomes huge, its performance comes down. Also accessing the data from the database
becomes challenge. There will be unused memory in database, making the memory inevitably
huge. These administration and maintenance of database is taken care by database Administrator
–DBA.
A DBA has many responsibilities. A good performing database is in the hands of DBA.
Installingand upgrading the DBMS Servers: - DBA is responsible for installing a new
DBMS server for the new projects. He is also responsible for upgrading these servers
as there are new versions comes in the market or requirement. If there is any failure in
upgradation of the existing servers, he should be able revert the new changes back to
the older version, thus maintaining the DBMS working. He is also responsible for
updating the service packs/ hot fixes/ patches to the DBMS servers.
Designand implementation: - Designing the database and implementing is also DBA’s
responsibility. He should be able to decide proper memory management, file
organizations, error handling, log maintenance etc for the database.
Performance tuning: - Since database is huge and it will have lots of tables, data,
constraints and indices, there will be variations in the performance from time to time.
Also, because of some designing issues or data growth, the database will not work as
expected. It is responsibility of the DBA to tune the database performance. He is
responsible to make sure all the queries and programs works in fraction of seconds.
Migrate database servers: - Sometimes, users using oracle would like to shift to SQL
server or Netezza. It is the responsibility of DBA to make sure that migration happens
without any failure, and there is no data loss.
Backup and Recovery: - Proper backup and recovery programs needs to be developed
by DBA and has to be maintained him. This is one of the main responsibilities of
DBA. Data/objects should be backed up regularly so that if there is any crash, it should
be recovered without much effort and data loss.
Security:- DBA is responsible for creating various database users and roles, and giving
them different levels of access rights.
Documentation: - DBA should be properly documenting all his activities so that if he
quits or any new DBA comes in, he should be able to understand the database without
any effort. He should basically maintain all his installation, backup, recovery, security
methods. He should keep various reports about database performance.