Loading the AE Database

The following steps will help you load the AE Database.

Notes:

  • PostgreSQL

    • To connect to the new database use the connect string format SQLDRIVERCONNECT=ODBCVAR=NNJNIORP,host=host01 port=5432 dbname=[database] user=[user name] password=[password] connect_timeout=10

      The string after the comma is a standard PostgreSQL connection string.

    • When starting initial load, the utility shows a "DEADLOCK" error.

  • Once ILM has been activated, you cannot deactivate it. The ILM functionality can only be stopped. If ILM is stopped, no partition change or switch-out (MS SQL Server) is performed.

  • When using an Oracle database, make sure that there is only one Automation Engine schema within an Oracle instance used for ILM.

This page includes the following:

Installing the AE Database

  1. Copy the files in order to load the database (Admin computer).

    Windows

    The files for the AE database are provided in IMAGE > DB folder. Copy the complete DB folder to the installation folder of the utilities. (in our case C:\AUTOMIC\UTILITIES\).

    The DB directory must be stored at the location specified in the INI file parameter INPUT of the AE DB Load utility, which is set by default in the installation folder (in our case C:\AUTOMIC\UTILITIES\DB). For more information, see AE DB Load.

    Example

    Utilities in C:\AUTOMIC\UTILITIES\BIN

    Database files in C:\AUTOMIC\UTILITIES\DB

    UNIX

    The database files are included in the db.tar.gz archive located in the IMAGE > DB folder.

    Use the following commands to unpack the archive:

    gzip -d db.tar.gz or gunzip db.tar.gz

    tar xvfo db.tar

    (Linux: tar -zxvf db.tar.gz)

    Copy the unpacked files to the defined directory.

  2. Generate the database (Admin computer).

    1. Run AE DB Load as administrator in order to load the database. Follow one of the three options below:

      • *G.EXE (ucybdbldg.exe): regular utility start (G stands for GUI).

        cmd="javaw" -Djava.library.path=..\libraries -jar -cp .;.\UC4LAF.jar UCYBDBAr.jar

      • *.EXE: program to which start parameters can be assigned for batch calls. For more information, see Start Parameters - Utilities.

        Note: To run the utilities using an *.EXE file, you must have installed a 32-bit Microsoft Visual C-Runtime Library.

      • *.BAT: batch file for the utility.

        As opposed to upgrade installations, new installations of AE DB Load do not display a mask in which you can select the agent authentication method. For more information, see Agent Authentication.

        Start the program in batch mode using the -T (authentication method) and -K (company key) parameters in order to specify the authentication method. 

    2. Select the <DB directory>\DB\GENERAL\<version>\UC_UPD.TXT file.

    3. A database scheme is created in the database, and the INITIAL and DEFAULT data are loaded.

      When you use *G.EXE, if the database has been generated successfully you will see the following:

      When you use *.EXE or *.BAT, the program ends with a return code. You find detailed information to the return code in the log file.

  3. Optionally, activate partitioning with ILM (admin computer). For more information, see ILM - Information Lifecycle Management.

    Note: You can activate ILM either during a new installation, and upgrade or at any given point in time.

Potential Problems

  • MS SQL: The codepage is not converted correctly when the ODBC access is set up.

    The database and the client use the same codepage. Therefore, you have to make sure that the code is NOT converted. To do so, do not select the checkbox Perform translation for character data when creating a new data source to the SQL Server.

  • DB Load may not be able to connect to the database if too many sessions are running simultaneously.

  • The DBLOAD GUI (*G.EXE) may not start if the cmd parameter in the INI file is not defined properly (javaw.exe location).

Related Files

The IMAGE:\DB\database\UC4 version directory includes several useful SQL script files for your database that can be also used.

  • DROP_ALL.SQL

    Deletes all AE tables.

    Use this SQL file when the installation could not complete successfully (for example, if there was not enough hard drive space). If not all tables could be created, this file deletes all tables that cause error messages. Check them or ignore them if no action is required.

  • UPD_STAT.SQL

    Used for manual statistics updates.

Empty DB Check - Logged Errors

During a new installation a database check is performed and, since the database is empty, the different databases can write different error messages in the DBLoad log. However, these errors do not block the installation. They just point to the fact that the database is empty and, therefore, no AE tables exist.

These are some of the errors that might be written into the log:

  • MS SQL Errors

    20210830/012144.855 - U00029108 UCUDB: SQL_ERROR Database handles DB-HENV: 2158d40 DB-HDBC: 0
    20210830/012144.855 - U00003591 UCUDB - DB error info: OPC: 'OCIStmtExecute' Return code: 'ERROR'
    20210830/012144.855 - U00003592 UCUDB - Status: '' Native error: '942' Msg: 'ORA-00942: table or view does not exist'
  • Oracle Errors

    20210830/032220.722 - U00029108 UCUDB: SQL_ERROR Database handles DB-HENV: 50c46320 DB-HDBC: 50c46400
    20210830/032220.722 - U00003591 UCUDB - DB error info: OPC: 'SQLExecDirect' Return code: 'ERROR'
    20210830/032220.722 - U00003592 UCUDB - Status: '42S02' Native error: '208' Msg: 'Invalid object name 'uc_table'.'
    20210830/032220.722 - U00003592 UCUDB - Status: '42000' Native error: '16945' Msg: 'The cursor was not declared.'
    20210830/032220.722 - U00003594 UCUDB Ret: '3590' opcode: 'SLUC' SQL Stmnt: 'select Table_Children from uc_table where Table_Name = 'EH''
    20210830/032220.722 - U00003590 UCUDB - DB error: 'SQLExecDirect', 'ERROR ', '42000', 'The cursor was not declared.'
  • PostgreSQL Errors

    20210827/082747.099 - U00003590 UCUDB - DB error: 'ERROR: relation "uc_versi" does not exist LINE 1: SELECT * FROM UC_VERSI WHERE 1=0 ^', '', '', ''
    20210827/082747.099 - U00003592 UCUDB - Status: '42P01' Native error: '6844177' Msg: 'relation "uc_versi" does not exist'
    20210827/082747.100 - U00003532 UCUDB: Checking data source ...
    20210827/082747.102 - U00003590 UCUDB - DB error: 'ERROR: relation "divdb" does not exist LINE 1: INSERT INTO DIVDB (DIVDB_PK,DIVDB_Memo) VALUES(1, $1) ^', '', '', ''
    20210827/082747.102 - U00003592 UCUDB - Status: '42P01' Native error: '6844177' Msg: 'relation "divdb" does not exist'
    20210827/082747.104 - U00000006 DEADLOCK or Connection to database lost - Rollback handling initiated. See previous messages.

Next step:

Installing the AE, ServiceManager, JWP, JCP, and REST Process