1 Oracle Administration(V2.0)-En
-
Upload
gpilopais1 -
Category
Documents
-
view
22 -
download
0
description
Transcript of 1 Oracle Administration(V2.0)-En
Solutions & Engineering of Defense and Security Information Systems1
Solutions & Engineering of Defense and Security Information Systems
Oracle Administration
Solutions & Engineering of Defense and Security Information Systems
Add a Database to the TreeAdd 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 DatabaseConnect to the Database
enter user name
enter password
click the “OK” button
Solutions & Engineering of Defense and Security Information Systems
View the TreeView the Tree
click a plus icon or double-click a node to expand child node
Solutions & Engineering of Defense and Security Information Systems
View ParameterView Parameter
double-click the “Instance” node
click the “Configration” node
click “All Initialization Parameter”
Solutions & Engineering of Defense and Security Information Systems
View ParameterView Parameter
click the “Cancel” button
Solutions & Engineering of Defense and Security Information Systems
View SessionView Session
click the “Session” button
Solutions & Engineering of Defense and Security Information Systems
View UserView User
click a use name node
view a user’s tablespaces,role
privileges and object privileges
Solutions & Engineering of Defense and Security Information Systems
View ChemaView Chema
double-click the “Schema” node
Solutions & Engineering of Defense and Security Information Systems
View Table StructureView Table Structure
right-click a table name’s node and then click the “view/edit details” menu
Solutions & Engineering of Defense and Security Information Systems
View DataView Data
right-click the table name’s node and then click the “View/Edit contents” menu
Solutions & Engineering of Defense and Security Information Systems
View TablespaceView Tablespace
click the “Tablespace” node
Solutions & Engineering of Defense and Security Information Systems
View DatafileView Datafile
click the “Datafile” node
Solutions & Engineering of Defense and Security Information Systems
Create Permanent TablespaceCreate 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 TablespaceCreate 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 UserCreate 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 UserCreate User
double-click the role privilege which you want to grant to the user
Solutions & Engineering of Defense and Security Information Systems
Create UserCreate User
double-click the system privilege which you want to grant to the user
Solutions & Engineering of Defense and Security Information Systems
Create Table:GeneralCreate 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:ConstraintsCreate 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/SQLData Retrieval Language (DRL):
Data Manipulation Language (DML):
Data Definition Language (DDL):
Data Control Language (DCL):
Transaction Control:
SELECT
INSERTUPDATEDELETE
CREATEALTERDROPRENAMETRUNCATE
GRANTREVOKE
COMMITROLLBACKSAVEPOINT
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
INSERTINSERT INTO table_name
VALUES(value1,value2,…...)
INSERT INTO dept VALUES (50,'DEVELOPMENT','GUAYAQUIL')
COMMIT
Solutions & Engineering of Defense and Security Information Systems
UPDATEUPDATE table_name
SET column_name = 'value'[WHERE condition]
UPDATE deptSET dname='SEGURIDAD' WHERE dname='DEVELOPMENT'
COMMIT
Solutions & Engineering of Defense and Security Information Systems
DELETEDELETE FROM table_name
[WHERE condition]
DELETE FROM deptWHERE 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