Skip to main content

The Coins ERP+ Database

T
Written by Theresa Moloney
Updated over a month ago

Location of Database

$BASE/data/db

Location of Before Image Recovery file

$BASE/data/bi

Location of After Image Recovery File

$BASE/data/ai

What is the Before Image Recovery File

The Before Image file(s) stores information about every transaction which makes a change to the database. If the transaction is aborted / undone, this information will be read back from the BI file to restore original values of the database back into the database if necessary.


In addition when a database goes down unexpectedly, the crash recovery process reads back and undoes any transaction that was not completed.
​
The information stored in the BI contains the transaction number, the user, the pre-modified value of block in binary form. After the transaction is complete it stores binary information on how to modify the blocks for records and indices.

What is the After Image Recovery File

The after-imaging feature lets you recover a database that was damaged when a failure caused the loss of the database or primary recovery (before image / BI) area. When you enable after-imaging, the database engine writes notes containing a description of all database changes to the after-image (AI) files. You can use the AI files with the roll-forward recovery process to restore the database to the condition it was in before you lost the database, without losing completed transactions that occurred since the last backup.

After Image Recover is not automatically set up automatically and should be requested at the time or the build.

Typical files located under the database directory

Coins.st - Database structure file

A structure description (.st) file, which defines the structure of the database. The .st file is a text file with a .st filename extension. The administration utility PROSTRCT CREATE uses the information in the .st file to create the areas and extents of the database.

Coins.db - Database control area

The database (.db) control area, is a binary file containing a database structure extent. The control area and its .db file act as a table of contents for the database engine, listing the name and location of every area and extent in the database.

Coins.lk - Database lock file

The database lock file (.lk) is the only protection we have against multiple processes starting the database. If multiple processes are allowed to start the database, then crash recovery will not work.

The .lk file contains three pieces of information:

  1. The mode in which the database was started.

  2. The process id (pid) of the process that started the database.

  3. The hostname where the process that started it is running.

Coins.lic- -Database License file

The Database License file records license related information about Progress Database connections.

Coins.lg- -Database Log file

The log (.lg) file is a text file. The .lg file contains a history of significant database events, including server startup and shutdown, client login and logout, and maintenance activity.

Coins.d1 - Database Schema Area

The schema area contains the master and sequence blocks, as well as schema tables and indexes.

Coins_8.d1 - Transaction Application Data Area

Coins creates a transaction area 8 which contains all transcations within the database ie purchase ledger batches, general ledger batches etc. This area is write intensive and will be the main area that will grow in size.

Coins_7.d1 - Static Application Data Area

Coins creates a static area 7 which contains static data like supplier names and address and employees details etc. This area is read intensive.

Did this answer your question?