Base de Datos II 2da Parte. Propiedad ACID  La propiedad ACIDa es una carácterística de un DBMS para poder compartir datos en forma segura.  A :

Slides:



Advertisements
Presentaciones similares
Transacciones y Concurrencia en Oracle
Advertisements

Control de Concurrencia y Recuperación
Maestría en Bioinformática Bases de Datos y Sistemas de Información SQL: DML Ing. Alfonso Vicente, PMP
Transacción Es una unidad de trabajo sobre la base de datos
 The present progressive tense is used to talk about actions taking place at a given time.  The action has to be taking place at the time it is used.
Transacciones (MySQL). Definición: Conjunto de sentencias que se tratan como una sola. Comienzan con BEGIN/START TRANSACTION; Se puede confirmar (COMMIT)
CURSORES Preparó: Ismael Castañeda Fuentes Fuentes: Manuales Sybase
La Hora... Telling Time in Spanish. ¿Que hora es? The verb ser is used to express the time of day. Use es when referring to "one o'clock" and use son.
Telling Time.
Calentamiento Answer the questions based on the Actividades tray reading. 1)How many chores does Teresa have to do? 2)How many people will there be at.
To tell the time in Spanish… 3:15=Son las tres y quince. 11:20=Son las once y veinte. 6:04=Son las seis y cuatro. 1:30=Es la una y treinta 8:19=Son las.
Elaborado por: Guillermo Baquerizo I Término
Notes #18 Numbers 31 and higher Standard 1.2
TRANSACCIONES DISEÑO DE BASE DE DATOS.
Page 114 En español 2 Reflexive Verbs Do you remember your Indirect Object Pronouns?
Keeps on tickin’, tickin’, tickin’… into the future.
Tecnología y Estructura de Costos. Technologies u A technology is a process by which inputs are converted to an output. u E.g. labor, a computer, a projector,
DO NOW: Solve each math problem
DO NOW: Copy and translate the following into English.
JUEVES, EL 10 DE SEPTIEMBRE LT: I WILL RECOGNIZE SOME NEW VOCABULARY WORDS. Go over tests & retake procedures Interpretive Assessment: numbers & alphabet.
El presente indicativo ESPAÑOL 1. A. What is the present tense? It is when the action of a verb occurs at the moment. Verbs can be divided into two categories:
P. 80 Realidades 2 Verbos reflexivos Los verbos reflexivos tienen dos partes: el verbo y el pronombre reflexivo. Los pronombres reflexivos son:
¡Hola! ✤ Study for your vocab quiz for 5 minutes! ✤ Unit 2 Apuntes 1 ONLY ✤ Make sure you can translate from English to Spanish!
What is a reflexive verb? A reflexive verb indicates that the subject of the sentence has performed an action on himself/herself/itself. In other words,
Learning Objective (skill-concept-context) Today we will recognize the INFINITIVES* of verbs in Spanish. * in grammar, the basic form of a verb, used with.
The preterite tense. When it's used The preterite is used for actions that can be viewed as single events that occurred in the past. Ella caminó por el.
6.1-1  In Lección 5, you learned how to form past participles. You will now learn how to form the present perfect indicative (el pretérito perfecto de.
TELLING TIME IN SPANISH. What time is it? To ask what time it is, say “¿Qué hora es?”
Canales Oficiales SQL PASS GDL No tenemos  Ya merito 
Principios de las Transacciones SQL
Aidan Hogan CC Bases de Datos Primavera 2016 Clase 11: Integridad, Transacciones, ACID (I) Aidan Hogan
Question Formation Español Uno.
To be, or not to be? Let’s start out with one of the most important verbs in Spanish: ser, which means “to be.”
Saquen sus apuntes de la sala volteada.
Haber + Past Participle = Present Perfect
Los verbos infinitivos (Infinitive verbs)
October 21st assignment Read through and practice with this PowerPoint. Ask and discuss it with each other if you have a question. Answer the following.
¡Buenos días! Trabajo del timbre: 1. Pongan la tarea en el pupitre.
Base de Datos II Almacenamiento.
Español 1 7 de febrero de 2017.
First Grade Dual High Frequency Words
El presente en -AR Today you will learn:
Español 1B 14 de agosto de 2017.
¡Los Adjetivos!.
UN EJEMPLO DE LECTURA CONSISTENTE EN INNODB
Hoy es _____ el ____ de ______.
Una transacción corresponde a un grupo de sentencias que representan una unidad de trabajo y deben ejecutarse en su totalidad.
Page 1 CITS Active Directory Implementation UMass Dartmouth.
Quasimodo: Tienes que hacer parte D de la tarea..
Affirmative & Negative Words
El subjuntivo en cláusulas adverbiales:
El subjuntivo en cláusulas adverbiales:
Forming questions.
Para Empezar P. 8 – el reloj p. 8.
Hardware e implementación en Sistemas Operativos
INFINITIVOS Capítulo 1A.
Vocabulario Unit 1 Presentado por señora Henriques Las clases
Kindergarten Spanish High Frequency Words
HAGAN AHORA: LA HOJA DE TRABAJO
¿Qué hora es?.
Question Formation Spanish I Page 52.
El abrecerebros 7/1/15 Turn in back page of Syllabus en
Present perfect subjunctive mood
Antes de empezar In English, write 5 things you would like to do when you finish High School. 1) 2) 3) 4) 5)
El Subjuntivo Expressions of Doubt
Juliana Carmona Esteban Cano
¿Cómo se hace en español?
Affirmative & Negative Words
Changes of State Unit 1: Matter.
Transcripción de la presentación:

Base de Datos II 2da Parte

Propiedad ACID  La propiedad ACIDa es una carácterística de un DBMS para poder compartir datos en forma segura.  A : Atomicity  C: Consistency  I : Isolation  D: Durability

Atomicidad  “Todo o nada” es la mejor forma de explicar atomicidad.  Cuando ocurre una actualización en la base de datos, garantizamos que se hace en forma completa o no se hace. COMMIT ROLLBACK  a transaction is a unit of operation either all the transaction's actions are completed or none are  atomicity is maintained in the presence of deadlocks  atomicity is maintained in the presence of database software failures  atomicity is maintained in the presence of application software failures  atomicity is maintained in the presence of CPU failures  atomicity is maintained in the presence of disk failures  atomicity can be turned off at the system level  atomicity can be turned off at the session level

Deadlock  Un deadlock (interbloqueo, traba mortal) es, en sistemas operativos, el bloqueo permanente de un conjunto de procesos o hilos de ejecución en un sistema concurrente que compiten por recursos del sistema o bien se comunican entre ellos. A diferencia de otros problemas de concurrencia de procesos, no existe una solución general para los interbloqueos.  Todos los interbloqueos surgen de necesidades que no pueden ser satisfechas, por parte de dos o más procesos. En la vida real, un ejemplo puede ser el de cuatro autos que se encuentran en una intersección en el mismo momento. Cada uno necesita que otro se mueva para poder continuar su camino, y ninguno puede continuar. Los recursos compartidos en este caso son los cuatro cuadrantes. El auto que se dirije de oeste a este, por ejemplo, necesita de los cuadrantes suroeste y sureste.

Simulando un deadlock  Session 1 lock table EMP: SQL> UPDATE emp SET sal=sal+100; 14 rows updated.  Session 2 lock table DEPT: SQL> UPDATE dept SET loc = 'Japan'; 4 rows updated.  Session 1 now update DEPT. The session will hang waiting for a lock (not a deadlock yet!): SQL> UPDATE dept SET loc = 'Japan';  Session 2 now update EMP, causing the deadlock: SQL> UPDATE emp SET sal=sal+100;  Oracle will detect the deadlock and roll back one of these statements: SQL> UPDATE emp SET sal=sal+100; UPDATE emp SET sal=sal+100 * ERROR at line 1: ORA-00060: deadlock detected while waiting for resource

Consistency  Garantiza que los cambios hechos en un instante son consistentes con los cambios hechos a otros datos en el mismo instante.

Isolation  Necesaria cuando existe la concurrencia.

Isolation  Degrees of isolation: degree 0 - a transaction does not overwrite data updated by another user or process ("dirty data") of other transactions degree 1 - degree 0 plus a transaction does not commit any writes until it completes all its writes (until the end of transaction) degree 2 - degree 1 plus a transaction does not read dirty data from other transactions degree 3 - degree 2 plus other transactions do not dirty data read by a transaction before the transaction commits

Durability  Los cambios que han sido “COMMIT” no se pueden perder!  recovery to the most recent successful commit after a database software failure  recovery to the most recent successful commit after an application software failure  recovery to the most recent successful commit after a CPU failure  recovery to the most recent successful backup after a disk failure  recovery to the most recent successful commit after a data disk failure

Transacciones en Java  Connection con; ...  con.commit();  con.rollback();  Connection.setAutoCommit(boolean)  Connection.getAutoCommit()

Propuestos  Escribir programa en Java que usando al menos 2 threads ejecute operaciones sobre la base de datos.  Elabore un plan para demostrar el funcionamiento de los deadlocks.  Escriba un programa en Java que demuestre cómo opera el commit y el rollback.  Elabore un plan para demostrar que PostgreSQL cumple con la propiedad ACID.