Introduction to Oracle
Database Systems, 2008-2009 Presented by Rubi Boim
(based on Jackie Assa‟s Slides)
1
Introduction to Oracle Database Systems, 2008-2009 Presented by - - PowerPoint PPT Presentation
Introduction to Oracle Database Systems, 2008-2009 Presented by Rubi Boim (based on Jackie Assas Slides) 1 Agenda Bureaucracy Database architecture overview Buzzwords SSH Tunneling Intro to Oracle Comments on
(based on Jackie Assa‟s Slides)
1
2
3
Submission date is Dec 2. (No late arrivals will be
Work should be done in pairs Please, please, please, names and ID on the submittals.
4
Hard work, but real. Work in groups of 4 Project goal: to tackle and resolve real-life DB related
One Two stages. Please use JAVA (SWT). (Check with me for other
Thinking out of the box will be rewarded
5
6
7
8
9
10
DB programmer App programmer DBA Gui designer Tester
11
Application DB infrastructure DB driver DB engine Storage Transport
12
Database “hiding” Schema abstraction Encapsulation of db mechanisms
Application DB infrastructure DB driver DB engine Storage Transport
13
Application DB infrastructure DB driver DB engine Storage Transport
14
Application DB infrastructure DB driver DB engine Storage Transport
15
Total management of the DB
Security Scalability (clustering) Maintenance Fault tolerant (disaster management) Monitoring Services
Large DB engines include Microsoft SQL Server,
Application DB infrastructure DB driver DB engine Storage Transport
16
Application DB infrastructure DB driver DB engine Storage Transport
17
Application DB infrastructure DB driver DB engine Storage Transport
18
19
20
Various standards have been developed for
Some of the important standards are
ODBC (Open Database Connectivity) is the early
OLE DB is Microsoft‟s object-oriented interface for
ADO (Active Data Objects) is Microsoft‟s standard
21
Open Database Connectivity (ODBC) is a
Maximum interoperability
22
Selecting a data source and connecting to it. Submitting an SQL statement for execution. Retrieving results (if any). Processing errors. Committing or rolling back the transaction
Disconnecting from the data source.
23
24
25
API includes:
DriverManager, Connection, Statement, PreparedStatement,
JDBC Type Driver:
Type 1 - (JDBC-ODBC Bridge) drivers. Type 2 - native API for data access which provide Java wrapper
Type 3 - 100% Java, makes use of a middle-tier between the calling
Type 4 - They are also written in 100% Java and are the most
26
27
For example: Hibernate, EJB3.0, JDO
28
29
30
Application DB infrastructure DB bridge/driver Transport (TCP) DB engine Server Machine Client Machine
Application DB infrastructure DB bridge/driver DB engine Server Machine Client Machine Tunnel machine (SSH server) proxy Proxy Machine TCP SSH TCP
31
Application DB infrastructure Db bridge/driver DB engine Tunnel machine (SSH server) proxy
32
33
34
Oracle database – (at home express edition) SQLDeveloper
35
Host:
Port:
SID:
Schema
Use the connection guide (link on the course
TAU HR user / password: hr_readonly / hrro
36
http://www.cs.tau.ac.il/~boim/courses/databases2009/slides/moreinfo/03-connection-guide.htm
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
Installation Create a user Run a script Query Other database objects Administration tasks Similar tutorial can be found in
71
72
73
74