Oracle Database
AWR Ready · Batch 1
10g–23ai · Standalone / RAC / CDB / Non-CDB
Default license-free basic check v2.0 covers instance memory, FRA/UNDO/TEMP space, sequence & unusable index checks, Data Guard/RMAN, real-time blocking/Top SQL, and security audits. With Diagnostics Pack licensing, add --diagnostics-pack to run the full AWR check.
1
Download Script
Plaintext Auditable · SHA-256
Full bundle with Linux and Windows launchers, basic SQL and three SQL scripts for licensed use
oracle-dbcheck-v3.1.0.tar.gz
114 KB
Download Bundle
SHA-256
8eacbe5d82ab57033af110e1eb92744622f3bb7992de0e86b472a4bceb571f55
Copy
Show 6 individual plaintext scripts
oscheck.sh
31 KB
Linux / UNIX launcher
Download
SHA-256
bb8aefe7e661909f8f3782c397fdcf2a3db6d5907353ef529464fe8fd844268f
Copy
oscheck.ps1
30 KB
Windows launcher
Download
SHA-256
fae4495e61f0308cfc3ed860c93e78f8f36b81641c50c9f642a8645658c050fc
Copy
dbcheck_basic.sql
36 KB
Basic inspection SQL (default)
Download
SHA-256
fd790bbb9ce4601c6824f8f3b730b8b5b54a5d52a3e183c20cae714801664876
Copy
dbcheck_cdb.sql
210 KB
SQL script (12c+ CDB)
Download
SHA-256
6f199cf23ec3014a718426adb68a37fad02a3ee5322c910b022e4891058b2fb0
Copy
dbcheck_noncdb.sql
202 KB
SQL script (11g / 12c+ Non-CDB)
Download
SHA-256
c403ace154572ec7d0700e947f1a0c5419a3697d5c0cc00b49c349d79b9f4e0d
Copy
dbcheck10g.sql
196 KB
SQL script (10g / 11g)
Download
SHA-256
579bc77e8a779399b1652a2b582757daad25a0d33a1fa2e36632a9c3315a48df
Copy
2
Run Command
Read-Only · Zero Changes
Run on the database host
Copy Command
workdir=$(mktemp -d "$HOME/oracle_dbcheck.XXXXXXXX") &&
tar -xzf oracle-dbcheck-v3.1.0.tar.gz -C "$workdir" &&
bash "$workdir/oscheck.sh"
Output File
dbcheck_<host>_<timestamp>_<id>.tar.gz / .zip
Secure Auth
Sign in to the database host as oracle and run the script using / as sysdba authentication.
Microsoft SQL Server
Check Batch 2
2012–2022 · Linux sqlcmd / Windows PowerShell
Checks reliability and high-risk options, suspect pages & CHECKDB, VLF/TempDB, file I/O latency, IFI/LPIM, Always On, failed Agent jobs, top SQL, missing indexes, and security audit.
1
Download Script
Plaintext Auditable · SHA-256
SHA-256
c609cf39261130412ff8ba17afb8538dba3839f9ad46d2bf663c494c65b95720
Copy
SHA-256
6e3bbd5f904a8ade3d6e635def54d7cf63f18a6089ccb129d0457c133486de5d
Copy
2
Run Command
Read-Only · Zero Changes
Run on the database host
Copy Command
# Linux (sqlcmd)
sh mssql_check.sh -S <host> -U <user> -W
# Windows (Integrated Auth)
powershell -ExecutionPolicy Bypass -File .\mssql_check.ps1
Output File
./sqlserver_check_<timestamp>.html
Secure Auth
Uses SQLCMDPASSWORD, -W prompt or Windows Integrated Auth (CLI -P rejected).
MySQL / MariaDB
Check Batch 3
MySQL 5.7–8.4 / MariaDB 10.x–11.x · Linux v3.6 / Windows v2.0
Compatible with MySQL 5.7–8.4 and MariaDB 10.x/11.x across Linux and Windows; inspects live QPS/TPS sampling, InnoDB deadlocks & lock waits, left-prefix redundant indexes, key parameter baselines, sys slow SQL & memory usage, replication/GTID, and security.
1
Download Script
Plaintext Auditable · SHA-256
SHA-256
4aeed9fb90ba7a48183ed289015866be786865b084b267d59d3d52c4ac8e82cb
Copy
SHA-256
8db0a8952493f81fdc00b445d64947eeeffb44e7f43edafeb677d3b434be4f4c
Copy
2
Run Command
Read-Only · Zero Changes
Run on the database host
Copy Command
# Linux (--login-path or interactive -p)
bash mysql_check.sh -H <host> -P 3306 -u <user> -p
# Windows (-LoginPath or -PromptPassword)
powershell -ExecutionPolicy Bypass -File .\mysql_check.ps1 -User root -PromptPassword
Output File
./mysql_check_<instance>_<timestamp>.html
Secure Auth
Supports --login-path, MYSQL_PWD env var or masked interactive prompt.
PostgreSQL
Scripts Ready
11–17 · Requires psql · Linux / Windows
Checks XID/Multixact wraparound, WAL archiving & replication slots, checksums, prepared transactions & lock blocking trees, invalid/redundant indexes, table bloat, sequences & slow SQL, pg_hba rules, and non-default parameters.
1
Download Script
Plaintext Auditable · SHA-256
SHA-256
09dcf83297912db412139bf22a83ee67fd477a0b4c1da9a48d852bbe9e778d56
Copy
SHA-256
383528717b38a30d8a7b5bf0a58c6ab556f33f15820f8cd8cc12dea4eba13e66
Copy
2
Run Command
Read-Only · Zero Changes
Run on the database host
Copy Command
# Linux (~/.pgpass, PGPASSWORD or -W)
sh pg_check.sh -H <host> -P 5432 -u postgres -d postgres -W
# Windows
powershell -ExecutionPolicy Bypass -File .\pg_check.ps1 -DbHost <host>
Output File
./pg_check_<instance>_<timestamp>.html
Secure Auth
Supports ~/.pgpass, PGPASSWORD env var or interactive -W prompt.
Dameng DM8
Scripts Ready
DM8 · Requires disql · Linux / Windows
Checks instances, sessions, tablespaces, memory pools, archives, backups, parameters and statistics.
1
Download Script
Plaintext Auditable · SHA-256
SHA-256
dc058c9a0e33e838f7cf14c64e9ee302625da20d3d3690df51d48a7877fed54b
Copy
SHA-256
40c4a286bc840449b5e1685d48ea09c7621a2428dc9900b5942bc85bca614848
Copy
2
Run Command
Read-Only · Zero Changes
Run on the database host
Copy Command
# Linux (interactive prompt or DM_PASS env)
DM_HOST=<host> DM_USER=SYSDBA bash dm_check.sh
# Windows
powershell -ExecutionPolicy Bypass -File .\dm_check.ps1 -Host_ <host>
Output File
./dm_check_report.html
Secure Auth
No default password; uses disql /NOLOG via DM_PASS or masked prompt.
KingbaseES
Scripts Ready
V8 / V9 · Requires ksql · Linux
Checks instance & license, XID wraparound, archiving & replication, prepared transactions & lock blocking, invalid/redundant indexes, table bloat, privileged roles, non-default parameters, and host resources.
1
Download Script
Plaintext Auditable · SHA-256
SHA-256
7ad738baf3320e4642f31ae74401c4e4aa199f1781c7c0a37220a2f64d2e3106
Copy
2
Run Command
Read-Only · Zero Changes
Run on the database host
Copy Command
sh kingbase_check.sh -H <host> -P 54321 -u system -d security -W
Output File
./kingbase_check_<instance>_<timestamp>.html
Secure Auth
Tries local passwordless auth first; supports KINGBASE_PASSWORD or -W.
YashanDB
Scripts Ready
Standalone / Standby / YAC · Requires yasql · Linux
Checks storage engines, YAC clusters, tablespaces, lock waits, security and backups.
1
Download Script
Plaintext Auditable · SHA-256
SHA-256
45e41c5110b5815d702cfdade4b06e6a258dbf9856af97553b51643e188d2663
Copy
2
Run Command
Read-Only · Zero Changes
Run on the database host
Copy Command
sh yashandb_check.sh -H <host> -P 1688 -u sys -W
Output File
./yashandb_check_<instance>_<timestamp>.html
Secure Auth
Supports YASDB_PASSWORD env var or interactive -W prompt.
OceanBase
Scripts Ready
3.x / 4.x Cluster · Requires obclient / mysql
Covers OceanBase 4.x/3.x cluster topology, tenant & unit resource utilization, leaderless/missing replicas and Paxos sync lag, MemStore & compaction diagnostics, log disk & non-default parameter baselines, large/dangling transactions, and security/backup.
1
Download Script
Plaintext Auditable · SHA-256
SHA-256
557e5e43c899b92f1bb5f2dd3e6f91b4e981c0a4d8f9d9b94f6629260ba237aa
Copy
2
Run Command
Read-Only · Zero Changes
Run on the database host
Copy Command
sh oceanbase_check.sh -H <host> -P 2881 -u root@sys -W
Output File
./oceanbase_check_<cluster>_<timestamp>.html
Secure Auth
Connect to sys tenant via OB_PASSWORD / MYSQL_PWD or -W (CLI -p rejected).
TiDB
Scripts Ready
PD + TiDB + TiKV + TiFlash · Requires mysql (optional curl for PD API)
Combines PD API and SQL views (with pure-SQL fallback when PD API is unavailable) to check unhealthy stores, scheduler switches/pauses, region anomalies, GC safepoint health, cluster config drift, digest slow queries, lock/deadlocks, OOM settings, and RocksDB stall metrics.
1
Download Script
Plaintext Auditable · SHA-256
SHA-256
758ec1fcb209275aad5099ad67191c28105379cb9cca05312a9085e759efefc6
Copy
2
Run Command
Read-Only · Zero Changes
Run on the database host
Copy Command
# PD API + SQL (recommended)
sh tidb_check.sh --pd-addr <pd:2379> --tidb-host <host> -u root -W
# Pure SQL fallback (without PD HTTP API)
sh tidb_check.sh --no-pd --tidb-host <host> -u root -W
Output File
./tidb_check_<cluster>_<timestamp>.html
Secure Auth
Uses TIDB_PASSWORD / MYSQL_PWD or interactive -W (CLI -p rejected).