2.96k likes | 3.19k Views
Progress Database Admin. Darren P. Rhoads - Engineering Support Consultant (drhoads@nxtrend.com). Introduction:. Agenda:. Lecture - Database Concepts Lunch Database Workshop (hands-on). NxTrend’s Expectation Of A Database Admin. NxTrend’s Expectation Of A Database Admin:. Maintenance
E N D
Progress Database Admin Darren P. Rhoads - Engineering Support Consultant (drhoads@nxtrend.com)
Agenda: • Lecture - Database Concepts • Lunch • Database Workshop (hands-on)
NxTrend’s Expectation Of A Database Admin: • Maintenance • Crash Recovery • Troubleshooting • Scheduled Work
Database Admin Maintenance: • Disconnecting users • Verify Backup Logs • Monitor/maintain extent structure – dbstats.log • Purging Database log files • Promon • Maintaining Scripts • Maintain .pf files • Maintain library file
Database Admin Crash Recovery: • Brokers – start & stop • Removing .lk files • Clearing shared memory • Removing processes • Disconnecting users • Truncating BI files • Error messages in log files
Database Admin Scheduled Work: • Dump/loads • Progress upgrades/patches
NxTrend & Progress: • NxTrend & Progress • NxTrend runs on products we sell.
What Is Progress? • Not an O/S • Database engine • 4GL Programming language
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)
.db .bi .lg
Starting The Database Broker • Unix Process • Shared memory • virtual tables • lock file (.lk)
_mprosrv .db .bi .lg
Shared Memory _mprosrv .db .bi .lg
Shared Memory Virtual tables User id TTY PID Lock
Shared Memory Virtual tables u t p l _mprosrv .db .bi .lg
Shared Memory Virtual tables u t p l _mprosrv .db .bi .lg .lk
User Login • Unix Process • Logs into virtual tables • Logged in the log file (.lg)
User 1 Shared Memory Virtual tables u t p l _mprosrv .db .bi .lg .lk
User 1 _progres Shared Memory Virtual tables u t p l _mprosrv .db .bi .lg .lk
User 1 _progres Shared Memory Virtual tables u t p l u1 _mprosrv .db .bi .lg .lk
Shared Memory Virtual tables User id TTY PID Lock User 1 tty/01 12345
User 1 _progres Shared Memory Virtual tables u t p l u1 _mprosrv .db .bi .lg .lk
User 1 _progres Shared Memory Virtual tables u t p l u1 _mprosrv .db .bi .lg .lk
Data-Flow Discussion • Data gets pulled into memory • User reads from memory • User never read from the database
User 1 _progres Shared Memory Virtual tables u t p l u1 _mprosrv a b c .db .bi .lg .lk
User 1 _progres Shared Memory Virtual tables u t p l a b c u1 _mprosrv a b c .db .bi .lg .lk
User 1 _progres Shared Memory Virtual tables a b c u t p l a b c u1 _mprosrv a b c .db .bi .lg .lk
Data-Flow Discussion • User Updates data • lock table
User 1 _progres Shared Memory Virtual tables a b d u t p l a b c u1 c _mprosrv a b c .db .bi .lg .lk
User 1 _progres Shared Memory Virtual tables a b d u t p l a b d u1 _mprosrv a b c .db .bi .lg .lk
Data-Flow Discussion • Before-Image File • BIW • Data gets written to disk (.bi file)
User 1 _progres Shared Memory Virtual tables a b d u t p l a b d u1 _mprosrv a b c .db .bi .lg .lk
User 1 _progres Shared Memory Virtual tables a b d u t p l a b d u1 _mprosrv a b c .db biw .bi .lg .lk
User 1 _progres Shared Memory Virtual tables a b d u t p l a b d u1 _mprosrv a b c .db biw .bi bt .lg .lk
User 1 _progres Shared Memory Virtual tables a b d u t p l a b d u1 _mprosrv a b c .db biw .bi bt c .lg .lk
User 1 _progres Shared Memory Virtual tables a b d u t p l a b d u1 _mprosrv a b c .db biw .bi bt c .lg .lk
User 1 _progres Shared Memory Virtual tables a b d u t p l a b d u1 _mprosrv a b c .db biw .bi bt c d .lg .lk
User 1 _progres Shared Memory Virtual tables a b d u t p l a b d u1 _mprosrv a b c .db biw .bi bt c d et .lg .lk
Data-Flow Discussion • Review
User 1 _progres Shared Memory Virtual tables a b d u t p l a b d u1 _mprosrv a b c .db biw .bi bt c d et .lg .lk
User 1 _progres Shared Memory Virtual tables a b d u t p l a b d u1 _mprosrv a b c .db biw .bi bt c d et .lg .lk
User 1 _progres Shared Memory Virtual tables a b d u t p l a b d u1 _mprosrv a b c .db biw .bi bt c d et .lg .lk
User 1 _progres Shared Memory Virtual tables a b d u t p l a b d u1 _mprosrv a b c .db biw .bi bt c d et .lg .lk
User 1 _progres Shared Memory Virtual tables a b d u t p l a b d u1 _mprosrv a b c .db biw .bi bt c d et .lg .lk
Data-Flow Discussion • After-Imaging File • AIW
User 1 _progres Shared Memory Virtual tables a b d u t p l a b d u1 _mprosrv a b c .db biw .ai .bi bt c d et .lg .lk
User 1 _progres Shared Memory Virtual tables a b d u t p l a b d u1 _mprosrv aiw a b c .db biw .ai .bi bt c d et .lg .lk
Data-Flow Discussion • Asynchronous Page Writer • APW • Data gets written to .db