Update cookies preferences
Promotic

Examples of Oracle database usage

Oracle database in the PmaTrendGroup object

- When creating the object from Preconfiguration "PmaTrendGroup - Trend group" the "Storage type" configurator set to: Database Oracle cyclic.
- In a newly created PmaTrendGroup object, on the "Storage" tab, the "Storage type" configurator set to: Database Oracle cyclic.
The trend values can be defined on the "Data" tab or in the ExtTrend of the PmaData object.
If the database files do not exist, then these will be created on first application launch, when the Run method is called (or the RunTime method) of the PmaTrendGroup object. Or automatically by checking the "Automatic saving after launch is enabled" configurator on the "Trend" tab.

Oracle database in the PmaDatabase object

- When creating the object from Preconfiguration "PmaDatabase - Database", select: ODBC; Data source.
- In a newly created PmaDatabase object, on the "Database" tab, set the configurators: Technology, Database (file, folder, data source), Table (file), etc.

Oracle database in the PmaAdo object

- When creating the object from Preconfiguration "PmaAdo - ADO database", select the database type: Oracle and in the "Database connection parameters" configurator select: ODBC - Named ODBC data source.
- In the "Database connection parameters" configurator it is necessary to modify the name of ODBC source (eventually user and password).
The PmaAdo object is created, containing the DtiOper method on the "Methods" tab. This method represents the basic inteface for working with database tables and can be used, for example, by the Preconfiguration "Panel with editable table viewer of data source" viewer.

The interface uses the ADO technology that can be extended by additional functionality:
Example:
Creates new table data with columns nTime (time, primary key, must not be NULL), 'flags' (integer, must not be NULL) and 'value1' (real number, must not be NULL).
JavaScriptVBScriptSelect and copy to clipboard

pMe.DbExecute("", "CREATE TABLE data (nTime TIMESTAMP(6), flags NUMBER(8) NOT NULL, value1 NUMBER NOT NULL, CONSTRAINT nTime_pk PRIMARY KEY(nTime))", "");


See http://ss64.com/ora, http://download.oracle.com/docs
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
 
- Examples of Oracle database usage
 
 
© MICROSYS, spol. s r.o.