An open API service indexing awesome lists of open source software.

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

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)。