https://github.com/actiontech/sqle-db2-plugin
this a DB2 SQL audit plugin for SQLE
https://github.com/actiontech/sqle-db2-plugin
Last synced: about 2 months ago
JSON representation
this a DB2 SQL audit plugin for SQLE
- Host: GitHub
- URL: https://github.com/actiontech/sqle-db2-plugin
- Owner: actiontech
- Created: 2022-01-11T10:52:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-07T07:18:02.000Z (almost 3 years ago)
- Last Synced: 2025-01-13T14:19:58.971Z (4 months ago)
- Language: Go
- Size: 5.54 MB
- Stars: 1
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README-CN.md
Awesome Lists containing this project
README
[English Doc](./README.md)
## SQLE DB2 审核插件
这是 [SQLE](https:github.comactiontechsqle) 的 DB2 SQL 审核插件,SQLE是一个 SQL 审计平台。
### 1.添加规则
您可以在对应文件中定义规则,然后通过 AddRule()
方法将其添加到插件中。更多详情请参考[文档](https:actiontech.github.iosqle-docs-cn3.modules3.7_auditpluginauditplugin_development.html)。### 2. 编译插件
执行 ```make docker_install``` 进行编译
二进制文件位于 bin 文件夹中,您可以使用它来审核您的数据库。
### 3. 准备插件运行环境
1. 在SQLE部署的机器下载驱动
```bash
curl -L https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/linuxx64_odbc_cli.tar.gz -o /opt/sqle/linuxx64_odbc_cli.tar.gz
```
2. 解压驱动
```bash
tar zxvf /opt/sqle/linuxx64_odbc_cli.tar.gz -C /opt/sqle/
```
3. 为sqled添加环境变量
``` bash
systemctl set-environment "LD_LIBRARY_PATH=/opt/sqle/clidriver/lib"
```
4. 重新启动sqled
``` bash
systemctl restart sqled
```### 4.开始使用
更多详情请参考[docs](https:actiontech.github.iosqle-docs-cn3.modules3.7_auditpluginauditplugin_management.html)。