db2-rhel

用于在 RHEL 9(以及 AlmaLinux/Rocky 9)上安装、配置和管理 IBM DB2 LUW 的操作指导。涵盖实例创建、数据库管理、缓冲池与表空间管理、HADR 备份与恢复、性能调优(如 db2advis、db2pd、MON 函数)、runstats/reorg、SELinux 上下文、firewalld 规则以及 DB2 pureScale。属于 db2-* 技能系列的一部分。

仓库最近推送
GitHub Stars
212
Forks
664
Issues / PRs
21

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "db2-rhel":https://skillpi.com/zh/skills/deepskill-b9d38a162648c096906e5a622a601215230f0e7b283974d76cd1c4f840743483。安装前核对上游来源和版本:https://github.com/Kilo-Org/kilo-marketplace。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

用于在 RHEL 9(以及 AlmaLinux/Rocky 9)上安装、配置和管理 IBM DB2 LUW 的操作指导。涵盖实例创建、数据库管理、缓冲池与表空间管理、HADR 备份与恢复、性能调优(如 db2advis、db2pd、MON 函数)、runstats/reorg、SELinux 上下文、firewalld 规则以及 DB2 pureScale。属于 db2-* 技能系列的一部分。

0 下载

介绍来源: third_party · Kilo-Org · 0.0.1 参考来源

SkillPi 解读

实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: db2-rhel
description: >-
  Use when installing, configuring, or managing IBM DB2 LUW on RHEL 9 (and
  AlmaLinux/Rocky 9) — instance creation, database administration, buffer pool
  and tablespace management, backup/restore with HADR, performance tuning
  (db2advis, db2pd, MON functions), runstats/reorg, SELinux contexts, firewalld
  rules, and DB2 pureScale. Part of the db2-* skill family.
metadata:
  category: data
  source:
    repository: 'https://github.com/joogy06/agent-foundry'
    path: skills/db2-rhel
    license_path: LICENSE
    commit: 527e3a8e9d395f564d62a63ef3bff5ff44bc9b6f

IBM DB2 LUW — Administration on RHEL 9

Companion skill to rhel-server-admin and rhel-databases. For Python DB2 connectivity see python-enterprise-connectors.

<HARD-RULE> Always RUNSTATS after bulk loads and before production queries — stale stats produce bad access plans. The optimizer relies on distribution statistics to choose join methods, index paths, and sort strategies. Stale or missing stats silently degrade performance by orders of magnitude. </HARD-RULE>

<HARD-RULE> Never modify DB2 registry variables on a running production instance without scheduling a maintenance window — most require db2stop/db2start to take effect, and some (DB2_WORKLOAD, DB2_PARALLEL_IO) change optimizer behavior globally. Always db2set -lr to list variables, test in non-prod first. </HARD-RULE>

<HARD-RULE> Always test HADR takeover procedures regularly — untested failover is not HA. Run TAKEOVER HADR on the standby at least quarterly in a maintenance window. Verify automatic client reroute (ACR) reconnects applications. Document RTO/RPO and validate them. </HARD-RULE>

<HARD-RULE> Never disable SELinux for DB2 — use correct contexts and fcontext rules. DB2 directories (/opt/ibm/db2, instance home, database paths) need proper SELinux labels. See the RHEL-Specific section for exact fcontext commands. </HARD-RULE>


Reference Files

Detailed code examples, patterns, and configuration are in the reference files below. Read the relevant file when working on that area.

File Covers
install-admin.md DB2 installation on RHEL, instance management, and database administration (tablespaces, buffer pools, schemas, tables)
performance-monitoring-rhel.md performance tuning (db2advis, db2pd, MON functions), monitoring, maintenance, RHEL-specific configuration, and DB2 pureScale
security-backup-recovery.md DB2 security (authentication, authorization, roles, audit), backup strategies, and HADR recovery


Anti-Patterns

Anti-Pattern Why It Fails Correct Approach
Running DB2 with default buffer pool sizes Default 1000 pages is far too small for production; excessive disk I/O, poor query performance Size buffer pools based on workload: OLTP needs 60-80% of data in memory; run db2pd -bufferpools to monitor hit ratio
Skipping RUNSTATS after bulk data loads Optimizer uses stale cardinality estimates; queries that were fast become full table scans Run RUNSTATS WITH DISTRIBUTION on tables and indexes after every significant data change
Using HADR without automatic client reroute Failover happens but applications cannot find the new primary; manual intervention required Configure ALTERNATE SERVER in database directory and enable ACR in application connection strings
Not setting LOGFILSIZ and LOGPRIMARY appropriately Default log sizes cause log-full conditions during batch loads; transactions roll back and retry endlessly Size transaction logs based on largest expected transaction; monitor with db2pd -logs; set LOGSECOND as overflow
Running backup without testing restore Backup jobs succeed but restore fails due to missing log files, wrong paths, or version mismatch Test restore to a different instance quarterly; validate with RESTORE DB ... WITHOUT ROLLING FORWARD

Related Skills

Workload Skill
Core RHEL admin (dnf, SELinux, firewalld, LVM) rhel-server-admin
PostgreSQL, MySQL, Redis on RHEL rhel-databases
Python DB2/Oracle/SQL Server connectors python-enterprise-connectors
Web servers (Nginx, Apache, Caddy) rhel-web-servers
Docker / Podman containers rhel-docker-host
Monitoring (Prometheus, Grafana, PCP) rhel-monitoring

版本历史

  1. skills-20261103210927-6c1b454 GitHub ↗
    原版更新说明

    Automated skills release from commit 6c1b4543cac1d45a80bf5904e4b69ac315117323

  2. skills-20260928190452-ff51758 GitHub ↗
    原版更新说明

    Automated skills release from commit ff51758b06b8249007116184096765d47bdb7505

  3. skills-20260924105536-d31110d GitHub ↗
    原版更新说明

    Automated skills release from commit d31110d62dc0bd00c22f1d6f6a630d1e702a0049

  4. skills-20260923085113-cea285e GitHub ↗
    原版更新说明

    Automated skills release from commit cea285ef0e4d6ec47cd2fd9fdbca03813a3363c7

  5. skills-20260922193956-97d7333 GitHub ↗
    原版更新说明

    Automated skills release from commit 97d7333d8200e5ac556c659c8669f3a83ba10866

此处仅展示最近 5 个版本。 在原站查看完整版本历史 ↗

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值92/100

亮点

  • 针对企业级 IBM DB2 LUW 在 RHEL 9 上的完整运维场景,涵盖安装、配置、性能调优、HADR 等高价值需求
  • 提供具体最佳实践和反模式指导,显著提升 DBA 工作效率
触发精准95/100

亮点

  • 触发描述完整覆盖 DB2 运维的多个关键子领域,边界清晰,无歧义
结构规范90/100

亮点

  • 结构清晰,分区合理,包含硬规则、参考文件、反模式等实用模块
  • frontmatter 完整,文档组织规范
执行可靠90/100

待提升项

  • 引用文件缺失 原报告严重程度:重大

    SKILL.md 中引用了 install-admin.md、performance-monitoring-rhel.md、security-backup-recovery.md 三个参考文件,但未传入这些文件

    改进建议:请补充上传所有被引用的参考文件,或明确说明这些文件将在后续提供

亮点

  • 提供了具体可靠的 DB2 和 RHEL 命令,覆盖生产环境关键注意事项
  • 强调测试验证和维护窗口,降低执行风险
证据可验 (前四项均值)92/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

文档引用的域名或地址

这些地址可能用于文档链接或示例,不是已批准的联网清单。使用前核对实际目的地及发送的数据。

  • github.com

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。