Oracle Database
Oracle Database
Oracle database (Oracle DB) is a relational database management system (RDBMS) from the Oracle Corporation.
Originally developed in 1977 by Lawrence Ellison and other developers, Oracle DB is one of the most trusted and
widely-used relational database engines.
An Oracle database is a collection of data treated as a unit. The purpose of a database is to store and retrieve
related information. A database server is the key to solving the problems of information management. In general,
a server reliably manages a large amount of data in a multiuser environment so that many users can concurrently
access the same data. All this is accomplished while delivering high performance.
A database server also prevents unauthorized access and provides efficient solutions for failure recovery.
ORACLE DATABASE CONSISTS OF THREE FILES:
• Parameter File
• Password File
• Archived Log Files
AN ORACLE SERVER:
Is a database management system that provides an open, comprehensive, integrated approach to information
Management
DATABASE INSTANCE
A database instance is a set of memory structures that manage database files. A database is a set of physical files
on disk created by the CREATE DATABASE statement. The instance manages its associated data and serves the
users of the database.
Every running Oracle database is associated with at least one Oracle database instance. Because an instance
exists in memory and a database exists on disk, an instance can exist without a database and a database can exist
without an instance.
YOU CAN RUN ORACLE DATABASE IN EITHER OF THE FOLLOWING MUTUALLY EXCLUSIVE
CONFIGURATIONS:
• Single-instance configuration: A one-to-one relationship exists between the database and an instance.
• Oracle Real Application Clusters (Oracle RAC) configuration: A one-to-many relationship exists between the
database and instances.
1
• User Processes
• Server Processes
• Background Process
When a user runs an application program (such as a Pro*C program) or an Oracle tool (such as Oracle Enterprise
Manager or SQL*Plus), Oracle Database creates a user process to run the user's application.
Oracle Database creates server processes to handle the requests of user processes connected to the instance. In
some situations when the application and Oracle Database operate on the same computer, it is possible to
combine the user process and corresponding server process into a single process to reduce system overhead.
To maximize performance and accommodate many users, a multiprocess Oracle Database system uses some
additional Oracle Database processes called background processes. An Oracle Database instance can have many
background processes; not all are always present. There are numerous background processes.
ORACLE DATABASE ADMINISTRATOR
A database administrator (DBA) is the information technician responsible for directing or performing all activities
related to maintaining a successful database environment. A DBA makes sure an organization's database and its
related applications operate functionally and efficiently.
DATABASE OBJECTS:- Oracle object types are user-defined types that make it possible to model real-world
entities such as customers and purchase orders as objects in the database.
SCHEMA OBJECTS:- A schema is a collection of logical structures of data, or schema objects. A schema is
owned by a database user and has the same name as that user. Each user owns a single schema.
Schema objects can be created and manipulated with SQL and include the following types of objects:
• Tables Index - organized tables
• Views - Indextypes
• Indexes - Java classes, Java resources, Java sources
• Clusters - Materialized views
• Synonyms - Materialized view logs
SCHEMA OBJECTS
•Constraints - Mining models
• Database links - Object tables
• Database triggers - Object types
• Dimensions - Object views
• Packages - Stored functions, stored procedures
• External procedure libraries
VIEWS
A view is a logical representation of another table or combination of tables. A view derives its data from the tables
on which it is based. These tables are called base tables. Base tables might in turn be actual tables or might be
views themselves. All operations performed on a view actually affect the base table of the view.
Clusters
A table cluster is a group of tables that share common columns and store related data in the same blocks. When
tables are clustered, a single data block can contain rows from multiple tables. For example, a block can store
rows
from both the employees and departments tables rather than from only a single table.
The cluster key is the column or columns that the clustered tables have in common. For example, the
employees and departments tables share the department_id column. You specify the cluster key
when creating the table cluster and when creating every table added to the table cluster.
The cluster key value is the value of the cluster key columns for a particular set of rows. All data that contains
the same cluster key value, such as department_id=20, is physically stored together. Each cluster key value is
3
stored only once in the cluster and the cluster index, no matter how many rows of different tables contain the
value.
SYNONYM
A synonym is an alias or alternate name for a table, view, sequence, or other schema object. They are used
mainly to make it easy for users to access database objects owned by other users. They hide the underlying
object's identity and make it harder for a malicious program or user to target the underlying object.
THERE ARE TWO MAJOR USES OF SYNONYMS:
• Object invisibility: Synonyms can be created to keep the original object hidden from the user.
• Location invisibility: Synonyms can be created as aliases for tables and other objects that are not part of
the local database.
SEQUENCES
Sequences are database objects from which multiple users can generate unique integers. The sequence generator
generates sequential numbers, which can help to generate unique primary keys automatically, and to coordinate
keys across multiple rows or tables.