| Name | Daily_Prod_Vol_DOV |
|---|---|
| Entity Type | ObjectView |
| Description | Data Object View. The Daily Prod Vol DOV provides information about daily allocated production volumes and hours of production from a well for each of oil, water, condensate, and gas. |
| Submodel | Data_Object |
| Entity Scope | Project |
| Primary Key | Id |
| Natural Key | |
| Generalizations | |
| Specializations |
| Name | Value Domain / Measurement | Description | Required / Default | Type |
|---|---|---|---|---|
| Borehole_Id | Borehole |
READ ONLY: Unique identifier for the Borehole. | No |
NUMBER(38) |
| Borehole_Name | ENTITY_NAME NA |
The name given to any object or data item, e.g. Name of Well, Name of Field, etc. | No |
VARCHAR2(255) |
| Completion_Name | ENTITY_NAME NA |
The name given to any object or data item, e.g. Name of Well, Name of Field, etc. | Yes |
VARCHAR2(255) |
| Condensate_Hours_On | double Time |
The amount of time the specified material was being produced during the specified reporting period. | No |
NUMBER |
| Condensate_Volume | double Volume |
The volume of the material. | No |
NUMBER |
| Condensate_Volume_Id | Production_Volume |
READ ONLY: Unique identifier for the Condensate Volume record. | No |
NUMBER(38) |
| Gas_Hours_On | double Time |
The amount of time the specified material was being produced during the specified reporting period. | No |
NUMBER |
| Gas_Volume | double Volume |
The volume of the material. | No |
NUMBER |
| Gas_Volume_Id | Production_Volume |
READ ONLY: Unique identifier for the Gas Volume record. | No |
NUMBER(38) |
| Id | ID No_Unit |
Unique identifier for this entity. | Yes |
NUMBER(38) |
| Insert_Date | DATE NA |
Date the entity was created in the repository | No |
DATE |
| Insert_User | STRING64 NA |
The name of the user responsible for the creation of this entity in the repository. | No |
VARCHAR2(64) |
| Oil_Hours_On | double Time |
The amount of time the specified material was being produced during the specified reporting period. | No |
NUMBER |
| Oil_Volume | double Volume |
The volume of the material. | No |
NUMBER |
| Oil_Volume_Id | Production_Volume |
READ ONLY: Unique identifier for the Oil Volume record. | No |
NUMBER(38) |
| Production_Date | DATE NA |
The date/time that represents the beginning of the production data set reporting period. | Yes |
DATE |
| Production_Entity_Id | Production_Entity |
READ ONLY: Unique identifier for the production entity. | No |
NUMBER(38) |
| Remarks | REMARKS_STR NA |
Any type of remarks added to an entity instance. | No |
VARCHAR2(999) |
| Tubing_String_Id | Tubing_String |
READ ONLY: Unique identifier for the Tubing String. | No |
NUMBER(38) |
| Tubing_String_Name | ENTITY_NAME NA |
READ ONLY: The name given to any object or data item, e.g. Name of Well, Name of Field, etc. | No |
VARCHAR2(255) |
| UBHI | WELL_IDENTIFIER NA |
The Unique Identifier assigned to a borehole | Yes |
VARCHAR2(64) |
| Water_Hours_On | double Time |
The amount of time the specified material was being produced during the specified reporting period. | No |
NUMBER |
| Water_Volume | double Volume |
The volume of the material. | No |
NUMBER |
| Water_Volume_Id | Production_Volume |
READ ONLY: Unique identifier for the Water Volume record. | No |
NUMBER(38) |
| Well_Completion_Id | Well_Completion |
READ ONLY: Unique identifier for the Well Completion. | No |
NUMBER(38) |
| Link | To Entity | Description | Implementation Technique | Required |
|---|---|---|---|---|
| Borehole | Borehole | READ ONLY: Unique identifier for the Borehole. | Cascade | No |
| Well_Completion | Well_Completion | READ ONLY: Unique identifier for the Well Completion. | Cascade | No |
| Production_Entity | Production_Entity | READ ONLY: Unique identifier for the production entity. | Cascade | No |
| Condensate_Volume | Production_Volume | READ ONLY: Unique identifier for the Condensate Volume record. | Cascade | No |
| Oil_Volume | Production_Volume | READ ONLY: Unique identifier for the Oil Volume record. | Cascade | No |
| Water_Volume | Production_Volume | READ ONLY: Unique identifier for the Water Volume record. | Cascade | No |
| Gas_Volume | Production_Volume | READ ONLY: Unique identifier for the Gas Volume record. | Cascade | No |
| Tubing_String | Tubing_String | READ ONLY: Unique identifier for the Tubing String. | Nullify | No |
CREATE OR REPLACE VIEW Daily_Prod_Vol_DOV(ID, UBHI, BOREHOLE_NAME, COMPLETION_NAME, TUBING_STRING_NAME, PRODUCTION_DATE, OIL_VOLUME, OIL_HOURS_ON, WATER_VOLUME, WATER_HOURS_ON, GAS_VOLUME, GAS_HOURS_ON, CONDENSATE_VOLUME, CONDENSATE_HOURS_ON, REMARKS, INSERT_DATE, INSERT_USER, BOREHOLE_ID, WELL_COMPLETION_ID, PRODUCTION_ENTITY_ID, TUBING_STRING_ID, OIL_VOLUME_ID, WATER_VOLUME_ID, GAS_VOLUME_ID, CONDENSATE_VOLUME_ID) AS SELECT
ph.Id Id,
bh.UBHI UBHI,
bh.Name Borehole_Name,
wc.name Completion_Name,
ts.name Tubing_String_Name,
ph.start_date Production_Date,
pv_oil.volume Oil_Volume,
pv_oil.productive_duration/3600 Oil_Hours_On,
pv_water.volume Water_Volume,
pv_water.productive_duration/3600 Water_Hours_On,
pv_gas.volume
Gas_Volume,
pv_gas.productive_duration/3600 Gas_Hours_On,
pv_condensate.volume Condensate_Volume,
pv_condensate.productive_duration/3600 Condensate_Hours_On,
ph.remarks Remarks,
ph.insert_date Insert_Date,
ph.insert_user Insert_User,
bh.Id Borehole_Id,
wc.Id Well_Completion_Id,
pe.Id Production_Entity_Id,
ts.Id Tubing_String_Id,
pv_oil.Id Oil_Volume_Id,
pv_water.Id Water_Volume_Id,
pv_gas.Id Gas_Volume_Id,
pv_condensate.Id Condensate_Volume_Id
from production_header ph,
borehole bh,
well_completion wc,
tubing_string ts,
production_entity pe,
production_volume pv_oil,
production_volume pv_water,
production_volume pv_gas,
production_volume pv_condensate
where bh.id = wc.borehole_id
and pe.well_completion_id = wc.id
and ph.production_entity_id = pe.id
and ph.Volume_Method_Code = 'Allocated'
and ph.Reporting_Period_Code = 'Daily'
and ph.Version = '1'
and wc.tubing_string_id = ts.id(+)
and ph.id = pv_oil.production_header_id (+)
and pv_oil.material_type(+) = 'Oil'
and pv_oil.flow_direction_code(+) = 'Out'
and ph.id = pv_water.production_header_id (+)
and pv_water.material_type(+) = 'Water'
and pv_water.flow_direction_code(+) = 'Out'
and ph.id = pv_gas.production_header_id (+)
and pv_gas.material_type(+) = 'Gas'
and pv_gas.flow_direction_code(+) = 'Out'
and ph.id = pv_condensate.production_header_id (+)
and pv_condensate.material_type(+) = 'Condensate'
and pv_condensate.flow_direction_code(+) = 'Out'
|