Top Banner
ORACLE Lecture 1 : Oracle 11g Introduction & Installation
44

ORACLE

Feb 14, 2016

Download

Documents

manning

ORACLE. Lecture 1: Oracle 11g Introduction & Installation. Overview. Introduction Installation Using SQL to Query Your Database Oracle SQL Developer. Oracle Database 11 g : Focus Areas. Infrastructure Grids. Information Management. Application Development. Oracle Database 11 g . - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: ORACLE

ORACLELecture 1:Oracle 11g Introduction & Installation

Page 2: ORACLE

OverviewIntroductionInstallationUsing SQL to Query Your

DatabaseOracle SQL Developer

Page 3: ORACLE

Oracle Database 11g: Focus Areas

Infrastructure Grids

InformationManagement

Application Development

Page 4: ORACLE

Oracle Database 11g

ManageabilityHigh availability

PerformanceSecurity

Information integration

Page 5: ORACLE

Data Storage on Different Media

Electronic spreadsheet Filing cabinet Database

Page 6: ORACLE

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

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

Data Models

Page 9: ORACLE

OverviewIntroductionInstallationUsing SQL to Query Your

DatabaseOracle SQL Developer

Page 10: ORACLE

1st step

Page 11: ORACLE

2nd step

Page 12: ORACLE

3rd step

Page 13: ORACLE

4th step

Page 14: ORACLE

5th step

Page 15: ORACLE

6th step

Page 16: ORACLE

7th step

Page 17: ORACLE

8th step

Page 18: ORACLE

9th step

Page 19: ORACLE

10th step

Page 20: ORACLE

11th step

Page 21: ORACLE

12th step

Page 22: ORACLE

13 step

Page 23: ORACLE

14th step

Page 24: ORACLE

15th step

Page 25: ORACLE

16th step

Page 26: ORACLE

17th step

Page 27: ORACLE

18th step

Page 28: ORACLE

OverviewIntroductionInstallationUsing SQL to Query Your

DatabaseOracle SQL Developer

Page 29: ORACLE

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

SQL Statements

Page 31: ORACLE

Development Environments for SQL

◦Primarily use Oracle SQL Developer, Release 1.2

Page 32: ORACLE

OverviewIntroductionInstallationUsing SQL to Query Your

DatabaseOracle SQL Developer

Page 33: ORACLE

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

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

Oracle SQL Developer Interface

Page 36: ORACLE

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

Creating a Database Connection

Page 38: ORACLE

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

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

Using the SQL Worksheet

Page 41: ORACLE

Executing SQL StatementsUse the Enter SQL Statement box

to enter single or multiple SQL statements.

Page 42: ORACLE

Formatting the SQL CodeBefore

formatting

After formatting

Page 43: ORACLE

Saving SQL Statements1

23

Page 44: ORACLE

Running Script Files

1

2

3