@credenceanalytics/diagnostic-oracle
v1.1.0
Published
Independent module to generate diagnostic reports from Oracle Database.
Downloads
3
Maintainers
Keywords
Readme
@credenceanalytics/diagnostic-oracle
Independent module to generate diagnostic reports from Oracle Database.
Installation
npm install -s @credenceanalytics/diagnostic-oracle
Usages
const { OracleReport } = require('@credenceanalytics/diagnostic-oracle')
const report = new OracleReport({"user": "", "password": "", "connectString": "127.0.0.1:1521/SAMPLEDS"})
API
generateReport
Returns promise that is resolved with json data or empty object.
const jsondata = await report.generateReport()
O/P:
{"DATABASE_STORAGE": [], "TABLESPACE": [], "LONG_RUNNING": [], "BLOCKED_SESSION": [], "FAILED_JOB": [], "UNUSABLE_INDEX": [], "INVALID_OBJECT": [], "SPACE_USAGE": [], "STALE_INDEX": [], "AUTOMATIC_STORAGE_MANAGEMENT": [], "DATABASE_ALERTS_AND_INCIDENTS": [], "DATABASE_RESOURCE_USAGE": [], "DATABASE_CONFIGURATION_SETTINGS": [], "BUFFER_CACHE_PARAMETER": [], "LARGE_DATA_SIZE": [], "BUFFER_PARAMETERS": [], "PGA_PARAMETER": [], "SHARED_POOL_PARAMETERS": [], "SGA_MEMORY_ALLOCATION": [], "TEMPORARY_TABLESPACE": [], "GROWTH_TRENDS": [], "DATABASE_PERFORMANCE_METRICS": [], "OPTIMIZER_PARAMETERS": [], "DATA_GUARD_STATUS": [] }
NOTE: See Diagnostic Information section for more details.
writeReport
Generate and write json data in given file path. Fully absolute path of file is required as parameter. Returns promise that is resolved with undefined.
const jsondata = await report.writeReport("/data.json")
Diagnostic Information
DATABASE_STORAGE
Database detailsTABLESPACE
Check table space usageLONG_RUNNING
Check for long-running queriesBLOCKED_SESSION
Check for blocked sessionsFAILED_JOB
Check for failed jobsUNUSABLE_INDEX
Check for un usable indexINVALID_OBJECT
Identify invalid objectsSPACE_USAGE
Check ASM disk group space usageSTALE_INDEX
Identify stale indexesAUTOMATIC_STORAGE_MANAGEMENT
Check Automatic Storage Management (ASM) healthDATABASE_ALERTS_AND_INCIDENTS
Check database alerts and incidentsDATABASE_RESOURCE_USAGE
Check database resource usageDATABASE_CONFIGURATION_SETTINGS
Check database configuration settingsBUFFER_CACHE_PARAMETER
Check buffer cache parametersLARGE_DATA_SIZE
Identify tables for archiving due to large data sizeBUFFER_PARAMETERS
Read log buffer parametersPGA_PARAMETER
PGA parametersSHARED_POOL_PARAMETERS
Shared pool parametersSGA_MEMORY_ALLOCATION
Identify inadequate SGA memory allocationTEMPORARY_TABLESPACE
Identify low temporary table spaceGROWTH_TRENDS
Check database growth trendsDATABASE_PERFORMANCE_METRICS
Check database performance metricsOPTIMIZER_PARAMETERS
Optimizer ParametersDATA_GUARD_STATUS
Check Data Guard status (if applicable)