RHNHISTORYVIEW_REFRESH
DDL scriptColumns
| Name | Type | Nullable | Insertable | Updatable | Deletable | Comment |
|---|
| EVENT_ID | NUMBER(38) | N | NO | NO | NO | |
| SERVER_ID | NUMBER(38) | N | NO | NO | NO | |
| SUMMARY | VARCHAR2(193) | Y | NO | NO | NO | |
| DETAILS | VARCHAR2(1337) | Y | NO | NO | NO | |
| CREATED | DATE | N | NO | NO | NO | |
| MODIFIED | DATE | N | NO | NO | NO | |
Query:
Legend: string keyword reserved word operator
select
sa.action_id event_id,
sa.server_id,
at.name || ' scheduled by ' || contact.login || ' (' || astat.name || ')' summary,
'This action will be executed after ' ||
to_char(a.earliest_action, 'YYYY-MM-DD HH24:MI:SS') || ' EST' || chr(10) || chr(10) ||
'The current action status is: ' || astat.name || chr(10) ||
nvl2(sa.pickup_time,
'The client picked up this action on ' ||
to_char(sa.pickup_time, 'YYYY-MM-DD HH24:MI:SS') || ' EST',
'This action has not been picked up') || chr(10) ||
nvl2(sa.completion_time,
'The client reported completion on execution on ' ||
to_char(sa.completion_time, 'YYYY-MM-DD HH24:MI:SS') || ' EST',
'This action has not been fully executed') || chr(10) ||
nvl2(sa.result_code,
'Client execution returned code '||to_char(sa.result_code)||
' ('||nvl(sa.result_msg, 'SUCCESS')||')',
'') ||
chr(10) ||
'' details,
a.created,
sa.modified
from
rhnAction a, rhnServerAction sa,
rhnActionType at, rhnActionStatus astat,
web_contact contact
where
sa.action_id = a.id
and a.action_type = at.id
and a.scheduler = contact.id
and sa.status = astat.id
and at.label in ('packages.refresh_list', 'hardware.refresh_list', 'reboot.reboot', 'rollback.rollback')
with
read only
Constraints:
| Constraint Name | Type |
|---|
| SYS_C005681 | With read only on view |