Professional Documents
Culture Documents
(SE - TNE - WebAccess SCADA) Use PostgreSQL DB As A WebAccess ODBC Data Stor...
(SE - TNE - WebAccess SCADA) Use PostgreSQL DB As A WebAccess ODBC Data Stor...
Date 2020 / 06 / 15
□ FAQ■ SOP Related Product
Category
□ Driver Tech Note
Abstract Use PostgreSQL DB as the source of ODBC data storage for WebAccess /SCADA
Keyword WebAccess/SCADA、PostgreSQL DB、pgAdmin、ODBC
Related OS
Revision History
Date Version Author Reviewer Description
First edit.
2020/06/15 V1.0 Alger Tan Nick Liu
(WebAccess 9.0.0、PostgreSQL 10.6)
Page 1
Brief Solution - Step by Step:
It depends on the PostgreSQL DB that user computer chooses to install and use
Page 2
A. Use WebAccess/SCADA default PostgreSQL
※ Make sure no other PostgreSQL versions in Windows before installing WebAccess/SCADA. Please
uninstall all PostgreSQL if any exist.
※ Please select WISE-PaaS Dashboard or SaaS Composer function before installing WebAccess/SCADA.
Page 3
2. Install PostgreSQL ODBC driver (must use same version of x86 PostgreSQL)
Download Path:https://www.postgresql.org/ftp/odbc/versions/msi/
Page 4
※ Unzip and Install psqlodbc_10_03_0000-x86.zip, just simple click Next button
Page 5
3. Install pgAdmin ( for PostgreSQL client software)
Download Path:https://www.pgadmin.org/download/
※ Install pgadmin4-4.20-x86.exe version, just simple click “Next” button with default installation
Page 6
4. Use pgAdmin to connect PostgreSQL Server
※ When first time executing pgAdmin, password authentication dialog box will pop up. Please use
Reset Master Password to set the new password.
Page 7
※ The default connection information of PostgreSQL installed by WebAccess is as follows:
General:
Name:Server Name (User Defined)
Connection:
Host name / address:connecting IP address (127.0.0.1 or actual IP Address)
Port:5436 (WebAccess default, can’t modify)
Maintenance database:postgres (WebAccess default, can’t modify)
Username:postgres (WebAccess default, can’t modify)
Password:Postgre@sql1 (WebAccess default, can’t modify)
5. Use pgAdmin to create a server (for example named “Demo”) in PostgreSQL server
※ Log in to the Server, then enter the newly established “Demo” connection. Last, create a new
database in Databases
Page 8
※ Give a name to Database and make sure it is created. (no need to create any table because
WebAccess/SCADA will create tables automatically)
6. Use ODBC Data Sources(32-bit) to create the database connection in System DSN
(WebAccess only supports 32-bit ODBC connection)
※ Search Control Panel > select Administrative Tools > select ODBC Data Sources(32-bit)
※ Click System DSN > select Add > search and select PostgreSQL Unicode
Page 9
※ PostgreSQL default ODBC connection information:
Page 10
7. Use IE Browser to run WebAccess Project Home, and setup ODBC Log Data Source
※ Login WebAccess Project Home > expand menu on left-top > expand Setting > click ODBCLog
Data Source
Data Source ID:ODBC Data Source Identification ID (unique numeric, user defined)
Data Source Name (DSN):ODBC System Data Source Name (same as step 6)
Data Source Login Name:postgres (WebAccess default, don’t modify)
Data Source Password:Postgre@sql1 (WebAccess default, don’t modify)
Retype Data Source Password:Postgre@sql1 (WebAccess default, don’t modify)
Description:System Description (optional) (User Defined)
Page 11
※ Finish setup ODBC Log Data Connection in WebAccess:
Page 12
B. Download and install PostgreSQL by User
1. Install PostgreSQL ODBC driver (must use same version of x86 PostgreSQL version)
Download Path:https://www.postgresql.org/ftp/odbc/versions/msi/
Page 13
※ Install x86.zip version, click Next and use default configuration to install psqlODBC
Page 14
2. Install pgAdmin (client software for PostgreSQL)
Download path:https://www.pgadmin.org/download/
Page 15
3. Use pgAdmin to create a connection to PostgreSQL Server
※ When first time executing pgAdmin, password authentication dialog box will pop up. Please use
Reset Master Password to set the new password.
Page 16
※ PostgreSQL default connection information:
General:
Name:Server Name (User defined)
Connection:
Host name / address:connecting IP address (127.0.0.1 or actual IP address)
Port:5436 (able to modify)
Maintenance database:postgres (able to modify)
Username:postgres (able to modify)
Password:Postgre@sql1 (able to modify)
Page 17
※ Create a database (no need to create any table, tables will be created by WebAccess automatically )
5. Use ODBC Data Sources(32-bit) to create the database connection in System DSN
(WebAccess only supports 32-bit ODBC connection)
※ Search Control Panel > select Administrative Tools > select ODBC Data Sources(32-bit)
※ Click System DSN > select Add > search and select PostgreSQL Unicode
Page 18
※ PostgreSQL default ODBC connection information:
Page 19
6. Use IE Browser to run WebAccess Project Home, and setup ODBC Log Data Source
※ Login WebAccess Project Home > expand menu on left-top > expand Setting > click ODBCLog
Data Source
Data Source ID:ODBC Data Source Identification ID (unique numeric, user defined)
Data Source Name (DSN):ODBC System Data Source Name (same as step 6)
Data Source Login Name:postgres (WebAccess default, don’t modify)
Data Source Password:Postgre@sql1 (WebAccess default, don’t modify)
Retype Data Source Password:Postgre@sql1 (WebAccess default, don’t modify)
Description:System Description (optional) (User Defined)
Page 20
※ Finish setup ODBC Log Data Connection in WebAccess:
Reference:
Page 21