Initialization of the Data Dictionary in the Database

From the Binary and LIB of the chart beside, the Data Dictionary of Protheus can be initialized directly in the  Database, instead of being used in the System folder. This modification provides for major agility in the reading of the dictionary, centralization of data in the SGBD, optimization in the search of information, among others. For your data dictionary to be initialized in the database, see the features, requests and procedures below.
Notice:
The Initialization of Data Dictionary in the Database is exclusive for new bases, for customers using Protheus for the first time. Migration of base not available for database. Important: the Informix Database cannot be used with the initialization of Data Dictionary in the Database.

1. Description

The initialization of the Dictionary in the Database involves the following files (the other files of the System folder are ignore):
Menus - All files .XNU
Companies - Default company created (Default) or the chosen one in the Wizard
Help - SIGAHLP of the Systemload folder
Metadata (Data Dictionary) - File SXS_BRA.txt (or the file of the country chosen) in the Systemload folder (you must download the updated SXS_BRA of the corresponding release in the Customer's Portal - Update Protheus 12 Data Dictionary)

2. Advantages

The initialization of the Dictionary in the Database offers the following advantages:
For the Customer - Improve the management of the Customer configuration; - Centralization of metadata and database by the SGBD; - Use of C-TREE not required Windows environments.
For the User - System starts faster.
For the Microsiga Protheus system - Decrease of the I/Os in the AppServer; - Optimization of the programs in the search of information; - Easier integration with Identity.

3. Requirements

To start Protheus with the Dictionary in the Database, the following items must be considered: • Protheus 12 installed (but not initialized) with the basic configurations of connection with Database and with the updating of the Binary and LIB listed in the lateral chart ( installed is only when the Setup of installation executed for the creation of structure of folders, without opening the Smartclient not to create local dictionaries. Installation is different of Initialization); • PDV, per hour, is not supported; • Usage of License Server for the control of automatic number; • E-mail of validation for recover of password of the Admin must be registered in the first access to the Configurator, after initialization, as the Data Dictionary in the Database does not allow  the recovery of the Admin password, only allows the use of the option "Forgot your password" ; • Key TOPMEMOMEGA configured in the appserver.ini file of the Application Server; • Requirement of the menu of the Configurator (SIGACFG.XNU) is in the StartPath (System folder in the standard configuration). If the file is not available for import, the message "Menu of configurator is not available in the Startpath to import" and the process is blocked; • Usage of only the standard menus of Protheus in the initialization. You cannot use the customized menus for initialization; • Evaluation of sizing of the Database, because with the use of the Dictionary in the Base, the space used and reading are larger than the regular size.

4. Important notes on the process

• The usage of the Dictionary in the Database is only available from  12.1.17 version of Protheus. • For each user connection, 2 connections are created with the DBAccess, when one of them does not consume the license and is not in transaction; • The connection used by tables of infrastructure is not in transaction; • You must not open the Company file (SIGAMAT) with DBUseArea, use the OpenSm0 or OpenSm0Excl; • You cannot opened the files of the dictionary with the DBUseArea, use function OpenSX. • The tables are created by using the  multi-thread

5. Procedure for Implementation

Note:
There must be a database created, and the connection configuration (ODBC, DBAccess) must be OK.