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

RHNCONFIGCHANNEL

DDL script

Columns

NameTypeNullableDefault valueComment
IDNUMBER(38)N  
ORG_IDNUMBER(38)N  
CONFCHAN_TYPE_IDNUMBER(38)N  
NAMEVARCHAR2(128)N  
LABELVARCHAR2(64)N  
DESCRIPTIONVARCHAR2(1024)N  
CREATEDTIMESTAMP(6) WITH LOCAL TIME ZONEN(current_timestamp)  
MODIFIEDTIMESTAMP(6) WITH LOCAL TIME ZONEN(current_timestamp)  

Primary key:

Constraint NameColumns
RHN_CONFCHAN_ID_PKID

Foreign Keys:

Constraint NameColumnsReferenced tableReferenced ConstraintOn Delete Rule
RHN_CONFCHAN_CTID_FKCONFCHAN_TYPE_ID RHNCONFIGCHANNELTYPE RHN_CONFCHANTYPE_ID_PK NO ACTION
RHN_CONFCHAN_OID_FKORG_ID WEB_CUSTOMER WEB_CUSTOMER_ID_PK NO ACTION

Options:

OptionSettings
TablespaceUSERS
Index OrganizedNo
Generated by OracleNo
ClusteredNo
NestedNo
TemporaryNo

Indexes:

Index NameTypeUnuquenessColumnsDDL script
RHN_CONFCHAN_ID_PKNORMALUNIQUEID DDL script
RHN_CONFCHAN_OID_LABEL_TYPE_UQNORMALUNIQUEORG_ID , LABEL , CONFCHAN_TYPE_ID DDL script

Referenced by:

TableConstraint
RHNACTIONCONFIGCHANNEL RHN_ACTIONCC_CCID_FK
RHNCONFIGFILE RHN_CONFFILE_CCID_FK
RHNREGTOKENCONFIGCHANNELS RHN_REGTOK_CONFCHAN_CCID_FK
RHNSERVERCONFIGCHANNEL RHN_SERVERCC_CCID_FK
RHNSNAPSHOTCONFIGCHANNEL RHN_SNAPSHOTCC_CCID_FK

Triggers

RHN_CONFCHAN_DEL_TRIG

Legend: comment string keyword reserved word operator
CREATE TRIGGER 
rhn_confchan_del_trig
before delete on rhnConfigChannel
for each row

REFERENCING NEW AS NEW OLD AS OLD
declare
	cursor snapshots is
		select	snapshot_id id
		from	rhnSnapshotConfigChannel
		where	config_channel_id = :old.id;
begin
	for snapshot in snapshots loop
		update rhnSnapshot
			set invalid = lookup_snapshot_invalid_reason('cc_removed')
			where id = snapshot.id;
		delete from rhnSnapshotConfigChannel
			where snapshot_id = snapshot.id
				and config_channel_id = :old.id;
	end loop;
end;

RHN_CONFCHAN_MOD_TRIG

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

REFERENCING NEW AS NEW OLD AS OLD
begin
	:new.modified := current_timestamp;
end;