The steps below can be used to rebuild and resize the SYSLOGQ and its associated index.
- Stop XMA pathway
(Where $<vol> is the disk volume where XMA is installed)
RUN $<vol>.XYGATEMA.XMA INSTALL
XMA_PWSTOP
- Go to the XMA database location
XMA_DBVOLUME
- Load the XMA defines
XMA_LOAD_DEFINES
- Rename the current table and its indexes to a new location:
SQLCI
ALTER TABLE XMADAT.SYSLOGQ RENAME XMADATO.SYSLOGQ;
ALTER INDEX XMADAT.SYSLOGQI RENAME XMADATO.SYSLOGQI;
- Create a new table and indexes with larger extents. The below commands can be manually entered using SQLCI or can be placed into an obey file and the obey file executed from SQLCI.
CREATE TABLE =XMA_SYSLOGQ
( PARTITIONKEY NUMERIC( 4, 0) DEFAULT 1 NOT NULL
, ENTRYGMT TIMESTAMP NO DEFAULT NOT NULL
, PART SMALLINT NO DEFAULT NOT NULL
, ACTIONGMT TIMESTAMP NO DEFAULT NOT NULL
, ALERTEDGMT TIMESTAMP NO DEFAULT NOT NULL
, ACTION CHAR(1) NO DEFAULT NOT NULL
, TCP_PROCESS CHAR(9) NO DEFAULT NOT NULL
, RETRIES SMALLINT NO DEFAULT NOT NULL
, MESSAGE_LEN SMALLINT NO DEFAULT NOT NULL
, TARGET_PORT SMALLINT NO DEFAULT NOT NULL
, TARGET_HOST VARCHAR(64) NO DEFAULT NOT NULL
, PREFIX VARCHAR(79) NO DEFAULT NOT NULL
, MESSAGE VARCHAR(1000) NO DEFAULT NOT NULL
, PRIMARY KEY (PARTITIONKEY, ENTRYGMT, PART)
)
CATALOG =XMA_CAT
ORGANIZATION K
EXTENT (10000, 10000) FORMAT 2
MAXEXTENTS 500
SIMILARITY CHECK ENABLE;
CREATE INDEX =XMA_SYSLOGQIND ON =XMA_SYSLOGQ
( ACTION ASC, ALERTEDGMT ASC, ACTIONGMT ASC, PART ASC )
CATALOG =XMA_CAT
EXTENT (3000,3000) FORMAT 2
MAXEXTENTS 500;
Note: The extent sizes for the new table and the index may vary from the example based on your requirements or available disk space.
- Temporarily turn off TMF auditing for the new table
ALTER TABLE $<vol>.XMADAT.SYSLOGQ NO AUDIT;
(Where $<vol> is the disk volume location for the new SYSLOGQ table)
- Load the data from the old table into the new table*. This will also load the indexes automatically. From SQLCI:
LOAD XMADATO.SYSLOGQ, =XMA_SYSLOGQ,SORTED,SLACK 0;
- Turn the TMF AUDIT flag back on and enable disk caching. From SQLCI:
ALTER TABLE =XMA_SYSLOGQ AUDIT BUFFERED;
- Exit SQLCI and update the database statistics and re-SQLCOMPILE all the XMA programs
XMA_SQLCOMPALL
- Start XMA
XMA_PWCOOL
If you are unable to locate the solution needed or if you need additional assistance please Click Here to open a case from our Customer Care Portal.