Presentation is loading. Please wait.

Presentation is loading. Please wait.

Anton TopurovIT-DB 23 April 2013 Introduction to Oracle2.

Similar presentations


Presentation on theme: "Anton TopurovIT-DB 23 April 2013 Introduction to Oracle2."— Presentation transcript:

1

2 Anton TopurovIT-DB 23 April 2013 Introduction to Oracle2

3 23 April 2013 Introduction to Oracle3

4 23 April 2013 Introduction to Oracle4

5 IT manager 23 April 2013 Introduction to Oracle5

6 App Developer 23 April 2013 Introduction to Oracle6

7 Database Administrator 23 April 2013 Introduction to Oracle7

8 System Administrator 23 April 2013 Introduction to Oracle8

9 IT manager 23 April 2013 Introduction to Oracle9

10 23 April 2013 Introduction to Oracle10

11 23 April 2013 Introduction to Oracle11

12 Introduction to Oracle12

13 23 April 2013 Introduction to Oracle13

14 Oracle Database Internals 23 April 2013 Introduction to Oracle14

15 23 April 2013 Introduction to Oracle15 Oracle Database Oracle Instance Real Application Clusters (RAC) SQL statements processing Working with Oracle Database

16 23 April 2013 Introduction to Oracle16 23 April 2013 Introduction to Oracle16

17 Oracle Database Server 23 April 2013 Introduction to Oracle17

18 Simplified view 23 April 2013 Introduction to Oracle18 System Global Area (SGA) Background Processes Data Files Control Files Online Redo Logs Server Processes PGA

19 Database Physical Layout 23 April 2013 Introduction to Oracle19 Data FilesControl FilesOnline Redo Logs

20 Physical to Logical 23 April 2013 Introduction to Oracle20 Data Files

21 Logical Layout 23 April 2013 Introduction to Oracle21 Block The smallest logical unit of data storage Extent Continios set of blocks Segment Type (table, index,..) Within a tablespace Tablespace Maps to one or more datafiles

22 23 April 2013 Introduction to Oracle22 Oracle Database Oracle Instance Real Application Clusters (RAC) SQL statements processing Working with Oracle Database

23 Oracle Instance 23 April 2013 Introduction to Oracle23 System Global Area (SGA) Background Processes Data Files Control Files Online Redo Logs

24 SGA contents 23 April 2013 Introduction to Oracle24 Buffer cache holds copies of data blocks server processes manipulate data from buffer cache (not directly from data files) managed using LRU algorithm (Least Recently Used) Shared pool shared memory constructs like shared SQL areas most recently executed SQL statements most recently used data definitions

25 Backup Background Processes 23 April 2013 Introduction to Oracle25 System Monitor Process Monitor Diagnosability Process Data FilesControl FilesOnline Redo Logs Database Writer Archived Redo Logs Redo Log ArchiverRedo Log WriterCheckpointer Buffer Cache System Global Area (SGA) Redo Log Buffer

26 23 April 2013 Introduction to Oracle26 Oracle Database Oracle Instance Real Application Clusters (RAC) SQL statements processing Working with Oracle Database

27 Real Application Clusters 23 April 2013 Introduction to Oracle27 Data Files Control Files Online Redo Logs SGA PGA SGA PGA Clusterware SGA PGA Clusterware

28 23 April 2013 Introduction to Oracle28 Oracle Database Oracle Instance Real Application Clusters (RAC) SQL statements processing Working with Oracle Database

29 Database Account Database user username/password to connect to database Privileges System and object privileges / roles CREATE SESSION, CREATE TABLE, CREATE PROCEDURE, CREATE JOB,… EXECUTE ON DBMS_LOCK, SELECT ON HR.EMPLOYEES, … Profiles CERN_DEV_PROFILE: 10 concurrent sessions CERN_APP_PROFILE: 400 concurrent sessions Space quota on tablespaces 23 April 2013 Introduction to Oracle29

30 Database vs Schema A Schema? Collection of objects Owned by a database user and has the same name as that user Each user owns a single schema. Good programming practice is to prefix objects by schema name 23 April 2013 Introduction to Oracle30 select name from hr.employees where id=7;

31 Connecting to Oracle Database 23 April 2013 Introduction to Oracle31 Listener port 10121 sqlplus username@ ’(DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=node1.cern.ch) (PORT=10121)) (CONNECT_DATA= (SID=DEVDB11)))’ SGA Instance SID: DEVDB11 PGA node1 Data FilesControl FilesOnline Redo Logs

32 node2-v Connecting to RAC Database 23 April 2013 Introduction to Oracle32 Data FilesControl Files Online Redo Logs SGA PGA sqlplus username@ ( DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=node2-v.cern.ch) (PORT=10121)) (ADDRESS= (PROTOCOL=TCP) (HOST=node1-v.cern.ch) (PORT=10121)) (LOAD_BALANCE=off) (CONNECT_DATA= (SERVER=DEDICATED) (SERVICE_NAME=CERN_SRV1.cern.ch) ))’ Listener SGA PGA Listener CERN_SRV1 CERN_SRV3 CERN_SRV2 node1.cern.ch node2.cern.ch node1-v Clusterware

33 Local naming method Based on tnsnames.ora /afs/cern.ch/project/oracle/admin \\cern.ch\dfs\Applications\Oracle\ADMIN 23 April 2013 Introduction to Oracle33 ( DESCRIPTION= (ADDRESS= (PROTOCOL=TCP) (HOST=node2-v.cern.ch) (PORT=10121)) (ADDRESS= (PROTOCOL=TCP) (HOST=node1-v.cern.ch) (PORT=10121)) (LOAD_BALANCE=off) (CONNECT_DATA= (SERVER=DEDICATED) (SERVICE_NAME=CERN_SRV1.cern.ch) ))’ cerndb1 = sqlplus username@

34 23 April 2013 Introduction to Oracle34 Oracle Database Oracle Instance Real Application Clusters (RAC) SQL statements processing Working with Oracle Database

35 SQL Statements Processing 23 April 2013 Introduction to Oracle35 SQL Statement Syntax Check Semantic Check Shared Pool Check Optimization Row Source Generation Execution Parsing Soft Parse Hard Parse select * from hr.employees; sql_id = 8k3hpjw6yjup5 select name from hr.employees where id=:id_val;

36 Summary 23 April 2013 Introduction to Oracle36

37 Documentation Oracle Database Concepts http://docs.oracle.com/cd/E11882_01/server.112/e25789/toc.htm Oracle 11g documentation http://www.oracle.com/pls/db112/portal.all_books Architecture poster 23 April 2013 Introduction to Oracle37

38 23 April 2013 Introduction to Oracle38

39 Agenda 23 April 2013 Introduction to Oracle39 Oracle Database Oracle Instance Real Application Clusters (RAC) SQL statements processing Working with Oracle Database


Download ppt "Anton TopurovIT-DB 23 April 2013 Introduction to Oracle2."

Similar presentations


Ads by Google