0% found this document useful (0 votes)
55 views79 pages

Solutions & Engineering: of Defense and Security Information Systems

This document provides an overview of how to use Oracle database administration tools to view and manage database objects like tables, users, and tablespaces. It also covers SQL concepts like queries, joins, and DML statements and introduces PL/SQL programming.

Uploaded by

gpilopais1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views79 pages

Solutions & Engineering: of Defense and Security Information Systems

This document provides an overview of how to use Oracle database administration tools to view and manage database objects like tables, users, and tablespaces. It also covers SQL concepts like queries, joins, and DML statements and introduces PL/SQL programming.

Uploaded by

gpilopais1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 79

Solutions & Engineering of Defense and Security Information Systems

Oracle
Administration

Solutions & Engineering of Defense and Security Information Systems

Add a Database to the Tree


enter the host
name or IP
address of the
Oracle database
server
enter the SID
click the OK
button
Solutions & Engineering of Defense and Security Information Systems

Connect to the Database


enter user name

enter password

click the OK
button

Solutions & Engineering of Defense and Security Information Systems

View the Tree


click a plus icon
or double-click
a node to
expand child
node

Solutions & Engineering of Defense and Security Information Systems

View Parameter
double-click the
Instance node
click the
Configration
node
click All
Initialization
Parameter
Solutions & Engineering of Defense and Security Information Systems

View Parameter
click the
Cancel button

Solutions & Engineering of Defense and Security Information Systems

View Session
click the
Session
button

Solutions & Engineering of Defense and Security Information Systems

View User
click a use
name node
view a users
tablespaces,role
privileges and
object
privileges

Solutions & Engineering of Defense and Security Information Systems

View Chema
double-click the
Schema node

Solutions & Engineering of Defense and Security Information Systems

View Table Structure


right-click a
table names
node and then
click the
view/edit
details menu

Solutions & Engineering of Defense and Security Information Systems

View Data
right-click the
table names
node and then
click the
View/Edit
contents menu

Solutions & Engineering of Defense and Security Information Systems

View Tablespace
click the
Tablespace
node

Solutions & Engineering of Defense and Security Information Systems

View Datafile
click the
Datafile node

Solutions & Engineering of Defense and Security Information Systems

Create Permanent Tablespace


right-click the
Tablespace node
and then click the
Create
enter the
name,directory and
size
click the Create
button
Solutions & Engineering of Defense and Security Information Systems

Create Temporary Tablespace


right-click the
Tablespace node
and then click the
Create
enter the
name,directory and
size
Select the
Temporary type
Solutions & Engineering of Defense and Security Information Systems

Create User
right-click the
User node and
then click the
Create
enter the
name,password
select tablespace

Solutions & Engineering of Defense and Security Information Systems

Create User
double-click the
role privilege
which you want
to grant to the
user

Solutions & Engineering of Defense and Security Information Systems

Create User
double-click the
system privilege
which you want
to grant to the
user

Solutions & Engineering of Defense and Security Information Systems

Create Table:General
right-click the
Table node
under the
schema node
enter table
name
define columns

Solutions & Engineering of Defense and Security Information Systems

Create Table:Constraints
right-click the
Table node
under the
schema node
enter table
name
define columns

Solutions & Engineering of Defense and Security Information Systems

Oracle Data Types

Character Data Type


Number Data Type
Date Data Type
LOB Data Type

Solutions & Engineering of Defense and Security Information Systems

Oracle Data Types


Character Data Type
Char
Varchar2

Number Data Type


Number(p, s)

Solutions & Engineering of Defense and Security Information Systems

Oracle Data Types


Date Data Type
Date
Timestamp

LOB Data Type


CLOB
BLOB

Solutions & Engineering of Defense and Security Information Systems

SQL & PL/SQL


SQL:Structured Query Language
PL/SQL:Procedural Language/Structured
Query Language

Solutions & Engineering of Defense and Security Information Systems

SQL & PL/SQL


Data Retrieval Language (DRL):

SELECT

Data Manipulation Language (DML):

INSERT
UPDATE
DELETE

Data Definition Language (DDL):

CREATE
ALTER
DROP
RENAME
TRUNCATE

Data Control Language (DCL):

GRANT
REVOKE

Transaction Control:

COMMIT
ROLLBACK
SAVEPOINT

Solutions & Engineering of Defense and Security Information Systems

EMP Table

Solutions & Engineering of Defense and Security Information Systems

DEPT Table

Solutions & Engineering of Defense and Security Information Systems

Basic SELECT Statement

Solutions & Engineering of Defense and Security Information Systems

Selecting All Columns

Solutions & Engineering of Defense and Security Information Systems

Selecting Specific Columns

Solutions & Engineering of Defense and Security Information Systems

Arithmetic Expressions

Solutions & Engineering of Defense and Security Information Systems

Using Arithmetic Operators

Solutions & Engineering of Defense and Security Information Systems

Using Arithmetic Operators on Multiple columns

Solutions & Engineering of Defense and Security Information Systems

Operator Precedence

Solutions & Engineering of Defense and Security Information Systems

Operator Precedence

Solutions & Engineering of Defense and Security Information Systems

Using Parentheses

Solutions & Engineering of Defense and Security Information Systems

Using Column Aliases

Solutions & Engineering of Defense and Security Information Systems

Using the Concatenation Operator

Solutions & Engineering of Defense and Security Information Systems

Using Literal Character Strings

Solutions & Engineering of Defense and Security Information Systems

Duplicate Rows

Solutions & Engineering of Defense and Security Information Systems

Eliminating Duplicate Rows

Solutions & Engineering of Defense and Security Information Systems

Using the WHERE Clause

Solutions & Engineering of Defense and Security Information Systems

Character Strings and Dates

Solutions & Engineering of Defense and Security Information Systems

Comparison Operators

Solutions & Engineering of Defense and Security Information Systems

Using the Comparison Operator

Solutions & Engineering of Defense and Security Information Systems

Using the Comparison Operators

Solutions & Engineering of Defense and Security Information Systems

Other SQL Comparison Operators

Solutions & Engineering of Defense and Security Information Systems

Using the BETWEEN Operator

Solutions & Engineering of Defense and Security Information Systems

Using the IN Operator

Solutions & Engineering of Defense and Security Information Systems

Using the IN Operator with Strings

Solutions & Engineering of Defense and Security Information Systems

Using the LIKE Operator

Solutions & Engineering of Defense and Security Information Systems

Using the LIKE Operator

Solutions & Engineering of Defense and Security Information Systems

Using the IS NULL Operator

Solutions & Engineering of Defense and Security Information Systems

Logical Operators

Solutions & Engineering of Defense and Security Information Systems

Using the AND Operator

Solutions & Engineering of Defense and Security Information Systems

Using the AND Operator

Solutions & Engineering of Defense and Security Information Systems

Using the OR Operator

Solutions & Engineering of Defense and Security Information Systems

Using the OR Operator

Solutions & Engineering of Defense and Security Information Systems

Using the NOT Operator

Solutions & Engineering of Defense and Security Information Systems

Using the NOT Operator

Solutions & Engineering of Defense and Security Information Systems

Using the NOT Operator

Solutions & Engineering of Defense and Security Information Systems

Using the NOT Operator

Solutions & Engineering of Defense and Security Information Systems

Rules of Precedence

Solutions & Engineering of Defense and Security Information Systems

Rules of Precedence

Solutions & Engineering of Defense and Security Information Systems

Rules of Precedence

Solutions & Engineering of Defense and Security Information Systems

ORDER BY Clause

Solutions & Engineering of Defense and Security Information Systems

Sorting in Descending Order

Solutions & Engineering of Defense and Security Information Systems

Sorting by Column Alias

Solutions & Engineering of Defense and Security Information Systems

Sorting by Multiple Columns

Solutions & Engineering of Defense and Security Information Systems

Sorting by a Column Not in the SELECT List

Solutions & Engineering of Defense and Security Information Systems

Joining Tables

Solutions & Engineering of Defense and Security Information Systems

Retrieving Records with an Equijoin

Solutions & Engineering of Defense and Security Information Systems

INSERT
INSERT INTO table_name
VALUES(value1,value2,...)
INSERT INTO dept VALUES
(50,'DEVELOPMENT','GUAYAQUIL')
COMMIT

Solutions & Engineering of Defense and Security Information Systems

UPDATE
UPDATE table_name
SET column_name = 'value'
[WHERE condition]
UPDATE dept
SET dname='SEGURIDAD'
WHERE dname='DEVELOPMENT'
COMMIT

Solutions & Engineering of Defense and Security Information Systems

DELETE
DELETE FROM table_name
[WHERE condition]
DELETE FROM dept
WHERE dname='SEGURIDAD'
COMMIT

Solutions & Engineering of Defense and Security Information Systems

PL/SQL

Solutions & Engineering of Defense and Security Information Systems

Benefits of PL/SQL

Solutions & Engineering of Defense and Security Information Systems

Gracias

Solutions & Engineering of Defense and Security Information Systems

You might also like