Columns

Constraints

Grants

Statistics

Triggers

Dependencies

Details

Partitions

Indexes


COLUMN_NAME DATA_TYPE NULLABLE DATA_DEFAULT COLUMN_ID COMMENTS
UR_IDENTIFIER NUMBER(9,0) No null 1 System-generated unique identifier for this Protection Unit resource record (sequence: SIT209_SEQ).
DONWCGU_PROT_UNIT_IDENTIFIER NUMBER(9,0) No null 2 FK to DISPATCH_OFFICE_NWCG_UNITS for Protection Unit consuming this resource.
NWCGAG_IDENTIFIER NUMBER(9,0) No null 3 FK to commondata.NWCG_AGENCIES for the Agency providing the resource to this Protection Unit.
RDATE DATE No null 4 The reporting date for this Protection Unit resource record.
RTYPE_IDENTIFIER NUMBER(9,0) No null 5 The identifier (FK to SIT209_LOOKUP_CODES) of the type of resource provided to this Protection Unit.
AVAILABLE NUMBER(4,0) Yes null 6 The quantity of resource of this type available from an Agency to this Protection Unit on a given date.
COMMITTED NUMBER(4,0) Yes null 7 The quantity of resource of this type committed from an Agency to this Protection Unit on a given date.
CREATED_BY VARCHAR2(30 BYTE) No null 8 The FAMWEB user that created this record.  This is an audit column that will most generally be populated via row-level database trigger(s).
CREATED_DATE DATE No null 9 The date this record was created.  This is an audit column that will most generally be populated via row-level database trigger(s).
LAST_MODIFIED_BY VARCHAR2(30 BYTE) No null 10 The FAMWEB user that last modified this record.  This column will also reflect the created_by user between the time of record creation (insert) and next modification (update).  This is an audit column that will most generally be populated via row-level database trigger(s).
LAST_MODIFIED_DATE DATE No null 11 The date this record was last modified.  This column will also reflect the created_date between the time of record creation (insert) and next modification (update).  This is an audit column that will most generally be populated via row-level database trigger(s).
CONSTRAINT_NAME CONSTRAINT_TYPE SEARCH_CONDITION R_OWNER R_TABLE_NAME R_CONSTRAINT_NAME DELETE_RULE STATUS DEFERRABLE VALIDATED GENERATED BAD RELY LAST_CHANGE INDEX_OWNER INDEX_NAME INVALID VIEW_RELATED
SYS_C00208376 Check "UR_IDENTIFIER" IS NOT NULL null null null null ENABLED NOT DEFERRABLE VALIDATED GENERATED NAME null null 13-DEC-12 10:15:07 null null null null
SYS_C00208377 Check "DONWCGU_PROT_UNIT_IDENTIFIER" IS NOT NULL null null null null ENABLED NOT DEFERRABLE VALIDATED GENERATED NAME null null 13-DEC-12 10:15:07 null null null null
SYS_C00208378 Check "NWCGAG_IDENTIFIER" IS NOT NULL null null null null ENABLED NOT DEFERRABLE VALIDATED GENERATED NAME null null 13-DEC-12 10:15:07 null null null null
SYS_C00208379 Check "RDATE" IS NOT NULL null null null null ENABLED NOT DEFERRABLE VALIDATED GENERATED NAME null null 13-DEC-12 10:15:07 null null null null
SYS_C00208380 Check "RTYPE_IDENTIFIER" IS NOT NULL null null null null ENABLED NOT DEFERRABLE VALIDATED GENERATED NAME null null 13-DEC-12 10:15:07 null null null null
SYS_C00208381 Check "CREATED_BY" IS NOT NULL null null null null ENABLED NOT DEFERRABLE VALIDATED GENERATED NAME null null 13-DEC-12 10:15:07 null null null null
SYS_C00208382 Check "CREATED_DATE" IS NOT NULL null null null null ENABLED NOT DEFERRABLE VALIDATED GENERATED NAME null null 13-DEC-12 10:15:07 null null null null
SYS_C00208383 Check "LAST_MODIFIED_BY" IS NOT NULL null null null null ENABLED NOT DEFERRABLE VALIDATED GENERATED NAME null null 13-DEC-12 10:15:07 null null null null
SYS_C00208384 Check "LAST_MODIFIED_DATE" IS NOT NULL null null null null ENABLED NOT DEFERRABLE VALIDATED GENERATED NAME null null 13-DEC-12 10:15:07 null null null null
UR_LUCODES_RTYPE_FK Foreign_Key null SIT209 SIT209_LOOKUP_CODES LUCODES_PK NO ACTION ENABLED NOT DEFERRABLE VALIDATED USER NAME null null 13-DEC-12 10:15:15 null null null null
UR_NWCGAG_FK Foreign_Key null COMMONDATA NWCG_AGENCIES NWCGAG_PK NO ACTION ENABLED NOT DEFERRABLE VALIDATED USER NAME null null 13-DEC-12 10:15:14 null null null null
UR_NWCG_PROT_UNIT_FK Foreign_Key null SIT209 DISPATCH_OFFICE_NWCG_UNITS DONWCGU_PK NO ACTION ENABLED NOT DEFERRABLE VALIDATED USER NAME null null 13-DEC-12 10:15:15 null null null null
UR_PK Primary_Key null null null null null ENABLED NOT DEFERRABLE VALIDATED USER NAME null null 13-DEC-12 10:15:07 SIT209 UR_PK null null
UR_UK Unique null null null null null ENABLED NOT DEFERRABLE VALIDATED USER NAME null null 13-DEC-12 10:15:07 SIT209 UR_UK null null



Columns


COLUMN_NAME COLUMN_POSITION
UR_IDENTIFIER null
COLUMN_NAME COLUMN_POSITION
DONWCGU_PROT_UNIT_IDENTIFIER null
COLUMN_NAME COLUMN_POSITION
NWCGAG_IDENTIFIER null
COLUMN_NAME COLUMN_POSITION
RDATE null
COLUMN_NAME COLUMN_POSITION
RTYPE_IDENTIFIER null
COLUMN_NAME COLUMN_POSITION
CREATED_BY null
COLUMN_NAME COLUMN_POSITION
CREATED_DATE null
COLUMN_NAME COLUMN_POSITION
LAST_MODIFIED_BY null
COLUMN_NAME COLUMN_POSITION
LAST_MODIFIED_DATE null
COLUMN_NAME COLUMN_POSITION
RTYPE_IDENTIFIER 1
COLUMN_NAME COLUMN_POSITION
NWCGAG_IDENTIFIER 1
COLUMN_NAME COLUMN_POSITION
DONWCGU_PROT_UNIT_IDENTIFIER 1
COLUMN_NAME COLUMN_POSITION
UR_IDENTIFIER 1
COLUMN_NAME COLUMN_POSITION
DONWCGU_PROT_UNIT_IDENTIFIER 1
NWCGAG_IDENTIFIER 2
RDATE 3
RTYPE_IDENTIFIER 4
PRIVILEGE GRANTEE GRANTABLE GRANTOR OBJECT_NAME
DELETE IMSRMGR NO SIT209 UNIT_RESOURCES
INSERT IMSRMGR NO SIT209 UNIT_RESOURCES
SELECT IMSRMGR NO SIT209 UNIT_RESOURCES
UPDATE IMSRMGR NO SIT209 UNIT_RESOURCES
SELECT FAMWEB_ETL NO SIT209 UNIT_RESOURCES
SELECT FAMWEBREADONLY NO SIT209 UNIT_RESOURCES
NAME VALUE
NUM_ROWS 0
BLOCKS 0
AVG_ROW_LEN 0
SAMPLE_SIZE 0
LAST_ANALYZED 11-DEC-13 22:00:36
LAST_ANALYZED_SINCE 11-DEC-13 22:00:36



Column Statistics


TRIGGER_NAME TRIGGER_TYPE TRIGGER_OWNER TRIGGERING_EVENT STATUS TABLE_NAME
BRIU_XVALIDTN_UR_TRG BEFORE EACH ROW SIT209 INSERT OR UPDATE ENABLED UNIT_RESOURCES
BRI_UR_TRG BEFORE EACH ROW SIT209 INSERT ENABLED UNIT_RESOURCES
BRIU_AUDIT_UR_TRG BEFORE EACH ROW SIT209 INSERT OR UPDATE ENABLED UNIT_RESOURCES




TRIGGER SIT209.BRIU_XVALIDTN_UR_TRG
 BEFORE
  INSERT OR UPDATE
 ON SIT209.UNIT_RESOURCES
REFERENCING NEW AS NEW OLD AS OLD
 FOR EACH ROW
BEGIN
  if Inserting or Updating then
    begin
      -- Enforce cross-validation rules
      --if :new.available is null and :new.committed is null then
      --  raise_application_error(-20901,'Either Available or Committed Resource Quantities must be specified (both cannot be null).');
      --end if;
      null;
    end;
  end if;
END;
TRIGGER SIT209.BRI_UR_TRG
 BEFORE
  INSERT
 ON SIT209.UNIT_RESOURCES
REFERENCING NEW AS NEW OLD AS OLD
 FOR EACH ROW
BEGIN
  if Inserting then
    -- Set UR_IDENTIFIER on insert if not supplied.
    begin
      if :new.ur_identifier IS NULL then
        :new.ur_identifier := sit209.sit209_util.getNextKeyValue('SIT209.SIT209_SEQ');
      end if;
    end;
  end if;
END;
TRIGGER SIT209.BRIU_AUDIT_UR_TRG
 BEFORE
  INSERT OR UPDATE
 ON SIT209.UNIT_RESOURCES
REFERENCING NEW AS NEW OLD AS OLD
 FOR EACH ROW
DECLARE
  vAction varchar2(30) := null;
BEGIN
  if Inserting then
    vAction := 'inserting';
  elsif Updating then
    vAction := 'updating';
  end if;
  sit209.sit209_util.setAuditColumns(:new.created_by,
                                     :new.created_date,
                                     :new.last_modified_by,
                                     :new.last_modified_date,
                                     vAction);
END;
OWNER NAME TYPE REFERENCED_OWNER REFERENCED_NAME REFERENCED_TYPE
SIT209 BRIU_XVALIDTN_UR_TRG TRIGGER SIT209 UNIT_RESOURCES TABLE
SIT209 BRIU_AUDIT_UR_TRG TRIGGER SIT209 UNIT_RESOURCES TABLE
SIT209 BRI_UR_TRG TRIGGER SIT209 UNIT_RESOURCES TABLE



References


OWNER NAME TYPE REFERENCED_OWNER REFERENCED_NAME REFERENCED_TYPE
OWNER NAME TYPE REFERENCED_OWNER REFERENCED_NAME REFERENCED_TYPE
OWNER NAME TYPE REFERENCED_OWNER REFERENCED_NAME REFERENCED_TYPE
NAME VALUE
CREATED 13-DEC-12 10:15:07
LAST_DDL_TIME 04-JAN-18 16:41:16
OWNER SIT209
TABLE_NAME UNIT_RESOURCES
TABLESPACE_NAME SIT209_DATA
CLUSTER_NAME null
IOT_NAME null
STATUS VALID
PCT_FREE 10
PCT_USED null
INI_TRANS 1
MAX_TRANS 255
INITIAL_EXTENT 65536
NEXT_EXTENT null
MIN_EXTENTS 1
MAX_EXTENTS 2147483645
PCT_INCREASE null
FREELISTS null
FREELIST_GROUPS null
LOGGING YES
BACKED_UP N
NUM_ROWS 0
BLOCKS 0
EMPTY_BLOCKS 0
AVG_SPACE 0
CHAIN_CNT 0
AVG_ROW_LEN 0
AVG_SPACE_FREELIST_BLOCKS 0
NUM_FREELIST_BLOCKS 0
DEGREE 1
INSTANCES 1
CACHE N
TABLE_LOCK ENABLED
SAMPLE_SIZE 0
LAST_ANALYZED 11-DEC-13 22:00:36
PARTITIONED NO
IOT_TYPE null
OBJECT_ID_TYPE null
TABLE_TYPE_OWNER null
TABLE_TYPE null
TEMPORARY N
SECONDARY N
NESTED NO
BUFFER_POOL DEFAULT
ROW_MOVEMENT ENABLED
GLOBAL_STATS YES
USER_STATS NO
DURATION null
SKIP_CORRUPT DISABLED
MONITORING YES
CLUSTER_OWNER null
DEPENDENCIES DISABLED
COMPRESSION DISABLED
DROPPED NO
COMMENTS The table of resources available and/or committed to a unit (NWCG Unit/Dispatch Office) by Agency on a given date.
PARTITION_NAME LAST_ANALYZED NUM_ROWS BLOCKS SAMPLE_SIZE HIGH_VALUE




INDEX_OWNER INDEX_NAME UNIQUENESS STATUS INDEX_TYPE TEMPORARY PARTITIONED FUNCIDX_STATUS JOIN_INDEX COLUMNS COLUMN_EXPRESSION
SIT209 UR_PK UNIQUE VALID NORMAL N NO null NO UR_IDENTIFIER null
SIT209 UR_UK UNIQUE VALID NORMAL N NO null NO DONWCGU_PROT_UNIT_IDENTIFIER, NWCGAG_IDENTIFIER, RDATE, RTYPE_IDENTIFIER null
SIT209 UR_NWCGAG_FK_I NONUNIQUE VALID NORMAL N NO null NO NWCGAG_IDENTIFIER null
SIT209 UR_LUCODES_RTYPE_FK_I NONUNIQUE VALID NORMAL N NO null NO RTYPE_IDENTIFIER null
SIT209 UR_NWCG_PROT_UNIT_FK_I NONUNIQUE VALID NORMAL N NO null NO DONWCGU_PROT_UNIT_IDENTIFIER null




INDEX_OWNER INDEX_NAME TABLE_OWNER TABLE_NAME COLUMN_NAME COLUMN_POSITION COLUMN_LENGTH CHAR_LENGTH DESCEND
SIT209 UR_PK SIT209 UNIT_RESOURCES UR_IDENTIFIER 1 22 0 ASC
INDEX_OWNER INDEX_NAME TABLE_OWNER TABLE_NAME COLUMN_NAME COLUMN_POSITION COLUMN_LENGTH CHAR_LENGTH DESCEND
SIT209 UR_UK SIT209 UNIT_RESOURCES DONWCGU_PROT_UNIT_IDENTIFIER 1 22 0 ASC
SIT209 UR_UK SIT209 UNIT_RESOURCES NWCGAG_IDENTIFIER 2 22 0 ASC
SIT209 UR_UK SIT209 UNIT_RESOURCES RDATE 3 7 0 ASC
SIT209 UR_UK SIT209 UNIT_RESOURCES RTYPE_IDENTIFIER 4 22 0 ASC
INDEX_OWNER INDEX_NAME TABLE_OWNER TABLE_NAME COLUMN_NAME COLUMN_POSITION COLUMN_LENGTH CHAR_LENGTH DESCEND
SIT209 UR_NWCGAG_FK_I SIT209 UNIT_RESOURCES NWCGAG_IDENTIFIER 1 22 0 ASC
INDEX_OWNER INDEX_NAME TABLE_OWNER TABLE_NAME COLUMN_NAME COLUMN_POSITION COLUMN_LENGTH CHAR_LENGTH DESCEND
SIT209 UR_LUCODES_RTYPE_FK_I SIT209 UNIT_RESOURCES RTYPE_IDENTIFIER 1 22 0 ASC
INDEX_OWNER INDEX_NAME TABLE_OWNER TABLE_NAME COLUMN_NAME COLUMN_POSITION COLUMN_LENGTH CHAR_LENGTH DESCEND
SIT209 UR_NWCG_PROT_UNIT_FK_I SIT209 UNIT_RESOURCES DONWCGU_PROT_UNIT_IDENTIFIER 1 22 0 ASC