Search Results required_date_to
Overview
OTFV_OVERBOOKED_RESOURCES is a business view template shipped in the APPS schema within the OTA – Learning Management module of Oracle E-Business Suite (validated against 12.1.1 and 12.2.2). The view is generated from a flexfield view template, meaning its structure is intended to be adapted for descriptive flexfield-based reporting rather than consumed as a fixed application interface. Its purpose is narrow and diagnostic: it identifies non-consumable supplied resources that have been booked more than once across overlapping date ranges — in other words, resources that have been overbooked.
The view is read-only (defined with the WITH READ ONLY clause), so it cannot be used as an updateable entity in forms or DML. It is relevant for reporting and integration scenarios where a functional user or developer needs to audit resource allocation conflicts after the fact, rather than prevent them at booking time.
Underlying Base Objects
The documented base objects referenced by the view are:
- OTA_GENERAL (PACKAGE) — supplies OTA_GENERAL.GET_BUSINESS_GROUP_ID, used to restrict rows to the caller's current business group (or to allow all business groups when the function returns NULL).
- OTA_RESOURCE_BOOKINGS (SYNONYM) — aliased as TRB (and TRB1/TRB2 in the correlated subqueries); the booking transaction table that records each resource reservation with required dates.
- OTA_SUPPLIABLE_RESOURCES (SYNONYM) — aliased as TSR; the master list of resources that may be supplied/consumed. The view joins this via SUPPLIED_RESOURCE_ID.
- OTA_SUPPLIABLE_RESOURCES_TL (SYNONYM) — the translated (language) table for suppliable resources; the view's NAME attribute ultimately draws from this type of source through the resource definition.
The core join is between TSR and TRB on SUPPLIED_RESOURCE_ID, filtered to TSR.CONSUMABLE_FLAG = 'N' (i.e., discrete/non-consumable resources such as rooms, equipment, or instructors, not consumable materials). The overbooking detection applies a correlated COUNT(*) subquery requiring at least two overlapping bookings, expressed as a UNION of two symmetric overlap conditions comparing TRUNC(REQUIRED_DATE_FROM) and TRUNC(REQUIRED_DATE_TO) ranges. Because the two branches test the from-date/from-date and to-date/to-date relationships in opposite directions, they together determine temporal overlap. The read-only, UNION-based structure is characteristic of a template that a DBA may regenerate or expose as a flexfield-enabled view.
Key Columns
- RESOURCE_NAME — the name of the suppliable resource (from OTA_SUPPLIABLE_RESOURCES / _TL), identifying which resource is overbooked.
- RESOURCE_BOOKING_ID — the primary identifier of a booking row in OTA_RESOURCE_BOOKINGS. This is the column the user queried ("resource_booking_id") and is the natural key for drilling back into the booking record for details.
- SUPPLIED_RESOURCE_ID — the identifier linking the booking to the suppliable resource master, and the join key used in both the main query and the overlap subqueries.
Because the view is a template, it exposes only these three columns; typical flexfield-generated variants may rename them or add additional business-group and context columns.
Common Use Cases and Queries
The principal use case is scheduling and resource-conflict auditing in OTA Learning Management: a report or concurrent program runs this view to flag resources double-booked within overlapping windows so that schedulers can resolve conflicts, reassign rooms/instructors, or notify affected classes.
A representative query returning booking identifiers for overbooked resources is:
- SELECT resource_booking_id, resource_name, supplied_resource_id FROM apps.otfv_overbooked_resources ORDER BY resource_name;
- SELECT resource_booking_id FROM apps.otfv_overbooked_resources WHERE supplied_resource_id = :p_supplied_resource_id;
- SELECT r.resource_booking_id, r.resource_name, b.required_date_from, b.required_date_to FROM apps.otfv_overbooked_resources r, apps.ota_resource_bookings b WHERE r.resource_booking_id = b.resource_booking_id;
Because GET_BUSINESS_GROUP_ID governs row visibility, callers must ensure the correct business group is set before querying to avoid missing or misattributed rows. As with any template view, all access should be treated as read-only.
-
View: OTFV_OVERBOOKED_RESOURCES
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OTA.OTFV_OVERBOOKED_RESOURCES, object_name:OTFV_OVERBOOKED_RESOURCES, status:VALID, product: OTA - Learning Management , description: Business view template from which the flexfield view is generated. , implementation_dba_data: APPS.OTFV_OVERBOOKED_RESOURCES ,
-
View: OTFV_OVERBOOKED_RESOURCES
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OTA.OTFV_OVERBOOKED_RESOURCES, object_name:OTFV_OVERBOOKED_RESOURCES, status:VALID, product: OTA - Learning Management , description: Business view template from which the flexfield view is generated. , implementation_dba_data: APPS.OTFV_OVERBOOKED_RESOURCES ,
-
View: OTA_RESOURCE_BOOKINGS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OTA.OTA_RESOURCE_BOOKINGS_V, object_name:OTA_RESOURCE_BOOKINGS_V, status:VALID, product: OTA - Learning Management , description: View to list all resource bookings. , implementation_dba_data: APPS.OTA_RESOURCE_BOOKINGS_V ,
-
View: OTA_RESOURCE_BOOKINGS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OTA.OTA_RESOURCE_BOOKINGS_V, object_name:OTA_RESOURCE_BOOKINGS_V, status:VALID, product: OTA - Learning Management , description: View to list all resource bookings. , implementation_dba_data: APPS.OTA_RESOURCE_BOOKINGS_V ,