Sunteți pe pagina 1din 28

A Summer Training Presentation on Oracle 9i and Database Administration

Presented By: Name-Abhay Singh Roll no.-0812710401 Branch-CSE(7th Semester )

Database Management System

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.

Oracle Internet Platform


Clients
Any browser Any mail client

Any FTP client

System management

Development tools

Internet applications

SQL

Business logic and data

Presentation and business logic

PL/SQL

Application Databases servers

Java

Network services

Introduction to SQL

SQL is used to make a request to retrieve data from a database. 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. Efficient, easy to learn and use.

SQL Statements

Data retrieval Select. Data manipulation language (DML) Insert,delete,update,merge. Data definition language (DDL) Create,alter,drop,rename,truncate. Transactional control Commit,rollback,savepoint. Data control language (DCL) grant,revoke.

SQL and iSQL*Plus Interaction


iSQL*Plus
SQL statements

Internet Browser

Oracle server

iSQL*Plus commands Formatted report Client

Query results

SQL Statements Versus iSQL*Plus Commands


SQL
A language ANSI standard Keyword cannot be abbreviated Statements manipulate data and table definitions in the database

iSQL*Plus
An environment Oracle proprietary Keywords can be abbreviated Commands do not allow manipulation of values in the database Runs on a browser Centrally loaded, does not have to be implemented on each machine

Controlling User Access


Database administrator

Username and password Privileges


Users

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

Creating Users
The DBA creates users by using the CREATE USER
statement.

CREATE USER user IDENTIFIED BY password;

CREATE USER scott IDENTIFIED BY tiger; User created.

User System Privileges

Once a user is created, the DBA can grant specific system privileges to a user. GRANT privilege [, privilege...] TO user [, user| role, PUBLIC...];

An application developer, for example, may have the following system privileges:

CREATE SESSION CREATE TABLE CREATE SEQUENCE CREATE VIEW CREATE PROCEDURE

What is a Role?

Users

Manager

Privileges Allocating privileges without a role Allocating privileges with a role

Creating and Granting Privileges to a Role

Create a role
CREATE ROLE manager; Role created.

Grant privileges to a role


GRANT create table, create view TO manager; Grant succeeded.

Grant a role to users


GRANT manager TO DEHAAN, KOCHHAR; Grant succeeded.

Changing Password

The DBA creates your user account and initializes your password. You can change your password by using the ALTER USER statement.

ALTER USER scott IDENTIFIED BY lion; User altered.

Oracle 9i Enterprise

Primary Components of Oracle Server Architecture

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.

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

PROJECT ON LIBRARY MANAGEMENT SYSTEM


The objective of this project is the development of a system which could overcome the problem of handling the large data manually

Present Library system is totally handled through pen and paper .Big and thick register are being used to maintain the book records .One book is entered in different registers to maintain proper records .This causes a lot of data redundancy .This make the updating of books very difficult i.e. if changes are done there is greater probability of data inconsistency which causes a lot of problem.

APPLICATION THAT ARE PERFORMED BY THIS PROGRAM IS SHOWN ASIn books record in library ADD NEW RECORD DELETE RECORD MODIFY RECORD SHOW RECORD In membership record in library ADD NEW MEMBER DELETE MEMBER MODIFY RECORD SHOW MEMBER RECORD In issue return TO ISSUE BOOKS TO RETURN BOOKS TOSHOW ISSUED BOOKS

TABLE DESIGN
Account : Table
S.No . 1 2 3 4 Field Data Type Name Accno Total_limit Books_left Status Number Number Text Text

Issue : Table
S.No Field Name . 1 Bno 2 Id 3 Issue_date Data Type Number Number Date/tim e Due_date Date/tim e Copies_avail Number able

4
5

User : Table

Book : Table
S.No . 1 2 3 4 Field Data Type Name Id Roll_no Name Branch Number Number Text Text S.No . 1 2 3 4 5 6 7 8 9 Field Data Type Name B_no ISBN Subject Name Author Publisher Editor Copies Cost Number Number Text Text Text Text Number Number Number

Issue_return : Table
S.No Field Data Type . Name
1 2 3 4 5 6 7 B_no Id Due_date Number Number Date/Time

Issue_date Date/Time Return_dat Date/time e Fine Copies_av ailable Number Number

PROJECT DETAILS

MAIN MENU

ADMINISTRATIVE WORK
ADDITION

SEARCH

EXIT

ADD/ DELETE

DELETE

Issue
ISSUE/ RETURN
RETURN

BY BOOKNUMBER

BY BOOK NAME

VIEW

VIEW
PACK

View Members

DELETED ITEMS

RETREIVE

VIEW

MODIFY

NAME AUTHORS NAME

EXIT

CLASS NUMBER ACCESSION NUMBER

THANK YOU!!!!!!!

S-ar putea să vă placă și