Академический Документы
Профессиональный Документы
Культура Документы
Database A set of inter-related data acting as a central reservoir of data that can be accessed by many users DBMS The software that manages database. A computer-based record keeping system which consists of software for processing a collection of interrelated data. Database Administrator Centrally manages the database. The DBA initially studies the System and accordingly decides its various process.
A P A C H E
Transactional Apps
Documents
Integration
Messages
System management
Development tools
Internet applications
Business logic and data Presentation and business logic
SQL
PL/SQL
Java
Network services
In 1970 Dr. E.F.Codd define some rules for designing an database. These rules are following:Information rule
INTRODUCTION TO SQL
The DBMS processes the SQL request, retrieves the requested data
from the database, and returns it.
This process of requesting data from a database and receiving back the results is called a Database Query and hence the name Structured Query Language.
SQL STATEMENTS
Database administrator
PRIVILEGES
Database security: - System security - Data security System privileges: Gaining access to the database Object privileges: Manipulating the content of the database objects Schemas: Collections of objects, such as tables, views, and sequences The database administrator has high-level system privileges for tasks such as: Creating new users Removing users Removing tables Backing up tables
WHAT IS A ROLE?
Users
Manager
Privileges
Allocating privileges without a role
Oracle server: There are several files, processes and memory structures in an oracle server, not all of them are used when processing a SQL statement. The oracle server consists of an oracle instance and an oracle database. Oracle instance: An oracle instance is the combination of the background processes and memory structures. Oracle database: An oracle database consists of operating system files, also known as database files that provide the actual physical storage for database information. The database files are used to ensure that the data is kept consistent and can be recovered in the event of a failure of a instance.
LOGICAL ARCHITECTURE
Connect to an instance using: The user process The server process The Oracle server components that are used depend on the type of SQL statement: Queries return rows. DML statements log changes. Commit ensures transaction recovery. Some Oracle server components do not participate in SQL statement processing. A data manipulation language (DML) statement requires only two phases of processing, 1. Parse is the same as the parse phase used for processing a query. 2. Execute requires additional processing to make data changes.
Starting Up To start up an instance, use the following command: STARTUP [FORCE] [RESTRICT] [PFILE=filename] [OPEN [RECOVER][database] |MOUNT |NOMOUNT] Changing the Status of the Database To open the database from STARTUP NOMOUNT to a MOUNT stage or from MOUNT to an ALTER DATABASE { MOUNT | OPEN } To start up an instance, use the following command: ALTER DATABASE OPEN [READ WRITE| READ ONLY] Opening a Database in Restricted Mode command: ALTER SYSTEM [ {ENABLE|DISABLE} RESTRICTED SESSION ] Terminate Sessions ALTER SYSTEM KILL SESSION 'integer1, integer2'
Shut down the database to make operating system offline backups of all physical structures and to have modified static initialization parameters take effect.To shut down an instance you must connect as SYSOPER or SYSDBA and use the following command: SHUTDOWN [NORMAL | TRANSACTIONAL | IMMEDIATE | ABORT ]
DATABASE ADMINISTRATOR
A database administrator (DBA) is a person who is responsible for the environmental aspects of a database. In general, these include: a) Recoverability - Creating and testing backups b) Integrity - Verifying or helping to verify data integrity c) Security - Defining and/or implementing access controls to the data d) Performance - Ensuring maximum performance
DATABASE ADMINISTRATOR
A database administrator (DBA) is a person who is responsible for the environmental aspects of a database. In general, these include: a) Recoverability - Creating and testing backups b) Integrity - Verifying or helping to verify data integrity c) Security - Defining and/or implementing access controls to the data d) Performance - Ensuring maximum performance