2.64k likes | 2.84k Views
Progress Database Admin. Jeffrey A. Brown – Engineering Support, Technical Consultant (Jeffrey.Brown@infor.com). Introduction. Agenda. Lecture - Database Concepts Lunch Database Workshop (hands-on). Infor’s Expectation Of A Database Admin. Infor’s Expectation Of A Database Admin.
E N D
Progress Database Admin Jeffrey A. Brown – Engineering Support, Technical Consultant (Jeffrey.Brown@infor.com)
Agenda • Lecture - Database Concepts • Lunch • Database Workshop (hands-on)
Infor’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
Database Admin Crash Recovery • Brokers – start & stop • Disconnecting users • Truncating BI files • Error messages in log files
Database Admin Pre-Arranged Work • Dump/loads • Progress upgrades/patches
Infor & Progress • Infor & Progress • Infor 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 • Broker 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 • User 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 • Changes get 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 • Changes get written to .db