Search Results prev_net_reading
Overview
OKX_COUNTER_VALUES_V is a reporting and integration view owned by the APPS schema within the OKX – Contracts Integration product of Oracle E-Business Suite. It exposes the historical readings of counters, providing a flattened, query-friendly representation of counter measurement data captured against contracts and related service points. The view is documented as VALID and carries a description of "Historical readings of counters," indicating its purpose as a read-only projection rather than a transactional entity.
The view is particularly relevant to users and integrators who search for the PREV_NET_READING attribute, which appears as a native column in the view's projection. This column supports comparison of a current net reading against its immediate predecessor, enabling consumption, usage, and delta calculations that are central to metered contract billing. Because OKX is the Contracts Integration module, the view frequently serves as a bridge between operational counter capture and downstream contract rating, pricing, and usage-based invoicing processes.
Underlying Base Objects
The view text selects all its columns from a single source object, CS_COUNTER_VALUES, aliased as CV. Within the EBS 12.1.1 / 12.2.2 environment, CS_COUNTER_VALUES is referenced through a synonym that resolves to the actual counter values base table. The documented referenced base objects for the view are CSI_COUNTER_READINGS_PVT (a PL/SQL package) and CS_COUNTER_VALUES (synonym).
The relationship to CSI_COUNTER_READINGS_PVT reflects the fact that counter readings in the CSI/CS schema family are typically written and maintained through this packaged API. The view therefore presents persisted results of reading capture performed by that package, rather than generating new logic of its own. Two columns in the projection — SEQ_NO and PREV_NET_CURR_DIFF — are returned as TO_NUMBER(NULL), meaning the view intentionally surfaces these as placeholders with no stored value, consistent with a simplified historical projection.
Key Columns
COUNTER_VALUE_ID— Primary identifier for each counter value record.COUNTER_GRP_LOG_ID— Links the reading to its counter group log, grouping related readings.COUNTER_ID— Identifies the specific counter being measured.VALUE_TIMESTAMP— The date and time at which the reading was taken.SEQ_NO— Exposed as NULL in this view; sequence assignment is not persisted here.COUNTER_READING— The raw counter reading as captured.RESET_FLAGandRESET_REASON— Indicate that a counter was reset and the reason for the reset.PRE_RESET_LAST_RDG/POST_RESET_FIRST_RDG— Readings straddling a reset, used to reconcile usage across resets.MISC_READING_TYPEandMISC_READING— Supplementary reading categories and values.PREV_NET_CURR_DIFF— Exposed as NULL; the net difference is not stored in this projection.NET_READING— The net counter reading, typically adjusted for rollovers or resets.PREV_NET_READING— The previous net reading, which is the attribute most commonly queried for period-over-period comparison.
Common Use Cases and Queries
Typical scenarios include retrieving the reading history for a given counter within a time range, detecting resets, and computing usage as the difference between NET_READING and PREV_NET_READING. A representative query is:
SELECT counter_id, value_timestamp, net_reading, prev_net_reading,
(net_reading - prev_net_reading) AS usage
FROM apps.okx_counter_values_v
WHERE counter_id = :p_counter_id
ORDER BY value_timestamp;
For reset analysis, filtering on RESET_FLAG = 'Y' and examining PRE_RESET_LAST_RDG and POST_RESET_FIRST_RDG clarifies whether a gap in usage reflects a genuine reset. Because SEQ_NO and PREV_NET_CURR_DIFF are NULL, usage calculations should rely on PREV_NET_READING rather than the placeholder columns.
-
View: OKX_COUNTER_VALUES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_COUNTER_VALUES_V, object_name:OKX_COUNTER_VALUES_V, status:VALID, product: OKX - Contracts Integration , description: Historical readings of counters , implementation_dba_data: APPS.OKX_COUNTER_VALUES_V ,
-
View: OKX_COUNTER_VALUES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_COUNTER_VALUES_V, object_name:OKX_COUNTER_VALUES_V, status:VALID, product: OKX - Contracts Integration , description: Historical readings of counters , implementation_dba_data: APPS.OKX_COUNTER_VALUES_V ,
-
VIEW: APPS.OKX_COUNTER_VALUES_V
12.1.1
-
VIEW: APPS.OKX_COUNTER_VALUES_V
12.2.2
-
View: CSI_COUNTER_READINGS_BCV_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:CSI.CSI_COUNTER_READINGS_BCV_V, object_name:CSI_COUNTER_READINGS_BCV_V, status:VALID, product: CSI - Install Base , description: Backward compatible view for CS_CTR_COUNTER_VALUES_V , implementation_dba_data: APPS.CSI_COUNTER_READINGS_BCV_V ,
-
View: CS_CTR_COUNTER_READINGS_V
12.2.2
product: CS - Service , description: Counter reading view , implementation_dba_data: Not implemented in this database ,
-
VIEW: APPS.CSI_COUNTER_READINGS_BC_V
12.2.2
-
View: CS_CTR_COUNTER_VALUES_V
12.2.2
product: CS - Service , description: Counter values view , implementation_dba_data: Not implemented in this database ,
-
VIEW: APPS.CSI_COUNTER_READINGS_BC_V
12.1.1
-
VIEW: APPS.OKX_COUNTER_VALUES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_COUNTER_VALUES_V, object_name:OKX_COUNTER_VALUES_V, status:VALID,
-
VIEW: APPS.OKX_COUNTER_VALUES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_COUNTER_VALUES_V, object_name:OKX_COUNTER_VALUES_V, status:VALID,
-
View: CS_CTR_COUNTER_VALUES_V
12.1.1
product: CS - Service , description: Counter values view , implementation_dba_data: Not implemented in this database ,
-
View: CSI_COUNTER_READINGS_BCV_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:CSI.CSI_COUNTER_READINGS_BCV_V, object_name:CSI_COUNTER_READINGS_BCV_V, status:VALID, product: CSI - Install Base , description: Backward compatible view for CS_CTR_COUNTER_VALUES_V , implementation_dba_data: APPS.CSI_COUNTER_READINGS_BCV_V ,
-
View: CS_CTR_COUNTER_READINGS_V
12.1.1
product: CS - Service , description: Counter reading view , implementation_dba_data: Not implemented in this database ,
-
VIEW: APPS.CSI_COUNTER_READINGS_BCV_V
12.2.2
-
VIEW: APPS.CSI_COUNTER_READINGS_BC_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:CSI.CSI_COUNTER_READINGS_BC_V, object_name:CSI_COUNTER_READINGS_BC_V, status:VALID,
-
VIEW: APPS.CSI_COUNTER_READINGS_BCV_V
12.1.1
-
VIEW: APPS.CSI_COUNTER_READINGS_BC_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:CSI.CSI_COUNTER_READINGS_BC_V, object_name:CSI_COUNTER_READINGS_BC_V, status:VALID,
-
VIEW: APPS.CSI_COUNTER_READINGS_BCV_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:CSI.CSI_COUNTER_READINGS_BCV_V, object_name:CSI_COUNTER_READINGS_BCV_V, status:VALID,
-
VIEW: APPS.CSI_COUNTER_READINGS_BCV_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:CSI.CSI_COUNTER_READINGS_BCV_V, object_name:CSI_COUNTER_READINGS_BCV_V, status:VALID,
-
APPS.OKC_CNL_PVT SQL Statements
12.2.2
-
APPS.OKC_CNL_PVT SQL Statements
12.1.1
-
APPS.OKC_CNL_PVT dependencies on OKX_COUNTERS_V
12.1.1
-
APPS.OKC_CNL_PVT dependencies on OKX_COUNTERS_V
12.2.2
-
PACKAGE BODY: APPS.OKC_CNL_PVT
12.1.1
-
PACKAGE BODY: APPS.OKC_CNL_PVT
12.2.2
-
eTRM - OKX Tables and Views
12.2.2
-
eTRM - OKX Tables and Views
12.1.1
-
eTRM - CSI Tables and Views
12.2.2
description: Temporary table that holds the unprocessed XNP messages during data correction process. ,
-
eTRM - CSI Tables and Views
12.1.1
description: Temporary table that holds the unprocessed XNP messages during data correction process. ,