LOOKUP_XCCDF_PROFILE
DDL scriptArguments:
Name | Data Type | Default Value | In/Out |
---|
IDENTIFIER_IN | VARCHAR2 | | IN |
TITLE_IN | VARCHAR2 | | IN |
Returns:
NUMBER(38)Source
Legend: 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;