Transbase® System Guide Transbase System Guide Version 8.1
Total Page:16
File Type:pdf, Size:1020Kb
Transbase® System Guide Transbase System Guide Version 8.1 Publication date 2018-05-14 Copyright © 2018 Transaction Software GmbH ALL RIGHTS RESERVED. While every precaution has been taken in the preparation of this document, the publisher assumes no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein. Table of Contents About This Manual ...................................................................................................... vii 1. The Transbase DBMS ................................................................................................ 1 1.1. Transbase Packages ......................................................................................... 1 1.2. Transbase Platforms ........................................................................................ 1 1.2.1. Service Platforms .................................................................................. 2 1.2.2. Client Platforms ................................................................................... 2 2. Applications and Client Software ................................................................................. 3 2.1. Client Software ............................................................................................... 3 2.1.1. Database Browsers ................................................................................ 3 2.1.2. Programming Interfaces ......................................................................... 3 2.2. Database Connections ...................................................................................... 4 2.2.1. Public and Private Databases .................................................................. 4 2.2.2. Connection String Syntax ....................................................................... 4 2.2.3. Remote Database References in SQL ....................................................... 5 3. Inside Transbase ........................................................................................................ 7 3.1. Transbase Service Architecture .......................................................................... 7 3.1.1. The Service Process .............................................................................. 7 3.1.2. Client Contexts and Service Threads ........................................................ 9 3.2. Transbase Services on the Network .................................................................... 9 3.2.1. Runtime Environment ............................................................................ 9 3.2.2. Server Administration .......................................................................... 10 3.2.3. The Databases File dblist.ini ......................................................... 11 3.2.4. The Repository Database admin ........................................................... 11 3.3. Private Databases .......................................................................................... 12 4. Databases ............................................................................................................... 13 4.1. Database Files ............................................................................................... 13 4.1.1. The Database Directory ........................................................................ 13 4.1.2. Database Size and Database Extension .................................................... 14 4.1.3. Database Configuration ........................................................................ 14 5. Database Objects ..................................................................................................... 16 5.1. Data Spaces .................................................................................................. 16 5.2. Users ........................................................................................................... 16 5.2.1. Ownership and Access Privileges ........................................................... 18 5.2.2. Schemas ............................................................................................ 18 5.3. Tables ......................................................................................................... 19 5.3.1. Internal Elements ................................................................................ 19 5.3.2. Constraints ......................................................................................... 20 5.3.3. Indexes .............................................................................................. 21 5.3.4. Triggers ............................................................................................. 22 5.4. Views .......................................................................................................... 23 5.5. Domains ...................................................................................................... 24 5.6. Sequences .................................................................................................... 24 5.7. User-Defined Functions and Stored Procedures ................................................... 24 6. Special Features ....................................................................................................... 26 6.1. Distributed Queries ........................................................................................ 26 6.2. The HyperCube Technology ............................................................................ 27 6.2.1. Multidimensional Clustering ................................................................. 27 6.3. Retrieval of Database-Generated Values ............................................................ 29 7. Event tracing ........................................................................................................... 30 7.1. Trace Facility ............................................................................................... 30 7.2. Layout of the Trace File ................................................................................. 30 7.3. Trace Event Categories ................................................................................... 31 8. Transactions and Recovery ........................................................................................ 32 8.1. Rollback ...................................................................................................... 32 8.2. Crash Recovery ............................................................................................. 32 iii Transbase® System Guide 8.3. Delta Logging ............................................................................................... 32 8.4. Before Image Logging ................................................................................... 32 8.5. Delta Logging Revisited ................................................................................. 33 9. Backup and Dump of the Database ............................................................................. 34 9.1. Discouraged: Manual Copying of Database Files ................................................. 34 9.2. Prerequisite: Delta Logging ............................................................................. 34 9.3. Full Dump .................................................................................................... 34 9.4. Incremental Dump ......................................................................................... 35 9.5. Streamed Dump ............................................................................................ 35 9.6. Restoring the Database from a Dump ................................................................ 35 10. Replication ............................................................................................................ 36 10.1. Overview .................................................................................................... 36 10.2. Replication Modes ....................................................................................... 36 10.3. Preconditions and Restrictions ........................................................................ 37 11. Grids .................................................................................................................... 38 12. Tools .................................................................................................................... 39 12.1. Archiving ................................................................................................... 39 12.1.1. The tbarc Utility ............................................................................... 39 12.1.2. The tbtar Utility ............................................................................... 39 12.2. Difference between two Databases .................................................................. 40 12.2.1. The tbdiff Utility .............................................................................. 40 A. Constants and Sizes ................................................................................................. 42 iv List of Figures 3.1. Transbase Architecture ............................................................................................. 8 6.1. UB Tree Coverage for Multidimensional Hierarchical Clustering ................................... 27 6.2. Hierarchical Clustering ........................................................................................... 28 v List of Tables 3.1. Server Commands