Tabela _Db-Detail
This is an extension to the _db database table to hold auditing specific information. The join to _db is on the _Db-guid foreign key. The primary reason to use an additional table for the auditing information is to facilitate multiple record entries to accomodate different database GUIDs, e.g. when copying the contents of this table to an archive database for long term storage where the archive database contains audit data from multiple databases.\n\nNote that the join from the _db table is not physically shown due to the fact that this data is copied with the archive process and therefore the record in the _db table may be for a different database, breaking the referential integrity.\n\nThe details in this table provide a meaningful description of the database associated with a GUID and as this is the only means to describe what the database is where the audit data contains entries for multiple databases, the contents of this table must be copied with the audit data.\n\nAdditionally this table records the MAC key used to secure / seal the audit data. Without the MAC key the data in the audit table could not be used, and so the MAC key needs to be copied with the audit data. If the MAC key is ever modified for a particular database, then a new database GUID must be created as a database GUID can only ever have a single MAC key. It is the combination of the database GUID and the MAC key that facilitates access to sealed audit data. \n\nAlso, if the database GUID ever changes, a new record must be created in this table with the current MAC key and a meaningful description of the database associated with the GUID.\n\nAs mentioned above, the contents of this table must be copied as part of the archive process as the data is needed to describe the database / unseal the audit data. The contents however must not be deleted as part of the archive process, only copied to the archive database.\n
4campos
Campos da tabela _Db-Detail
4 campos no dicionário de dados do TOTVS Datasul.
SELECT de exemplo da tabela _Db-Detail
Datasul roda em Progress/OpenEdge: via SQL, as tabelas ficam no schema PUB e nomes com hífen vão entre aspas.
SQL · OpenEdge
SELECT TOP 100
t1."_Db-guid",
t1."_Db-custom-detail",
t1."_Db-description",
t1."_Db-mac-key"
FROM PUB."_Db-Detail" t1Tabelas próximas no índice do Datasul
- _Collation
- _Connect
- _ConstraintThis table holds information about foreign table constraint definitions.
- _Constraint-KeysThis table holds information about virtual keys associated with foreign table constraints.
- _Database-Feature
- _Db
- _Db-OptionThis tables provides an extension to the _db database table for additional database options (user defined fields). It is joined to the _db table via the _db-recid field as the RECID of the database never changes, whereas the database GUID does, which would result in lost database options.\n\nThis is really a generic table to make the _db metadata extensible. The use of option types upto 32,000 are reserved for Progress internal use.\n\nAn example entry in this table would be for a database option that controls whether to record authenticated client sessions or not in the _client-session table.\n
- _DbParams
- _DbServiceManager
- _DbServiceManagerObjects
- _DbStatus
- _Field
O ERPSeeker é um projeto independente, sem vínculo com a TOTVS. A estrutura pode variar conforme a versão e as customizações do seu ambiente.