Name TR
Comment Transmittal table

Column
Name Is PK Is FK UDP Datatype Null Option Comment
PRIMARY_KEY Yes No NUMBER(20) NOT NULL Unique System Assigned ID
RECORD_TYPE No No VARCHAR2(2) NULL A code that identifies the type of Record
STATE_AND_COUNTY_FIPS_CODE No No VARCHAR2(5) NULL
The FIPS code for the state and county.  Code table -
STATE_AND_COUNTY_FIPS_CODE.  Also see notes for Tribal Code.  If State and
County FIPS code does not apply, enter value = 0000 (e.g., 5 zeroes).
ORGANIZATION_NAME No No VARCHAR2(80) NULL
The name of the organization that is affiliated with a facility or project
(i.e., this data submittal).  Name of organization submitting the dataset.
SOURCE_TYPE No No VARCHAR2(25) NULL
Source type = Point.  Code table - SOURCE_TYPES
TRANSACTION_TYPE No No VARCHAR2(2) NULL Original or Correction (replacement) data set.Code table - TRANSACTION_TYPES
INVENTORY_YEAR No No NUMBER(4) NULL
Year of inventory data in dataset.  A four digit year,  ie. 1998
INVENTORY_TYPE_CODE No No VARCHAR2(20) NULL
Indicates that the data set contains criteria data, toxics data, or both.  Code
table - INVENTORY_TYPES
TRANSACTION_CREATION_DATE No No NUMBER(8) NULL Transaction Creation Date
INCREMENTAL_SUBMISSION_NUMBER No No NUMBER(4) NULL Incremental Submission Number
RELIABILITY_INDICATOR No No NUMBER NULL Reliability Indicator
TRANSACTION_COMMENTS No No VARCHAR2(80) NULL General comments regarding transmittal.
CONTACT_PERSON_NAME No No VARCHAR2(70) NULL
The complete name of the person, including first name, middle name or initial,
and surname.
CONTACT_PHONE_NUMBER No No VARCHAR2(15) NULL The phone number for the person.
TELEPHONE_NUMBER_TYPE_NAME No No VARCHAR2(10) NULL
The name that describes telephone number type, e.g., the CONTACT PHONE NUMBER.
Valid values include: Office, Fax, Mobile, Pager, Home.
ELECTRONIC_ADDRESS_TEXT No No VARCHAR2(100) NULL
A resource address usually consisting of the access protocol, the domain name,
and optionally, the path to a file or location.  Report Email.
ELECTRONIC_ADDRESS_TYPE_NAME No No VARCHAR2(10) NULL
The name that describes the type of electronic address reported.  Valid values
include: Email, Internet, Intranet, HTTP, FTP, Telnet, and WAIS. Report Email.
AFFILIATION_TYPE No No VARCHAR2(40) NULL
The name that describes the capacity or function that an organization or
individual serves for a facility or project.  Report value = Report Certifier. 
Code table - AFFILIATION_TYPE.  Report Certifier for NEI is EPA's point of
contact to either answer questions or identify whom to forward EPA program
questions concerning the data content in the file.
FORMAT_VERSION No No NUMBER NULL The numeric value of the emission factor.
TRIBAL_CODE No No VARCHAR2(3) NULL
Codes that represent American Indian tribes and Alaskan Native entities  Key
field and Code table implementation.  Code table - TRIBAL_CODES.  If Tribal Code
does not apply, enter value = 000 (e.g., 3 zeroes).
SUBMITTAL_FLAG No No VARCHAR2(4) NULL
Submittal status of record when providing data corrections to NEI.  Add;
Delete; Revise/ Del;or Revise/ Add   See User's guide instruction. Enter
applicable code - A; D; RD; or RA.
COUNTRY_CODE No No VARCHAR2(10) NULL Country Code
STATE_FIPS No No VARCHAR2(2) NULL FIPS code of the state
COUNTY_FIPS No No VARCHAR2(3) NULL FIPS code of the county
DATA_SOURCE No No VARCHAR2(10) NULL Data Source of the record
RECORD_NUMBER No No NUMBER(20) NULL Unique System Assigned ID
CREATED_BY No No VARCHAR2(20) NULL Created By
CREATED_DATE No No DATE NOT NULL Created Date
MODIFIED_BY No No VARCHAR2(20) NULL Modified By
MODIFIED_DATE No No DATE NOT NULL Modified Date
LOG_ID No No NUMBER(20) NULL Unique System Assigned ID
DISPOSITION_STATUS No No VARCHAR2(1) NULL Status of the record
APPLY_STATUS No No VARCHAR2(1) NULL Status of the record
SECTOR_CODE No Yes VARCHAR2(1) NULL Sector Code
SOURCE_INVENTORY_ID No No NUMBER(20) NULL Unique System Assigned ID
SOURCE_INVENTORY_PK No No NUMBER(20) NULL Unique System Assigned ID
TRANSFER_JOB_ID No Yes NUMBER(20) NULL Transfer job ID
ORGANIZATION_ID No Yes NUMBER(20) NULL Unique System Assigned ID
INVENTORY_ID No Yes NUMBER(20) NULL Unique System Assigned ID
UDP(s) of "PRIMARY_KEY" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "RECORD_TYPE" Column
Range Check Null Check Valid Table/Values
None None Valid Table/List
UDP(s) of "STATE_AND_COUNTY_FIPS_CODE" Column
Range Check Null Check Valid Table/Values
None None Valid Table/Values
UDP(s) of "ORGANIZATION_NAME" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "SOURCE_TYPE" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "TRANSACTION_TYPE" Column
Range Check Null Check Valid Table/Values
None Mandatory Valid Table/List
UDP(s) of "INVENTORY_YEAR" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "INVENTORY_TYPE_CODE" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "TRANSACTION_CREATION_DATE" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "INCREMENTAL_SUBMISSION_NUMBER" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "RELIABILITY_INDICATOR" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "TRANSACTION_COMMENTS" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "CONTACT_PERSON_NAME" Column
Range Check Null Check Valid Table/Values
None Mandatory None
UDP(s) of "CONTACT_PHONE_NUMBER" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "TELEPHONE_NUMBER_TYPE_NAME" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "ELECTRONIC_ADDRESS_TEXT" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "ELECTRONIC_ADDRESS_TYPE_NAME" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "AFFILIATION_TYPE" Column
Range Check Null Check Valid Table/Values
None Mandatory Valid Table/List
UDP(s) of "FORMAT_VERSION" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "TRIBAL_CODE" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "SUBMITTAL_FLAG" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "COUNTRY_CODE" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "STATE_FIPS" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "COUNTY_FIPS" Column
Range Check Null Check Valid Table/Values
None Mandatory None
UDP(s) of "DATA_SOURCE" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "RECORD_NUMBER" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "CREATED_BY" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "CREATED_DATE" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "MODIFIED_BY" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "MODIFIED_DATE" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "LOG_ID" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "DISPOSITION_STATUS" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "APPLY_STATUS" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "SECTOR_CODE" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "SOURCE_INVENTORY_ID" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "SOURCE_INVENTORY_PK" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "TRANSFER_JOB_ID" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "ORGANIZATION_ID" Column
Range Check Null Check Valid Table/Values
None None None
UDP(s) of "INVENTORY_ID" Column
Range Check Null Check Valid Table/Values
None None None
Index
Name Member
XPKTR
XAK1TR
XIE2TR
XIF2TR
XIF3TR
XIF4TR
XIF5TR
Member(s) of "XPKTR" Index
Column
Name
PRIMARY_KEY
Member(s) of "XAK1TR" Index
Column
Name
TRANSFER_JOB_ID
Column
Name
RECORD_NUMBER
Member(s) of "XIE2TR" Index
Column
Name
STATE_FIPS
Column
Name
COUNTY_FIPS
Column
Name
TRIBAL_CODE
Member(s) of "XIF2TR" Index
Column
Name
TRANSFER_JOB_ID
Member(s) of "XIF3TR" Index
Column
Name
SECTOR_CODE
Member(s) of "XIF4TR" Index
Column
Name
ORGANIZATION_ID
Member(s) of "XIF5TR" Index
Column
Name
INVENTORY_ID
Child Relationship
Child Table
Name
POINT_SI
Child Table
Name
BIOGENIC_EM
Child Table
Name
AREA_EP
Child Table
Name
ONROAD_PE
Parent Relationship
Parent Table
Name
INVENTORY
Parent Table
Name
ORGANIZATION
Parent Table
Name
SECTOR
Parent Table
Name
TRANSFER_FILE
Script
Name Code
BI_SPLIT
create or replace trigger  %TableOwner.%Substr(%TableName,1,15)_BI_Split
before insert on %TableOwner.%TableName for each row
declare new_id number;
begin

      select  %TableOwner.SEQ_%TableName.nextval into new_id from dual;
      :new.%PK() := new_id;
      :new.created_by := user;
      :new.created_date := sysdate;
      :new.modified_by := user;
      :new.modified_date :=sysdate;
      :new.state_fips := substr(:new.state_and_county_fips_code,1,2);
      :new.county_fips := substr(:new.state_and_county_fips_code,3);

end ;

/
BU
create or replace trigger  %TableOwner.%Substr(%TableName,1,21)_BU
before update on %TableOwner.%TableName for each row
begin

      :new.modified_by := user;
      :new.modified_date :=sysdate;
end ;

/
BI
create or replace trigger  %TableOwner.%Substr(%TableName,1,21)_BI
before insert on %TableOwner.%TableName for each row
begin


      :new.created_by := user;
      :new.created_date := sysdate;
      :new.modified_by := user;
      :new.modified_date :=sysdate;

end ;
/