FAQs – Data Logging

I receive a System Error when trying to log or access an Oracle database

Important Downloads for Oracle Access
Download and install Oracle Data Access Components.
Download 64-bit ODAC 18.3

Data Logging System Error occurs with database engine error null values not allow.
The cause of this error is one or more of the database table columns has been modified  to not allow null values.  OAS creates the columns in the table to allow null values so when the data quality is bad for a tag value a null value will be inserted into the table.  The only column that should be set to not allow null values is the DateAndTime column.  There are 2 solutions to this error:

  1. Please review the columns in each table with the SQL Server Management Studio.  If they have been changed to not allow null values change them back to allow null values.
  2. Go to each logging group and enable the property Do Not Buffer On Primary Index Failure.  Keep in mind that with this property enabled the records to be logged that contain null values will be discarded and not logged.
Security Login Error occurs with Open or Create routines
View the Database Security Login topic on how to setup security logins and access writes to create, open, and read and write to the database.
Data is not logged to the database engine
View the source of the problem under Configure-System Errors. The complete history of errors can be viewed under C:Program Files (x86)Open Automation SoftwareOPC Systems.NETLog or the path that is set under Configure-Options-System Logging.
I am logging CSV files to a remote mapped drive, but I get an error with the data logging.
Either enable the SYSTEM account to have read and write access to the mapped drive and directory, or set the OAS Engine Service LogOn to a user account that would have access to the remote mapped drive using these steps in setting the OAS Engine Service LogOn.
I am logging to MS Access on a remote mapped drive, but I get an error with the data logging
Either enable the SYSTEM account to have read and write access to the mapped drive and directory, or set the OAS Database Service LogOn to a user account, the same as the steps in setting the OAS Data Service LogOn, but set the LogOn for the OAS Database Service.
Error reports LogIn failure to database engine when trying to open connection
View the following video on how to setup security in the database engine:
Direct link: https://www.openautomationsoftware.com/videos/#troubleshoot-connection-login
Memory usage of OPCSystemsDatabase.exe Windows Service is high when data logging fails. Also the OPCSystemsService.exe when logging to CSV files and users open Excel or remote data logging services connect to the remote tags to be logged and a network failure occurs.
Go to Configure-Options-Data Buffering and enable data buffering to disk. View the following video on how to setup data logging so there is no data loss on a network or database engine failure:
The database engine language is different than the Regional Language settings of the Data Logging and / Alarm Logging Service. Data Logging updates, Alarm Logging updates, trend history, and / alarm history is not working due to invalid date format.
Go to Configure-Options-History and Enable History Date Format. Examples: yyyy-MM-dd HH:mm:ss MM/dd/yyyy HH:mm:ss
I need to log to a remote Oracle database engine or a database engine that is not included in the TNSNAMES.ORA file.
Use the following as the Database name: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=MyHost)(PORT=MyPort)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=MyOracleSID))) As example for a system with a computer name GWDESK and the Oracle database name OPCDb: (DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=GWDESK)(PORT = 1521)))(CONNECT_DATA=(SERVER= DEDICATED)(SERVICE_NAME=OPCDb)))