Main Tables Views Materialized Views Indexes Constraints Triggers Procedures Functions Packages Sequences Java Sources Jobs Sanity Check Index DDL scrips
Arguments Source

LOOKUP_XCCDF_PROFILE

DDL script

Arguments:

NameData TypeDefault ValueIn/Out
IDENTIFIER_INVARCHAR2 IN
TITLE_INVARCHAR2 IN

Returns:

NUMBER(38)

Source

Legend: comment string keyword reserved word operator
     1: function
     2: lookup_xccdf_profile(identifier_in in varchar2, title_in in varchar2)
     3: return number
     4: is
     5:     profile_id  number;
     6: begin
     7:     select id
     8:       into profile_id
     9:       from rhnXccdfProfile
    10:      where identifier = identifier_in and title = title_in;
    11:     return profile_id;
    12: exception when no_data_found then
    13:     begin
    14:         profile_id := insert_xccdf_profile(identifier_in, title_in);
    15:     exception when dup_val_on_index then
    16:         select id
    17:           into profile_id
    18:           from rhnXccdfProfile
    19:          where identifier = identifier_in and title = title_in;
    20:     end;
    21:     return profile_id;
    22: end lookup_xccdf_profile;