1.87k likes | 2.12k Views
Progress Database Admin. Jeffrey A. Brown - Technical Support Consultant (jefbrown@nxtrend.com). 1. Introduction:. 2. Agenda:. Lecture - Database Concepts Lunch Database Workshop (hands-on). 3. NxTrend & Progress:. NxTrend & Progress NxTrend runs on products we sell. 4.
E N D
Progress Database Admin Jeffrey A. Brown - Technical Support Consultant (jefbrown@nxtrend.com) 1
Agenda: • Lecture - Database Concepts • Lunch • Database Workshop (hands-on) 3
NxTrend & Progress: • NxTrend & Progress • NxTrend runs on products we sell. 4
What Is Progress? • Not an O/S • Database engine • 4GL Programming language 5
Licensing • Enterprise DB • Appserver • 4GL • Provision (PC Client side) • Client Networking • Query/Results (being replaced by SX.explorer) • Merant (ODBC) 6
Progress Database Concepts: • Physical Parts of a Database • .db - database • .bi – before image file • .lg – log file • .lk – lock file (only there when Broker is up) 7
.db .bi .lg 8
Starting The Database Broker • Unix Process • Shared memory • virtual tables • lock file (.lk) 9
_mprosrv .db .bi .lg 10
Shared Memory _mprosrv .db .bi .lg 10
Shared Memory Virtual tables User id Lock TTY PID 11
Shared Memory Virtual tables u l t p _mprosrv .db .bi .lg 12
Shared Memory Virtual tables u l t p _mprosrv .db .bi .lg .lk 12
User Login • Unix Process • Logs into virtual tables • Logged in the log file (.lg) 13
User 1 Shared Memory Virtual tables u l t p _mprosrv .db .bi .lg .lk 14
User 1 _progres Shared Memory Virtual tables u l t p _mprosrv .db .bi .lg .lk 14
User 1 _progres Shared Memory Virtual tables u l t p u1 _mprosrv .db .bi .lg .lk 14
Shared Memory Virtual tables User id Lock TTY PID User 1 tty/01 12345 15
User 1 _progres Shared Memory Virtual tables u l t p u1 _mprosrv .db .bi .lg .lk 16
User 1 _progres Shared Memory Virtual tables u l t p u1 _mprosrv .db .bi .lg .lk 16
Data-Flow Discussion • Data gets pulled into memory • User reads from memory • User never read from the database 17
User 1 _progres Shared Memory Virtual tables u l t p u1 _mprosrv a b c .db .bi .lg .lk 18
User 1 _progres Shared Memory Virtual tables u l t p a b c u1 _mprosrv a b c .db .bi .lg .lk 18
User 1 _progres Shared Memory Virtual tables a b c u l t p a b c u1 _mprosrv a b c .db .bi .lg .lk 18
Data-Flow Discussion • User Updates data • lock table 19
User 1 _progres Shared Memory Virtual tables a b d u l t p a b c u1 c _mprosrv a b c .db .bi .lg .lk 20
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv a b c .db .bi .lg .lk 20
Data-Flow Discussion • Before-Image File • BIW • Data gets written to disk (.bi file) 21
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv a b c .db .bi .lg .lk 22
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv a b c .db biw .bi .lg .lk 22
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv a b c .db biw .bi bt .lg .lk 22
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv a b c .db biw .bi bt c .lg .lk 22
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv a b c .db biw .bi bt c .lg .lk 22
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv a b c .db biw .bi bt c d .lg .lk 22
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv a b c .db biw .bi bt c d et .lg .lk 22
Data-Flow Discussion • Review 23
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv a b c .db biw .bi bt c d et .lg .lk 24
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv a b c .db biw .bi bt c d et .lg .lk 24
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv a b c .db biw .bi bt c d et .lg .lk 24
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv a b c .db biw .bi bt c d et .lg .lk 24
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv a b c .db biw .bi bt c d et .lg .lk 24
Data-Flow Discussion • After-Imaging File • AIW 25
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv a b c .db biw .ai .bi bt c d et .lg .lk 26
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv aiw a b c .db biw .ai .bi bt c d et .lg .lk 26
Data-Flow Discussion • Asynchronous Page Writer • APW • Data gets written to .db 27
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv apw aiw a b d .db biw .ai .bi bt c d et .lg .lk 28
Data-Flow Discussion • Final Review 29
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv apw aiw a b d .db biw .ai .bi bt c d et .lg .lk 30
User 1 _progres Shared Memory Virtual tables a b d u l t p a b d u1 _mprosrv apw aiw a b d .db biw .ai .bi bt c d et .lg .lk 30