Oracledocs
Oracledocs
Oracledocs
A client or front end database application also interacts with the data base by
requesting and receiving information from the ‘database server’. It acts as an
interface between the user and the database . Further it also checks for
validation against the data entered by the user.
SQL * PLUS
SQL AND PL/SQL
Among the many application development and end user products available with
in the Oracle family there is a common ability to access the database. Whether
directly or in directly this is achieved through the Structured Query Language
(SQL). This query language have been useful in developing the software in an
efficient way. The Query language has Data Definition Language(DDL), Data
Manipulation Language(DML) and Data Control Language(DCL).
Data Control Language(DCL) is used for controlling data and having access to
the databases. This part of the language provides extensive security features in
order to safe guard the users information from both unauthorized access and
intentional damage. Security is provided by granting and revoking privileges.
Oracle uses have names and passwords and own tables, views and other
database objects.
PL/SQL :
This is a procedural extension to the non procedural SQL. It combines the data
manipulation power of SQL and procedural power of standard procedural
languages. It supports sub-programming features such as procedures and
functions, triggers , packages, exceptions and integrates well with SQL* PLUS
and other application development products of ORACLE.
These facilities have eased the job of developing the software to meet the
organizational requirements. Many similar programming logic have been coded
as functions and procedures and have been used in many areas. For Example
retrieving the records, Calculation of various parameters of Pay etc. This has
been a big advantage in developing the package.
The facility of triggers have been used to generate actions based on some
database events. For example the software, on insertion of records generates an
error message if the record already exists. For deletion of records the software
generates an error message if the record with the given primary key value does
not exist. Similarly for selection of records the software generates error
messages if the record is not present.
Direct SQL interface to the database through SQL Plus lets developers
and users interact with the database and manipulate it directly. The interactive
Developer 2000 FORMS 4.5 helps us to produce prototype applications quickly.
These prototypes can be used as basic units for the real application. Additional
changes to these applications can be done in a very short time .There are three
types of modules one can create with FORMS. They are:
FORMS : Allows creation deletion and updation of data
MENUS : Helps to define a set of main menus for the
application and also the various submenus associated with
the main menu.
Library : A repository of centralized PL/SQL code accessed by
other form modules.
3. The portability of the applications developed using SQL Forms to any platform
like Mainframes or Mini Computers can be achieved.
4. Oracle has the capability top interface with a wide variety of third generation
languages such as C COBOL PASCAL.
5. Oracle is the most popularly used RDBMS in the recent because it satisfies
most of the twelve CODD’s rules for an RDBMS package like
• View Updation
• High level insert delete update
• Physical data independence
Integrity Independence
• Non subversion
• Distributed Independence
• Comprehensive data sub language
• Guaranteed access
• Logical Data Independence
• Information Representation
• Dynamic on-line catalog based relational model
6. Oracle has its own CASE tools designed to help business requirements and to
generate data entry and reporting modules.
The components are
• CASE Designer
• CASE Dictionary
• Oracle forms generator
• Oracle reports generator
4.3.1 MODULARITY
DATABASE DESIGN
The data base structure is a model of the enterprise and should represent
accurately and support its needs. The design process must have the support of
all the functional areas need to describe and define the data elements from
management and ensure view points. The design of the database will be only as
good as the definitions as
the data elements and their relationships. Infact the design process is definition
of the organization in terms of its input entities and intrinsic relations.
ENTITY:
DATA ITEM:
The smallest unit of data that has meaning to its users is called a
DATA ITEM. It is also called a field or data element. Data items are the modules
of the database. These are groups together to form records.
RELATIONSHIP:
MAPPING CONSTRAINTS:
This express the number of entities to which another entity can be associated via
relationship.
In our system we have the following mapping constraints:
ONE TO MANY:
IDENTIFIERS:
The primary key denotes a candidate key to identify a particular entity from other
entities. A weak entity does not have a primary key.
NORMALIZATION THEORY: