KKUI Manažérske informačné Systémy Cvičenia 2010 Zdenek Marhefka.

Slides:



Advertisements
Similar presentations
Basic SQL Introduction Presented by: Madhuri Bhogadi.
Advertisements

PL/SQL. Introduction to PL/SQL PL/SQL is the procedure extension to Oracle SQL. It is used to access an Oracle database from various environments (e.g.
Virtual training week 4 structured query language (SQL)
ORACLE TRANSACTIONS A transaction begins with the first executable SQL statement after a commit, rollback or connection made to the Oracle engine. All.
SQL components In Oracle. SQL in Oracle SQL is made up of 4 components: –DDL Data Definition Language CREATE, ALTER, DROP, TRUNCATE. Creates / Alters.
System Administration Accounts privileges, users and roles
Chapter 5 Data Manipulation and Transaction Control Oracle 10g: SQL
Adapted from Afyouni, Database Security and Auditing DB Auditing Examples (Ch. 9) Dr. Mario Guimaraes.
ORACLE ONLINE TRAINING Contact our Support Team : SOFTNSOL India: Skype id : softnsoltrainings id:
Agenda Journalling More Embedded SQL. Journalling.
Chapter Oracle Server An Oracle Server consists of an Oracle database (stored data, control and log files.) The Server will support SQL to define.
I Copyright © 2004, Oracle. All rights reserved. Introduction.
By Lecturer / Aisha Dawood 1.  Administering Users  Create and manage database user accounts.  Create and manage roles.  Grant and revoke privileges.
Chapter 5 Data Manipulation and Transaction Control
I Copyright © Oracle Corporation, All rights reserved. Introduction.
Introduction to SEQUEL. What is SEQUEL? Acronym for Structural English Query Language Acronym for Structural English Query Language Standard language.
Copyright © 2011 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are trademarks of Accenture. SQL Workshop Day 3.
Triggers A Quick Reference and Summary BIT 275. Triggers SQL code permits you to access only one table for an INSERT, UPDATE, or DELETE statement. The.
Controlling User Access. Objectives After completing this lesson, you should be able to do the following: Create users Create roles to ease setup and.
FEN  Data Definition: CREATE TABLE, ALTER TABLE  Data Manipulation: INSERT, UPDATE, DELETE  Queries: SELECT SQL: Structured Query Language.
SQL FUNDAMENTALS SQL ( Structured Query Language )
MySQL Database Connection
Quick review of SQL And conversion to Oracle SQL.
Oracle 11g DATABASE DEVELOPMENT LAB1. Introduction  Oracle 11g Database:-  Oracle 11g database is designed for some features, which helps to the organizations.
Roles & privileges privilege A user privilege is a right to execute a particular type of SQL statement, or a right to access another user's object. The.
ITBIS373 Database Development Lecture 3a - Chapter 3: Using SQL Queries to Insert, Update, Delete, and View Data.
Manipulating Data in PL/SQL. 2 home back first prev next last What Will I Learn? Construct and execute PL/SQL statements that manipulate data with DML.
KKUI Manažérske informačné Systémy Cvičenia 2010 Zdenek Marhefka.
8 Copyright © 2005, Oracle. All rights reserved. Managing Data.
SQL Fundamentals  SQL: Structured Query Language is a simple and powerful language used to create, access, and manipulate data and structure in the database.
Database Lab Lecture 1. Database Languages Data definition language ( DDL ) Data definition language –defines data types and the relationships among them.
Database Programming Sections 14– database transactions and controlling User Access.
DBMS_Week 3-4 DBMS. Three-Schema Architecture – Internal schema (one view) describes physical storage structures access paths, indexes used Typically.
Retrieving Data in PL/SQL. 2 home back first prev next last What Will I Learn? In this lesson, you will learn to: –Recognize the SQL statements that can.
SQL.. AN OVERVIEW lecture3 1. Overview of SQL 2  Query: allow questions to be asked of the data and display only the information required. It can include.
DBMS Module - 1 Introduction. Database A database is a collection of related data. A database is a collection of related, logically coherent data used.
Transactions, Roles & Privileges Oracle and ANSI Standard SQL Lecture 11.
Altering Tables and Constraints Database Systems Objectives Add and modify columns. Add, enable, disable, or remove constraints. Drop a table. Remove.
Chapter 13Introduction to Oracle9i: SQL1 Chapter 13 User Creation and Management.
A Guide to SQL, Eighth Edition Chapter Six Updating Data.
Oracle 11g: SQL Chapter 7 User Creation and Management.
Relational Database Management System(RDBMS) Structured Query Language(SQL)
Intro To Oracle :part 1 1.Save your Memory Usage & Performance. 2.Oracle Login ways. 3.Adding Database to DB Trees. 4.How to Create your own user(schema).
Oracle 10g Database Administrator: Implementation and Administration Chapter 10 Basic Data Management.
SQL Introduction to database and SQL. Chapter 1: Databases and Database Users 6 Introduction to Databases Databases touch all aspects of our lives. Examples:
1 Database Fundamentals Introduction to SQL. 2 SQL Overview Structured Query Language The standard for relational database management systems (RDBMS)
 CONACT UC:  Magnific training   
MY SQL INTRODUCTION TO LOGIN BASIC COMMANDS OTHER COMMANDS.
Oracle 11g: SQL Chapter 5 Data Manipulation and Transaction Control.
Oracle Database Architectural Components
1 Copyright © 2005, Oracle. All rights reserved. Oracle Database Administration: Overview.
10 Copyright © 2007, Oracle. All rights reserved. Managing Undo Data.
Controlling User Access
Managing Privileges.
PGT(CS) ,KV JHAGRAKHAND
Interacting with the Oracle Server
Introduction To Database Systems
Introduction to Oracle9i: SQL
Introduction What is a Database?.
SQL 101.
Introduction to Database Management System
DATABASE MANAGEMENT SYSTEM
Sections 17– database transactions and controlling User Access
Workbench Data Definition Language (DDL)
مقدمة في قواعد البيانات
SQL Fundamentals in Three Hours
SQL .. An overview lecture3.
Oracle9i Developer: PL/SQL Programming Chapter 8 Database Triggers.
Prof. Arfaoui. COM390 Chapter 9
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Presentation transcript:

KKUI Manažérske informačné Systémy Cvičenia 2010 Zdenek Marhefka

KKUI Obsah cvičení 1. Úvod do databázových systémov 2. Návrh dátového modelu 3. Programovacie jazyky SQL, PLSQL, Java 4. Programovanie v PLSQL 5. Princípy Data Warehousing-u a OLAP 6. Relačná prezentačná vrstva DWH 7. Multidimenzionálna prezentačná vrstva DWH 8. OLAP Spreadsheet Addin 9. Olacle Discoverer 2

KKUI Zdroje informácií  Oracle Technology Network − Dokumentácia firmy Oracle − Vývojové prostriedky − Príklady zdrojových kódov, sample data a demá  Oracle OLAP  Oracle OLAP option Alternatívny zdroj informácií o OLAP v prostredí ORACLE 3

KKUI Zdroje informácií  Oracle Database 10 g Release 2 (10.2) Documentation e10g/documentation/index.html V lokálnom adresári: \Mis\oracle10g\index.htm \Mis\oracle10g\index.pdx 4

KKUI 3. Programovacie jazyky SQL, PLSQL, Java 3.1 Programovací jazyk SQL  Data Manipulation Language Statements  Data Definition Language Statements  Transaction Control Statements  Session Control Statements  System Control Statements  Embedded SQL Statements 3.2 Programovací jazyk PLSQL  PLSQL ako procedurálne rozšírenie jazyka SQL 3.3 JAVA  Možnosť uloženia Java balíkov v DB 3.4 Práca v prostredí Oracle SQL Developer  Naplnenie dátovej schémy  Manipulácia dátami  Manipulácia s objektmi 5

KKUI 3.1 Programovací jazyk SQL Programovací jazyk SQL  Data Manipulation Language Statements  Data Definition Language Statements  Transaction Control Statements  Session Control Statements  System Control Statements  Embedded SQL Statements 6

KKUI Data Manipulation Language Statements Data manipulation language (DML) statements query or manipulate data in existing schema objects. They enable you to:  Retrieve data from one or more tables or views (SELECT)  Add new rows of data into a table or view (INSERT)  Change column values in existing rows of a table or view (UPDATE)  Update or insert rows conditionally into a table or view (MERGE)  Remove rows from tables or views (DELETE)  See the execution plan for a SQL statement (EXPLAIN PLAN)  Lock a table or view, temporarily limiting other users' access (LOCK TABLE) 7

KKUI Data Definition Language Statements Data definition language (DDL) statements define, alter the structure of, and drop schema objects. DDL statements enable you to:  Create, alter, and drop schema objects and other database structures, including the database itself and database users (CREATE, ALTER, DROP)  Change the names of schema objects (RENAME)  Delete all the data in schema objects without removing the objects' structure (TRUNCATE)  Grant and revoke privileges and roles (GRANT, REVOKE)  Turn auditing options on and off (AUDIT, NOAUDIT)  Add a comment to the data dictionary (COMMENT) 8

KKUI Transaction Control Statements Transaction control statements manage the changes made by DML statements and group DML statements into transactions. They enable you to:  Make a transaction's changes permanent (COMMIT)  Undo the changes in a transaction, either since the transaction started or since a savepoint (ROLLBACK)  Set a point to which you can roll back (SAVEPOINT)  Establish properties for a transaction (SET TRANSACTION) 9

KKUI Session Control Statements Session control statements manage the properties of a particular user's session. For example, they enable you to:  Alter the current session by performing a specialized function, such as enabling and disabling the SQL trace facility (ALTER SESSION)  Enable and disable roles (groups of privileges) for the current session (SET ROLE) 10

KKUI System Control Statements System control statements change the properties of the Oracle database server instance. The only system control statement is ALTER SYSTEM. It enables you to change settings (such as the minimum number of shared servers), kill a session, and perform other tasks. 11

KKUI Embedded SQL Statements Embedded SQL statements incorporate DDL, DML, and transaction control statements within a procedural language program. They are used with the Oracle precompilers. Embedded SQL statements enable you to:  Define, allocate, and release cursors (DECLARE CURSOR, OPEN, CLOSE)  Specify a database and connect to Oracle (DECLARE DATABASE, CONNECT)  Assign variable names (DECLARE STATEMENT)  Initialize descriptors (DESCRIBE)  Specify how error and warning conditions are handled (WHENEVER)  Parse and run SQL statements (PREPARE, EXECUTE, EXECUTE IMMEDIATE)  Retrieve data from the database (FETCH) 12

KKUI 13

KKUI 14

KKUI 15

KKUI 16