Thursday, January 29, 2015

Functions of Database Administrators


Functions of Database Administrator / List the major functions of a DBA / What are the functions of a database administrator? / Functions of DBA with simple examples


Functions of Database Administrator (DBA)

Database Administrator is one of the stakeholders of DBMS. He is role is to control the database system as a whole. The major functions of a DBA are the following;

  • Selection of hardware and software: for example, he has to anticipate the size of the database in the near future and go for necessary hardware.
  • Schema definition / Database structure definition: DBA is the person who defines the structure of a database and creates databases using set of DDL statements. For example, DBA can create a table using SQL as follows;
CREATE TABLE stu(Regno CHAR(5) PRIMARY KYE, SName VARCHAR(30) NOT NULL, Phone NUMBER(10) NOT NULL);

  • Storage structure and access-method definition: DBA defines the way to store data and the ways to access the stored data. Some of the access methods include, how to use indexes?, when to use indexes? how to store tables? etc.
  • Schema and physical organization modification: DBA changes the structure of the tables or other database components, modifies the physical organization of data files etc. This alteration is mainly performed to improve the system efficiency. For example, the structure of the table stu created above can be modified as follows to add another attribute Gender;
ALTER TABLE stu ADD Gender CHAR(1) NOT NULL CHECK (Gender in (‘M’, ‘F’));

  • Granting of authorization for data access: DBA decides and permits various users to access database. Normally, one cannot permit all the users to access all the content of a database. In reality, except DBA all the other users are considered as restricted users. DBA can restrict users to access only a portion of a table, only to view records, only to insert records, only to insert and modify records and so on. For example, the following statement permits the user Ram to view the records from the table stu;
GRANT SELECT ON stu TO Ram;

  • Routine maintenance: Schema definition, alteration, and physical organization modification are usually done only very few times by the DBA. The major work is to maintain the database and its users. The following list shows some of the routine maintenance work of a DBA;

Authorizing users
Backing up of database
Recovery of database in case of failures
Checking the availability of disk space
Checking the performance of the DBMS
Monitoring for unauthorized access etc.
 

All the functions listed above are well defined and includes various sub-functions according to the business application.


Go to Database Introduction page

Go to Advanced Database Concepts page






Monday, January 19, 2015

Cassandra Overview





Cassandra - A Overview


Cassandra: - Cassandra was developed in 2008 by AvinashLakshman and Prashant Malik. The developer of Cassandra is Apache Software Foundation. It is written in Java. It is an open source distributed database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure. Cassandra achieves the highest throughput for the maximum number of nodes in all experiments" although "this comes at the price of high write and read latencies.

Features
v  Decentralized
Every node in the cluster has the same role. There is no single point of failure.
v  Supports replication and multi data center replication
Replication strategies are configurable. Cassandra is designed as a distributed system, for deployment of large numbers of nodes across multiple data centers.
v  Scalability
Read and write throughput both increase linearly as new machines are added, with no downtime or interruption to applications.
v  Fault-tolerant
Data is automatically replicated to multiple nodes for fault-tolerance. Replication across multiple data centers is supported. Failed nodes can be replaced with no downtime.
v  Tunable consistency
Writes and reads offer a tunable level of consistency, all the way from "writes never fail" to "block for all replicas to be readable", with the quorum level in the middle.
v  MapReduce support
Cassandra has Hadoop integration, with MapReduce support. There is support also for Apache Pig and Apache Hive.
v  Query language
Cassandra introduces CQL (Cassandra Query Language), a SQL-like alternative to the traditional RPC interface. Language drivers are available or Java (JDBC), Python(DBAPI2), Node.JS (Helenus) and Go (gocql).

Advantages
Ø  It offers robust support for clusters spanning multiple datacenters.
Ø  Its performance is high.

Disadvantage
Cassandra does not support joins or subqueries.


Wednesday, January 14, 2015

CS2255 Database Management Systems Question Paper and Answer Sets





Anna University B.E./B.Tech. DEGREE EXAMINATION Fourth Semester Computer Science and Engineering CS2255 Database Management Systems (Regulation 2008) Semester : 4 Year : 2nd yr Regulation : 2008 Department : CSE


Anna University
B.E./B.Tech. DEGREE EXAMINATION
Fourth Semester
Computer Science and Engineering
CS2255 Database Management Systems
(Regulation 2008)


Semester : 4
Year : 2nd yr
Regulation : 2008
Department : B.E CSE
Subject Code : CS2255
Subject Name : Database Management Systems

To View or Download the following CS2255 Question Papers CLICK HERE:

CS2255 Database Management Systems question paper - Apr/May 2010
CS2255 Database Management Systems question paper - Nov/Dec 2010
CS2255 Database Management Systems question paper - Apr/May 2011
CS2255 Database Management Systems question paper - Nov/Dec 2011
CS2255 Database Management Systems question paper - May/June 2012
CS2255 Database Management Systems question paper - Nov/Dec 2012
CS2255 Database Management Systems question paper - May/June 2013
CS2255 Database Management Systems question paper - Nov/Dec 2013
CS2255 Database Management Systems question paper - May/June 2014
CS2255 Database Management Systems question paper - Nov/Dec 2014
CS2255 Database Management Systems question paper - May/June 2015

To View or Download the following CS2255 Question Papers CLICK HERE:









Tuesday, January 13, 2015

Normalization - Solved exercises Home


Set of solved exercises in Normalization / Normalization Solved Examples / How to find candidate keys, and primary keys in database? / Sets of examples to find the keys of a tables / Process of finding Key in a database - Examples

INSERT, DELETE, MODIFY Anomalies Identification

Primary key / Candidate key identification

 Primary key / Candidate key identification

  Normalization

Find the functional dependencies that violate a normal form

Normalization Solved Questions



Decomposition - Lossy or lossless

Equivalent Functional Dependencies





normalization solved exercises


how to normalize a relation to second normal form (2nf)
how to normalize a relation to third normal form (3nf)
how to normalize a relation to Boyce-code normal form (BCNF)
find minimal cover
find canonical cover
lossless and lossy join decomposition
find candidate keys and super keys
what is candidate key
find functional dependencies
transitive functional dependency
armstrong's axioms





Featured Content

Multiple choice questions in Natural Language Processing Home

MCQ in Natural Language Processing, Quiz questions with answers in NLP, Top interview questions in NLP with answers Multiple Choice Que...

All time most popular contents