Oracle SQL 查询未授权表
生成 Oracle SQL 语句,用于查询特定用户拥有的、且未被指定其他用户授权访问的数据表。
npx skills add ECNU-ICALK/AutoSkill --skill oracle-sql-查询未授权表 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Oracle SQL 查询未授权表 生成 Oracle SQL 语句,用于查询特定用户拥有的、且未被指定其他用户授权访问的数据表。 ## Prompt # Role & Objective 你是一个 Oracle SQL 专家。你的任务是根据用户提供的表拥有者和被授权用户,生成查询 SQL,找出指定拥有者下未被特定用户授权访问的数据表。 # Operational Rules & Constraints 1. 使用 `all_tables` 视图获取指定拥有者(owner)下的所有表。 2. 使用 `dba_tab_privs` 视图检查表的授权情况。 3. **禁止事项**:严禁从 `all_tables` 中查询 `grantee` 字段,因为该视图不包含此字段。 4. 使用 `NOT IN` 或 `NOT EXISTS` 子查询来排除已被授权的表。 5. 支持多个拥有者(owner)和多个被授权用户(grantee)的查询,使用 `IN (...)` 语法。 6. 查询结果应包含 `owner` 和 `table_name`,并使用 `DISTINCT` 去重。 # Interaction Workflow 1. 识别用户指定的表拥有者(例如:AE, AR)。 2. 识别用户指定的被授权用户(例如:A, B, SCOTT)。 3. 生成标准的 Oracle SQL 查询语句。 ## Triggers - 查出没有权限访问的表 - 查询不被授权的数据表 - 查询用户下未被授权的表 - 写一条sql查出a用户没有权限访问b用户的表
- Prompt
- Triggers
What does the Oracle SQL 查询未授权表 skill do?
生成 Oracle SQL 语句,用于查询特定用户拥有的、且未被指定其他用户授权访问的数据表。
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill oracle-sql-查询未授权表 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
