Tables [dbo].[HARAUDITEVENT]
Properties
PropertyValue
CollationSQL_Latin1_General_CP1_CI_AS
Row Count355
Created4:59:32 AM Monday, March 02, 2009
Last Modified5:00:29 AM Monday, March 02, 2009
Columns
NameData TypeMax Length (Bytes)Allow NullsDefault
Cluster Primary Key HARAUDITEVENT_PK: AUDITEVENTOBJIDAUDITEVENTOBJIDint4
No
PARENTAUDITEVENTOBJIDint4
No
Foreign Keys HARAUDITEVENT_ACTID_FK: [dbo].[HARACTION].ACTIONOBJIDIndexes HARAUDITEVENT_ACTID_IND: ACTIONOBJIDACTIONOBJIDint4
No
SUCCESSFAILUREchar(1)1
No
('F')
Indexes HARAUDITEVENT_EVTID_IND: EVENTTIMEEVENTTIMEdatetime8
No
USROBJIDint4
Yes
USERNAMEvarchar(32)32
Yes
CLIENTHOSTNAMEvarchar(128)128
Yes
CLIENTPROCESSIDint4
Yes
SERVERHOSTNAMEvarchar(128)128
Yes
SERVERPROCESSIDint4
Yes
Indexes HARAUDITEVENT_RESID_IND: RESOURCEOBJIDRESOURCEOBJIDint4
Yes
RESOURCENAMEvarchar(1024)1024
Yes
Foreign Keys HARAUDITEVENT_RTID_FK: [dbo].[HARRESOURCETYPE].RESOURCETYPEOBJIDIndexes HARAUDITEVENT_RTID_IND: RESOURCETYPEOBJIDRESOURCETYPEOBJIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key HARAUDITEVENT_PK: AUDITEVENTOBJIDHARAUDITEVENT_PKAUDITEVENTOBJID
Yes
HARAUDITEVENT_ACTID_INDACTIONOBJID
HARAUDITEVENT_EVTID_INDEVENTTIME
HARAUDITEVENT_RESID_INDRESOURCEOBJID
HARAUDITEVENT_RTID_INDRESOURCETYPEOBJID
Foreign Keys Foreign Keys
NameColumns
HARAUDITEVENT_ACTID_FKACTIONOBJID->[dbo].[HARACTION].[ACTIONOBJID]
HARAUDITEVENT_RTID_FKRESOURCETYPEOBJID->[dbo].[HARRESOURCETYPE].[RESOURCETYPEOBJID]
Extended Properties
NameLevel 2 TypeLevel 2 NameValue
CaptionThe HARAUDITEVENT table stores the actual auditable actions recorded by the audit system.
CaptionCOLUMNACTIONOBJIDObject ID of the audit action associated with this log entry. This column is an index to the HARACTION table.
CaptionCOLUMNAUDITEVENTOBJIDSequence Object ID identifying the audit log entry for a particular audit action.
CaptionCOLUMNCLIENTHOSTNAMEName of the CA SCM client host machine that initiated the transaction that requested the auditable action.
CaptionCOLUMNCLIENTPROCESSIDProcess identifier of the process on the client host machine that initiated the transaction that requested the auditable action.
CaptionCOLUMNEVENTTIMEDate and time of when the auditable action was attempted.
CaptionCOLUMNPARENTAUDITEVENTOBJIDSequence Object ID identifying the audit log entry for a particular audit action.
CaptionCOLUMNRESOURCENAMEName of the resource affected by the auditable action.
CaptionCOLUMNRESOURCEOBJIDObject identifier of the CA SCM object that is operated on by the auditable action. Depending on the action, this identifier is a reference to the CA SCM tables: HARENVIRONMENT, HARSTATE, HARSTATEPROCESS, HARLINKEDPROCESS, HARVIEW, HARUSERS.
CaptionCOLUMNRESOURCETYPEOBJIDObject identifier of the resource type associated with the resource affected by this auditable action. This column is a reference to the HARRESOURCETYPE table.
CaptionCOLUMNSERVERHOSTNAMEName of the CA SCM server host machine that processed the transaction requesting the auditable action.
CaptionCOLUMNSERVERPROCESSIDProcess identifier associated with the CA SCM server process that processed the transaction requesting the auditable action.
CaptionCOLUMNSUCCESSFAILUREIndicator of the success or failure of the action that is logged. S=action was successful, F=action failed.
CaptionCOLUMNUSERNAMEName of the user attempting to perform the auditable action.
CaptionCOLUMNUSROBJIDObject identifier of the user attempting to perform the auditable action.
SQL Script
CREATE TABLE [dbo].[HARAUDITEVENT]
(
[AUDITEVENTOBJID] [int] NOT NULL,
[PARENTAUDITEVENTOBJID] [int] NOT NULL,
[ACTIONOBJID] [int] NOT NULL,
[SUCCESSFAILURE] [char] (1) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL CONSTRAINT [DF__HARAUDITE__SUCCE__0AD2A005] DEFAULT ('F'),
[EVENTTIME] [datetime] NOT NULL,
[USROBJID] [int] NULL,
[USERNAME] [varchar] (32) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CLIENTHOSTNAME] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CLIENTPROCESSID] [int] NULL,
[SERVERHOSTNAME] [varchar] (128) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SERVERPROCESSID] [int] NULL,
[RESOURCEOBJID] [int] NULL,
[RESOURCENAME] [varchar] (1024) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[RESOURCETYPEOBJID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[HARAUDITEVENT] ADD CONSTRAINT [HARAUDITEVENT_PK] PRIMARY KEY CLUSTERED ([AUDITEVENTOBJID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [HARAUDITEVENT_ACTID_IND] ON [dbo].[HARAUDITEVENT] ([ACTIONOBJID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [HARAUDITEVENT_EVTID_IND] ON [dbo].[HARAUDITEVENT] ([EVENTTIME]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [HARAUDITEVENT_RESID_IND] ON [dbo].[HARAUDITEVENT] ([RESOURCEOBJID]) ON [PRIMARY]
GO
CREATE NONCLUSTERED INDEX [HARAUDITEVENT_RTID_IND] ON [dbo].[HARAUDITEVENT] ([RESOURCETYPEOBJID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[HARAUDITEVENT] ADD CONSTRAINT [HARAUDITEVENT_ACTID_FK] FOREIGN KEY ([ACTIONOBJID]) REFERENCES [dbo].[HARACTION] ([ACTIONOBJID])
GO
ALTER TABLE [dbo].[HARAUDITEVENT] ADD CONSTRAINT [HARAUDITEVENT_RTID_FK] FOREIGN KEY ([RESOURCETYPEOBJID]) REFERENCES [dbo].[HARRESOURCETYPE] ([RESOURCETYPEOBJID])
GO
EXEC sp_addextendedproperty N'Caption', N'The HARAUDITEVENT table stores the actual auditable actions recorded by the audit system.', 'SCHEMA', N'dbo', 'TABLE', N'HARAUDITEVENT', NULL, NULL
GO
EXEC sp_addextendedproperty N'Caption', N'Object ID of the audit action associated with this log entry. This column is an index to the HARACTION table.', 'SCHEMA', N'dbo', 'TABLE', N'HARAUDITEVENT', 'COLUMN', N'ACTIONOBJID'
GO
EXEC sp_addextendedproperty N'Caption', N'Sequence Object ID identifying the audit log entry for a particular audit action.', 'SCHEMA', N'dbo', 'TABLE', N'HARAUDITEVENT', 'COLUMN', N'AUDITEVENTOBJID'
GO
EXEC sp_addextendedproperty N'Caption', N'Name of the CA SCM client host machine that initiated the transaction that requested the auditable action.', 'SCHEMA', N'dbo', 'TABLE', N'HARAUDITEVENT', 'COLUMN', N'CLIENTHOSTNAME'
GO
EXEC sp_addextendedproperty N'Caption', N'Process identifier of the process on the client host machine that initiated the transaction that requested the auditable action.', 'SCHEMA', N'dbo', 'TABLE', N'HARAUDITEVENT', 'COLUMN', N'CLIENTPROCESSID'
GO
EXEC sp_addextendedproperty N'Caption', N'Date and time of when the auditable action was attempted.', 'SCHEMA', N'dbo', 'TABLE', N'HARAUDITEVENT', 'COLUMN', N'EVENTTIME'
GO
EXEC sp_addextendedproperty N'Caption', N'Sequence Object ID identifying the audit log entry for a particular audit action.', 'SCHEMA', N'dbo', 'TABLE', N'HARAUDITEVENT', 'COLUMN', N'PARENTAUDITEVENTOBJID'
GO
EXEC sp_addextendedproperty N'Caption', N'Name of the resource affected by the auditable action.', 'SCHEMA', N'dbo', 'TABLE', N'HARAUDITEVENT', 'COLUMN', N'RESOURCENAME'
GO
EXEC sp_addextendedproperty N'Caption', N'Object identifier of the CA SCM object that is operated on by the auditable action. Depending on the action, this identifier is a reference to the CA SCM tables: HARENVIRONMENT, HARSTATE, HARSTATEPROCESS, HARLINKEDPROCESS, HARVIEW, HARUSERS.', 'SCHEMA', N'dbo', 'TABLE', N'HARAUDITEVENT', 'COLUMN', N'RESOURCEOBJID'
GO
EXEC sp_addextendedproperty N'Caption', N'Object identifier of the resource type associated with the resource affected by this auditable action. This column is a reference to the HARRESOURCETYPE table.', 'SCHEMA', N'dbo', 'TABLE', N'HARAUDITEVENT', 'COLUMN', N'RESOURCETYPEOBJID'
GO
EXEC sp_addextendedproperty N'Caption', N'Name of the CA SCM server host machine that processed the transaction requesting the auditable action.', 'SCHEMA', N'dbo', 'TABLE', N'HARAUDITEVENT', 'COLUMN', N'SERVERHOSTNAME'
GO
EXEC sp_addextendedproperty N'Caption', N'Process identifier associated with the CA SCM server process that processed the transaction requesting the auditable action.', 'SCHEMA', N'dbo', 'TABLE', N'HARAUDITEVENT', 'COLUMN', N'SERVERPROCESSID'
GO
EXEC sp_addextendedproperty N'Caption', N'Indicator of the success or failure of the action that is logged. S=action was successful, F=action failed.', 'SCHEMA', N'dbo', 'TABLE', N'HARAUDITEVENT', 'COLUMN', N'SUCCESSFAILURE'
GO
EXEC sp_addextendedproperty N'Caption', N'Name of the user attempting to perform the auditable action.', 'SCHEMA', N'dbo', 'TABLE', N'HARAUDITEVENT', 'COLUMN', N'USERNAME'
GO
EXEC sp_addextendedproperty N'Caption', N'Object identifier of the user attempting to perform the auditable action.', 'SCHEMA', N'dbo', 'TABLE', N'HARAUDITEVENT', 'COLUMN', N'USROBJID'
GO
Uses
Used By