Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Examples of Oracle database usage

Oracle database in the PmTrend object

- When creating the object from Preconfigurations PmTrend - Trend group set the configurator Storage type to: Database Oracle cyclic.
- In a newly created PmTrend object, on the Storage page, set the configurator Storage type to: Database Oracle cyclic.

The trend values can be defined on the Data page or in the ExtTrend of the PmData object.

If the database files do not exist, these will be created on first applicagion launch, when calling the Run method or RunTime method over the PmTrend object. Or automaticaly by checking the Automatic value saving after the launch is enabled configurator on the Trendpage.

Oracle database in the PmDatabase object

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

Oracle database in the PmAdo object

- When creating the object from Preconfigurations PmAdo - ADO database, select the database type: Oracle and in Database connection parameters configurator select: ODBC - Named ODBC source.
- In Database connection parameters it is necessray to modify the name of ODBC source (eventually user and password).
The PmAdois created, containing the DtiOper method on the Methods page. This method represents the basic inteface for working with database tables and can be used, for example, by the Preconfigurations Panel with editable table viewer of data source viewer.
 
The interface uses the ADO technology that can be extended by additional functionality:
Example:
Create 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).
pMe.DbExecute "", "CREATE TABLE data (nTime TIMESTAMP(6), flags NUMBER(8) NOT NULL, value1 NUMBER NOT NULL, CONSTRAINT nTime_pk PRIMARY KEY(nTime))", ""
 
See ss64.com/ora/, download.oracle.com/docs/
Navigation:
 
 
- Examples of Oracle database usage
 
 
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice