SlideShare una empresa de Scribd logo
1 de 21
Homework Help
On Oracle
What is Oracle ?
 Oracle is a name of a organization which has developed many software,
Operating Systems and Databases.
 Here we are going to discuss about Oracle Database or Oracle DB.
 Oracle database is a relational database management system in which data
are treated as a unit. It is the most trusted and widely-used relational
database engines.
 The system of oracle database is built around a relational database
framework in which data objects may be directly accessed by users through
SQL (Structured Query Language).
History of Oracle
 1979 Oracle Release 2
 1986 client/server relational database
 1989 Oracle 6
 1997 Oracle 8 (object relational)
 1999 Oracle 8i (Java Virtual Machine)
 2000 Oracle Application Server
 2001 Oracle 9i database server
 2004: Oracle 10g is released (the g stands for Grid).
 2007: Oracle 11g is released.
 2013: Oracle 12C is released which is capable of providing cloud services with
Oracle Database.
Oracle Family
 Personal Oracle- for single users. Used to develop systems
 Oracle Standard Edition- (Entry level Workgroup server)
 Oracle Enterprise edition- Extended functionality
 Oracle Lite- (Oracle mobile) single users using wireless devices.
Developer Tools
 Oracle Forms Developer
 Oracle Reports Developer
 Oracle Jdeveloper
 Oracle Designer
 OEPE , Oracle Enterprise Pack for Eclipse.
Oracle Architecture
SGA
Shared SQL Area Database Buffer Cashe
KByte1,200,000 KByte
Redo Log
Buffer
KByte2,100KByte
PMON
LGWR
Data File
Raw Device
Server
USER
ARCH
TL-812
Archive Log Mode(50M)
* Fixed Size :
70 Kbyte
* Variavle Size :
490 MByte
4,000,000 KByte
* Total SGA Size :
1700 Mbyte
DBW0 CKPT
SMON RECO D000 S000 P000
Memory Structure : Shared Pool
Shared Pool
Library Cache
Shared
SQL Area
PL/SQL Procedures
and Package
Control Structures
for examples;
Locks
Library
Cache handles
and so on ...
Dictionary
Cache
Control Structures
for example:
Character Set
Conversion
Memory
Network Security
Attributes
and so on ..
Shared Pool Contents
- Text of the SQL or PL/SQL statement
- Parsed form of the SQL or PL/SQL statement
- Execution plan for the SQL or PL/SQL
statements
- Data dictionary cache containing rows of data
dictionary information
Library Cache
- shared SQL area
- private SQL area
- PL/SQL procedures and package
- control structures : lock and library cache handles
Dictionary Cache
- names of all tables and views in the database
- names and datatypes of columns in database tables
- privileges of all Oracle users
SHARED_POOL_SIZE
Reusable
Runtime
Memory
TableSpaces
 A database is divided into logical storage units called Tablespaces.
 logical construct for arranging different types of data.
 An Oracle database must have at least a system tablespace.
 It is recommended to have different tablespaces for user and system data.
Tablespaces
 a logical structure
Data1 Data2
Data1_01.dbf Data2_01.dbf Data2_02.dbf
The DATA1
Tablespace =
One datafile
The DATA2
Tablespace =
Two datafiles
Create Tablespace
CREATE TABLESPACE test
DATAFILE 'oraservORADATAa.dbf'
SIZE 10M
AUTOEXTEND ON
NEXT 10M MAXSIZE 100M;
CREATE TABLE cust(id int,name varchar2(20))
TABLESPACE test;
SQL(Structured Query Language)
 SQL is a standard language for accessing databases.
 Both an ANSI and ISO standard
 Types of commands:
 Data Definition Language (DDL) : Create, Alter, Drop, Rename, Truncate
 Data Manipulation Language (DML): Insert, Delete, Update
 Data Retrieval: Select
 Transaction Control: Commit, Rollback, Savepoint
 Data Control Language (DCL): Grant, Revoke
CourseCourse
IDID
DepartmentDepartment
11 CommerceCommerce
22 ComputersComputers
33 CommerceCommerce
44 AccountantAccountant
55 ComputersComputers
SIDSID CourseCourse
IDID
11 55
22 22
33 11
44 55
SIDSID NameName AgeAge
1010 MarkMark 1818
2020 SmithSmith 2222
3030 JohnJohn 1919
4040 LeeLee 2121
STUDENT
COURSE
TAKES
Data Definition Language:
CREATE TABLE {table}
( {column datatype [DEFAULT expr]
[column_constraint] ... | table_constraint}
[, { column datatype [DEFAULT expr]
[column_constraint] ...
)
ALTER TABLE {table}
[ADD|MODIFY {column datatype [DEFAULT expr] [column_constraint]}
[DROP drop_clause]
DROP TABLE {table} [cascade constraints]
DESC {table}
Example :
CREATE TABLE Students
(sid INTEGER,
name VARCHAR(20),
age INTEGER);
CREATE TABLE Courses
( courseid CHAR(6),
department CHAR(20));
CREATE TABLE takes
( sid CHAR(9),
courseid CHAR(6));
Data Manipulation Language:
INSERT INTO {table | view} [ (column [, column] ...) ]
VALUES (expr,expr ...)
UPDATE {table | view }
SET { (column [, column] = { expr | }
[WHERE condition]
DELETE [FROM] {table | view} [WHERE condition]
Example:
 INSERT INTO Students VALUES (10,’Mark’,18);
 INSERT INTO Students VALUES (20,’smith’,22);
 INSERT INTO Students VALUES (30,’John’,19);
 INSERT INTO Students VALUES (40,’Lee’,21);
Data Retrieval:
SELECT [DISTINCT | ALL] {table|view}
FROM {table | view}
[WHERE condition ]
[GROUP BY expr [, expr]]
[ORDER BY {expr} [ASC | DESC]]
Example:
select * from student;
select name from student where sid='10';
select courseid from course where department=‘computer’;
Select a.sid from takes a, student b where a.sid=b.sid;
Transaction Control:
COMMIT
ROLLBACK [ to {savepoint}]
SAVEPOINT {name}
commit;
savepoint point5;
rollback to point5;
Data Control Language:
GRANT [privileges]
ON object TO user|public
[WITH GRANT OPTION]
REVOKE [privileges]
ON object TO user|public
[CASCADE CONSTRAINTS]
grant select,update on student to XYZ ;
revoke update on student to XYZ;
For Further Informatiom:
 Read more about oracle Database:
http://www.urgenthomework.com/oracle-10g-and-11g.php

Más contenido relacionado

La actualidad más candente

Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Beat Signer
 
Jdbc 4.0 New Features And Enhancements
Jdbc 4.0 New Features And EnhancementsJdbc 4.0 New Features And Enhancements
Jdbc 4.0 New Features And Enhancementsscacharya
 
MDF and LDF in SQL Server
MDF and LDF in SQL ServerMDF and LDF in SQL Server
MDF and LDF in SQL ServerMasum Reza
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database IntroductionChhom Karath
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architectureAkash Pramanik
 
SQL SERVER Training in Pune Slides
SQL SERVER Training in Pune SlidesSQL SERVER Training in Pune Slides
SQL SERVER Training in Pune Slidesenosislearningcom
 
Database Architecture and Basic Concepts
Database Architecture and Basic ConceptsDatabase Architecture and Basic Concepts
Database Architecture and Basic ConceptsTony Wong
 
Oracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsOracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsYogiji Creations
 
MSBI with SQL Server T-SQL | Microsoft BI With Server T-SQL | Realtime Traini...
MSBI with SQL Server T-SQL | Microsoft BI With Server T-SQL | Realtime Traini...MSBI with SQL Server T-SQL | Microsoft BI With Server T-SQL | Realtime Traini...
MSBI with SQL Server T-SQL | Microsoft BI With Server T-SQL | Realtime Traini...SequelGate
 
12. oracle database architecture
12. oracle database architecture12. oracle database architecture
12. oracle database architectureAmrit Kaur
 
Active directory
Active directoryActive directory
Active directorygunakhan
 

La actualidad más candente (19)

Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
Structured Query Language (SQL) - Lecture 5 - Introduction to Databases (1007...
 
Oracle archi ppt
Oracle archi pptOracle archi ppt
Oracle archi ppt
 
Jdbc 4.0 New Features And Enhancements
Jdbc 4.0 New Features And EnhancementsJdbc 4.0 New Features And Enhancements
Jdbc 4.0 New Features And Enhancements
 
MDF and LDF in SQL Server
MDF and LDF in SQL ServerMDF and LDF in SQL Server
MDF and LDF in SQL Server
 
Oracle Database Introduction
Oracle Database IntroductionOracle Database Introduction
Oracle Database Introduction
 
The oracle database architecture
The oracle database architectureThe oracle database architecture
The oracle database architecture
 
SQL SERVER Training in Pune Slides
SQL SERVER Training in Pune SlidesSQL SERVER Training in Pune Slides
SQL SERVER Training in Pune Slides
 
Oracle Introduction
Oracle Introduction Oracle Introduction
Oracle Introduction
 
Database Architecture and Basic Concepts
Database Architecture and Basic ConceptsDatabase Architecture and Basic Concepts
Database Architecture and Basic Concepts
 
Oracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creationsOracle architecture with details-yogiji creations
Oracle architecture with details-yogiji creations
 
Oracle Tablespace - Basic
Oracle Tablespace - BasicOracle Tablespace - Basic
Oracle Tablespace - Basic
 
MSBI with SQL Server T-SQL | Microsoft BI With Server T-SQL | Realtime Traini...
MSBI with SQL Server T-SQL | Microsoft BI With Server T-SQL | Realtime Traini...MSBI with SQL Server T-SQL | Microsoft BI With Server T-SQL | Realtime Traini...
MSBI with SQL Server T-SQL | Microsoft BI With Server T-SQL | Realtime Traini...
 
MS SQL Server
MS SQL ServerMS SQL Server
MS SQL Server
 
Lecture2 oracle ppt
Lecture2 oracle pptLecture2 oracle ppt
Lecture2 oracle ppt
 
notes
notesnotes
notes
 
ora_sothea
ora_sotheaora_sothea
ora_sothea
 
12. oracle database architecture
12. oracle database architecture12. oracle database architecture
12. oracle database architecture
 
Orcale dba training
Orcale dba trainingOrcale dba training
Orcale dba training
 
Active directory
Active directoryActive directory
Active directory
 

Destacado

Cmmaao pert-analysis-pmi-pmp (1)
Cmmaao pert-analysis-pmi-pmp (1)Cmmaao pert-analysis-pmi-pmp (1)
Cmmaao pert-analysis-pmi-pmp (1)vishvasyadav45
 
Cmmaao deliver-pmp-pmi
Cmmaao deliver-pmp-pmiCmmaao deliver-pmp-pmi
Cmmaao deliver-pmp-pmivishvasyadav45
 
Aesthetics of Touch: Desform Conference
Aesthetics of Touch: Desform ConferenceAesthetics of Touch: Desform Conference
Aesthetics of Touch: Desform ConferenceVicky Teinaki
 
Pictures before and after
Pictures before and afterPictures before and after
Pictures before and afterNeha Smart
 
無題プレゼンテーション3
無題プレゼンテーション3無題プレゼンテーション3
無題プレゼンテーション3s1200017
 
Flora in my neighbourhood poland
Flora in my neighbourhood   polandFlora in my neighbourhood   poland
Flora in my neighbourhood polandcommeniusxxlogdansk
 
Pmi pmp-resume template-5
Pmi pmp-resume template-5Pmi pmp-resume template-5
Pmi pmp-resume template-5vishvasyadav45
 
4 stanovy systému podnikání tian de
4 stanovy systému podnikání tian de4 stanovy systému podnikání tian de
4 stanovy systému podnikání tian deLiza Alypova
 
Reunió pares 3r curs 13 14
Reunió pares 3r curs 13 14Reunió pares 3r curs 13 14
Reunió pares 3r curs 13 14Araceliandreu
 
Synthesis quest micro
Synthesis quest microSynthesis quest micro
Synthesis quest microadriennetrio
 
Bab 8 al qur'an surah al insyirah
Bab 8 al qur'an surah al insyirahBab 8 al qur'an surah al insyirah
Bab 8 al qur'an surah al insyirahghozali27
 
LXXXV CONFERENCIA DISTRITO 4450 - Rotary International
LXXXV CONFERENCIA DISTRITO 4450 - Rotary InternationalLXXXV CONFERENCIA DISTRITO 4450 - Rotary International
LXXXV CONFERENCIA DISTRITO 4450 - Rotary InternationalRotary 4450
 

Destacado (16)

Cmmaao pert-analysis-pmi-pmp (1)
Cmmaao pert-analysis-pmi-pmp (1)Cmmaao pert-analysis-pmi-pmp (1)
Cmmaao pert-analysis-pmi-pmp (1)
 
Cmmaao deliver-pmp-pmi
Cmmaao deliver-pmp-pmiCmmaao deliver-pmp-pmi
Cmmaao deliver-pmp-pmi
 
Como cambiar un enchufe
Como cambiar un enchufeComo cambiar un enchufe
Como cambiar un enchufe
 
Interest Rate
Interest RateInterest Rate
Interest Rate
 
Aesthetics of Touch: Desform Conference
Aesthetics of Touch: Desform ConferenceAesthetics of Touch: Desform Conference
Aesthetics of Touch: Desform Conference
 
Pictures before and after
Pictures before and afterPictures before and after
Pictures before and after
 
無題プレゼンテーション3
無題プレゼンテーション3無題プレゼンテーション3
無題プレゼンテーション3
 
Flora in my neighbourhood poland
Flora in my neighbourhood   polandFlora in my neighbourhood   poland
Flora in my neighbourhood poland
 
Pmi pmp-resume template-5
Pmi pmp-resume template-5Pmi pmp-resume template-5
Pmi pmp-resume template-5
 
4 stanovy systému podnikání tian de
4 stanovy systému podnikání tian de4 stanovy systému podnikání tian de
4 stanovy systému podnikání tian de
 
Reunió pares 3r curs 13 14
Reunió pares 3r curs 13 14Reunió pares 3r curs 13 14
Reunió pares 3r curs 13 14
 
Synthesis quest micro
Synthesis quest microSynthesis quest micro
Synthesis quest micro
 
Emp presents
Emp presentsEmp presents
Emp presents
 
Bab 8 al qur'an surah al insyirah
Bab 8 al qur'an surah al insyirahBab 8 al qur'an surah al insyirah
Bab 8 al qur'an surah al insyirah
 
LXXXV CONFERENCIA DISTRITO 4450 - Rotary International
LXXXV CONFERENCIA DISTRITO 4450 - Rotary InternationalLXXXV CONFERENCIA DISTRITO 4450 - Rotary International
LXXXV CONFERENCIA DISTRITO 4450 - Rotary International
 
Prezentacja
PrezentacjaPrezentacja
Prezentacja
 

Similar a Homework help on oracle

Ora01_OraArc.pdf
Ora01_OraArc.pdfOra01_OraArc.pdf
Ora01_OraArc.pdfNamNguynMu
 
Introduction to Apache Tajo: Data Warehouse for Big Data
Introduction to Apache Tajo: Data Warehouse for Big DataIntroduction to Apache Tajo: Data Warehouse for Big Data
Introduction to Apache Tajo: Data Warehouse for Big DataGruter
 
Orcale dba training
Orcale dba trainingOrcale dba training
Orcale dba trainingUgs8008
 
Oracle DBA Training in Hyderabad
Oracle DBA Training in HyderabadOracle DBA Training in Hyderabad
Oracle DBA Training in Hyderabadunited global soft
 
Oracle DBA Training in Hyderabad
Oracle DBA Training in HyderabadOracle DBA Training in Hyderabad
Oracle DBA Training in HyderabadUgs8008
 
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangaloreOracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangaloreTIB Academy
 
DEE 431 Introduction to Mysql Slide 3
DEE 431 Introduction to Mysql Slide 3DEE 431 Introduction to Mysql Slide 3
DEE 431 Introduction to Mysql Slide 3YOGESH SINGH
 
MOUG17 Keynote: Oracle OpenWorld Major Announcements
MOUG17 Keynote: Oracle OpenWorld Major AnnouncementsMOUG17 Keynote: Oracle OpenWorld Major Announcements
MOUG17 Keynote: Oracle OpenWorld Major AnnouncementsMonica Li
 
Ms sql server architecture
Ms sql server architectureMs sql server architecture
Ms sql server architectureAjeet Singh
 
Trunk and branches for database configuration management
Trunk and branches for database configuration managementTrunk and branches for database configuration management
Trunk and branches for database configuration managementscmsupport
 
MongoDB Knowledge share
MongoDB Knowledge shareMongoDB Knowledge share
MongoDB Knowledge shareMr Kyaing
 
Test labs 2016. Тестирование data warehouse
Test labs 2016. Тестирование data warehouse Test labs 2016. Тестирование data warehouse
Test labs 2016. Тестирование data warehouse Sasha Soleev
 

Similar a Homework help on oracle (20)

Ora01_OraArc.pdf
Ora01_OraArc.pdfOra01_OraArc.pdf
Ora01_OraArc.pdf
 
Oracle 10g
Oracle 10gOracle 10g
Oracle 10g
 
Introduction to Apache Tajo: Data Warehouse for Big Data
Introduction to Apache Tajo: Data Warehouse for Big DataIntroduction to Apache Tajo: Data Warehouse for Big Data
Introduction to Apache Tajo: Data Warehouse for Big Data
 
PHP Oracle
PHP OraclePHP Oracle
PHP Oracle
 
MS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTUREMS-SQL SERVER ARCHITECTURE
MS-SQL SERVER ARCHITECTURE
 
Orcale dba training
Orcale dba trainingOrcale dba training
Orcale dba training
 
Oracle DBA Training in Hyderabad
Oracle DBA Training in HyderabadOracle DBA Training in Hyderabad
Oracle DBA Training in Hyderabad
 
Oracle DBA Training in Hyderabad
Oracle DBA Training in HyderabadOracle DBA Training in Hyderabad
Oracle DBA Training in Hyderabad
 
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangaloreOracle DBA Tutorial for Beginners -Oracle training institute in bangalore
Oracle DBA Tutorial for Beginners -Oracle training institute in bangalore
 
DEE 431 Introduction to Mysql Slide 3
DEE 431 Introduction to Mysql Slide 3DEE 431 Introduction to Mysql Slide 3
DEE 431 Introduction to Mysql Slide 3
 
MOUG17 Keynote: Oracle OpenWorld Major Announcements
MOUG17 Keynote: Oracle OpenWorld Major AnnouncementsMOUG17 Keynote: Oracle OpenWorld Major Announcements
MOUG17 Keynote: Oracle OpenWorld Major Announcements
 
Ms sql server architecture
Ms sql server architectureMs sql server architecture
Ms sql server architecture
 
Trunk and branches for database configuration management
Trunk and branches for database configuration managementTrunk and branches for database configuration management
Trunk and branches for database configuration management
 
Handy annotations-within-oracle-10g
Handy annotations-within-oracle-10gHandy annotations-within-oracle-10g
Handy annotations-within-oracle-10g
 
Sql server basics
Sql server basicsSql server basics
Sql server basics
 
Oracle SQL Part1
Oracle SQL Part1Oracle SQL Part1
Oracle SQL Part1
 
ORACLE DBA RESUME
ORACLE DBA RESUMEORACLE DBA RESUME
ORACLE DBA RESUME
 
Dbmsunit v
Dbmsunit vDbmsunit v
Dbmsunit v
 
MongoDB Knowledge share
MongoDB Knowledge shareMongoDB Knowledge share
MongoDB Knowledge share
 
Test labs 2016. Тестирование data warehouse
Test labs 2016. Тестирование data warehouse Test labs 2016. Тестирование data warehouse
Test labs 2016. Тестирование data warehouse
 

Último

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17Celine George
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 

Último (20)

Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 

Homework help on oracle

  • 2. What is Oracle ?  Oracle is a name of a organization which has developed many software, Operating Systems and Databases.  Here we are going to discuss about Oracle Database or Oracle DB.  Oracle database is a relational database management system in which data are treated as a unit. It is the most trusted and widely-used relational database engines.  The system of oracle database is built around a relational database framework in which data objects may be directly accessed by users through SQL (Structured Query Language).
  • 3. History of Oracle  1979 Oracle Release 2  1986 client/server relational database  1989 Oracle 6  1997 Oracle 8 (object relational)  1999 Oracle 8i (Java Virtual Machine)  2000 Oracle Application Server  2001 Oracle 9i database server  2004: Oracle 10g is released (the g stands for Grid).  2007: Oracle 11g is released.  2013: Oracle 12C is released which is capable of providing cloud services with Oracle Database.
  • 4. Oracle Family  Personal Oracle- for single users. Used to develop systems  Oracle Standard Edition- (Entry level Workgroup server)  Oracle Enterprise edition- Extended functionality  Oracle Lite- (Oracle mobile) single users using wireless devices.
  • 5. Developer Tools  Oracle Forms Developer  Oracle Reports Developer  Oracle Jdeveloper  Oracle Designer  OEPE , Oracle Enterprise Pack for Eclipse.
  • 6. Oracle Architecture SGA Shared SQL Area Database Buffer Cashe KByte1,200,000 KByte Redo Log Buffer KByte2,100KByte PMON LGWR Data File Raw Device Server USER ARCH TL-812 Archive Log Mode(50M) * Fixed Size : 70 Kbyte * Variavle Size : 490 MByte 4,000,000 KByte * Total SGA Size : 1700 Mbyte DBW0 CKPT SMON RECO D000 S000 P000
  • 7. Memory Structure : Shared Pool Shared Pool Library Cache Shared SQL Area PL/SQL Procedures and Package Control Structures for examples; Locks Library Cache handles and so on ... Dictionary Cache Control Structures for example: Character Set Conversion Memory Network Security Attributes and so on .. Shared Pool Contents - Text of the SQL or PL/SQL statement - Parsed form of the SQL or PL/SQL statement - Execution plan for the SQL or PL/SQL statements - Data dictionary cache containing rows of data dictionary information Library Cache - shared SQL area - private SQL area - PL/SQL procedures and package - control structures : lock and library cache handles Dictionary Cache - names of all tables and views in the database - names and datatypes of columns in database tables - privileges of all Oracle users SHARED_POOL_SIZE Reusable Runtime Memory
  • 8. TableSpaces  A database is divided into logical storage units called Tablespaces.  logical construct for arranging different types of data.  An Oracle database must have at least a system tablespace.  It is recommended to have different tablespaces for user and system data.
  • 9. Tablespaces  a logical structure Data1 Data2 Data1_01.dbf Data2_01.dbf Data2_02.dbf The DATA1 Tablespace = One datafile The DATA2 Tablespace = Two datafiles
  • 10. Create Tablespace CREATE TABLESPACE test DATAFILE 'oraservORADATAa.dbf' SIZE 10M AUTOEXTEND ON NEXT 10M MAXSIZE 100M; CREATE TABLE cust(id int,name varchar2(20)) TABLESPACE test;
  • 11. SQL(Structured Query Language)  SQL is a standard language for accessing databases.  Both an ANSI and ISO standard  Types of commands:  Data Definition Language (DDL) : Create, Alter, Drop, Rename, Truncate  Data Manipulation Language (DML): Insert, Delete, Update  Data Retrieval: Select  Transaction Control: Commit, Rollback, Savepoint  Data Control Language (DCL): Grant, Revoke
  • 12. CourseCourse IDID DepartmentDepartment 11 CommerceCommerce 22 ComputersComputers 33 CommerceCommerce 44 AccountantAccountant 55 ComputersComputers SIDSID CourseCourse IDID 11 55 22 22 33 11 44 55 SIDSID NameName AgeAge 1010 MarkMark 1818 2020 SmithSmith 2222 3030 JohnJohn 1919 4040 LeeLee 2121 STUDENT COURSE TAKES
  • 13. Data Definition Language: CREATE TABLE {table} ( {column datatype [DEFAULT expr] [column_constraint] ... | table_constraint} [, { column datatype [DEFAULT expr] [column_constraint] ... ) ALTER TABLE {table} [ADD|MODIFY {column datatype [DEFAULT expr] [column_constraint]} [DROP drop_clause] DROP TABLE {table} [cascade constraints] DESC {table}
  • 14. Example : CREATE TABLE Students (sid INTEGER, name VARCHAR(20), age INTEGER); CREATE TABLE Courses ( courseid CHAR(6), department CHAR(20)); CREATE TABLE takes ( sid CHAR(9), courseid CHAR(6));
  • 15. Data Manipulation Language: INSERT INTO {table | view} [ (column [, column] ...) ] VALUES (expr,expr ...) UPDATE {table | view } SET { (column [, column] = { expr | } [WHERE condition] DELETE [FROM] {table | view} [WHERE condition]
  • 16. Example:  INSERT INTO Students VALUES (10,’Mark’,18);  INSERT INTO Students VALUES (20,’smith’,22);  INSERT INTO Students VALUES (30,’John’,19);  INSERT INTO Students VALUES (40,’Lee’,21);
  • 17. Data Retrieval: SELECT [DISTINCT | ALL] {table|view} FROM {table | view} [WHERE condition ] [GROUP BY expr [, expr]] [ORDER BY {expr} [ASC | DESC]]
  • 18. Example: select * from student; select name from student where sid='10'; select courseid from course where department=‘computer’; Select a.sid from takes a, student b where a.sid=b.sid;
  • 19. Transaction Control: COMMIT ROLLBACK [ to {savepoint}] SAVEPOINT {name} commit; savepoint point5; rollback to point5;
  • 20. Data Control Language: GRANT [privileges] ON object TO user|public [WITH GRANT OPTION] REVOKE [privileges] ON object TO user|public [CASCADE CONSTRAINTS] grant select,update on student to XYZ ; revoke update on student to XYZ;
  • 21. For Further Informatiom:  Read more about oracle Database: http://www.urgenthomework.com/oracle-10g-and-11g.php

Notas del editor

  1. 1. 오라클이란? 2. 오라클의 Overview 3. SGA란, SGA의 구성요소 3가지와 SGA의 역할 4. Background Process에 대해 (역할과 어떤것이 있는지) 5. Instance = SGA + Background Process 6. Server Process/User Process 7. File 의 구성요소와 간단한 역할 1) Fixed size 이 부분은 백그라운드 프로세스가 access하는데 필요한 일반적인 정보를 포함하고 있는 부분으로서 user data는 없으며 parameter로 크게 또는 작게 지정 할 수 없다.따라서 항시 instance내에서 일정한 크기를 갖으며 버젼별,os 별로 약간의 차이는 있다. 2) Variable size 이 size는 parameter file(initSID.ora)의 SHARED_POOL_SIZE에서 지정한 크기와 각종 파라미터로 지정한 값의 합으로 결정된다. SHARED_POOL_SIZE는 byte단위로 지정하며 OS의 shared memory segment보다는 작아야 한다. InitSID.ora file에는 instance와 관련된 여러 parameter가 지정되어 있는데 이곳의 parameter의 지정 값에 따라서 SGA의 영역에 일정한 부분을 차지한다.따라서 SGA의 크기에 영향을 주는 요소는 단순히 SHARED_POOL_SIZE이외에 각종 parameter에 의해 점유되는 부분을 고려해야 한다.일반적으로 각 parameter값을 크게 할 수록 메모리 사용은 일정한 비율로 늘어나며 다음은 몇가지 예이다. *DB_FILES - 10 증가시 약 6K소모 *DML_LOCKS - 100 증가시 9.7K소모 *PROCESSES - 10 증가시 19.5K 소모 *SEQUENCE_CACHE_ENTRIES - 10 증가시 약 1.17K 증가 *ROW_CACHE_ENQUEUES - 100 증가시 약 3.5K 증가 *SESSIONS - 10 증가시 약 5.3K 증가 : : 현재 각 parameter에 의해 점유된 SGA내의 점유된 메모리 영역의 크기는 V$SGASTAT에서 조회하여 볼 수 있다.(select * from v$sgastat;)
  2. 3) Database Buffer Cache SGA에서 disk의 data가 저장되는 곳으로서 performance에 큰 영향을 준다. 이곳의 size가 작으므로 발생 할 수 있는 현상은 빈번한 disk i/o이다.크기는 DB_BLOCK_BUFFERS로 지정하며 buffer의 갯수를 지정한다.byte 산정은 DB_BLOCK_BUFFERS * DB_BLOCK_SIZE로 산출된다. 4) Log Buffers 이것은 redo log 용도로 사용될 메모리 내의 log buffer size를 말 한다.크기는 byte단위로 LOG_BUFFERS 로 지정한다. 1. SGA 의 특징 - data와 control information을 저장한다. - SGA는 non-paged, non-swapped memory - 전체 메모리에 1/3 정도로 구성한다. 2. 오라클 기본 메모리 구조 - software code areas : 실행되고 있거나 실행될 오라클을 위한 코드가 저장되는 곳 - the system global area (SGA) the database buffer cache, the redo log buffer, the shared pool - program global areas (PGA) : 프로세스(Server,background)에 대한 data와 control 정보를 담고있다.( stack areas, data areas ) - sort areas (SORT_AREA_SIZE에서 지정) 3. Shared Pool 의 구성과 역할 - Identical SQL문 (by Hashing algorithm)
  3. Tablespaces A database is divided into logical storage units called tablespaces, which group related logical structures together. For example, tablespaces commonly group all of an application’s objects to simplify some administrative operations. Each database is logically divided into one or more tablespaces. One or more datafiles are explicitly created for each tablespace to physically store the data of all logical structures in a tablespace. The combined size of a tablespace’s datafiles is the total storage capacity of the tablespace (SYSTEM tablespace has 2 MB storage capacity while USERS tablespace has 4 MB). The combined storage capacity of a database’s tablespaces is the total storage capacity of the database (6 MB).