Avocet Installation Reference
Avocet Installation Reference
Contents
Installation Reference Guide.........................................................................................3
Purpose of this document.............................................................................................................................4
Prerequisite knowledge.................................................................................................................................4
Getting Started..............................................................................................................................................5
Understanding the processes.......................................................................................................................5
Setting up the configuration environment.....................................................................................................6
What is the configuration environment?........................................................................................................6
Locating the necessary files for a local installation.......................................................................................6
Setting up the database................................................................................................................................6
Choosing a database technology.................................................................................................................6
Setting up a new database schema on Microsoft SQL Server.....................................................................6
Guidelines for Oracle database 12c (12.1.0.2) setup ................................................................................13
Configure MS SQL Server reporting services............................................................................................23
Configure a database instance without initializing the application Id..........................................................24
Create a fresh database.............................................................................................................................24
Add an application Id..................................................................................................................................24
Configure the database..............................................................................................................................26
Launching the application and choosing login and system implementation options...................................26
Launching Avocet.......................................................................................................................................27
Selecting a culture during login...................................................................................................................28
Setting up a licensing path..........................................................................................................................28
Applying color codes to identify the source of data....................................................................................29
Displaying and storing datetime values (local time zone or UTC)..............................................................31
Avocet upgrade scenarios...........................................................................................................................34
About the Avocet 2008.1 SP1 upgrade.......................................................................................................35
Upgrade workflow example.........................................................................................................................49
Database upgrade from Avocet 2012.1 or Avocet 2012.1 SP 1 .................................................................58
Configuration updates for manual upgrades...............................................................................................61
3
Purpose of this document
This document is designed to be a reference guide that supports the installation and deployment of
Avocet 2017.2. Use this document to supplement the Avocet Production Data Management System
Installation Guide .
Prerequisite knowledge
This topic discusses the database technologies and operating platforms knowledge needed to install
and deploy Avocet.
Readers of this document must be familiar with the following database technologies and operating
platforms.
• Microsoft Windows 7 or Microsoft Windows 10 desktop operating systems
• Microsoft Windows 2008, Microsoft Windows 2012, or Microsoft Windows 2014 server operating
systems
• Web portal technology with Internet Information Services (IIS)
• Oracle RDBMS and/or Microsoft SQL Server database technologies and associated tools and utilities
for executing SQL statements
• SQLite, but only for use with disconnected field laptops
Refer to the Avocet Production Data Management System Installation Help topic for specific
procedures.
5
Setting up the configuration environment
This section discusses the configuration environment, lists the tasks to perform during the configuration
process, and shows where to locate the installation files for a local installation.
Note: SQLite support is aimed at single users of field laptops that are disconnected from
application servers.
To install these database technologies, follow the instructions provided in their respective product
manuals or on their websites. Apply the latest patch.You can obtain the latest patch from the Microsoft
support website for your SQL server version.
If unsure of your database configuration, consult with a certified database administrator.
Before proceeding, ensure that the database server and tools are installed.
1. Click Start, and then choose SQL Server Management Studio to display the Connect to Server
dialog.
2. Select a server and provide system administrator (sa) credentials.
7
Note: Creating a database on your system drive (C:\) can result in data storage issues.
Instead, create a directory on your non-system drive (D:\). Change the path of the file types
Rows and Log to the file path of the directory.
1. In the Object Explorer, expand the Security folder to display the subfolders.
9
2. Right-click the Logins folder to display the flyout menu, and choose New Login… to display the
Login – New window.
3. In the Login – New window, create a SQL Server authentication login name and password.
4. Uncheck the Enforce password policy, Enforce password expiration, and User must change
password at next login check boxes.
5. Click OK.
6. In the Object Explorer, open the Logins folder, right-click the login name, and choose Properties
from the flyout menu.
7. Under the Select a page heading, choose User Mapping to display the user mapping table and
database roles.
8. Map the Avocet user to the Avocet database, and assign the db_datareader and
db_datawriterpermission to the user.
1. In theObject Explore of Microsoft SQL Server Management Studio, expand the Security folder
to display the subfolders.
2. Right-click the Logins folder to display the flyout menu, and choose New Login… to display the
Login - New window .
3. In theLogin - New window, select Windows authentication for the Login name selection, and
click Search… .
11
4. Verify that the From this location field displays either your company's domain controller server or
Entire Directory.
• If the entry is correct, go to step 6.
• If not, click Locations... to open theLocations dialog.
5. Select Entire Directory, and click OK to return to the Select User or Group dialog.
6. In the Enter the object name to select text field, enter the name of the Active Directory user, and
click OK.
Do not assign the server role sysadmin. It is not necessary for the Avocet application.
9. Click OK to complete the Active Directory assignment.
13
• Create a database instance in Oracle
• Create an Oracle listener
• Edit the tnsnames.ora, sqlnet.ora, and listener.ora files
• Create VM_DATA and VM_INDEX tablespaces
• Create Oracle user
• Configure firewall
• Check the Oracle database connection
1. In your Oracle installation, launch the Database Configuration Assistant wizard as an administrator.
2. In the Database Configuration Assistant - Welcome window, choose the Database Operation >
Creation Mode, and select Create Database, and click Next.
The Create Database window is displayed.
3. Under Prerequisite Checks, select the Create a database with default configuration option, and
complete the following fields:
Field Description
Global Database Name Enter the name you want to assign to the database.
1. Open the tnsnames.ora file in a file editor, remove all entries, and then add the following entries,
specifying your your database name where indicated:
Your Database Name=
(DESCRIPTION =
(ADDRESS =(PROTOCOL = TCP) (HOST = localhost) (PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = Your Database Name)
)
)
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
)
)
4. Open the listener.ora file (if available) in a file editor, and add the fully qualified domain name of
your Oracle database server where indicated:
SID_LIST_LISTENER =
(SID_LIST =
15
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\ORACLE\product\12.1.0\dbhome_1)
(PROGRAM = extproc)
(ENVS =
"EXTPROC_DLLS=ONLY:C:\app\ORACLE\product\12.1.0\dbhome_1\
bin\oraclr12.dll")
)
)
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)
(HOST = YourOracleservername.DIR.CompanyName.com)
(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
)
)
ADR_BASE_LISTENER = C:\app\ORACLE\product\12.1.0\dbhome_1\
log
1. On the system where Oracle is installed, open a web browser and enter the following address:
https://localhost:5500/em.
The Oracle Enterprise Manager login window is displayed.
2. Enter your Oracle installation user name and password, and then check the as sysdba check box.
The Database Home page opens.
3. Choose Storage > Tablespaces.
The Tablespaces windows opens.
4. Click Create.
The Create Tablespace page opens.
5. Select General in the sequence line, and proceed to complete the tablespace options in sequence
for VM_DATA:
Category Options
17
Create Oracle user
In the Tablespaces window of Oracle Enterprise Manager, you create an Oracle user account for the
tablespaces, specify privileges for the account, and select the quota access to each tablespace.
User Account Specify your Oracle account user name and password.
Accept the default settings in the remaining options.
Configure firewall
You may need to configure a firewall rule depending on your database connection port.
1. On the Oracle database server system, open the Windows Firewall with Advanced Security console.
2. In the Navigation Tree, select Inbound Rules.
The Inbound Rules pane is displayed.
3. Under Actions, choose New Rule... .
The New Inbound Rule Wizard is launched.
4. Select Port for the type of rule to create, and click Next.
The Protocol and Ports page opens.
5. Select the TCP protocol option, and select the Specific local ports option, entering the port number
specified when you created the listener (the standard is 1521). Click Next.
The Action page opens.
6. Choose the action Allow the connection that the firewall should perform when a connection
attempt matches the inbound rule, and click Next.
The Profile page is displayed.
7. Select all connection types: Domain, Private, and Public. Click Next.
The Name page opens.
8. Enter a name for the rule and click Finish.
The rule is created.
9. Open the Services window, and verify that your Oracle service instance is available and running.
Look for an entry OracleService SystemIdentifier, where SystemIdentifier is the system name
assigned to the database name.
The system identifier (or SID) is listed in the Create Database - Summary window of the Database
Configuration Assistant.
Note: The Oracle connection string is used to connect with the database instance in the
Avocet Application Initializer data source configuration in the Database Configuration Tools
utility. It follows this syntax:
Data Source =[localhost/DATABASE NAME];
User Id=[User Id];Password=[Password]
19
[Password] Oracle user account password
Warning! If connecting to an Oracle database with the bundled Oracle Instant Client or connecting
with a separately installed Oracle client (that is, “full Oracle Client”), this step must be performed before
proceeding with the Oracle database initialization. See Oracle Instant Client configuration instructions.
If connecting to an Oracle Instant Client data source, the default connection string will display as
follows.
Data Source=[SERVICE NAME];User Id=[User Id];Password=[Password]
Modify the highlighted text as shown in the example below to connect to your database schema. These
credentials will be identical to the Oracle database schema you created in this procedure.
Data Source=[ORASRVR];User
Id=AVM_Customer;Password:sis
Note: This section assumes you have already configured Oracle to be used with Avocet as
stated in the installation section on setting up a new database schema for Oracle.
Avocet has the capability to connect to an Oracle database in the following ways:
• Connection with the bundled Oracle Instant Client Light
• Connection with a separately installed Oracle client (i.e. “full Oracle Client”)
In both cases, Oracle ODP.Net 11.2.0.2.1 is used by Avocet to connect to Oracle. Any other Oracle
client software deployed on the client machine must be 11.2.0.2.1 or later for Avocet to work correctly.
See the following diagram to help you understand your deployment scenario and how to properly
configure the software.
21
Avocet is bundled with the Oracle Instant Client Light, which includes limited Western character sets
and Unicode. This minimal set of DLLs is bundled with Avocet for size and bandwidth considerations.
If you require Eastern languages, Cyrillic, or other extended character sets, you will need to manually
add the Oracle international resource DLLs to your deployment.
The oraciei11.dll file contains the international character sets for 32- and 64-bits. The DLLs need to
be downloaded and copied into the AvocetVM/x86 and AvocetVM/x64 folders respectively.
1. Go to \\Avocettfs.slb.com\AvocetBuild\AvocetMain_2013.1\ClickOnce-OracleSupport\I18n-dlls.
2. Download the oraciei11.dll file that contains the international character sets for 32- and 64-bits.
3. Copy the DLLs to the AvocetVM/x86 and AvocetVM/x64 folders respectively.
Warning: Do NOT remove Oracle.DataAccess.dll from the x86 and x64 directories.
• adrci.exe
• genezi.exe
• oci.dll
• ocijdbc11.dll
• ociw32.dll
• ojdbc5.jar
• ojdbc6.jar
• orannzsbb11.dll
• oraocci11.dll
• oraociicus11.dll
• OraOps11w.dll
• uidrvci.exe
• xstreams.jar
However, the following files should be removed before building the ClickOnce deployment.
To delete the DLLs via batch file, run the following command:
DeleteOracleInstantClient.cmd
del x86\adrci.exe
del x86\genezi.exe
del x86\oci.dll
del x86\ocijdbc11.dll
3. To view your reports in Avocet, go to Reports > Reporting Services in the Navigation Tree.
a) Choose your report from the list.
b) Click Launch Report.
Note: Under File > Options > Report Settings, you can view and modify report settings.
However, unless you have fully configured your reporting services, you will not be able to
access the File > Options > Report Settings feature.
23
Configure a database instance without initializing the application Id
This section shows how to use the Configure Database option of the Database Configuration Tools
utility to configure a fresh Avocet database instance without initializing the application Id. It also
discusses why you might want to use this option to generate your Avocet database.
Note: Refer to the Help topic Avocet Production Data Management System Installation to
initialize an application ID for a fresh database instance.
In this procedure, you use the Configure Database option of the Database Configuration Tools utility
to configure a fresh Avocet database instance, but without initializing the application Id. By using the
Configure Database option instead of Application Initializer, you extend the definitions of an existing
database configuration. That is, your database configuration takes on the existing layer, culture, and
screen definitions of the database that it extends.You cannot customize a database generated through
the Configure Database process as you could a database generated through the Application Initializer
process.
One advantage of using the Configure Database option instead of Application Initializer is that it
is quicker and does not generate the XML configuration files of the initialization process. The Configure
Database option is helpful if you intend to add data to the layer and screen definitions of an existing
implementation structure.
The following flow chart outlines the main stages in the procedure:
Add an application Id
After you create a new database in SQL or Oracle, specify the application Id definition. This task
discusses what an application Id does, shows a sample application Id definition, and then describes
the main elements and attributes in the definition.
After you create a new database in SQL or Oracle, you next specify an application Id definition that
Application id specifies the name of the database as it is displayed in Avocet. You can provide any name for the
Avocet display name. This is the name you see when you scroll a drop-down list of databases in
Avocet.
The application Id can be different from the database name in the database server.
extends points to the database (represented by the application Id) that the new database definition
(represented by its application Id) extends or builds on
database driver software component that identifies and accesses the database schema
database connect string contains the information required to connect with the database instance. It includes the name of
the database on the database server (Initial Catalog) and the authentication requirements (User
ID and Password). You obtain this information from your database server configuration.
connect string for SSAS contains the information required to connect with the SQL Server Analysis Services server. This
connection string is used if you are generating data cubes for visualization. See the Avocet Analytics
documentation for more information.
25
Configure the database
After you have created a new database on your database server and entered its application Id definition
in an AppConfig file, restart the Database Configuration Tools utility so it can discover the new
application Id and you can configure the database.
To configure the database, perform these steps in the Database Configuration Tools utility:
Launching Avocet
This task shows how to launch Avocet so you can configure the application, set up facilities, and load
the required data.
You can now configure the application, set up facilities, and load data as required.
27
Selecting a culture during login
This task shows how to select a culture during login.
1. From within your Avocet implementation folder, launch AvocetVM.exe. For example, X:\
AvocetVMConfiguration\AvocetVM\AvocetVM.exe.
2. On the Login dialog box, click Advanced to display additional login options.
3. In the Culture dropdown, select a culture.
This Culture dropdown list is populated based on the choices you made during the execution of
the initializer. If resources for that culture are set up, you will see the application change the
resources of the dialog.
4. Click Login to continue.
The application will now display in localized resources.
1. From within your Avocet implementation folder, launch AvocetVM.exe. For example, X:\
AvocetVMConfiguration\AvocetVM\AvocetVM.exe.
2. On the Login dialog box, click Advanced to display additional login options.
3. In the License Path field, enter the location of the license files.
The location can be in two forms depending on how you have set up your license server.
• A file path, for example, c:\flexlm\license.dat
• A server path, for example, 1700@avm-licenseserver
Acquisition Data, such as production data, that is imported from a non-Avocet application. This non-Avocet
application would be part of the assets purchased by one company from another.
For example, company A buys the assets of company B, including the production data system
PDS. When company A imports PDS data into Avocet, it sets the data loader properties
CREATE_SOURCE and UPDATE_SOURCE to ACQUISITION so that the PDS data is marked
as acquisition data.
An administrator can then apply a color code to the acquisition data. When company A examines
production data in Avocet, it knows which data originates from company B based on the assigned
color code.
CarryForward Data, typically well head, meter, and tank data of a selected facility, that is copied and carried
forward to a subsequent date range (inclusive start date and exclusive end date). Carry forward
29
Data source type Description
data is usually consistent and unchanging data values that are carried forward to alleviate manual
data entry.
DataLoader Data that originates from an external source, such as an Excel spreadsheet, and is imported into
the Avocet database
SCADA Data that is imported from a SCADA system, such as data historian
User Data or data fields that users have edited or can edit
System Data or data fields that are reserved for system use
1. In the Navigation Tree, select Administration > System Maintenance > Source Type Colors to
display the Source Type Colors – SYSTEM screen.
2. For each source type, select a color to mark the data from the Color drop-down list.
3. After completing your selections, select Home > Actions > Save.
4. Restart the Avocet client and log back into the database to initialize the color code update.
The color codes are applied to the data fields, as in this example showing user data:
31
The <DateTimeType> element has two possible values:
• Local (the default value)
• UTC
<DateTimeType> only accepts UTC as a valid non-default value. If any other value is entered, it reverts
to the default value local.
If you intend to store datetime values in your local time, do not add a <DateTimeType> element to
your AppConfig_xxx.xml file because by default the local datetime values are stored.
: Changing the storage datetime value from local to UTC or from UTC to local does not affect existing
data associated with a datetime. You must convert existing data into the updated time format before
making the manual change in the AppConfig_ xxx .xml file.
To store datetime values as UTC, do the following:
1. Open your AppConfig_xxx.xml file, and go to the <application> ID node that defines the database
to which you are connected. Refer to the following code snippet:
2. At the <database> level in the <application> ID node hierarchy, enter the following element and
value (UTC), as shown in the above example snippet:
<DateTimeType>UTC</
DateTimeType>
1. Open the Avocet client, and in the ribbon toolbar choose File > Options… .
2. Choose All Screens > Screen Settings to display the Screen Settings options.
3. Select the Show UTC Offset check box.
4. Click Home > Save to save the new setting. To apply the updated setting to a running Avocet client
instance, click Home > Navigation > Reload in the ribbon toolbar.
The UTC offset is displayed in the DateTime field next to the specified local time, as in this excerpt
from the Well Test - <nameOfCompletion> screen (Field Data > Well Reading > Well Test>:
If, as in this example, the offset is negative, then to obtain the UTC time for your time zone you
add the offset to the local time: 11:00:00 + 06:00 = 17:00:00. Similarly, if the UTC offset is positive,
then to obtain the UTC time for your time zone you subtract the offset from the local time.
The offset is also captured in the corresponding row of the History grid in the screen for the
transaction record, as in this example:
33
Avocet upgrade scenarios
Avocet provides a uniform framework for upgrading from earlier to later versions. The only exception
is the upgrade from Avocet 2008.1 SP1. To upgrade from Avocet 2008.1 SP1, you must first upgrade
to Avocet 2012.1 SP1.
Note: When upgrading from Avocet 2012.1, Avocet 2012.1 SP 1, Avocet 2013, and Avocet
2014.1.3 to a later version of Avocet, you have to select and run specified upgrade scripts before
completing the database upgrade process.
The following table lists the supported upgrade paths. From Avocet 2012.1 SP1 and later, you can
upgrade directly to any later version.
Avocet 2013.1
Avocet 2014.1
Avocet 2014.1.n
Avocet 2017.1
Avocet 2017.2
Avocet 2014.1
Avocet 2014.1.n
Avocet 2017.1
Avocet 2014.1.n
Avocet 2014.1.n+1
Avocet 2017.1
Avocet 2017.2
Here are the summary guidelines for upgrading from Avocet 2012.1 SP1 and later:
• Identify the custom XML configuration files in your current implementation that you intend to move
to the new version.
These include all configuration files having the application ID extension that you are moving. For
example, for each uniqueAppConfig _myapplicationID .xml file, you also include all XML configuration
files having the myapplicationID, for example:
• vmConfig_myapplicationID .xml
• Layer\myapplicationID .xml
• CustomNavigators_myapplicationID.xml
• GridReports_myapplicationID.xml
• TransactionDataGridConfig_myapplicationID.xml
• TransactionRollupConfig_myapplicationID.xml
These also include all customized XML configuration files that support your implementation, such as
layer files.
• Identify the project layer DLLs (C# files) that you will need to incorporate in the new binaries
• Create backups of the databases, custom XML configuration files, and DLLs that you intend to move
to the new version.
• Manually copy the custom files, except for the Layer\*.xml file or files, to the corresponding folders
in the new implementation version.
• From your current implementation folder, launch ConfigTools.exe, log into the application ID
(database) whose layer file or files you transferring to the new implementation, and run Meta-Data
Loader to export the layer file or files to the new implementation folder.
• From the new implementation folder, launch DatabaseConfigTools.exe, and run the Upgrade
Manager against every application ID you are advancing.
• From the new implementation folder, launch ConfigTools.exe, log into the application ID (database),
and run Database Initializer. Repeat for each application ID you have copied to the new folder.
Note: Modifications of the type system during customization might require that Schlumberger
deployment investigate the database for upgrade overlaps with the standard version to ensure
database upgrades are smooth. Please consult the Schlumberger deployment team before
upgrading your database, especially if you have a custom solution.
Two new unit system layers are shipped with the Avocet 2012.1 SP1 release, UnitSystem_Imperial.xml
and UnitSystem_Metric.xml.
Avocet 2012.1 SP1 contains relatively big changes regarding property class, UOM, length, and decimals
for all type properties. These changes are implemented to handle a unit system switch such as Metric
and Imperial. All Avocet type properties that have the same property class can then use the same
UOM, length and decimals. This allows the UOM to be defined for all the property classes in the Metric,
Imperial, or custom unit system layer.
35
Avocet 2012.1 SP1 has also performed a cleanup on all the type properties that are defined in Avocet
standard layers, such as AVM, OG_STD and OG_CW, OG_SM. This is to assure that these type
properties have correct property classes, UOM, length and decimals in both the Metric and Imperial
unit systems. Also, the UOM, length and decimals definitions have been removed from all type properties
defined in the standard layers having the property class. Additionally, the Configuration Tools utility
(ConfigTools.exe or ConfigTools32.exe) contains a new tool called Storage UOM Editor, which allows
you to view the definitions, to add new property classes, and to modify them.
To streamline upgrading, eliminate data conversion errors, and prevent precision loss in values, Avocet
2012.1 SP1 offers a new tool called Property Class Upgrade Manager. Before you upgrade, this
new tool reports the differences in values between Avocet Volumes Manager 2008.1 SP1 and Avocet
2012.1 SP1 for the UOM, length, and decimals properties. Therefore you can address any differences
in values before the actual upgrade. To compare and report the differences, you need to create a
reference database with Avocet 2012 SP1 layers.
The upgrade occurs in these stages:
• Back up your 2008.1 SP1 database and export the latest custom layer files
• Prepare the 2012.1 SP1 database for comparison
• Perform a property difference analysis between 2008.1 SP1 and 2012.1 SP1
• Set DBInfo extension and data transfer scripts
• Run the upgrade on 2008.1 SP1
Stage 1: Backing up the Avocet Volumes Manager 2008.1 SP1 database and exporting custom
files
This section shows how to back up your database, restore the database to a test upgrade database,
and export the latest custom layer files. These tasks are the first stage in upgrading your 2008.1 SP1
database.
Backing up the Avocet Volumes Manager 2008.1 SP1 database
This task shows how to create a backup of the database configured on the Avocet 2008.1 SP1 version.
Note: Use instructions for Microsoft SQL Server or Oracle RDBMS to back up your database
before performing a database upgrade. It is recommended that a database administrator perform
a database backup before you perform a database upgrade.
Note: Executables are customized for 32- and 64- bit machines. For example,
ConfigTools32.exe should be used when you are running Avocet on a 32-bit machine and
Configtools.exe should be used when you are running Avocet on a 64-bit machine.
To locate the directory, click the Help menu and choose About. Select the Support
Information tab. This tab lists the application directory where the application is installed and
the configuration file that is used to launch the application.
2. In the Login dialog, enter the User and Password for your system account.
3. Click Login to launch the configuration management application.
4. From the tree, select Database Tools > Meta-Data Loader to display the Meta-Data Loader tab.
5. Click the Export tab to display the Export pane.
6. From the list, select the layer to be exported from the drop-down list.
37
7. In the Export Filename field, type a location where to export the metadata layer into an XML file.
8. Click Export Layer to export the metadata layer into a file.
9. Repeat these steps for each layer you want to export.
10. Close the ConfigTools application.
on the toolbar.
6. Close the DatabaseConfigTools application.
1. From the 2008.1 SP1 to the Avocet 2012.1 SP1 version (BBE2012_1_SP1_ToBeReferenced),
copy the exported custom layers to the Layer sub-folder and custom configuration files to the
Config folder.
For example, AppConfig_xxx.xml, vmConfig_xxx.xml.
2. Modify the AppConfig_*.xml file in Avocet 2012.1 SP1 Config folder to add a new application ID,
point it to the new database (BBE2012_1_SP1 ToBeReferenced), and then extend the new
application ID from BBE2008_1_SP1_ToBeUpgraded.
For example:
<application id="BBE2012_1_SP1_ToBeReferenced" hidden="false"
extends="BBE2008_1_SP1_ToBeUpgraded">
<description>BBE2012_1_SP1_ToBeReferenced</description>
<database>
<driver>SQLSERVER</driver>
<sqlsyntax>SQLSERVER</sqlsyntax>
<connectString>Network Library=DBMSSOCN;Data Source=localhost,1433;
Initial Catalog=BBE2012_1_SP1_ToBeReferenced;User ID=sa;
Password=713Avm;Application Name=AVM</connectString>
</database>
</application>
39
In Avocet 2012.1 SP1, the connection string format most Oracle users are familiar with has changed
and the tnsnames.ora file is no longer needed. The new format is:
Data Source=[HOST]/[SERVICE_NAME];User
Id=[UserId];Password=[Password]
As an example, you would translate an old tnsnames.ora entry that looks like this:
AVM =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.192.192.192)(PORT=1521))
)
(CONNECT_DATA =
(SID = AVM)
(SERVER =
DEDICATED)
)
)
To a connection string like this:
Data Source=192.192.192.192/AVM;User
Id=myId;Password=myPassword
For example, connections should be specified in the SQL syntax:
<database>
<driver>ORACLE</driver>
<sqlsyntax>ORACLESQL92</sqlsyntax>
<connectString>Data Source=srv148gqh.nam.slb.com/AVM;
User Id=OG_STD_TRUNK_UNIT_TEST;Password=713Avm</connectString>
</database>
Or if the server has a well-defined name:
Data Source=OracleServer.mydomain.com/AVM;
User Id=myId;Password=myPassword
Copying the 2008.1 SP1 layers and add the unit system layer to the new application ID
This task shows how to copy all the layers from BBE2008_1_SP1_ToBeUpgraded to
BBE2012_1_SP1_ToBeReferenced, and then insert the new unit system layer in
BBE2012_1_SP1_ToBeReferenced after the AvocetVM layer.
For example:
<application id="BBE2012_1_SP1_ToBeReferenced" hidden="false" extends="
BBE2008_1_SP1_ToBeUpgraded">
<description>BBE2012_1_SP1_ToBeReferenced</description>
<database>
<driver>SQLSERVER</driver>
<sqlsyntax>SQLSERVER</sqlsyntax>
<connectString>Network Library=DBMSSOCN;Data Source=localhost,1433;
Initial Catalog=BBE2012_1_SP1_ToBeReferenced;User ID=sa;Password=713Avm;
Application Name=AVM</connectString>
</database>
<layers>
<layer>AVM</layer>
<layer>UnitSystem_Imperial</layer>
<layer>OG_STD</layer>
<layer>US_REGS</layer>
<layer>BBE</layer>
.
When complete, a status of Succeeded displays.
Stage 3: Performing a property difference analysis between 2008.1 SP1 and 2012.1 SP1
This section shows how to perform a property difference analysis between 2008.1 SP1 and 2012.1
SP1 and make any changes. From Avocet 2008.1 SP1 to Avocet 2012.1 SP1, some of the type
properties’ UOM, length and decimals have been changed and the value currently stored in Avocet
2008.1 SP1 database might need to be converted from the old UOM to the new UOM.
Reporting UOM, length, and decimals differences
This task shows how to check for all the types that have UOM, length, or decimal changes and generate
a report. Perform this step before you run the upgrade.
41
To begin the analysis:
For example, in the previous report, INVENTORY.LEVEL needs to have a value of 12 for length
instead of 11, and 8 decimals instead of 2. Modify its length and decimals in the Type Editor on
the custom layer.
5. Click
43
Reinitializing the 2008.1 SP1 database with updated custom layer file
This task shows how to reinitialize the 2008.1 SP1 database after you exported the new layer and
copied it to Avocet 2008.1 SP1 Config\Layer folder.
To reinitialize:
Allocation Results
Process logs
Before upgrade, please check all custom layers and see if there are any modifications done to the
transaction types that have been moved.
If in the custom layer new properties have been added to the transaction types above; or if standard
Avocet properties have been remapped to different table columns, you need to set up the DBInfo
extension and data transfer scripts before running the upgrade. Otherwise, skip the rest of stage 4
and continue with stage 5.
To set up DBInfo extension and data transfer scripts
This task shows how to set up the DBInfo extension and data transfer scripts when a standard Avocet
property was remapped to a different table column.
An example showing a standard Avocet property having been remapped to a different table column
is described below. OWNER has been added to the ACTUAL transaction type and mapped to column
CHAR7:
<LayerDefTypeProperty Type="ACTUAL" PropertyName="OWNER" LabelId="TYPE.ACTUAL.OWNER"
ColumnName="CHAR7" PropertyType="TEXT" Unicode="False" SortOrder="35"
Mandatory="False" Hidden="False" IsKey="False" />
This property OWNER needs to be added to the physical schema table at the custom layer by defining
custom extension for DBInfo. And this property needs to be included in data transfer scripts to indicate
how to move the existing OWNER data to new tables. You need to follow the same procedure if new
properties are added to the transaction types in the custom layer.
45
Follow these steps to set up DBInfo extension and data transfer scripts:
6. Save the changes to the DBInfo_CustomExt.xml file and the data transfer scripts.
Now you can execute the upgrade.
47
5. Click
In the previous figure, some upgrades failed due to the following errors:
• Column names in each table must be unique. Column name 'CHAR11' in table
'ITEM_EVENT_EXT' is specified more than once.
• Column names in each table must be unique. Column name 'VAL61' in table 'ITEM_EVENT_EXT'
is specified more than once.
Note: If the type of errors listed above appear during the upgrade process, analyze any
customizations that have been made to the listed tables for conflicts. Contact the Schlumberger
deployment team to address the issues.
Changing the upgraded 2008.1 SP1 application ID to add the new unit system layer
This task shows how to add the new unit system layer.
1. In the Avocet 2012.1 SP1 folder, modify the AppConfig_*.xml file application ID,
BBE2008_1_SP1_ToBeUpgraded, by adding new unit system layers as follows: <layer>AVM</layer>
<layer>UnitSystem_Imperial</layer>.
Reinitializing the upgraded 2008.1 SP1 application ID with the latest 2012.1 Avocet layers and
updated custom layer files
This task shows how to reinitialize the upgraded application ID with the latest Avocet layers and custom
layer files.
Stage 1: Backing up the Avocet 2012.1 SP1 database and exporting custom files
This section shows how to backup the Avocet database and export the metadata layer. It is
recommended that a database administrator perform a database backup before you perform a database
upgrade.
Note: Use instructions for Microsoft SQL Server or Oracle RDBMS to back up your database
before performing a database upgrade.
Refer to the Avocet upgrade scenarios Help topic to identify the customized files that you need to back
up and copy.
Backing up the Avocet 2012.1 SP1 database (MS SQL Server)
This task shows how to back up the database using Microsoft SQL Server.
49
6. Click OK on the Select Backup Destination dialog.
7. Click OK on the Back Up Database dialog.
Note: Executables are customized for 32- and 64- bit machines. For example,
ConfigTools32.exe should be used when you are running Avocet on a 32-bit machine and
Configtools.exe should be used when you are running Avocet on a 64-bit machine.
2. In the Login dialog, enter the User and Password for your system account.
3. Click Login to launch the configuration management application.
4. From the tree, select Database Tools > Meta-Data Loader to display the Meta-Data Loader tab.
5. Click the Export tab to display the Export pane.
6. From the dropdown list, select the layer to be exported from the drop-down list.
7. In the Export Filename field, type a location where to export the metadata layer into an XML file.
8. Click Export Layer to export the metadata layer into a file.
9. Repeat these steps for each layer you want to export.
10. Close the ConfigTools application.
Script Script
Pipeline CAPACITYUOM to CAPACITY_UOM_CD sql Drop Row id and DB ID Column from DIAGOBJECT_CACHE
The following screenshot shows the first part of the list of scripts that can be run multiple times. To
summarize, you can run the Tank Density Method Changes - 2 script and all following scripts multiple
times across upgrade sessions.
51
To execute the upgrade
This task shows how to perform a script upgrade to the selected application ID that references the
target database.
If upgrading from Avocet 2012.1 or Avocet 2012.1 SP1, you have to execute a preliminary upgrade
before completing the formal upgrade.
Note: If you are upgrading from Avocet 2013 or Avocet 2014.1.3 to 2017.2, you have to execute
a preliminary upgrade before completing the formal upgrade. For more details please refer to
the following section To execute the preliminary upgrade from Avocet 2013 to 2017.2 and To
execute the preliminary upgrade from Avocet 2014.1.3 to 2017.2 respectively.
53
Note: This list may differ from the default list, depending how long it has been since your
last upgrade.
4. Review the selected scripts and de-select the ones you do not want to submit for upgrading in the
current session.
After you execute the upgrade, the unselected scripts are denoted as Not Run for the upgrade
session.
5. Click Upgrade in the Upgrade Manager taskbar to apply the scripts to your database and initialize
the selected ones.
The upgrade status of each script is displayed in the right-hand side panel. For example, a successful
upgrade is noted with a green checkmark as in the following example:
When a script fails the upgrade, it is noted with an X mark against a red background. You can click
on the X to view the accompanying error message. An example error message is shown below:
Any unselected scripts that are part of the upgrade session are marked with an X against a black
background. The flyout message Not Run is displayed when the mouse pointer hovers over the X.
To summarize, scripts that are included in an upgrade session can have a status of
• success
• failed
55
• not run
1. From the database list, select the application id to connect to the application id references for the
database you want to upgrade.
2. Click Show Applied Updates to show all scripts in the Upgrade Manager list.
3. Scroll down and select the Add Table VALIDATION_LOG - 2015-05-05 check box as shown in
the below screen:
1. From the database list, select the application id to connect to the application id references for the
database you want to upgrade.
2. Click Show Applied Updates to show all scripts in the Upgrade Manager list.
3. Scroll down and select the Missing DB Objects Script - 2016-12-12 and IEREPL_LOG Table
update - 2017-04-04 check box as shown in the below screen:
Any upgrade or other action does not affect the scripts that have already been applied to the
database.
57
• Column names in each table must be unique. Column name 'CHAR11' in table 'ITEM_EVENT_EXT'
is specified more than once.
• Column names in each table must be unique. Column name 'VAL61' in table 'ITEM_EVENT_EXT'
is specified more than once.
If the type of errors listed above appear during the upgrade process, it means that the columns already
exist in the specified table.You can contact the Schlumberger deployment team to address any issues.
Reinitializing the upgraded 2012.1 SP1 application ID with the latest 2013.1 Avocet layers
This task shows how to initialize the updated application ID to the latest Avocet layers.
59
6. Click Upgrade.
The selected scripts are applied to the database.
7. Select another screen in the Database Configuration Tools utility and then return to the Upgrade
Manager node to refresh the screen display.
8. From the App Id drop-down list, reselect the application Id of your Avocet 2012.1 or Avocet 2012.1
SP 1 implementation to which to connect.
9. Click Upgrade.
The remaining upgrade scripts should execute successfully.
Remove references to deprecated Avocet 2017.x does not support Avocet UA Server and the Visualization Designer. In
features your Avocet 2017.x deployment, remove references to them.
DiagramConfigWPF_base.xml These files enable the daily and monthly report functionality in Avocet. They were first
introduced in the 2012.1 SP1 version. Verify that they are in your Config subfolder.
DiagramConfigWPF_OG_STD.xml
<mailSettings> Effective in the 2014.1.2 release, this element is now defined immediately below the
<application id = projectLayer> node of the AppConfig_ projectLayer file and in the
AppInitConfig.xml file. It is no longer defined under the <alarms> node.
Custom vmConfig_<LayerName> Upgrade users must manually update the "id" and "screenConfig" nodes in custom
vmConfig_<LayerName>.xml from "Scada.TagMap" to "Scada.TagMapXaml".
5. Open your vmConfig_ProjectLayer.xml file, remove the following entries, and save the file:
• node type definition for TreeNode.Visualization
• corresponding screen configuration ID
Slb.Avocet.OPCUA.Client.Screens.VisualizationWellOverview
61
Two new files have been added:
• DiagramConfigWPF_base.xml
• DiagramConfigWPF_OG_STD.xml
Be sure to include these two files in your Config subfolder.
In the default AppConfig_OG_STD_Shell.xml file, you see the <diagramConfigWPF> element
definition that points to these two files:
<diagramConfigWPF>
<base>DiagramConfigWPF_base.xml</base>
<extension>DiagramConfigWPF_OG_STD.xml</extension>
</diagramConfigWPF>
Add this definition to your AppConfig_< custom>.xml file.
Next, review the default vmConfig_OG_STD_Shell.xml and vmConfig_OG_STD.xml files to see
the updated <node> and <screenConfig> definitions. Use DiagramWPF as a search string. Note that
the previous definitions are commented out. After reviewing the updated definitions in the default
vmConfig_< xxx >.xml files, you can apply the updates to your custom file.
Ensure that your custom screen configuration file vmConfig_<custom>.xml includes the following
node definitions for the new daily diagram report and monthly diagram report. under the corresponding
folder node definitions.
Daily diagram report
The new screen ID “DiagramWPF.DailyReportDiagram” takes the place of the previous screen ID:
Slb.AvocetVM.Client.Screens.Reports.InputDiagramDaily
After adding the new node definition, comment out or remove the previous one.
Monthly diagram report
<node type="Screen" id="DiagramWPF.MonthlyReportDiagram" platform="desktop">
<titleRes>TreeNode.DiagramWPF.MonthlyReportDiagram</titleRes>
<text>Monthly Report Diagram</text>
<icon type="resource" id="TreeNode.Icon.Diagram" />
<config>
<navigatorType>NETWORK</navigatorType>
<screenConfigs>
<screenConfig>DiagramWPF.MonthlyReportDiagram</screenConfig>
</screenConfigs>
</config>
</node>
The new screen ID “DiagramWPF.MonthlyReportDiagram” takes the place of the previous screen ID:
63
ReadOnly</screen>
<Args Key="DiagramMode">
<Value>ReadOnly</Value>
</Args>
<Args Key="TransactionViewIds">
<Value>
<ArrayOfString>
<string>GENERAL_VOLUME_MTH</string>
<string>ALLOC_OIL_VOLUME_MTH</string>
<string>ALLOC_GAS_VOLUME_MTH</string>
</ArrayOfString>
</Value>
</Args>
</config>
</typeScreen>
< </screenConfig>
The new screen configuration ID DiagramWPF.MonthlyReportDiagram takes the place of the previous
one, Diagram.InputVolumesMonthly. Remove or comment out the stanza containing the
Diagram.InputVolumesMonthly definition.
1. Open your appConfig_ projectLayer file, and locate the top-level <application> node.
2. Copy and paste or enter the complete <mailSettings> definition, as in the following example. You
can include the code comments.
<application id="yourProjectLayer">
<description>yourProjectLayer</description>
<buildTargets />
<database>
<driver>SQLSERVER</driver>
<sqlsyntax>SQLSERVER</sqlsyntax>
<connectString>Network Library=DBMSSOCN;Data Source=localhost,1433;Initial
Catalog=DbName;
User ID=yourUserID;Password=yourPassword;Application Name=AVM</connectString>
<connectStringForSsas>[Connection string that allows SSAS to connect to Avocet DB]
</connectStringForSsas>
</database>
<mailSettings>
<!-- For details, see http://msdn.microsoft.com/en-us/library/ms164240(v=vs.110).aspx -->
<smtp from="[Specify the from address for outgoing e-mails]">
<network host="[Specify the hostname of the SMTP mail server to use for SMTP transactions]"
/>
<!-- Optional parameters, see:
http://msdn.microsoft.com/en-us/library/ms164242(v=vs.110).aspx
defaultCredentials="Specifies whether the default user credentials should be used
to access the SMTP mail server for SMTP transactions. The default value is false."
enableSsl="Specifies whether SSL is used to access an SMTP mail server.
The default value is false."
password="Specifies the password to use for authentication to the SMTP mail server.
This attribute has no default value."
port="Specifies the port number to use to connect to the SMTP mail server.
The default value is 25."
targetName="Specifies the Service Provider Name (SPN) to use for authentication
65