44
ORACLE Lecture 1 : Oracle 11g Introduction & Installation

ORACLE Lecture 1: Oracle 11g Introduction & Installation

  • View
    233

  • Download
    1

Embed Size (px)

Citation preview

Page 1: ORACLE Lecture 1: Oracle 11g Introduction & Installation

ORACLELecture 1:Oracle 11g Introduction & Installation

Page 2: ORACLE Lecture 1: Oracle 11g Introduction & Installation

OverviewIntroductionInstallationUsing SQL to Query Your

DatabaseOracle SQL Developer

Page 3: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Oracle Database 11g: Focus Areas

Infrastructure Grids

InformationManagement

Application Development

Page 4: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Oracle Database 11g

Manageability

High availability

Performance

Security

Information integration

Page 5: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Data Storage on Different Media

Electronic spreadsheet

Filing cabinet Database

Page 6: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Relational Database Concept

◦Dr. E. F. Codd proposed the relational model for database systems in 1970.

◦It is the basis for the relational database management system (RDBMS).

◦The relational model consists of the following: Collection of objects or relations Set of operators to act on the relations Data integrity for accuracy and

consistency

Page 7: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Definition of a Relational DatabaseA relational database is a

collection of relations or two-dimensional tables.

Table name: EMPLOYEES Table name: DEPARTMENTS

… …

Page 8: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Data Models

Page 9: ORACLE Lecture 1: Oracle 11g Introduction & Installation

OverviewIntroductionInstallationUsing SQL to Query Your

DatabaseOracle SQL Developer

Page 10: ORACLE Lecture 1: Oracle 11g Introduction & Installation

1st step

Page 11: ORACLE Lecture 1: Oracle 11g Introduction & Installation

2nd step

Page 12: ORACLE Lecture 1: Oracle 11g Introduction & Installation

3rd step

Page 13: ORACLE Lecture 1: Oracle 11g Introduction & Installation

4th step

Page 14: ORACLE Lecture 1: Oracle 11g Introduction & Installation

5th step

Page 15: ORACLE Lecture 1: Oracle 11g Introduction & Installation

6th step

Page 16: ORACLE Lecture 1: Oracle 11g Introduction & Installation

7th step

Page 17: ORACLE Lecture 1: Oracle 11g Introduction & Installation

8th step

Page 18: ORACLE Lecture 1: Oracle 11g Introduction & Installation

9th step

Page 19: ORACLE Lecture 1: Oracle 11g Introduction & Installation

10th step

Page 20: ORACLE Lecture 1: Oracle 11g Introduction & Installation

11th step

Page 21: ORACLE Lecture 1: Oracle 11g Introduction & Installation

12th step

Page 22: ORACLE Lecture 1: Oracle 11g Introduction & Installation

13 step

Page 23: ORACLE Lecture 1: Oracle 11g Introduction & Installation

14th step

Page 24: ORACLE Lecture 1: Oracle 11g Introduction & Installation

15th step

Page 25: ORACLE Lecture 1: Oracle 11g Introduction & Installation

16th step

Page 26: ORACLE Lecture 1: Oracle 11g Introduction & Installation

17th step

Page 27: ORACLE Lecture 1: Oracle 11g Introduction & Installation

18th step

Page 28: ORACLE Lecture 1: Oracle 11g Introduction & Installation

OverviewIntroductionInstallationUsing SQL to Query Your

DatabaseOracle SQL Developer

Page 29: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Using SQL to Query Your DatabaseStructured query language (SQL) is:

◦The ANSI standard language for operating relational databases

◦Efficient, easy to learn, and use◦Functionally complete (With SQL, you can

define, retrieve, and manipulate data in the tables.)

SELECT department_name FROM departments;

Page 30: ORACLE Lecture 1: Oracle 11g Introduction & Installation

SQL Statements

Page 31: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Development Environments for SQL

◦Primarily use Oracle SQL Developer, Release 1.2

Page 32: ORACLE Lecture 1: Oracle 11g Introduction & Installation

OverviewIntroductionInstallationUsing SQL to Query Your

DatabaseOracle SQL Developer

Page 33: ORACLE Lecture 1: Oracle 11g Introduction & Installation

What Is Oracle SQL Developer?◦Oracle SQL Developer is a graphical

tool that enhances productivity and simplifies database development tasks.

◦You can connect to any target Oracle database schema by using the standard Oracle database authentication.

Page 34: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Specifications of Oracle SQL Developer

◦ Developed in Java◦ Supports Windows, Linux, and Mac OS X platforms◦ Default connectivity by using the JDBC Thin driver◦ Does not require an installer

Unzip the downloaded Oracle SQL Developer kit and double-click sqldeveloper.exe to start Oracle SQL Developer.

◦ Connects to any Oracle Database, version 9.2.0.1 and later

◦ Freely downloadable from the following link: http://www.oracle.com/technology/products/database/

sql_developer/index.html

◦ Needs JDK 1.5 installed on your system, which can be downloaded from the following link: http://java.sun.com/javase/downloads/index_jdk5.jsp

Page 35: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Oracle SQL Developer Interface

Page 36: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Creating a Database Connection

◦You must have at least one database connection to use Oracle SQL Developer.

◦You can create and test connections for: Multiple databases Multiple schemas

◦Oracle SQL Developer automatically imports any connections defined in the tnsnames.ora file on your system.

◦You can export connections to an XML file.◦Each additional database connection

created is listed in the Connections Navigator hierarchy.

Page 37: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Creating a Database Connection

Page 38: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Browsing Database ObjectsUse the Connections Navigator to:

◦Browse through many objects in a database schema

◦Review the definitions of objects at a glance

Page 39: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Using the SQL Worksheet◦Use the SQL Worksheet to enter and

execute SQL, PL/SQL.◦Specify any actions that can be

processed by the database connection associated with the Worksheet.

Enter SQL Statements.

Results are shown here.

Page 40: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Using the SQL Worksheet

Page 41: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Executing SQL StatementsUse the Enter SQL Statement box

to enter single or multiple SQL statements.

Page 42: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Formatting the SQL CodeBefore

formatting

After formatting

Page 43: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Saving SQL Statements

1

2

3

Page 44: ORACLE Lecture 1: Oracle 11g Introduction & Installation

Running Script Files

1

2

3