npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@credenceanalytics/diagnostic-oracle

v1.1.0

Published

Independent module to generate diagnostic reports from Oracle Database.

Downloads

3

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

  1. DATABASE_STORAGE Database details
  2. TABLESPACE Check table space usage
  3. LONG_RUNNING Check for long-running queries
  4. BLOCKED_SESSION Check for blocked sessions
  5. FAILED_JOB Check for failed jobs
  6. UNUSABLE_INDEX Check for un usable index
  7. INVALID_OBJECT Identify invalid objects
  8. SPACE_USAGE Check ASM disk group space usage
  9. STALE_INDEX Identify stale indexes
  10. AUTOMATIC_STORAGE_MANAGEMENT Check Automatic Storage Management (ASM) health
  11. DATABASE_ALERTS_AND_INCIDENTS Check database alerts and incidents
  12. DATABASE_RESOURCE_USAGE Check database resource usage
  13. DATABASE_CONFIGURATION_SETTINGS Check database configuration settings
  14. BUFFER_CACHE_PARAMETER Check buffer cache parameters
  15. LARGE_DATA_SIZE Identify tables for archiving due to large data size
  16. BUFFER_PARAMETERS Read log buffer parameters
  17. PGA_PARAMETER PGA parameters
  18. SHARED_POOL_PARAMETERS Shared pool parameters
  19. SGA_MEMORY_ALLOCATION Identify inadequate SGA memory allocation
  20. TEMPORARY_TABLESPACE Identify low temporary table space
  21. GROWTH_TRENDS Check database growth trends
  22. DATABASE_PERFORMANCE_METRICS Check database performance metrics
  23. OPTIMIZER_PARAMETERS Optimizer Parameters
  24. DATA_GUARD_STATUS Check Data Guard status (if applicable)