Smart Grid Applications Overview > Smart Operations Solution > AMI Integration > Set Up Oracle Database |
Version: 10.1 |
Before starting AMI configuration, you will need to run several scripts that generate tables as well as configure existing tables to support AMI events. Follow the steps on this page to run these scripts.
By default, the scripts are installed in the following location: C:\Program Files (x86)\Miner and Miner\Responder\Developer Resources\Implementation Scripts\Oracle\Addons.
These scripts must be run in the order listed.
Script | Description |
---|---|
SmartGridAMI_01_ConfigureServicePoints.bat |
DO NOT run this script. It converts a field on the ServicePint feature class to use Esri's ST_Geometry data type. Esri does not support a combination of ST_Geometry and blob data types. This script will be removed from future versions. |
SmartGridAMI_02_CreateStateStore.sql |
Script requires modification. Creates the schema for AMI state store. |
SmartGridAMI_03_LoadStateStore.sql |
Script requires modification. Loads the AMI state store from the Responder RX_CUSTOMERS table and the ServicePoint_ST feature class. |
SmartGridAMI_04_RegisterAMIEvents.bat |
Configures the necessary ArcSDE components necessary to support AMI events. |
SmartGridAMI_05_CreateConfigStore.sql |
Creates the Configuration table for centralized configuration. |
SmartGridAMI_05a_LoadEventMapping2010.sql |
Run this script only if you are implementing Responder AMI 10.0.2, which leverages the event types defined in the CIM 61968-9 standard tested in the January, 2010. Do not run this script if you have run or plan to run other scripts that load event types (for example, SmartGridAMI_05a_LoadEventMapping201111.sql). |
SmartGridAMI_05a_LoadEventMapping201111.sql |
Run this script only if you are implementing Responder AMI 10.0.3 or greater, which leverages the event types defined in the CIM 61968-9 2nd Ed. standard tested in November, 2011. Do not run this script if you have run or plan to run other scripts that load event types (for example, SmartGridAMI_05a_LoadEventMapping201110.sql). |
SmartGridAMI_06_LoadConfigStore.sql |
Loads initial values for centralized configuration. |
SmartGridAMI_07_LoadConfigRole.sql |
Creates the Smartgrid Administrator role and assigns it to the administrator user. |
SmartGridAMI_08_RefreshStateStore.sql |
Refreshes the state store based on changes that may have occurred in the ServicePointFeature class or the RX_CUSTOMERS table. |
Disassociate ST_Domain_Operators Package |
This is not a script, but a set of steps outlined at the bottom of this page. These steps disassociate the st_domain_operators package from the st_domain_stats statistics type. |
Use the following steps to run the scripts listed above. Use an application such as SQL Plus to execute these scripts.
Before you begin the set-up process using the scripts described on this page, it is important to first make a backup of the database. |
This script creates the AMI tables in the geodatabase. The following pre-requisites exist:
Before executing this script, you'll need the following information.
To edit and then execute this script, follow the steps outlined below.
/* SET THESE VARIABLES PER SmartGridAMI_01_ConfigureServicePoints.bat OUTPUT! */
SERVICEPOINT_OWNER varchar2(160):='ELECDIST';
RX_CUSTOMERS_OWNER varchar2(160):='RESPONDER';
MULTIVERSIONED_VIEW_NAME varchar2(32):='SERVICEPOINT_MV';
AMI_DATA_TABLESPACE varchar2(30):='SMARTGRID';
AMI_INDEX_TABLESPACE varchar2(30):='SMARTGRID';
Values in the Meter field of the RX_CUSTOMERS table must be unique. Before executing this next script, ensure that there ar no duplicate values in this field. Before executing SmartGridAMI_03_LoadStateStore.sql, you'll need the following information.
Follow the steps below to edit the SmartGridAMI_03_LoadStateStore.sql script before executing it.
/* SET THESE VARIABLES PER SmartGridAMI_01_ConfigureServicePoints.bat OUTPUT! */
SERVICEPOINT_OWNER varchar2(160):='ELECDIST';
RX_CUSTOMERS_OWNER varchar2(160):='RESPONDER';
AUTH_SRID number:=4;
SPATIAL_INDEX number:=234.26326642411;
This script registers the AMI_Events database view as a layer with ArcSDE. It also grants View permissions to the owner of the AMI objects so that it can be viewed in ArcMap. This script requires some modification. The script will prompt you to provide the following information:
Follow the steps below to execute the script:
This script creates a centralized configuration schema for the Responder AMI integration. Login as owner of the Responder tables (e.g., responder) and run SmartGridAMI_05_CreateConfigStore.sql in an application such as SQL Plus.
This script loads the initial values into the centralized configuration (Configuration Manager) of the Responder AMI integration. The settings this script loads into the Configuration Manager may not be accurate for your system. However, you will modify these initial values in the Configuration Manager in a future step.
Execute the script as the owner of the Responder tables (e.g., responder). You can use an application such as SQL Server Client or SQL Server Management Studio.
This script creates a Responder security role for the administrator user required by the Responder AMI integration. Login as the owner of the Responder tables (e.g., Responder). Run SmartGridAMI_07_LoadConfigRole.sql in an application such as SQL Plus.
This script refreshes the AMI state store table based on changes that may have occurred in the ServicePoint feature class or the RX_CUSTOMERS table. Login as owner of the AMI tables (e.g., smartgrid) and run SmartGridAMI_08_RefreshStateStore.sql in an application such as SQL Plus.
This step should be performed only after all of the previous scripts have been succesfully executed. To disassociate the st_domain_operators package from the st_domain_stats type, execute the following command as the SDE user:
SQL> DISASSOCIATE STATISTICS FROM PACKAGES st_domain_operators;
Esri provides additional information on this process: Disassociate the st_domain_operators from the st_domain_stats type in Oracle.