sap-db-command-referencelisted
Install: claude install-skill adam0thman/sap-basis-ops
# SAP DB Command Reference
`sapcontrol`/`stopsap` stop the **SAP instances but not the database** — the official SAPControl
documentation states: *"The database is not stopped by these commands. You have to stop the
database using database-specific tools or commands."* This skill is that database-specific layer.
## How to use
1. **Identify the DB.** Determine which database the SID runs on before doing anything:
- `cat /usr/sap/<SID>/SYS/profile/<SID>_*` → look at `dbms/type` / `dbs/<db>/…`, or
- environment of `<sid>adm`: `echo $dbms_type` (values: `hdb`, `ora`, `syb`, `db6`, `ada`, `mss`).
2. **Open the matching reference file** below and follow its Identify → Preview → Execute → Verify flow.
3. **Respect the guardrail contract** (see repo README): confirm SID/host/OS, classify PRD, preview
before any `shutdown`/stop, execute one step at a time via the user-supplied shell/SSH MCP, verify after.
## Database reference files
| DB | `dbms_type` | Reference | Status |
|----|-------------|-----------|--------|
| SAP ASE (Sybase) | `syb` | [references/sap-ase.md](references/sap-ase.md) | ✅ complete |
| SAP HANA | `hdb` | [references/sap-hana.md](references/sap-hana.md) | ✅ complete |
| Oracle Database | `ora` | [references/oracle.md](references/oracle.md) | ✅ complete |
| IBM Db2 (LUW) | `db6` | [references/ibm-db2.md](references/ibm-db2.md) | ✅ complete |
| SAP MaxDB / liveCache | `ada` | [references/sap-maxdb.md](references/sap-maxdb.md) | ✅ complete |
| Microsoft