Upload
priyanka-satpute
View
221
Download
0
Embed Size (px)
Citation preview
8/6/2019 Relational Database Management System (RDBMS)
1/11
RELATIONAL DATABASE MANAGEMENT
SYSTEM (RDBMS)
Able to reliably manage large data into multi-userenvironment.
Relates data in different files through the key field.
Payroll
Emp_info Project
Employee NumberProject Number
8/6/2019 Relational Database Management System (RDBMS)
2/11
ORACLE TOOLS
1. SQL * PLUS: for writing command line SQL queries to work withdatabase objects.
2. PL/ SQL: oracles extension, It is a procedural language
3. Query: creating SQL query using graphical environment. It allow to
write the DDL, DML, and DCL statements.
4. Developer : used for developing database applications
- Form Builder: It is useful to create graphical forms and menu.
- Report Builder: To create reports in different formats, save the
reports, print the data.
- Developer Graphics Builder it is used to create the graphical
charts like, Bar Charts, Pie Charts etc. based on data
8/6/2019 Relational Database Management System (RDBMS)
3/11
ORACLE TOOLS
5. Enterprise Manager : a tool for managing uses following tools
- Storage Manager : To create and manage table space
- Instance Manager: To start, stop pr tune database.
- Security Manager: To create and manage users and role
6. Oracle Web Application Server:A tool for creating a web site that
allows user to access oracle database through web pages
8/6/2019 Relational Database Management System (RDBMS)
4/11
ORACLE DBA
installing the oracle database, managing the day-to day needs of thecomplex database, and running the system at a peal performance
performs software maintenance, resource management, data
administration, database tuning, and troubleshooting, data security and
backup and recovery.
8/6/2019 Relational Database Management System (RDBMS)
5/11
ORACLE DBA
Basic duties or Role or Responsibilities of the DBA:1. Installing of new hardware and software
2. Configuration of hardware and software with the system
administration
3. Security administration
4. Performance tuning & monitoring:
5. Backup and Recovery
6. Routine schedule maintenance
7. Troubleshooting
8. Failure Recovery
9. Crate,Alter and remove database, data users and Roles
10. Grant and restrict access rights
8/6/2019 Relational Database Management System (RDBMS)
6/11
SQL * PLUS
ad-hoc user interface tool for the oracle RDBMS
run SQL commands and PL / SQL programs
most common ways to communicate interactively with the oracle
database
can edit or save the SQL statements that are in the SQL buffer
8/6/2019 Relational Database Management System (RDBMS)
7/11
SQL * PLUS
Feature of SQL * PLUS
Accepts SQL statement from file.
Accept adhoc entry of statements at the prompt
Provides a line editor for modifying SQL Queries.
Provides environment, editor, format, execution,interaction, and file commands.
Formats query results and displays reports on
the screen. Controls environmental settings
Accesses local and remote database
8/6/2019 Relational Database Management System (RDBMS)
8/11
TABLE SPACE
A database is divided into logical storage units calledtable spaces
System
Table space
Accounting
Table space
Purchasing
Table space
Systemdatafile1
Disk1 Disk2 Disk3
Acct.
datafile1
Acct.
datafile2
Disk3
Acct.
datafile3
Pur.datafile1
distribute the I/o load and improve performance.
8/6/2019 Relational Database Management System (RDBMS)
9/11
SCHEMA OBJECTS
A schema is a collection of objects
1. TABLE : which consists of a table name and rows and column of data
2. CLUSTER : is set of tables physically stored together as one table
that shares a common column.
3. INDEX : to increase the performance of data retrieval.
4. VIEW : a custom-tailored presentation of the data in one or more
tables. rather they derive their data from the table on which they are
based
5. STORED PROCEDURE: It is a predefined SQL query that is stored inthe data dictionary .
6. DATABASE TRIGGER: is a procedure that is run automatically when
an event occurs
7. SEQUENCE : used to automatically generate a unique sequence of
number in cache .
8/6/2019 Relational Database Management System (RDBMS)
10/11
Structured Query Language (SQL)
SQL is a very simple, yet powerful, database access language
SQL is non-procedural language
SQL statements: is a specific instance of a valid SQL command.
consist of SQL reserved words, which have special meaning in
SQL
Emp Id Name Join Dt
1 G. Gore 01-JUN-
07
2 K. Kale 12-Aug-05
3 P. Pandhre 01-jan-01
Emp_Info
Select Name from Emp_info;
Insert into Emp_info
8/6/2019 Relational Database Management System (RDBMS)
11/11
Types of SQL statements
SELECT
INSERT , UPDATE, DELETE,
CREATE, ALTER, DROP, RENAME TRUNCATE
COMMIT ROLLBACK, SAVEPOINT
GRANT, REVOKE