RHN_CONTACT_METHODS
Description:
cmeth contact method definitions
DDL scriptColumns
| Name | Type | Nullable | Default value | Comment |
|---|
| RECID | NUMBER(12) | N | | |
| METHOD_NAME | VARCHAR2(20) | Y | | |
| CONTACT_ID | NUMBER(12) | N | | |
| SCHEDULE_ID | NUMBER(12) | Y | | |
| METHOD_TYPE_ID | NUMBER(12) | N | | |
| PAGER_TYPE_ID | NUMBER(12) | Y | | |
| PAGER_PIN | VARCHAR2(20) | Y | | |
| PAGER_EMAIL | VARCHAR2(50) | Y | | |
| PAGER_MAX_MESSAGE_LENGTH | NUMBER(6) | Y | | |
| PAGER_SPLIT_LONG_MESSAGES | CHAR(1) | Y | | |
| EMAIL_ADDRESS | VARCHAR2(50) | Y | | |
| EMAIL_REPLY_TO | VARCHAR2(50) | Y | | |
| LAST_UPDATE_USER | VARCHAR2(40) | Y | | |
| LAST_UPDATE_DATE | DATE | Y | | |
| SNMP_HOST | VARCHAR2(255) | Y | | |
| SNMP_PORT | NUMBER(5) | Y | | |
| NOTIFICATION_FORMAT_ID | NUMBER(12) | N | 4
| |
| SENDER_SAT_CLUSTER_ID | NUMBER(12) | Y | | |
Primary key:
| Constraint Name | Columns |
|---|
| RHN_CMETH_RECID_PK | RECID
|
Check Constraints:
| Constraint Name | Check Condition |
|---|
| RHN_CMETH_PGR_LENGTH_LIMIT | pager_max_message_length between 10 and 1920 |
| RHN_CMETH_RECID_NOTZERO | recid > 0 |
Foreign Keys:

Options:
| Option | Settings |
|---|
| Tablespace | DATA_TBS |
| Index Organized | No |
| Generated by Oracle | No |
| Clustered | No |
| Nested | No |
| Temporary | No |
Indexes:
Referenced by:
Triggers
RHN_CMETH_VAL_TRIG
Legend: string keyword reserved word operator
CREATE TRIGGER
rhn_cmeth_val_trig
before insert or update on rhn_contact_methods
referencing new as new old as old
for each row
REFERENCING NEW AS NEW OLD AS OLD
declare
msg varchar2(200);
missing_data exception;
begin
msg :='missing or invalid data for contact_methods table';
if :new.method_type_id = 1
then
if (
:new.pager_email is null or
:new.pager_split_long_messages is null )
then
raise missing_data;
end if;
end if;
if :new.method_type_id = 2
then
if :new.email_address is null
then
raise missing_data;
end if;
end if;
if :new.method_type_id = 5
then
if (:new.snmp_host is null or
:new.snmp_port is null)
then
raise missing_data;
end if;
end if;
exception
when missing_data then
raise_application_error (-20012,msg);
when others then
raise;
end;