Database

Notes on ‘Expert Oracle’ — No.6.2: Locking — Blocking, Deadlock & Escalation

1. Blocking: … 2. Deadlock: … 3. What will cause deadlock in Oracle?    It may happen when you try to delete a row in the parent table of which the child table has no indexes on foreign keys. Because in this case the child table will be locked as whole and it increase the …

Notes on ‘Expert Oracle’ — No.6.2: Locking — Blocking, Deadlock & Escalation Read More »

Notes on ‘Expert Oracle’ — No.5.1: Oracle Processes — Server Processes

1. Server Process   a.Dedicated Server: one TCP/IP connection, one server process   b.Shared Server: Serveral tcp/ip connections => one dispatcher => A pool of processes 2.Connection V.S. Session   In terms of Domain Logic, the two are not ‘associated’ with each other, they only ‘depend’ each other.    a. A connection is physical network …

Notes on ‘Expert Oracle’ — No.5.1: Oracle Processes — Server Processes Read More »

Notes on ‘Expert Oracle’ — No.1: Programmers should know about Oracle

1. As programmers, you should know the fundmental details of the database, especially when concurrency and performance is concerned. 2.Don’t stick to "database portability."    a. You are not going to need it.    b. It’s basically impossible since databases are so different from each other, concurrency strategy for example. 3.Don’t hesitate to make use …

Notes on ‘Expert Oracle’ — No.1: Programmers should know about Oracle Read More »

Notes on ‘Expert Oracle’ — No.2: Abstract of the Arch

1. Database and Instance     Database: Static Contents in Disks     Instance: Processes/Threads and Memory running on a Database     A Database can only be opened by a single instance.     An instance can only open a single Database. And it dies when it cloese the Database. 2. SGA:  A shared memory area by all …

Notes on ‘Expert Oracle’ — No.2: Abstract of the Arch Read More »