Maximo - Logging Properties SQL

From ExxtremeWiki
Revision as of 20:33, 15 January 2012 by Stacey steele (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Maximo - Logging Properties SQL [edit] -- Create Object Level SQL Logging Entries

SELECT 'log4j.logger.maximo.sql.' || servicename || '.' || objectname || '=DEBUG' FROM maxobject
WHERE servicename IN ('ASSET','COMPANY','ITEM','INVENTORY')
ORDER BY 1

[edit] -- Create Service Level Logging Entries

SELECT 'log4j.logger.maximo.service.' || servicename || '.' || objectname || '=DEBUG' FROM maxobject
WHERE servicename IN ('ASSET','COMPANY','ITEM','INVENTORY')
ORDER BY 1

[edit] --Create SQL Loggers by Business Object

SELECT 'log4j.logger.maximo.sql.' || servicename || '.' || objectname || '=DEBUG' FROM maxobject
WHERE servicename IN ('COMPMASTER','COMPANY','COMPCONTACT')
UNION
<SOURCE lang=SQL>
SELECT 'log4j.logger.maximo.service.' || servicename || '.' || objectname || '=DEBUG' FROM maxobject
WHERE servicename IN ('COMPMASTER','COMPANY','COMPCONTACT')
ORDER BY 1

These queries were developed by Chris Lawless - all credit goes to him

--wkh 15:03, 19 May 2009 (UTC) Categories: Maximo 6.x, SQL, Oracle