Main Tables Views Materialized Views Indexes Constraints Triggers Procedures Functions Packages Sequences Java Sources Jobs Sanity Check Index DDL scrips
Description Columns Primary key Check Constraints Foreign keys Unique Keys Options Indexes Referenced by Triggers Partitions

RHNKSTREEFILE

DDL script

Columns

NameTypeNullableDefault valueComment
KSTREE_IDNUMBER(38)N  
RELATIVE_FILENAMEVARCHAR2(256)N  
CHECKSUM_IDNUMBER(38)N  
FILE_SIZENUMBER(38)N  
LAST_MODIFIEDTIMESTAMP(6) WITH LOCAL TIME ZONEN(current_timestamp)  
CREATEDTIMESTAMP(6) WITH LOCAL TIME ZONEN(current_timestamp)  
MODIFIEDTIMESTAMP(6) WITH LOCAL TIME ZONEN(current_timestamp)  

Foreign Keys:

Constraint NameColumnsReferenced tableReferenced ConstraintOn Delete Rule
RHN_KSTREEFILE_CHSUM_FKCHECKSUM_ID RHNCHECKSUM RHNCHECKSUM_PK NO ACTION
RHN_KSTREEFILE_KID_FKKSTREE_ID RHNKICKSTARTABLETREE RHN_KSTREE_ID_PK CASCADE

Options:

OptionSettings
TablespaceUSERS
Index OrganizedNo
Generated by OracleNo
ClusteredNo
NestedNo
TemporaryNo

Indexes:

Index NameTypeUnuquenessColumnsDDL script
RHN_KSTREEFILE_KID_RFN_UQNORMALUNIQUEKSTREE_ID , RELATIVE_FILENAME DDL script

Triggers

RHN_KSTREEFILE_MOD_TRIG

Legend: comment string keyword reserved word operator
CREATE TRIGGER 
rhn_kstreefile_mod_trig
before insert or update on rhnKSTreeFile
for each row

REFERENCING NEW AS NEW OLD AS OLD
begin
	:new.modified := current_timestamp;
	-- allow us to manually set last_modified if we wish
	if :new.last_modified = :old.last_modified
	then
  	    :new.last_modified := current_timestamp;
        end if;
end rhn_kstreefile_mod_trig;