oracle lecture 1: oracle 11g introduction & installation
Post on 19-Dec-2015
225 views
TRANSCRIPT
![Page 1: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/1.jpg)
ORACLELecture 1:Oracle 11g Introduction & Installation
![Page 2: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/2.jpg)
OverviewIntroductionInstallationUsing SQL to Query Your
DatabaseOracle SQL Developer
![Page 3: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/3.jpg)
Oracle Database 11g: Focus Areas
Infrastructure Grids
InformationManagement
Application Development
![Page 4: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/4.jpg)
Oracle Database 11g
Manageability
High availability
Performance
Security
Information integration
![Page 5: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/5.jpg)
Data Storage on Different Media
Electronic spreadsheet
Filing cabinet Database
![Page 6: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/6.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/7.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/8.jpg)
Data Models
![Page 9: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/9.jpg)
OverviewIntroductionInstallationUsing SQL to Query Your
DatabaseOracle SQL Developer
![Page 10: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/10.jpg)
1st step
![Page 11: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/11.jpg)
2nd step
![Page 12: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/12.jpg)
3rd step
![Page 13: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/13.jpg)
4th step
![Page 14: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/14.jpg)
5th step
![Page 15: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/15.jpg)
6th step
![Page 16: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/16.jpg)
7th step
![Page 17: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/17.jpg)
8th step
![Page 18: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/18.jpg)
9th step
![Page 19: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/19.jpg)
10th step
![Page 20: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/20.jpg)
11th step
![Page 21: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/21.jpg)
12th step
![Page 22: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/22.jpg)
13 step
![Page 23: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/23.jpg)
14th step
![Page 24: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/24.jpg)
15th step
![Page 25: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/25.jpg)
16th step
![Page 26: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/26.jpg)
17th step
![Page 27: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/27.jpg)
18th step
![Page 28: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/28.jpg)
OverviewIntroductionInstallationUsing SQL to Query Your
DatabaseOracle SQL Developer
![Page 29: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/29.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/30.jpg)
SQL Statements
![Page 31: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/31.jpg)
Development Environments for SQL
◦Primarily use Oracle SQL Developer, Release 1.2
![Page 32: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/32.jpg)
OverviewIntroductionInstallationUsing SQL to Query Your
DatabaseOracle SQL Developer
![Page 33: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/33.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/34.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/35.jpg)
Oracle SQL Developer Interface
![Page 36: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/36.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/37.jpg)
Creating a Database Connection
![Page 38: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/38.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/39.jpg)
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](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/40.jpg)
Using the SQL Worksheet
![Page 41: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/41.jpg)
Executing SQL StatementsUse the Enter SQL Statement box
to enter single or multiple SQL statements.
![Page 42: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/42.jpg)
Formatting the SQL CodeBefore
formatting
After formatting
![Page 43: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/43.jpg)
Saving SQL Statements
1
2
3
![Page 44: ORACLE Lecture 1: Oracle 11g Introduction & Installation](https://reader037.vdocument.in/reader037/viewer/2022103022/56649d2f5503460f94a06eee/html5/thumbnails/44.jpg)
Running Script Files
1
2
3